fix:样式修改,叉号清除

pull/337/head
lihui_ocr 1 year ago
parent 353b3b5959
commit 9272befdc8

@ -66,7 +66,7 @@ const getThemeOverrides = computed(() => {
</NConfigProvider> </NConfigProvider>
</template> </template>
<style lang="less"> <style lang="less" scoped>
.n-checkbox .n-checkbox__label { .n-checkbox .n-checkbox__label {
color: #666666 !important; color: #666666 !important;
font-size: 14px !important; font-size: 14px !important;
@ -107,6 +107,13 @@ const getThemeOverrides = computed(() => {
//left: -60px; //left: -60px;
} }
::v-deep( .n-form-item .n-form-item-feedback-wrapper .n-form-item-feedback.n-form-item-feedback--error){ ::v-deep( .n-form-item .n-form-item-feedback-wrapper .n-form-item-feedback.n-form-item-feedback--error){
display:none !important; display: none;
>img{
display:none !important;
}
} }
</style>
<style scoped>
</style> </style>

@ -110,7 +110,6 @@ async function handleSumbit(e: MouseEvent) {
const failCauseItem = failCauseOptions.value.find( const failCauseItem = failCauseOptions.value.find(
item => item.value === formData.failCauseId, item => item.value === formData.failCauseId,
) )
const param = { const param = {
result: false, result: false,
comment: showOther.value ? formData.comment : '', comment: showOther.value ? formData.comment : '',
@ -120,7 +119,9 @@ async function handleSumbit(e: MouseEvent) {
failCauseName: failCauseItem.label, failCauseName: failCauseItem.label,
flowTaskInfoList: list, flowTaskInfoList: list,
} }
if(failCauseItem.label!='其他'){
param.comment=failCauseItem.label
}
audit(param).then((res) => { audit(param).then((res) => {
const { code } = res const { code } = res
if (code === 'OK') { if (code === 'OK') {

@ -365,15 +365,22 @@ function upHandler(event: MouseEvent) {
const gridHeight = computed(() => { const gridHeight = computed(() => {
// return viewMode.value !== 'masonry' ? '157px' : '' // return viewMode.value !== 'masonry' ? '157px' : ''
let height = '' let height = ''
if (viewMode.value === 'masonry')
height = '' if (viewMode.value === 'masonry'){
height = ''}
else if (viewMode.value === 'horizontalVersion') else if (viewMode.value === 'horizontalVersion')
height = '145px' {
height = '145px'
}
else if (viewMode.value === 'verticalVersion') else if (viewMode.value === 'verticalVersion')
height = '300px' {
else if (viewMode.value === '3:4') height = '300px'
} else if (viewMode.value === '3:4')
{
height = '240px' height = '240px'
}
return height return height
}) })
@ -665,7 +672,9 @@ onBeforeMount(async () => {
else if (screenWidth < 1792 && screenWidth > 1440) else if (screenWidth < 1792 && screenWidth > 1440)
cols.value = 7 cols.value = 7
else if (screenWidth <= 1440) else if (screenWidth <= 1440)
cols.value = 5
cols.value =6
}) })
function previewHandler(index: number, event: MouseEvent, thumburl, imgUrl) { function previewHandler(index: number, event: MouseEvent, thumburl, imgUrl) {
@ -764,7 +773,7 @@ watch(() => show.value, async (newVal) => {
</div> </div>
<div ref="el" class="scroll" :style="{ height: maxHeight, marginTop: '16px' }"> <div ref="el" class="scroll" :style="{ height: maxHeight, marginTop: '16px' }">
<div v-if="viewMode != 'masonry'" class="grid" :style="{ 'grid-template-columns': `repeat(${cols}, 182px)` }"> <div v-if="viewMode != 'masonry'" class="grid" :style="{ 'grid-template-columns': `repeat(${cols}, 190px)` }">
<div <div
v-for="(item, index) in listData" :key="item.pictureId" :data-id="item.pictureId" v-for="(item, index) in listData" :key="item.pictureId" :data-id="item.pictureId"
:class="{ 'grid-item-selected': isSelected(item.pictureId) }" :style="{ height: gridHeight }" :class="{ 'grid-item-selected': isSelected(item.pictureId) }" :style="{ height: gridHeight }"
@ -1132,4 +1141,28 @@ watch(() => show.value, async (newVal) => {
object-fit: cover; object-fit: cover;
} }
} }
@media (max-width: 1440px) {
.wrapper-content .grid {
grid-gap: 0px 8px;
}
}
@media (min-width: 1440px) {
::v-deep(.vue-waterfall) {
overflow-x: hidden;
.vue-waterfall-column {
max-width: 190px;
margin-right: 8.5px;
}
}
}
@media (max-width: 1930px) {
::v-deep(.vue-waterfall) {
overflow-x: hidden;
.vue-waterfall-column {
max-width: 190px;
margin-right: 8.1px;
}
}}
</style> </style>

@ -356,6 +356,8 @@ defineExpose({
</n-space> </n-space>
<n-select <n-select
v-else v-else
:max-tag-count="1"
:multiple="item.type!='izyear'&&item.type!='izsimilarity'"
v-model:value="item.result" v-model:value="item.result"
filterable filterable
style="margin-left: 8px" style="margin-left: 8px"

@ -74,12 +74,13 @@ function searchName() {
} }
function close() { function close() {
searchKeyword.value = '' searchKeyword.value = ' '
configStore.setSearchValue(searchKeyword.value) configStore.setSearchValue(searchKeyword.value)
finalStore.setSearchValue(searchKeyword.value) finalStore.setSearchValue(searchKeyword.value)
if (searchContent) if (searchContent)
router.replace(route.path) router.replace(route.path)
emit('close') searchKeyword.value = ''
emit('close')
} }
function initSerach() { function initSerach() {

@ -98,6 +98,7 @@ const formValue = reactive<FormType>({
function handleSumbit(e: MouseEvent) { function handleSumbit(e: MouseEvent) {
e.preventDefault() e.preventDefault()
console.log(formRef.value)
formRef.value?.validate((errors) => { formRef.value?.validate((errors) => {
if (errors) if (errors)
return return
@ -399,6 +400,7 @@ if(formValue.name){
placeholder="请选择" placeholder="请选择"
:options="operatorOptions" :options="operatorOptions"
/> />
<n-space v-if="item.type === 'izyear'"> <n-space v-if="item.type === 'izyear'">
<n-date-picker <n-date-picker
v-model:value="item.result" v-model:value="item.result"
@ -409,6 +411,8 @@ if(formValue.name){
</n-space> </n-space>
<n-select <n-select
v-else v-else
:max-tag-count="1"
:multiple="item.type!='izyear'&&item.type!='izsimilarity'"
v-model:value="item.result" v-model:value="item.result"
filterable filterable
style="margin-left: 8px" style="margin-left: 8px"

@ -1179,7 +1179,7 @@ defineExpose({
.grid{ .grid{
padding-top: 3px; padding-top: 3px;
grid-gap: 10px 10px; grid-gap: 10px 27px;
} }
.img { .img {
@ -1418,7 +1418,12 @@ defineExpose({
top: 20%; top: 20%;
z-index: 10000000000000000000; z-index: 10000000000000000000;
} }
@media (max-width: 1440px) {
.wrapper-content .grid {
padding-top: 3px;
grid-gap: 10px 15px;
}
}
/*::v-deep(.n-image-preview-toolbar .n-base-icon:nth-last-child(2)){ /*::v-deep(.n-image-preview-toolbar .n-base-icon:nth-last-child(2)){
display: none; display: none;
}*/ }*/

@ -125,7 +125,7 @@ let processItems: any[] = []
const isFullScreen = ref(false) const isFullScreen = ref(false)
const fullscreenStyles = computed<any>(() => ({ const fullscreenStyles = computed<any>(() => ({
width: isFullScreen.value ? '100vw' : '', width: isFullScreen.value ? '99vw' : '',
height: isFullScreen.value ? '100vh' : '', height: isFullScreen.value ? '100vh' : '',
position: isFullScreen.value ? 'fixed' : '', position: isFullScreen.value ? 'fixed' : '',
top: isFullScreen.value ? '0' : '', top: isFullScreen.value ? '0' : '',
@ -133,7 +133,7 @@ const fullscreenStyles = computed<any>(() => ({
zIndex: isFullScreen.value ? '100' : '', zIndex: isFullScreen.value ? '100' : '',
})) }))
const fullscreenStylestwo = computed<any>(() => ({ const fullscreenStylestwo = computed<any>(() => ({
width: isFullScreen.value ? '100vw' : '', width: isFullScreen.value ? '99vw' : '',
height: isFullScreen.value ? '100vh' : '', height: isFullScreen.value ? '100vh' : '',
position: isFullScreen.value ? 'fixed' : '', position: isFullScreen.value ? 'fixed' : '',
top: isFullScreen.value ? '0' : '', top: isFullScreen.value ? '0' : '',
@ -893,7 +893,7 @@ function handleMouseLeave(){
<div <div
v-show="!imgbigshow" v-show="!imgbigshow"
:style="{ :style="{
position: 'fixed', position: 'absolute',
zIndex: 169, zIndex: 169,
background: 'rgb(80, 122, 253)', background: 'rgb(80, 122, 253)',
right: '16px', right: '16px',
@ -906,7 +906,7 @@ function handleMouseLeave(){
v-show="!imgbigshow" v-show="!imgbigshow"
class="aside-collapse-btn" class="aside-collapse-btn"
:style="{ :style="{
position: 'fixed', position:'absolute',
right: '0px', right: '0px',
top: '155px', top: '155px',
cursor: 'pointer', cursor: 'pointer',
@ -1074,6 +1074,7 @@ function handleMouseLeave(){
: { flex: 0.5 } : { flex: 0.5 }
" "
> >
<div></div>
<div <div
v-show="isFullScreen&&imgbigshow==false?true:isFullScreen&&huadong?true:false" v-show="isFullScreen&&imgbigshow==false?true:isFullScreen&&huadong?true:false"
class="aside-collapse-btn" class="aside-collapse-btn"
@ -1422,6 +1423,7 @@ function handleMouseLeave(){
<style lang="less" scoped> <style lang="less" scoped>
.fullscreen-container { .fullscreen-container {
overflow-y: auto; overflow-y: auto;
/* 可添加其他样式 */ /* 可添加其他样式 */
width: 100vw; width: 100vw;
@ -2159,7 +2161,7 @@ function handleMouseLeave(){
.img-wrapper { .img-wrapper {
position: relative; position: relative;
width: 230px; width: 217px;
height: 130px; height: 130px;
overflow: hidden; overflow: hidden;
background-size:cover; background-size:cover;
@ -2217,4 +2219,12 @@ function handleMouseLeave(){
border-radius: 8px; border-radius: 8px;
text-align: center; text-align: center;
} }
@media (max-width: 1441px) {
.wrapper-detail .right .item .img-wrapper{
width: 108px;
}
.allview .item .img-wrapper{
width: 215px;
}
}
</style> </style>

@ -244,7 +244,14 @@ function leaveHandler() {
}, },
] ]
} }
function createTimeForNumber (type) {
console.log(formValue.name)
if(formValue.name){
return ``}
else{
return `请输入标题内容`
}
}
function edit(editFilter: any) { function edit(editFilter: any) {
currentStatus.value = 'edit' currentStatus.value = 'edit'
@ -259,7 +266,17 @@ function edit(editFilter: any) {
} }
}) })
} }
watch(
() => formValue.name,
(newVal) => {
console.log(formValue.name)
if(formValue.name){
createTimeForNumber(0)
}else{
createTimeForNumber(1)
}
},
)
defineExpose({ defineExpose({
showModal, showModal,
edit, edit,
@ -335,7 +352,7 @@ defineExpose({
filterable filterable
placeholder="请选择筛选项名称" placeholder="请选择筛选项名称"
:options="typeOptions" :options="typeOptions"
@update="item.result = ''" @change="item.result = ''"
/> />
<n-select <n-select
v-model:value="item.operator" v-model:value="item.operator"
@ -344,6 +361,7 @@ defineExpose({
placeholder="请选择" placeholder="请选择"
:options="operatorOptions" :options="operatorOptions"
/> />
<n-space v-if="item.type === 'izuptime'"> <n-space v-if="item.type === 'izuptime'">
<n-date-picker <n-date-picker
v-model:value="item.result" v-model:value="item.result"
@ -354,6 +372,8 @@ defineExpose({
</n-space> </n-space>
<n-select <n-select
v-else v-else
:max-tag-count="1"
:multiple="item.type!='izyear'&&item.type!='izsimilarity'"
v-model:value="item.result" v-model:value="item.result"
filterable filterable
style="margin-left: 8px" style="margin-left: 8px"

@ -506,4 +506,5 @@ onUnmounted(() => {
margin-top: 12px; margin-top: 12px;
margin-bottom: 12px; margin-bottom: 12px;
} }
</style> </style>

@ -985,7 +985,7 @@ defineExpose({
> >
<div <div
class="img-wrapper" class="img-wrapper"
:style="{ backgroundImage: `url(${item.serverThumbnailUrl ? item.serverThumbnailUrl : item.imgUrl ? item.imgUrl : bgLoadingImg})` }" :style="{width:isFullScreen?'225px':'235px', backgroundImage: `url(${item.serverThumbnailUrl ? item.serverThumbnailUrl : item.imgUrl ? item.imgUrl : bgLoadingImg})` }"
/> />
<div class="time-wrapper"> <div class="time-wrapper">
<div class="time"> <div class="time">
@ -1464,7 +1464,7 @@ defineExpose({
position: relative; position: relative;
.img-wrapper { .img-wrapper {
width: 230px; width: 224px;
height: 130px; height: 130px;
overflow: hidden; overflow: hidden;
background-size: cover; background-size: cover;
@ -1612,6 +1612,16 @@ defineExpose({
margin-top: 12px; margin-top: 12px;
margin-bottom: 12px; margin-bottom: 12px;
} }
@media (min-width: 1440px)and (max-width: 1700px) {
.wrapper-list .grid-item .img-wrapper{
width: 221px !important;
}
}
@media (min-width: 1800px) {
.wrapper-list .grid-item .img-wrapper{
width: 225px !important;
}
}
</style> </style>
<style> <style>

Loading…
Cancel
Save