修改消息通知

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: {
'$route': function(val) {
console.log(val)
if (val.meta.title == '首页') {
this.Navigation = val.meta.title
'$route': function(to,form) {
if (to.meta.title == '首页') {
this.Navigation = to.meta.title
this.subNavigation = null
} else {
this.updateMenu()
@@ -189,8 +189,8 @@
<a-form-model-item class="itemModel" :prop="item.db_field_name">
<a-tree-select
v-model="formInline[item.db_field_name]"
style="width: 100%"
:maxTagCount="1"
style="width: 100%"
:tree-data="item.tree"
tree-checkable
:placeholder="$t('PleaseSelect')+item.db_field_txt"
@@ -282,7 +282,7 @@
text: this.$t('relatedInformation'),
content: []
}
],
]
}
},
mounted() {
@@ -349,7 +349,7 @@
}
/** 赋值给当前对应的表单文件 */
this.formInline[this.uploadName] = attIdList.join(',')
this.formInline = {...this.formInline }
this.formInline = { ...this.formInline }
},
handleInput(value) {
this.$nextTick(() => {
@@ -369,9 +369,9 @@
message: res.db_field_txt + this.$t('cannotEmpty'),
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'
) {
) {
rule.push({
required: true,
message: res.db_field_txt + this.$t('cannotEmpty'),
@@ -425,6 +425,7 @@
}
})
})
console.log(this.headerText)
}
})
},
@@ -72,7 +72,8 @@
expandedKeys: [],
visible: false,
confirmLoading: false,
selectedKey: []
selectedKey: [],
tableKey:[],
}
},
mounted() {
@@ -85,6 +86,7 @@
handleCancel() {
this.visible = false
},
//String departIds,String userIds,String documentIds
handleSubmit() {
getAction(this.url.pullMessage, {}).then((res) => {
if (res.success) {
@@ -12,7 +12,7 @@
<a-tabs>
<a-tab-pane :tab="msg1Title" key="1">
<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%;">
<p style="overflow: hidden; text-overflow: ellipsis;white-space: nowrap;color:#00B3BE">
<a :title="record.msgContent" @click="showAnnouncement(record)">{{ record.msgContent }}</a>
@@ -182,9 +182,14 @@
},
//推送
handleCompare() {
this.$nextTick(() => {
this.$refs.libraryPushRef.visible = true
})
if (this.idList.length > 0){
this.$nextTick(() => {
this.$refs.libraryPushRef.visible = true
this.$refs.libraryPushRef.tableKey = this.idList
})
}else{
this.$message.warning(this.$t('selectLeastOne'))
}
},
//导入
handleImport() {