修改点击清空无法清空高级检索的字段

布局评论
This commit is contained in:
qq787203167
2022-04-29 13:59:35 +08:00
parent 71f0d7b13a
commit 256b92f23c
5 changed files with 41 additions and 14 deletions
+2
View File
@@ -735,4 +735,6 @@ module.exports = {
Returning:'Returning', Returning:'Returning',
terminationProcessing:'Termination process', terminationProcessing:'Termination process',
publishComment:'publish comment', publishComment:'publish comment',
record:'record',
replyToComments:'Reply to comments',
} }
+2
View File
@@ -740,4 +740,6 @@ module.exports = {
Returning:'退回中', Returning:'退回中',
terminationProcessing:'终止流程中', terminationProcessing:'终止流程中',
publishComment:'发表评论', publishComment:'发表评论',
record:'记录',
replyToComments:'回复评论',
} }
@@ -88,7 +88,8 @@
{{$t('DocumentStandard')}} {{$t('DocumentStandard')}}
</div> </div>
<div class="operator-text" v-has="'document:importZip'" v-if="isTrue"> <div class="operator-text" v-has="'document:importZip'" v-if="isTrue">
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" @getList="getPersonnelList" :accept="'.zip'"/> <ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true" @getList="getPersonnelList"
:accept="'.zip'"/>
</div> </div>
<!-- 模板下载--> <!-- 模板下载-->
<div @click="handleModule" class="operator-text" v-if="isTrue"> <div @click="handleModule" class="operator-text" v-if="isTrue">
@@ -560,6 +561,8 @@
this.getList() this.getList()
}, },
searchReset() { searchReset() {
this.$refs.globalAdvancedQueryRef.resetLine()
this.$refs.globalAdvancedQueryRef.emitCallback()
this.queryParam = {} this.queryParam = {}
this.getList() this.getList()
}, },
@@ -625,8 +628,8 @@
} }
}) })
}, },
getPersonnelList(){ getPersonnelList() {
this.getList() this.getList()
}, },
batSettingList() { batSettingList() {
this.getList() this.getList()
@@ -13,7 +13,7 @@
</div> </div>
<div class="comment-box"> <div class="comment-box">
<div class="comment-box-top-box" v-for="(item,index) in 3"> <div class="comment-box-top-box" v-for="(item,index) in 3">
<div class="title-text">记录{{(index + 1)}}</div> <div class="title-text">{{$t('record')+(index + 1)}}</div>
<div class="box-content"> <div class="box-content">
<div class="img-box"> <div class="img-box">
<img src="../../../assets/daiban.png" class="img" alt=""> <img src="../../../assets/daiban.png" class="img" alt="">
@@ -25,7 +25,7 @@
<div class="box-text-text"> <div class="box-text-text">
法规清单缺少标准’’GB 7258“,注意补充 法规清单缺少标准’’GB 7258“,注意补充
</div> </div>
<div class="box-icon"> <div class="box-icon" @click="messageClick()">
<a-icon type="message"/> <a-icon type="message"/>
</div> </div>
</div> </div>
@@ -41,7 +41,7 @@
<div class="box-text-text"> <div class="box-text-text">
法规清单缺少标准’’GB 7258“,注意补充 法规清单缺少标准’’GB 7258“,注意补充
</div> </div>
<div class="box-icon"> <div class="box-icon" @click="messageClick()">
<a-icon type="message"/> <a-icon type="message"/>
</div> </div>
</div> </div>
@@ -50,7 +50,7 @@
</div> </div>
</a-drawer> </a-drawer>
<a-modal <a-modal
:title="$t('publishComment')" :title="title"
:width="500" :width="500"
:visible="visibleComment" :visible="visibleComment"
:confirm-loading="confirmLoading" :confirm-loading="confirmLoading"
@@ -63,13 +63,13 @@
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="title-text-text" :title="$t('publishComment')">{{$t('publishComment')}}</span> <span class="title-text-text" :title="title">{{title}}</span>
</div> </div>
<a-form-model-item class="itemModel" :prop="'remarks'"> <a-form-model-item class="itemModel" :prop="'publishComment'">
<a-textarea <a-textarea
:placeholder="$t('PleaseEnter')+$t('publishComment')" :placeholder="$t('PleaseEnter')+title"
:disabled="false" :disabled="false"
v-model="formInline.remark" :rows="4"/> v-model="formInline.publishComment" :rows="4"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -87,9 +87,18 @@
return { return {
visible: false, visible: false,
formInline: {}, formInline: {},
title: this.$t('comment'),
confirmLoading: false, confirmLoading: false,
visibleComment: false, visibleComment: false,
rules: {} rules: {
publishComment: [
{
required: true,
message: this.$t('publishComment') + this.$t('cannotEmpty'),
trigger: 'blur'
}
]
}
} }
}, },
mounted() { mounted() {
@@ -102,15 +111,24 @@
this.visible = true this.visible = true
}, },
handleSubmit() { handleSubmit() {
this.title = this.$t('publishComment')
this.visibleComment = true this.visibleComment = true
}, },
handleOkComment() { handleOkComment() {
this.$refs.ruleForm.validate(valid => {
if (valid) {
}
})
this.visibleComment = false this.visibleComment = false
}, },
handleCancelComment() { handleCancelComment() {
this.visibleComment = false this.visibleComment = false
},
messageClick() {
this.title = this.$t('replyToComments')
this.visibleComment = true
} }
} }
} }
</script> </script>
@@ -233,7 +251,7 @@
} }
.title-text { .title-text {
width: 44px; width: 64px;
text-align: right; text-align: right;
display: inline-block; display: inline-block;
font-weight: 500; font-weight: 500;
@@ -689,6 +689,8 @@
this.getList() this.getList()
}, },
searchReset() { searchReset() {
this.$refs.globalAdvancedQueryRef.resetLine()
this.$refs.globalAdvancedQueryRef.emitCallback()
this.queryParam = {} this.queryParam = {}
this.getList() this.getList()
}, },