From 38c77a3e96a1cc4f601085d430f7999c3c4005b7 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Wed, 20 Jul 2022 17:22:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E5=9B=9E=E5=8D=95=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/components/header.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index 35354823..934d6595 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -162,11 +162,14 @@ const logout = async () => { await store.dispatch('user/logout') window.sessionStorage.setItem('visits', JSON.stringify([])) - if (recordRoute) { - const fullPath = route.fullPath - router.push(`/login?redirect=${fullPath}`) - } else { - router.push('/login') + // 西海岸不返回登录页 + if (!whoShow1.itShowXiHaiAn) { + if (recordRoute) { + const fullPath = route.fullPath + router.push(`/login?redirect=${fullPath}`) + } else { + router.push('/login') + } } } // 跳转页面 From 30afa743443e57c480b2464a2a75b95b89d2d95b Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Thu, 21 Jul 2022 09:15:05 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=89=8D=E5=8F=B0=E4=B8=8A=E6=9E=B6?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/capacityOnTheShelf/Application.vue | 85 +++++++++- .../capacityOnTheShelf/BusinessComponent.vue | 149 +++++++++++++++++- .../DevelopmentComponents.vue | 148 ++++++++++++++++- .../capacityOnTheShelf/LayerServices.vue | 93 ++++++++++- 4 files changed, 463 insertions(+), 12 deletions(-) diff --git a/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue index dae497f0..81236fb1 100644 --- a/front/src/views/capacityOnTheShelf/Application.vue +++ b/front/src/views/capacityOnTheShelf/Application.vue @@ -24,6 +24,7 @@
+ - - + + + + + + + + +
@@ -291,6 +360,16 @@ console.log('所有编目结构==============>', res.data.data) }) } + // 特殊字段处理 + const refPutOnTheShelf = ref(null) + const changeGnjs = (type) => { + refPutOnTheShelf.value.add('功能介绍', true, type) + console.log(refPutOnTheShelf.value) + } + const changeBs = (type) => { + console.log(refPutOnTheShelf) + refPutOnTheShelf.value.add('常见问题', true, type) + } init() mybus.on('chageDataFrom', (obj) => { if (obj.attrType == '技术文档' && obj.attrValue != null) { diff --git a/front/src/views/capacityOnTheShelf/BusinessComponent.vue b/front/src/views/capacityOnTheShelf/BusinessComponent.vue index dd1d89e2..4ea7f7b3 100644 --- a/front/src/views/capacityOnTheShelf/BusinessComponent.vue +++ b/front/src/views/capacityOnTheShelf/BusinessComponent.vue @@ -24,6 +24,7 @@
- + + + + + + + + + - - + + + + + + + + + + + + +
@@ -279,6 +409,19 @@ }) } } + // 特殊字段处理 + const refPutOnTheShelf = ref(null) + const changeGnjs = (type) => { + refPutOnTheShelf.value.add('功能介绍', true, type) + } + const changeYycj = (type) => { + console.log(refPutOnTheShelf) + refPutOnTheShelf.value.add('应用场景', true, type) + } + const changeBs = (type) => { + console.log(refPutOnTheShelf) + refPutOnTheShelf.value.add('常见问题', true, type) + } const init = () => { getCategoryTree().then((res) => { // console.clear() diff --git a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue index ead4358f..7604080b 100644 --- a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue +++ b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue @@ -40,33 +40,162 @@ >
- + + + + + + + + + - - + + + + + + + + + + + + +
@@ -242,6 +371,19 @@ }) window.open(newpage.href, '_blank') } + // 特殊字段处理 + const refPutOnTheShelf = ref(null) + const changeGnjs = (type) => { + refPutOnTheShelf.value.add('功能介绍', true, type) + } + const changeYycj = (type) => { + console.log(refPutOnTheShelf) + refPutOnTheShelf.value.add('应用场景', true, type) + } + const changeBs = (type) => { + console.log(refPutOnTheShelf) + refPutOnTheShelf.value.add('常见问题', true, type) + } const submit = () => { console.log('提交数据=============>', dataFrom.value) if (submitFlag.value) { diff --git a/front/src/views/capacityOnTheShelf/LayerServices.vue b/front/src/views/capacityOnTheShelf/LayerServices.vue index 4d898100..8538064c 100644 --- a/front/src/views/capacityOnTheShelf/LayerServices.vue +++ b/front/src/views/capacityOnTheShelf/LayerServices.vue @@ -24,6 +24,7 @@
- + + + + + - - + + + + + + + + +
@@ -190,6 +267,16 @@ }) window.open(newpage.href, '_blank') } + // 特殊字段处理 + const refPutOnTheShelf = ref(null) + const changeYycj = (type) => { + console.log(refPutOnTheShelf) + refPutOnTheShelf.value.add('应用场景', true, type) + } + const changeBs = (type) => { + console.log(refPutOnTheShelf) + refPutOnTheShelf.value.add('常见问题', true, type) + } const submit = () => { console.log('提交数据=============>', dataFrom.value) if (submitFlag.value) { From 578c941f1c9f7a1dabb165da2aae1e9e547c72b4 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 21 Jul 2022 09:57:47 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../myAgent/demo/ability-resource-shelf.vue | 153 ++++++++++-------- .../myAgent/demo/competency-application.vue | 54 +++++-- 2 files changed, 130 insertions(+), 77 deletions(-) diff --git a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue index 2919c269..248d4ef9 100644 --- a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue +++ b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue @@ -36,7 +36,9 @@

审批

