diff --git a/back/src/views/modules/ability/IntegratedServices-add.vue b/back/src/views/modules/ability/IntegratedServices-add.vue index 8144b0b9..d56937be 100644 --- a/back/src/views/modules/ability/IntegratedServices-add.vue +++ b/back/src/views/modules/ability/IntegratedServices-add.vue @@ -483,7 +483,6 @@ export default { -webkit-box-sizing: border-box; box-sizing: border-box; line-height: 32px; - background: pink; width: 120px; } diff --git a/back/src/views/modules/ability/assignedScene/add-update-scene.vue b/back/src/views/modules/ability/assignedScene/add-update-scene.vue index a1e69fad..4a8275af 100644 --- a/back/src/views/modules/ability/assignedScene/add-update-scene.vue +++ b/back/src/views/modules/ability/assignedScene/add-update-scene.vue @@ -31,7 +31,8 @@ 基本信息 - + + +
+ + +
+
v.attrType !== title)) { + this.dataForm.fuseAttrList.push({ + 'attrType': title, + 'attrValue': JSON.stringify(data.list) + }) + } else { this.dataForm.fuseAttrList.map(v => { - if (v.attrType === '使用步骤') { + if (v.attrType === title) { v.attrValue = JSON.stringify(data.list) } }) } - if (data.title == '关联能力') { - this.dataForm.fuseResourceList = data.list - } }, // 改变按钮状态 changeBtn(data) { @@ -281,28 +321,30 @@ export default { this.$nextTick(() => { this.$refs.combineAbility && this.$refs.combineAbility.getDataInfo(data) this.$refs.sceneUseUp && this.$refs.sceneUseUp.getDataInfo(data) + this.$refs.commonQuestion && this.$refs.commonQuestion.getDataInfo(data) console.log('this.dataForm----详情-------->', this.dataForm); }) }, // 重组数据 - getDisPlayData() { - this.$nextTick(() => { - const questionObj = this.dataForm.fuseAttrList.find(v => v.attrType == '使用步骤') || {}; - let fuseResourceList = this.dataForm.fuseResourceList || []; - let arr = [] - fuseResourceList.map(v => { - if (v.resource) { - arr.push({ - name: v.resource.name, - type: v.resource.type, - }) - } - }) - this.displayListInfo['使用步骤'] = JSON.parse(questionObj.attrValue || '[]') - this.displayListInfo['关联能力'] = arr - }) - - }, + // getDisPlayData() { + // this.$nextTick(() => { + // const stepObj = this.dataForm.fuseAttrList.find(v => v.attrType == '使用步骤') || {}; + // const moreObj = this.dataForm.fuseAttrList.find(v => v.attrType == '更多能力') || {}; + // let fuseResourceList = this.dataForm.fuseResourceList || []; + // let arr = [] + // fuseResourceList.map(v => { + // if (v.resource) { + // arr.push({ + // name: v.resource.name, + // type: v.resource.type, + // }) + // } + // }) + // this.displayListInfo['使用步骤'] = JSON.parse(stepObj.attrValue || '[]') + // this.displayListInfo['更多能力'] = JSON.parse(moreObj.attrValue || '[]') + // this.displayListInfo['关联能力'] = arr + // }) + // }, }, beforeDestroy() { this.clearForm() @@ -403,7 +445,6 @@ export default { -webkit-box-sizing: border-box; box-sizing: border-box; line-height: 32px; - background: pink; width: 120px; } diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index c7a467c4..acb89473 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -120,7 +120,7 @@ >{{ $t("delete") }} 展示详情 开发文档 { + return { + nameObj: { + text: '问题名称', + key: 'question' + }, + descObj: { + text: '问题描述', + key: 'answer' + }, + } + } } }, data() { @@ -38,7 +60,7 @@ export default { handler(newVal) { this.dataInfo = newVal; this.$emit('update', { - title: '常见问题', + title: this.title, list: newVal }) }, @@ -51,21 +73,29 @@ export default { let arr = [] if (dataForm && (dataForm.id || dataForm.id === 0)) { let fuseAttrList = dataForm.fuseAttrList || []; - let obj = fuseAttrList.find(v => v.attrType === '常见问题') || {} + let obj = fuseAttrList.find(v => v.attrType === this.title) || {} let attrValue = JSON.parse(obj.attrValue || "[]") if (attrValue.length > 0) { attrValue.map(v => { arr.push({ - question: v.question, - answer: v.answer, + [this.keyTextObj.nameObj.key]: v[this.keyTextObj.nameObj.key], + [this.keyTextObj.descObj.key]: v[this.keyTextObj.descObj.key], }) }) + } else { + arr = [] + console.log('this.keyTextObj.nameObj.key------------>', this.keyTextObj.nameObj.key); + arr.push({ + [this.keyTextObj.nameObj.key]: '', + [this.keyTextObj.descObj.key]: '', + }) } } else { arr = [] + console.log('this.keyTextObj.nameObj.key------------>', this.keyTextObj.nameObj.key); arr.push({ - question: "", - answer: "", + [this.keyTextObj.nameObj.key]: '', + [this.keyTextObj.descObj.key]: '', }) } this.dataInfo = arr; @@ -73,8 +103,8 @@ export default { // 新增 addItem() { this.dataInfo.push({ - question: "", - answer: "", + [this.keyTextObj.nameObj.key]: '', + [this.keyTextObj.descObj.key]: '', }) }, // 删除 diff --git a/back/src/views/modules/myAgent/demo/Application-resources.vue b/back/src/views/modules/myAgent/demo/Application-resources.vue deleted file mode 100644 index bf310a87..00000000 --- a/back/src/views/modules/myAgent/demo/Application-resources.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - - diff --git a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue index 2b46e2d3..426d31e5 100644 --- a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue +++ b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue @@ -168,20 +168,6 @@ export default { this.dataView = val.filter( (item) => item.name === this.dataForm.type + '一' )[0] - console.log(this.dataView) - console.log(this.dataForm) - // 应用描述 - // this.dataView.children[0].children[0].children[4].note1 = - // this.dataForm.description - // 应用名称 - // this.dataView.children[0].children[0].children[0].note1 = - // this.dataForm.name - // 共享条件 - this.dataView.children[2].children[1].children[0].note1 = - this.dataForm.shareCondition - // 共享类型 - this.dataView.children[2].children[1].children[1].note1 = - this.dataForm.shareType this.dataForm.infoList.map((item, index) => { this.dataView.children.map((itemView, indexView) => { // console.log('itemView', itemView) @@ -236,6 +222,7 @@ export default { }) }) }) + if (item.attrType === '功能介绍') { this.dataForm.infoList[index].attrValue = JSON.parse( item.attrValue @@ -318,7 +305,11 @@ export default { }) }) }) - if (item.attrType === '算法优势' || item.attrType === '应用场景') { + if ( + item.attrType === '算法优势' || + item.attrType === '应用场景' || + item.attrType === '功能介绍' + ) { this.dataForm.infoList[index].attrValue = JSON.parse( item.attrValue ) 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 a6e1e698..2919c269 100644 --- a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue +++ b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue @@ -7,9 +7,6 @@ @keyup.enter.native="dataFormSubmitHandle()" :label-width="$i18n.locale === 'en-US' ? '120px' : 'auto'" > -
- -

