修改消息通知

This commit is contained in:
qq787203167
2022-03-04 17:06:13 +08:00
parent 1ee3475e45
commit 0db5597cf4
5 changed files with 21 additions and 14 deletions
@@ -25,10 +25,9 @@
} }
}, },
watch: { watch: {
'$route': function(val) { '$route': function(to,form) {
console.log(val) if (to.meta.title == '首页') {
if (val.meta.title == '首页') { this.Navigation = to.meta.title
this.Navigation = val.meta.title
this.subNavigation = null this.subNavigation = null
} else { } else {
this.updateMenu() this.updateMenu()
@@ -189,8 +189,8 @@
<a-form-model-item class="itemModel" :prop="item.db_field_name"> <a-form-model-item class="itemModel" :prop="item.db_field_name">
<a-tree-select <a-tree-select
v-model="formInline[item.db_field_name]" v-model="formInline[item.db_field_name]"
style="width: 100%"
:maxTagCount="1" :maxTagCount="1"
style="width: 100%"
:tree-data="item.tree" :tree-data="item.tree"
tree-checkable tree-checkable
:placeholder="$t('PleaseSelect')+item.db_field_txt" :placeholder="$t('PleaseSelect')+item.db_field_txt"
@@ -282,7 +282,7 @@
text: this.$t('relatedInformation'), text: this.$t('relatedInformation'),
content: [] content: []
} }
], ]
} }
}, },
mounted() { mounted() {
@@ -349,7 +349,7 @@
} }
/** 赋值给当前对应的表单文件 */ /** 赋值给当前对应的表单文件 */
this.formInline[this.uploadName] = attIdList.join(',') this.formInline[this.uploadName] = attIdList.join(',')
this.formInline = {...this.formInline } this.formInline = { ...this.formInline }
}, },
handleInput(value) { handleInput(value) {
this.$nextTick(() => { this.$nextTick(() => {
@@ -369,9 +369,9 @@
message: res.db_field_txt + this.$t('cannotEmpty'), message: res.db_field_txt + this.$t('cannotEmpty'),
trigger: 'blur' trigger: 'blur'
}) })
} else if (res.field_show_type === '4' || res.field_show_type === '6' || } else if (res.field_show_type === '4' || res.field_show_type === '6' ||
res.field_show_type === '5' || res.field_show_type === '7' res.field_show_type === '5' || res.field_show_type === '7'
) { ) {
rule.push({ rule.push({
required: true, required: true,
message: res.db_field_txt + this.$t('cannotEmpty'), message: res.db_field_txt + this.$t('cannotEmpty'),
@@ -425,6 +425,7 @@
} }
}) })
}) })
console.log(this.headerText)
} }
}) })
}, },
@@ -72,7 +72,8 @@
expandedKeys: [], expandedKeys: [],
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
selectedKey: [] selectedKey: [],
tableKey:[],
} }
}, },
mounted() { mounted() {
@@ -85,6 +86,7 @@
handleCancel() { handleCancel() {
this.visible = false this.visible = false
}, },
//String departIds,String userIds,String documentIds
handleSubmit() { handleSubmit() {
getAction(this.url.pullMessage, {}).then((res) => { getAction(this.url.pullMessage, {}).then((res) => {
if (res.success) { if (res.success) {
@@ -12,7 +12,7 @@
<a-tabs> <a-tabs>
<a-tab-pane :tab="msg1Title" key="1"> <a-tab-pane :tab="msg1Title" key="1">
<a-list> <a-list>
<a-list-item :key="index" v-for="(record, index) in announcement1"> <a-list-item :key="index" v-for="(record, index) in announcement1" v-if="index <= 4">
<div style="margin-left: 5%;width: 80%;"> <div style="margin-left: 5%;width: 80%;">
<p style="overflow: hidden; text-overflow: ellipsis;white-space: nowrap;color:#00B3BE"> <p style="overflow: hidden; text-overflow: ellipsis;white-space: nowrap;color:#00B3BE">
<a :title="record.msgContent" @click="showAnnouncement(record)">{{ record.msgContent }}</a> <a :title="record.msgContent" @click="showAnnouncement(record)">{{ record.msgContent }}</a>
@@ -182,9 +182,14 @@
}, },
//推送 //推送
handleCompare() { handleCompare() {
this.$nextTick(() => { if (this.idList.length > 0){
this.$refs.libraryPushRef.visible = true this.$nextTick(() => {
}) this.$refs.libraryPushRef.visible = true
this.$refs.libraryPushRef.tableKey = this.idList
})
}else{
this.$message.warning(this.$t('selectLeastOne'))
}
}, },
//导入 //导入
handleImport() { handleImport() {