- + 同意 + 拒绝 +
+ + + + 取 消 + 确 定 + + @@ -81,6 +94,9 @@ export default { }, data () { return { + dialogVisible: false, + dialogType: '', + input: '', flagShow: false, // processVisible: true, visible: false, @@ -135,6 +151,22 @@ export default { } }) }, + showDialog (title) { + this.dialogVisible = true + this.dialogType = title + }, + handleClose (done) { + this.$confirm('确认关闭?') + .then(_ => { + this.input = '' + done() + }) + .catch(_ => {}) + }, + handleClose2 () { + this.dialogVisible = false + this.input = '' + }, methodsThree () { this.$http.get('/category/getCategoryTree').then((res) => { this.insertList = res.data.data @@ -152,73 +184,62 @@ export default { // } }) }, - agreeOrNot: debounce( - function (data) { - console.log(data) - if (this.agreeOrList === '同意') { - console.log('this.dataForm.taskId', this.taskId) - const params = qs.stringify({ - taskId: this.taskId, - comment: this.inputAgree - }) - console.log(params) - this.$http - .post('/act/task/complete?' + params) - .then(({ data: res }) => { - if (res.code !== 0) { - this.$message.error(res.msg) - if (this.callbacks.taskHandleErrorCallback) { - this.callbacks.taskHandleErrorCallback(res) - } - return + // 同意与退回 + agreeOrNot: debounce(function () { + if (this.dialogType === '同意') { + console.log('this.dataForm', this.dataForm) + const params = qs.stringify({ + taskId: this.dataForm.taskId, + comment: this.input + }) + console.log(params) + this.$http.post('/act/task/complete?' + params).then(({ data: res }) => { + if (res.code !== 0) { + this.$message.error(res.msg) + if (this.callbacks.taskHandleErrorCallback) { + this.callbacks.taskHandleErrorCallback(res) + } + return + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + if (this.callbacks.taskHandleSuccessCallback) { + this.callbacks.taskHandleSuccessCallback(res) } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - if (this.callbacks.taskHandleSuccessCallback) { - this.callbacks.taskHandleSuccessCallback(res) - } - } - }) - }) - .catch(() => {}) - } else if (this.agreeOrList === '退回') { - console.log('this.dataForm.taskId', this.taskId) - const params = qs.stringify({ - taskId: this.taskId, - comment: this.inputNo + } }) - this.$http - .post('/act/task/backToFirst?', params) - .then(({ data: res }) => { - if (res.code !== 0) { - this.$message.error(res.msg) - if (this.callbacks.taskHandleErrorCallback) { - this.callbacks.taskHandleErrorCallback(res) - } - return + }).catch(() => {}) + } else if (this.dialogType === '拒绝') { + const params = qs.stringify({ + taskId: this.dataForm.taskId, + comment: this.input + }) + this.$http.post('/act/task/backToFirst?', params).then(({ data: res }) => { + if (res.code !== 0) { + this.$message.error(res.msg) + if (this.callbacks.taskHandleErrorCallback) { + this.callbacks.taskHandleErrorCallback(res) + } + return + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + if (this.callbacks.taskHandleSuccessCallback) { + this.callbacks.taskHandleSuccessCallback(res) } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - if (this.callbacks.taskHandleSuccessCallback) { - this.callbacks.taskHandleSuccessCallback(res) - } - } - }) - }) - } - this.tabRemoveHandle(data) - }, - 1000, - { leading: true, trailing: false } - ), + } + }) + }) + } + }, 1000, { leading: true, trailing: false }), tabRemoveHandle (tabName) { console.log(tabName, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') if (tabName === 'home') { diff --git a/back/src/views/modules/myAgent/demo/competency-application.vue b/back/src/views/modules/myAgent/demo/competency-application.vue index 0c29bfbd..78d1d7e8 100644 --- a/back/src/views/modules/myAgent/demo/competency-application.vue +++ b/back/src/views/modules/myAgent/demo/competency-application.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-29 15:59:51 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-04 16:17:22 + * @LastEditTime: 2022-07-21 09:39:13 * @Description: 告诉大家这是什么 --> @@ -61,18 +61,31 @@

审批

- - 同意 - 退回 - - + + 同意 + 拒绝 +
+ + + + 取 消 + 确 定 + + @@ -87,6 +100,9 @@ export default { mixins: [processModule], data () { return { + dialogVisible: false, + dialogType: '', + input: '', visible: true, showKey: 0, // 表单属性是否可编辑 @@ -156,6 +172,22 @@ export default { } }) }, + showDialog (title) { + this.dialogVisible = true + this.dialogType = title + }, + handleClose (done) { + this.$confirm('确认关闭?') + .then(_ => { + this.input = '' + done() + }) + .catch(_ => {}) + }, + handleClose2 () { + this.dialogVisible = false + this.input = '' + }, downloadFile2 (url) { console.log(window.SITE_CONFIG.previewUrl) window.open( @@ -228,11 +260,11 @@ export default { }, // 同意与退回 agreeOrNot: debounce(function () { - if (this.agreeOrList === '同意') { + if (this.dialogType === '同意') { console.log('this.dataForm', this.dataForm) const params = qs.stringify({ taskId: this.dataForm.taskId, - comment: this.inputAgree + comment: this.input }) console.log(params) this.$http.post('/act/task/complete?' + params).then(({ data: res }) => { @@ -255,10 +287,10 @@ export default { } }) }).catch(() => {}) - } else if (this.agreeOrList === '退回') { + } else if (this.dialogType === '拒绝') { const params = qs.stringify({ taskId: this.dataForm.taskId, - comment: this.inputNo + comment: this.input }) this.$http.post('/act/task/backToFirst?', params).then(({ data: res }) => { if (res.code !== 0) {