审批

- + 同意 退回 - - - 提交 + + + 提交
+ diff --git a/back/src/views/modules/workBench/components/dept-chart-view.vue b/back/src/views/modules/workBench/components/dept-chart-view.vue index 79291918..e7a95a2e 100644 --- a/back/src/views/modules/workBench/components/dept-chart-view.vue +++ b/back/src/views/modules/workBench/components/dept-chart-view.vue @@ -42,12 +42,7 @@ export default { handler(newVal, oldVal) { if (newVal) { this.dataListCopy = newVal; - if (document.getElementById(this.id)) { - // 解决数据初始渲染不出来的问题 - setTimeout(() => { - this.initChart() - }, 2000) - } + this.initChart() } }, deep: true, @@ -55,9 +50,6 @@ export default { }, }, mounted() { - setTimeout(() => { - this.initChart() - }, 2000) }, methods: { initChart() { @@ -68,7 +60,6 @@ export default { this.myChart = chartDom && echarts.init(chartDom); let lengendArr = this.dataListCopy.filter(v => v.name); - let total = 0; this.dataListCopy.map(v => { if (v.value || v.value === 0) { 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 3864a583..c7d872e0 100644 --- a/back/src/views/modules/workBench/components/dept-todo-view.vue +++ b/back/src/views/modules/workBench/components/dept-todo-view.vue @@ -12,16 +12,26 @@
-
- - + +
- {{ item[dataInfo.nameStr] || '--' }} + {{ `${(item.processDefinitionName || '--')}${item.taskName ? ('—' + item.taskName) : ''}` }} +
+
+ + +
+ {{ `${(item.processDefinitionName || '--')}${item.resourceName ? ('—' + item.resourceName) : + ''}` + }}
-
查看更多 >
diff --git a/back/src/views/modules/workBench/workBench.vue b/back/src/views/modules/workBench/workBench.vue index 95f5bca3..97a1a0b4 100644 --- a/back/src/views/modules/workBench/workBench.vue +++ b/back/src/views/modules/workBench/workBench.vue @@ -9,13 +9,13 @@
+ ref="resourceChart" :colorArray="resourceColor"> - + ref="requireChart" :colorArray="requireColor">
@@ -54,7 +54,7 @@ export default { textColor: '#f86f01', num: 0, list: [], - nameStr: 'taskName', + type: 'todo', url: 'activiti-my-todo-task' }, // 部门已办 @@ -67,7 +67,6 @@ export default { textColor: '#21b107', num: 0, list: [], - nameStr: 'processDefinitionName', url: 'activiti-my-join-task' }, // 部门申请 @@ -134,6 +133,7 @@ export default { console.log('res----已办-------->', res.data); this.hasToDodoData.list = res.data.data.records || [] this.hasToDodoData.num = res.data.data.total || 0 + }, err => { this.$message.error(err) this.loadingHasToDo = false; @@ -150,6 +150,9 @@ export default { } console.log('res----部门上架-------->', res.data); this.resourceData = this.formatList(res.data.data.total || []) + this.$nextTick(() => { + this.$refs.resourceChart.initChart(this.resourceData) + }) }, err => { this.$message.error(err) this.loadingResource = false; @@ -165,6 +168,10 @@ export default { } console.log('res----部门申请-------->', res.data); this.applyData = this.formatList(res.data.data.total || []) + this.$nextTick(() => { + console.log('this.applyData------------>', this.applyData); + this.$refs.applyChart.initChart(this.applyData) + }) }, err => { this.$message.error(err) this.loadingApply = false; @@ -190,6 +197,9 @@ export default { } console.log('res----部门需求-------->', res.data); this.requireData = this.formatList(res.data.data.total || [], 'flag') + this.$nextTick(() => { + this.$refs.requireChart.initChart(this.requireData) + }) }, err => { this.$message.error(err) diff --git a/front/public/index.html b/front/public/index.html index ae7a26f4..423c17f6 100644 --- a/front/public/index.html +++ b/front/public/index.html @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-03-29 16:45:25 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-07-16 16:41:18 + * @LastEditTime: 2022-07-18 18:45:09 * @Description: 告诉大家这是什么 --> diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index 685e6098..d66ea6b5 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -1,13 +1,13 @@ /* * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 - * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-07-14 10:01:08 + * @LastEditors: hisense.liangjunhua + * @LastEditTime: 2022-07-18 15:07:32 * @Description: 数据资源参数配置 */ const newLocation = 'qingdao' // const newLocation = 'baotou' -// const newLocation = 'xihaian' +// const newLocation = 'xihaian' // 数据资源数据 const whoShow = {} diff --git a/front/src/api/home.js b/front/src/api/home.js index 86cf83ec..417b6e6e 100644 --- a/front/src/api/home.js +++ b/front/src/api/home.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2022-04-01 19:19:40 - * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-06-30 19:36:48 + * @LastEditors: hisense.liangjunhua + * @LastEditTime: 2022-07-18 16:24:44 * @Description: 告诉大家这是什么 */ import request from '@/utils/request' @@ -119,6 +119,14 @@ export function submitApply(data) { data, }) } +// 提交申请 +export function applyAllApplication(data) { + return request({ + url: '/ability/center/v2/applyAllApplication', + method: 'post', + data, + }) +} export function tabilityapplication(data) { return request({ url: '/processForm/tabilityapplication', diff --git a/front/src/assets/newHome/newHome-title-bg-xihaian.png b/front/src/assets/newHome/newHome-title-bg-xihaian.png new file mode 100644 index 00000000..cfe3b105 Binary files /dev/null and b/front/src/assets/newHome/newHome-title-bg-xihaian.png differ diff --git a/front/src/vab/plugins/permissions.js b/front/src/vab/plugins/permissions.js index d00219c4..e7535f15 100644 --- a/front/src/vab/plugins/permissions.js +++ b/front/src/vab/plugins/permissions.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-04-01 17:23:11 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-07-16 16:42:46 + * @LastEditTime: 2022-07-18 18:45:20 * @Description: 告诉大家这是什么 */ /** diff --git a/front/src/views/assignCase/components/AssignCaseDetailPage.vue b/front/src/views/assignCase/components/AssignCaseDetailPage.vue index fdde065e..2124c217 100644 --- a/front/src/views/assignCase/components/AssignCaseDetailPage.vue +++ b/front/src/views/assignCase/components/AssignCaseDetailPage.vue @@ -13,7 +13,7 @@
diff --git a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue index 9d123dbd..9203d616 100644 --- a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue +++ b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue @@ -27,6 +27,7 @@ :refData="refData" :dataFrom="dataFrom" :videoList="videoList" + :imgList="imgList" :externalField="[ '组件名称', '组件描述', @@ -54,7 +55,6 @@ :dataFrom="dataFrom" :fileList="fileList" :fileList2="fileList2" - :imgList="imgList" :configure="bs" >
diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index 46c5daae..d7a45ddb 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -1,8 +1,8 @@