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 d35a93c1..9f7bf380 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 @@

审批

- - 同意 - 退回 - - + + 同意 + 拒绝 +
+ + + + 取 消 + 确 定 + + @@ -88,13 +101,9 @@ export default { mixins: [mixinViewModule, processModule], data () { return { - // mixinViewModuleOptions: { - // getDataListURL: '/act/task/myToDoTaskPage', - // getDataListIsPage: true, - // activatedIsNeed: true, - // deleteIsBatch: true, - // deleteIsBatchKey: 'deploymentId' - // }, + dialogVisible: false, + dialogType: '', + input: '', visible: true, showKey: 0, // 表单属性是否可编辑 @@ -164,6 +173,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( @@ -235,13 +260,12 @@ export default { .catch(() => {}) }, // 同意与退回 - agreeOrNot: debounce(function (data) { - console.log(data) - if (this.agreeOrList === '同意') { + agreeOrNot: debounce(function () { + 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 }) => { @@ -264,10 +288,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) { 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) { 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') + } } } // 跳转页面