diff --git a/back/public/index.html b/back/public/index.html index d96dc6a3..788f8554 100644 --- a/back/public/index.html +++ b/back/public/index.html @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-04-11 10:11:40 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-15 18:41:00 + * @LastEditTime: 2022-07-21 15:03:51 * @Description: 告诉大家这是什么 --> @@ -44,8 +44,8 @@ // window.SITE_CONFIG['apiURL'] = 'http://15.2.21.166:8888/renren-admin'; // window.SITE_CONFIG['apiURL'] = 'http://124.222.94.39:8888/renren-admin'; // window.SITE_CONFIG['apiURL'] = 'http://10.16.5.35:8888/renren-admin'; - window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin'; - window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.238:9796/'; + window.SITE_CONFIG['apiURL'] = 'http://15.2.21.236:8888/renren-admin'; + window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.236:9796/'; // window.SITE_CONFIG['apiURL'] = 'http://15.2.23.141:8000/renren-admin'; // WebSocket地址 window.SITE_CONFIG['socketURL'] ='ws://localhost:8080/renren-admin/websocket'; diff --git a/back/src/assets/img/Capabilitydiagram.png b/back/src/assets/img/Capabilitydiagram.png new file mode 100644 index 00000000..26506b21 Binary files /dev/null and b/back/src/assets/img/Capabilitydiagram.png differ diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 5ec517a7..0cf6f430 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -46,12 +46,11 @@ + - - - - + + + + + diff --git a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue index 426d31e5..af120d5e 100644 --- a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue +++ b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue @@ -176,29 +176,30 @@ export default { itemViewSon.children.map((itemSon, indexSon) => { // console.log('itemSon', itemSon) if (itemSon.name.indexOf('描述') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.description } else if (itemSon.name.indexOf('名称') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.name } else if (itemSon.name.indexOf('能力类型') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.type + } else if (itemSon.name === '部门联系人') { + console.log('itemSon.name', itemSon.name) + this.dataView.children[indexView].children[indexViewSon].children[ + indexSon + ].note1 = this.dataForm.deptContacts } else if (itemSon.name.indexOf('属部门') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.unit - } else if (itemSon.name.indexOf('共享条件') != -1) { - this.dataView.children[indexView].children[ - indexViewSon - ].children[indexSon].note1 = this.dataForm.shareCondition - } else if (itemSon.name.indexOf('共享类型') != -1) { - this.dataView.children[indexView].children[ - indexViewSon - ].children[indexSon].note1 = this.dataForm.shareType + } else if (itemSon.name === '部门联系人电话') { + this.dataView.children[indexView].children[indexViewSon].children[ + indexSon + ].note1 = this.dataForm.deptPhone } else if ( itemSon.name === '关联组件信息' && item.attrType === '关联组件信息' @@ -247,39 +248,40 @@ export default { itemViewSon.children.map((itemSon, indexSon) => { console.log('itemSon', itemSon) if (itemSon.name.indexOf('描述') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.description } else if (itemSon.name.indexOf('名称') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.name } else if (itemSon.name.indexOf('共享条件') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.shareCondition } else if (itemSon.name.indexOf('共享方式') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.shareMode } else if (itemSon.name.indexOf('共享类型') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.shareType - } else if (itemSon.name.indexOf('部门联系人') != -1) { - this.dataView.children[indexView].children[0].children[ + } else if (itemSon.name === '部门联系人') { + console.log('itemSon.name', itemSon.name) + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.deptContacts } else if (itemSon.name.indexOf('属部门') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.unit - } else if (itemSon.name.indexOf('部门联系人电话') != -1) { - this.dataView.children[indexView].children[0].children[ + } else if (itemSon.name === '部门联系人电话') { + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.deptPhone } else if (itemSon.name.indexOf('接口请求方式') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.apiMethodType } else if ( @@ -403,7 +405,7 @@ export default { color: #333333; font-size: 22px; margin-bottom: 20px; - background: url('~@/assets/img/sj-jx.png') no-repeat; + background: url("~@/assets/img/sj-jx.png") no-repeat; background-position-x: 15px; } .multipleAdditionsClass { @@ -417,6 +419,7 @@ export default { flex-direction: column; align-items: center; padding: 10px; + overflow: hidden; & > div:first-child { margin-bottom: 10px; font-weight: bold; @@ -445,6 +448,14 @@ export default { align-items: center; padding: 10px; position: relative; + & > div { + -webkit-line-clamp: 5; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + word-break: break-all; + } & > div:first-child { margin-bottom: 10px; font-weight: bold; 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 248d4ef9..13153689 100644 --- a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue +++ b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue @@ -33,11 +33,13 @@ ref="renProcessMultiple" > --> -
+

审批

同意 - 拒绝 + 拒绝
+ + + :before-close="handleClose" + > 取 消 - 确 定 + 确 定
@@ -120,6 +129,7 @@ export default { // 将业务KEY赋值给表单 console.log('params=================>', this.$route, this.$route.params) this.taskId = this.$route.params.taskId + this.dataForm.taskId = this.$route.params.taskId this.init() console.log('fromList', this.$router.currentRoute.params.businessKey) // this.dataForm = this.$router.currentRoute.params.params.params.resourceDTO @@ -157,11 +167,11 @@ export default { }, handleClose (done) { this.$confirm('确认关闭?') - .then(_ => { + .then((_) => { this.input = '' done() }) - .catch(_ => {}) + .catch((_) => {}) }, handleClose2 () { this.dialogVisible = false @@ -185,61 +195,73 @@ export default { }) }, // 同意与退回 - 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) - } - } + agreeOrNot: debounce( + function (data) { + if (this.dialogType === '同意') { + console.log('this.dataForm', this.dataForm) + const params = qs.stringify({ + taskId: this.taskId, + comment: this.input }) - }).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) + 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 + this.dialogVisible = false + this.input = '' + if (this.callbacks.taskHandleSuccessCallback) { + this.callbacks.taskHandleSuccessCallback(res) + } + } + }) + }) + .catch(() => {}) + } else if (this.dialogType === '拒绝') { + const params = qs.stringify({ + taskId: this.taskId, + comment: this.input }) - }) - } - }, 1000, { leading: true, trailing: false }), + this.$http + .post('/act/task/endProcess?', 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.tabRemoveHandle(data) + }, + 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 d03ef956..cf5cc2c3 100644 --- a/back/src/views/modules/myAgent/demo/competency-application.vue +++ b/back/src/views/modules/myAgent/demo/competency-application.vue @@ -2,54 +2,82 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-29 15:59:51 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-21 10:35:13 + * @LastEditTime: 2022-07-21 16:41:09 * @Description: 告诉大家这是什么 -->