diff --git a/back/src/views/main-sidebar.vue b/back/src/views/main-sidebar.vue index f11275cf..46514640 100644 --- a/back/src/views/main-sidebar.vue +++ b/back/src/views/main-sidebar.vue @@ -1,8 +1,8 @@ @@ -88,12 +88,14 @@ export default { } if (children.id == '1545313754106699777') { // 评论审核 children.total = Number(this.numObject.comment_review) daibanNum = Number(daibanNum) + Number(children.total) - } if (children.id == '1554294862931562498') { // 会客厅 暂无 - children.total = 0 + } if (children.id == '1554294862931562498') { // 会客厅 + // children.total = 0 + children.total = Number(this.numObject.meetingroom_book) daibanNum = Number(daibanNum) + Number(children.total) } } menu.total = daibanNum + console.log('menu', menu) } } this.$store.state.sidebarMenuList = menuList diff --git a/back/src/views/modules/notice/PortalAnnouncement.vue b/back/src/views/modules/notice/PortalAnnouncement.vue index 1fe26f22..9de92679 100644 --- a/back/src/views/modules/notice/PortalAnnouncement.vue +++ b/back/src/views/modules/notice/PortalAnnouncement.vue @@ -3,7 +3,7 @@
- + {{ $t('query') }} @@ -23,10 +23,17 @@ @@ -38,7 +45,7 @@
@@ -60,10 +67,11 @@ :visible.sync="dialogVisible2" width="30%" :close-on-click-modal="false"> - 天 + 取 消 确 定 @@ -120,11 +128,12 @@ export default { handleClose () { this.dialogVisible = false this.dialogVisible2 = false - this.submitData.content = '' + this.submitData = { + content: '' + } this.getCycle() }, submit () { - console.log(this.submitData) if (this.submitData.content.length < 6) { this.$message({ message: '最少发布6个字的公告!', @@ -132,10 +141,15 @@ export default { }) return } - this.$http.post('/sysnoticemanagement', this.submitData).then(res => { - console.log('获取通知数据', res.data.data) - this.clear() - }) + if (this.submitData.id) { + this.$http.post('/sysnoticemanagement/update', this.submitData).then(res => { + this.clear() + }) + } else { + this.$http.post('/sysnoticemanagement', this.submitData).then(res => { + this.clear() + }) + } }, submitCycle () { this.$http.put('/sys/dict/data', { @@ -156,23 +170,16 @@ export default { this.getCycle() }, deleteHandle (item) { - console.log(item) + console.log('点击', item) this.$http.post('/sysnoticemanagement/delete', [item.id]).then(res => { this.clear() }) }, - viewHandle (row) { - // 路由参数 - const routeParams = { - routeName: `${this.$route.name}__${row.id}`, - title: this.$t('notice.view1'), - path: 'notice/notice-view', - params: { - id: row.id - } - } - // 动态路由 - addDynamicRoute(routeParams, this.$router) + update (row) { + console.log(row) + this.submitData.id = row.id + this.submitData.content = row.content + this.dialogVisible = true } }, created () { diff --git a/back/src/views/modules/workBench/components/dept-todo-view.vue b/back/src/views/modules/workBench/components/dept-todo-view.vue index 15a3fbce..d35d65cf 100644 --- a/back/src/views/modules/workBench/components/dept-todo-view.vue +++ b/back/src/views/modules/workBench/components/dept-todo-view.vue @@ -28,10 +28,9 @@ v-if="dataInfo.type === 'todo'" :content=" (item.userDeptName || '--') + - '提交“' + - (item.applyTitle || '--') + - '”' + - (item.processDefinitionName || '--') + + '提交' + + (item.applyTitle?'“'+item.applyTitle+'”': '') + + (item.processDefinitionName || item.resourceType || '--') + (item.processDefinitionName !== '能力申请' && item.processDefinitionName !== '能力需求申请' ? '申请' @@ -46,14 +45,13 @@ {{ (item.userDeptName || '--') + - '提交“' + - (item.applyTitle || '--') + - '”' + - (item.processDefinitionName || '--') + - (item.processDefinitionName !== '能力申请' && - item.processDefinitionName !== '能力需求申请' - ? '申请' - : '') + '提交' + + (item.applyTitle?'“'+item.applyTitle+'”': '') + + (item.processDefinitionName || item.resourceType || '--') + + (item.processDefinitionName !== '能力申请' && + item.processDefinitionName !== '能力需求申请' + ? '申请' + : '') }} @@ -64,7 +62,7 @@ :content=" (item.startUserDeptName || '--') + '提交的' + - (item.processDefinitionName || '--') + + (item.processDefinitionName || item.resourceType || '--') + (item.processDefinitionName !== '能力申请' && item.processDefinitionName !== '能力需求申请' ? '申请' @@ -79,7 +77,7 @@ {{ (item.startUserDeptName || '--') + '提交的' + - (item.processDefinitionName || '--') + + (item.processDefinitionName || item.resourceType || '--') + (item.processDefinitionName !== '能力申请' && item.processDefinitionName !== '能力需求申请' ? '申请'