diff --git a/back/public/config/basicConfig.js b/back/public/config/basicConfig.js index 8f8c94c0..913ffc94 100644 --- a/back/public/config/basicConfig.js +++ b/back/public/config/basicConfig.js @@ -2,14 +2,14 @@ * @Author: hisense.wuhongjian * @Date: 2022-08-25 14:37:49 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-10-13 14:49:32 + * @LastEditTime: 2022-10-13 16:46:41 * @Description: 告诉大家这是什么 */ var _global = {} var CONFIGITEM = { // version: 'qingdao', // 青岛 // version: 'xihaian', // 西海岸 - version: 'test', // 测试 + version: 'dev', // 测试 // version: 'frp', // 内网穿透 // version: 'xihaian', // 开发 vNum: 'v0.8.7.2', @@ -43,7 +43,7 @@ var CONFIGITEM = { }, dev: { previewUrl: 'http://localhost:8080/', - apiURL: 'http://192.168.124.236:8888/renren-admin', + apiURL: 'http://192.168.124.233:8888/renren-admin', websocketURL: 'ws://192.168.124.236:8888/renren-admin/websocket' } } 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 e72d2b21..30afbbc0 100644 --- a/back/src/views/modules/ability/assignedScene/add-update-scene.vue +++ b/back/src/views/modules/ability/assignedScene/add-update-scene.vue @@ -163,12 +163,25 @@ export const modalTypeText = { } export const getFuseResourceList = (abilityListObj) => { + console.log('abilityListObjabilityListObj',abilityListObj); const arr = [] let length = 0 for (const key in abilityListObj) { if (Object.hasOwnProperty.call(abilityListObj, key)) { const itemArray = abilityListObj[key] - itemArray.map((v, i) => { + if(key=='数据资源'){ + itemArray.map((v, i) => { + const index = (i + 1) + length + arr.push({ + resourceId: v.id, + type: key, + sequence: index, + resourceName:v.resourceName, + deptName:v.deptName, + }) + }) + }else{ + itemArray.map((v, i) => { const index = (i + 1) + length arr.push({ resourceId: v, @@ -176,6 +189,8 @@ export const getFuseResourceList = (abilityListObj) => { sequence: index }) }) + } + length = itemArray.length } } @@ -316,6 +331,7 @@ export default { }, // 更新表单 updateDataForm (data) { + console.log('datadatadata',data); if (Object.keys(this.getListParams).includes(data.title)) { this.abilityListObj[data.title] = data.list } else { @@ -404,11 +420,15 @@ export default { // 组合能力--特殊处理 Object.keys(this.getListParams).map(k => { - const arr = data.fuseResourceList.filter(v => v.type == k) - const arr2 = [] + let arr = data.fuseResourceList.filter(v => v.type == k) + let arr2 = []; + if(k === "数据资源"){ + arr2 = JSON.parse(JSON.stringify(arr)); + }else{ arr.map(v => { arr2.push(v.resourceId) }) + } this.abilityListObj[k] = arr2 }) }) diff --git a/back/src/views/modules/ability/components/combine-ability.vue b/back/src/views/modules/ability/components/combine-ability.vue index dc6faeca..a17660eb 100644 --- a/back/src/views/modules/ability/components/combine-ability.vue +++ b/back/src/views/modules/ability/components/combine-ability.vue @@ -20,7 +20,8 @@ :titles="nameArray" :props="{ key: 'id', label: 'name', - }" :data="transferData"> + }" :data="transferData" + @change="handleChange"> v.type == this.type) + const attrValue = dataForm.fuseResourceList.filter(v => v.type == this.type); + console.log('attrValue22',attrValue); if (attrValue.length > 0) { attrValue.map(val => { - const _obj = { + if(val.type==="数据资源"){ + const _obj = { type: val.type, id: val.resourceId, - name: val.resource && val.resource.name + name: val.resource && val.resource.resourceName, } arr.push(_obj) + }else{ + const _obj = { + type: val.type, + id: val.resourceId, + name: val.resource && val.resource.name, + } + arr.push(_obj) + } }) } - // 展示 - this.displayList = JSON.parse(JSON.stringify(arr)) + this.displayList = JSON.parse(JSON.stringify(arr)); // 已选中 this.selectedArray = arr.map(v => v.id) this.$nextTick(() => { @@ -288,7 +298,9 @@ export default { this.transferData.push({ type: this.type, id: v.guid, - name: v.zyname || '--' + name: v.zyname || '--', + deptName:v.TGBM, +              resourceName:v.zyname }) }) this.allData = JSON.parse(JSON.stringify(this.transferData)) @@ -302,6 +314,26 @@ export default { return item.name && item.name.indexOf(query) > -1 }, confirmSubmitHandle () { + debugger + if(this.type === "数据资源"){ + //通过选中的数据去查找原始列表数据 + let selectedObjectList = []; + this.selectedArray.forEach((item)=>{ + let filterData = []; + filterData = this.allData.filter(v => v.id == item); + //console.log('filterDatafilterData',filterData); + selectedObjectList.push(filterData[0]); + }); + this.$emit('update', { + title: this.type, + list: selectedObjectList + }) + }else{ + this.$emit('update', { + title: this.type, + list: this.selectedArray + }) + } if (this.selectedArray.length > this.maxNum) { return this.$message.error('最多选择十条数据!') } @@ -312,12 +344,11 @@ export default { this.displayList.push(v) } }) - this.$emit('update', { - title: this.type, - list: this.selectedArray - }) console.log(this.selectedArray, this.displayList, 'this.displayList') }, + handleChange(){ + //console.log('222222',this.selectedArray); + }, getDisplay (displayList) { this.displayList = [] this.displayList = displayList diff --git a/front/public/static/config/basicConfig.js b/front/public/static/config/basicConfig.js index 4e0eaedd..b2ef7ec4 100644 --- a/front/public/static/config/basicConfig.js +++ b/front/public/static/config/basicConfig.js @@ -2,16 +2,16 @@ * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-10-13 13:50:44 + * @LastEditTime: 2022-10-13 19:03:07 * @Description: 系统静态参数配置 */ var _global = {} var CONFIGITEM = { // version: 'qingdao', //青岛 // version: 'xihaian', // 西海岸 - // version: 'dev', // 开发 + version: 'dev', // 开发 // version: 'zhanTingDev', // 展厅dev (2022-09-13:姜永超让添加) - version: 'test', // 测试 + // version: 'qingdao', // 测试 //version: 'frp', // 内网穿透 vNum: 'v0.8.7.2', configData: { @@ -28,8 +28,7 @@ var CONFIGITEM = { previewUrl: 'http://15.72.183.90:7008/', //frontUrl: 'http://15.72.183.90:7008/document/#/devModelFile/', //apiURL: 'http://15.72.183.90:8000/renren-admin', - // websocketURL: '15.72.183.90:8000/renren-admin', - websocketURL: '192.168.124.254:8888/renren-admin', // 李志成-远雄 + websocketURL: '15.72.183.90:8000/renren-admin', POI_URL: 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', }, @@ -86,7 +85,7 @@ var CONFIGITEM = { }, backUrl: 'http://localhost:8001', previewUrl: 'http://192.168.124.236:9796/', - websocketURL: '192.168.124.236:8888/renren-admin', + websocketURL: '192.168.124.233:8888/renren-admin', // websocketURL: '10.18.1.99:8889/renren-admin', POI_URL: 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', diff --git a/front/src/views/abilityStatistics/components/AbilityTotal.vue b/front/src/views/abilityStatistics/components/AbilityTotal.vue index 9c26c740..66dfc5bd 100644 --- a/front/src/views/abilityStatistics/components/AbilityTotal.vue +++ b/front/src/views/abilityStatistics/components/AbilityTotal.vue @@ -25,7 +25,19 @@ " > - + + + 482 + + {{ item.amount }} diff --git a/front/src/views/abilityStatistics/components/ResourceAggregation.vue b/front/src/views/abilityStatistics/components/ResourceAggregation.vue index 64d994d4..9b12d606 100644 --- a/front/src/views/abilityStatistics/components/ResourceAggregation.vue +++ b/front/src/views/abilityStatistics/components/ResourceAggregation.vue @@ -211,6 +211,7 @@ }) } console.log('laiyuanDataList.value', laiyuanDataList.value) + funnelPlot(laiyuanDataList.value) }) } //来源部门饼图 @@ -568,14 +569,14 @@ }, { deep: true } ) - watch( - laiyuanDataList, - (value) => { - funnelPlot(value) - console.log(value, ' laiyuanDataList') - }, - { deep: true } - ) + // watch( + // laiyuanDataList, + // (value) => { + // funnelPlot(value) + // console.log(value, ' laiyuanDataList') + // }, + // { deep: true } + // )