diff --git a/back/public/index.html b/back/public/index.html index 1d32cc9d..d96dc6a3 100644 --- a/back/public/index.html +++ b/back/public/index.html @@ -1,8 +1,8 @@ @@ -44,7 +44,7 @@ // 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.239: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.23.141:8000/renren-admin'; // WebSocket地址 diff --git a/back/src/components/ren-process-detail/src/ren-process-detail.vue b/back/src/components/ren-process-detail/src/ren-process-detail.vue index a415516a..89bc0d45 100644 --- a/back/src/components/ren-process-detail/src/ren-process-detail.vue +++ b/back/src/components/ren-process-detail/src/ren-process-detail.vue @@ -1,15 +1,15 @@ - {{ $t('process.flowImage') }} - + {{ $t('process.circulation') }} diff --git a/back/src/mixins/view-module.js b/back/src/mixins/view-module.js index ae81da9b..b7b8b33e 100644 --- a/back/src/mixins/view-module.js +++ b/back/src/mixins/view-module.js @@ -109,6 +109,11 @@ export default { } console.log('数据列表', this.dataList, this.mixinViewModuleOptions.getDataListURL) + if (this.dataList[0].type === '组件服务') { + this.dataList.map(val => { + val.infoList = val.infoList.filter(item => item.attrType === '部署位置' || item.attrType === '组件类型' || item.attrType === '应用领域') + }) + } if (this.mixinViewModuleOptions.requestCallback) { this.mixinViewModuleOptions.requestCallback(res.data) } diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 930685e1..c7a467c4 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -69,6 +69,14 @@ header-align="center" align="center" > + { + this.$http.get('/demandComment/' + id).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } - this.dataForm = res.data.resourceDTO - if (this.dataForm.type != '应用资源') { - this.shifoushizujian = false - } else { - this.shifoushizujian = true - } + this.dataForm = res.data + // this.dataForm = res.data.resourceDTO + // if (this.dataForm.type != '应用资源') { + // this.shifoushizujian = false + // } else { + // this.shifoushizujian = true + // } console.log('this.dataForm', this.dataForm) }) } diff --git a/back/src/views/modules/activiti/my-todo-task.vue b/back/src/views/modules/activiti/my-todo-task.vue index d9c0482b..ebe89cce 100644 --- a/back/src/views/modules/activiti/my-todo-task.vue +++ b/back/src/views/modules/activiti/my-todo-task.vue @@ -1,8 +1,8 @@ @@ -40,6 +40,17 @@ align="center" width="50" > + {{ 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/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue index dc0882d2..9e66206a 100644 --- a/front/src/views/capacityOnTheShelf/Application.vue +++ b/front/src/views/capacityOnTheShelf/Application.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-13 10:22:27 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-14 09:44:49 + * @LastEditTime: 2022-07-15 17:39:25 * @Description: 应用上架 --> @@ -75,6 +75,7 @@ > --> + 取消 上一步 预览 @@ -347,6 +348,10 @@ } // console.log('dataFrom.value', dataFrom.value) }) + + const close = () => { + window.close() + } onBeforeUnmount(() => { mybus.off('chageDataFrom') mybus.off('chageFileList') @@ -426,7 +431,7 @@ .btn { display: flex; justify-content: space-between; - padding: 10px 400px 0; + padding: 10px 350px 0; button { cursor: pointer; width: 80px; @@ -446,7 +451,7 @@ } } .first { - justify-content: center; + justify-content: space-around; } } diff --git a/front/src/views/capacityOnTheShelf/BusinessComponent.vue b/front/src/views/capacityOnTheShelf/BusinessComponent.vue index 015338ff..9d8a9617 100644 --- a/front/src/views/capacityOnTheShelf/BusinessComponent.vue +++ b/front/src/views/capacityOnTheShelf/BusinessComponent.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-20 09:35:51 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-14 09:44:58 + * @LastEditTime: 2022-07-15 17:39:35 * @Description: 业务组件 --> @@ -59,6 +59,7 @@ > + 取消 上一步 预览 @@ -195,6 +196,10 @@ type: '组件服务', deptId: '', }) + + const close = () => { + window.close() + } getUser().then((res) => { dataFrom.value.deptId = res.data.data.deptId }) @@ -439,7 +444,7 @@ .btn { display: flex; justify-content: space-between; - padding: 10px 400px 0; + padding: 10px 350px 0; button { cursor: pointer; width: 80px; @@ -459,7 +464,7 @@ } } .first { - justify-content: center; + justify-content: space-around; } } diff --git a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue index 94bd7ee7..9203d616 100644 --- a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue +++ b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-20 09:35:17 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-14 09:45:07 + * @LastEditTime: 2022-07-15 17:39:42 * @Description: 开发组件 --> @@ -27,6 +27,7 @@ :refData="refData" :dataFrom="dataFrom" :videoList="videoList" + :imgList="imgList" :externalField="[ '组件名称', '组件描述', @@ -54,11 +55,11 @@ :dataFrom="dataFrom" :fileList="fileList" :fileList2="fileList2" - :imgList="imgList" :configure="bs" > + 取消 上一步 预览 @@ -195,6 +196,10 @@ type: '组件服务', deptId: '', }) + + const close = () => { + window.close() + } getUser().then((res) => { dataFrom.value.deptId = res.data.data.deptId }) @@ -439,7 +444,7 @@ .btn { display: flex; justify-content: space-between; - padding: 10px 400px 0; + padding: 10px 350px 0; button { cursor: pointer; width: 80px; @@ -459,7 +464,7 @@ } } .first { - justify-content: center; + justify-content: space-around; } } diff --git a/front/src/views/capacityOnTheShelf/LayerServices.vue b/front/src/views/capacityOnTheShelf/LayerServices.vue index 03ffe283..0c58e0e2 100644 --- a/front/src/views/capacityOnTheShelf/LayerServices.vue +++ b/front/src/views/capacityOnTheShelf/LayerServices.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-20 09:35:17 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-14 09:45:18 + * @LastEditTime: 2022-07-15 17:39:47 * @Description: 图层服务 --> @@ -57,6 +57,7 @@ > + 取消 上一步 预览 @@ -157,6 +158,10 @@ } }) } + + const close = () => { + window.close() + } const next = () => { let i = -1 navList.value.forEach((val, index) => { @@ -387,7 +392,7 @@ .btn { display: flex; justify-content: space-between; - padding: 10px 400px 0; + padding: 10px 350px 0; button { cursor: pointer; width: 80px; @@ -407,7 +412,7 @@ } } .first { - justify-content: center; + justify-content: space-around; } } diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index ad83b8d1..99066335 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -1,8 +1,8 @@ @@ -111,7 +111,9 @@ > - 添加 + + 添加更多 + @@ -252,7 +254,7 @@ { + mockData.value = [] visibleAssociatedApplication.value = true - queryApplicationRelByResourceId({ - referenceId: 0, - }).then((res) => { - // console.log(res.data.data.notLinked) - res.data.data.notLinked.forEach((val, index) => { - // console.log(val, index) - mockData.value.push({ - key: val.id, - title: val.name, - description: val.id, + props.dataFrom.infoList.forEach((val) => { + if (val.attrType === '来源应用' && val.attrValue != '') { + queryApplicationRelByResourceId({ + referenceId: 0, + }).then((res) => { + // console.log(res.data.data.notLinked) + res.data.data.notLinked.forEach((val, index) => { + mockData.value.push({ + key: val.id, + title: val.name, + description: val.id, + }) + }) }) - }) + targetKeys.value = [] + val.attrValue.split(',').forEach((item) => { + targetKeys.value.push(item) + }) + console.log(targetKeys.value) + // console.log('wowowo') + } else if (val.attrType === '来源应用' && val.attrValue == '') { + queryApplicationRelByResourceId({ + referenceId: 0, + }).then((res) => { + // console.log(res.data.data.notLinked) + res.data.data.notLinked.forEach((val, index) => { + mockData.value.push({ + key: val.id, + title: val.name, + description: val.id, + }) + }) + }) + } }) } // 关联组件 const componentsClick = () => { titles.value = ['未关联的组件名称', '已关联的组件名称'] titleName.value = '关联组件' - + mockData.value = [] visibleAssociatedApplication.value = true - queryResourceRelByKeyId({ - keyId: 0, - type: '组件服务', - referenceName: '', - }).then((res) => { - // console.log(res.data.data.notLinked) - res.data.data.notLinked.forEach((val, index) => { - // console.log(val, index) - mockData.value.push({ - key: val.id, - title: val.name, - description: val.id, + props.dataFrom.infoList.forEach((val) => { + if (val.attrType === '关联组件信息' && val.attrValue != '') { + queryResourceRelByKeyId({ + keyId: 0, + type: '组件服务', + referenceName: '', + }).then((res) => { + // console.log(res.data.data.notLinked) + res.data.data.notLinked.forEach((val, index) => { + mockData.value.push({ + key: val.id, + title: val.name, + description: val.id, + }) + }) }) - }) + targetKeys.value = [] + val.attrValue.split(',').forEach((item) => { + targetKeys.value.push(item) + }) + console.log(targetKeys.value) + // console.log('wowowo') + } else if (val.attrType === '关联组件信息' && val.attrValue == '') { + queryResourceRelByKeyId({ + keyId: 0, + type: '组件服务', + referenceName: '', + }).then((res) => { + // console.log(res.data.data.notLinked) + res.data.data.notLinked.forEach((val, index) => { + mockData.value.push({ + key: val.id, + title: val.name, + description: val.id, + }) + }) + }) + } }) } - const targetKeys = ref([]) const selectedKeys = ref([]) const handleChange = (nextTargetKeys, direction, moveKeys) => { console.log('targetKeys: ', nextTargetKeys) console.log('direction: ', direction) console.log('moveKeys: ', moveKeys) + targetKeys.value = moveKeys.filter((item, index) => index === 0) } const handleSelectChange = (sourceSelectedKeys, targetSelectedKeys) => { - console.log('targetSelectedKeys: ', targetSelectedKeys) + console.log('targetSelectedKeys: ', targetSelectedKeys, sourceSelectedKeys) } const handleOk = (e) => { @@ -723,253 +775,259 @@ diff --git a/front/src/views/demandCenter/index.vue b/front/src/views/demandCenter/index.vue index 2416925c..3b519187 100644 --- a/front/src/views/demandCenter/index.vue +++ b/front/src/views/demandCenter/index.vue @@ -17,7 +17,7 @@ - 数据需求 + - - + - + - + - + - - - - + + - + - - + - + - - + diff --git a/front/src/views/detailsAll/ApplicationDetails.vue b/front/src/views/detailsAll/ApplicationDetails.vue index 7eee09d3..e7b95446 100644 --- a/front/src/views/detailsAll/ApplicationDetails.vue +++ b/front/src/views/detailsAll/ApplicationDetails.vue @@ -1,179 +1,219 @@ - + - + - + - - + - + - - + + + - - + - - + - + - - + diff --git a/front/src/views/detailsAll/BusinessDetails.vue b/front/src/views/detailsAll/BusinessDetails.vue index cb14bfd2..51e60e98 100644 --- a/front/src/views/detailsAll/BusinessDetails.vue +++ b/front/src/views/detailsAll/BusinessDetails.vue @@ -10,149 +10,178 @@ - + - + - - + - - + - - + - - + - + - + diff --git a/front/src/views/detailsAll/DeveloperComponents.vue b/front/src/views/detailsAll/DeveloperComponents.vue index be9c7f40..6b0fef8e 100644 --- a/front/src/views/detailsAll/DeveloperComponents.vue +++ b/front/src/views/detailsAll/DeveloperComponents.vue @@ -10,157 +10,188 @@ - + - + - - + - - + - - + - - + - + - + - - + diff --git a/front/src/views/detailsAll/LayerService.vue b/front/src/views/detailsAll/LayerService.vue index 6228798c..2a0f6708 100644 --- a/front/src/views/detailsAll/LayerService.vue +++ b/front/src/views/detailsAll/LayerService.vue @@ -8,156 +8,189 @@ - + - + - + - - + - - + - - + - - + - + - - + - - + diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue index fea7e325..7c1de008 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue @@ -126,10 +126,12 @@ 'props.dataList.infoList==============>', navList.value.filter((item) => item.name === list.value[0]) ) - if (navList.value.filter((item) => item.name === list.value[0])[0]) { - select.value = navList.value.filter( - (item) => (item.name === '关联应用') | (item.name === list.value[0]) - )[0].key + if (list.value.length > 0) { + if (navList.value.filter((item) => item.name === list.value[0])[0]) { + select.value = navList.value.filter( + (item) => (item.name === '关联应用') | (item.name === list.value[0]) + )[0].key + } } console.log('11111111111111111111111111', list.value, navList.value) } diff --git a/front/src/views/detailsAll/components/Application/ApplicationAbilityTrial.vue b/front/src/views/detailsAll/components/Application/ApplicationAbilityTrial.vue new file mode 100644 index 00000000..808695b8 --- /dev/null +++ b/front/src/views/detailsAll/components/Application/ApplicationAbilityTrial.vue @@ -0,0 +1,179 @@ + + + + + + + {{ dataFrom.linkName }} + + {{ dataFrom.link }} + + + + {{ dataFrom.numberName }} + {{ dataFrom.number }} + 复制账号 + + + {{ dataFrom.passwordName }} + {{ dataFrom.password }} + + 复制密码 + + + + + + + + diff --git a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue index 156f9d16..51dee4f2 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationDeploymentAndSecurity.vue @@ -75,13 +75,14 @@ attrValue: '是', } dataFrom.value.content[1].childrenContent.push(isAndNo) - } else if (item.attrType === '访问地址') { - let obj = { - attrType: '访问地址', - attrValue: item.attrValue || '------', - } - dataFrom.value.content[0].childrenContent.push(obj) } + // } else if (item.attrType === '访问地址') { + // let obj = { + // attrType: '访问地址', + // attrValue: item.attrValue || '------', + // } + // dataFrom.value.content[0].childrenContent.push(obj) + // } }) if (dataFrom.value.content[1].childrenContent.length <= 0) { let data = [ @@ -99,12 +100,12 @@ }) } } - //访问地址跳转方法 - const addressFunction = (name, itemValue) => { - if (name == '访问地址') { - window.open(itemValue) - } - } + // //访问地址跳转方法 + // const addressFunction = (name, itemValue) => { + // if (name == '访问地址') { + // window.open(itemValue) + // } + // } watch( () => props.dataList, (val) => { @@ -125,13 +126,14 @@ attrValue: '是', } dataFrom.value.content[1].childrenContent.push(isAndNo) - } else if (item.attrType === '访问地址') { - let obj = { - attrType: '访问地址', - attrValue: item.attrValue || '------', - } - dataFrom.value.content[0].childrenContent.push(obj) } + // } else if (item.attrType === '访问地址') { + // let obj = { + // attrType: '访问地址', + // attrValue: item.attrValue || '------', + // } + // dataFrom.value.content[0].childrenContent.push(obj) + // } }) if (dataFrom.value.content[1].childrenContent.length <= 0) { debugger @@ -149,11 +151,6 @@ dataFrom.value.content[1].childrenContent.push(itemContent) }) } - let obj = { - attrType: '访问地址', - attrValue: props.dataList.link || '------', - } - dataFrom.value.content[0].childrenContent.push(obj) } } ) diff --git a/front/src/views/detailsAll/components/Application/ApplicationNavigation.vue b/front/src/views/detailsAll/components/Application/ApplicationNavigation.vue index feff2a35..612773a1 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationNavigation.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationNavigation.vue @@ -41,6 +41,10 @@ name: '使用能力', key: 'ability-to-use', }, + { + name: '应用详情', + key: 'application-ability-trial', + }, { name: '部署与安全', key: 'deployment-and-security', @@ -96,6 +100,11 @@ list.value.push(item.attrType) } else if (item.attrType === '应用展示视频') { list.value.push('应用展示') + } else if ( + item.attrType === '访问地址' && + props.dataList.applyState === '已申请' + ) { + list.value.push('应用详情') } }) list.value.unshift('关联组件') @@ -137,6 +146,11 @@ list.value.push(item.attrType) } else if (item.attrType === '应用展示视频') { list.value.push('应用展示') + } else if ( + item.attrType === '访问地址' && + props.dataList.applyState === '已申请' + ) { + list.value.push('应用详情') } }) list.value.unshift('关联组件') diff --git a/front/src/views/detailsAll/components/Application/ApplicationPresentation.vue b/front/src/views/detailsAll/components/Application/ApplicationPresentation.vue index 52aaac54..d5a97180 100644 --- a/front/src/views/detailsAll/components/Application/ApplicationPresentation.vue +++ b/front/src/views/detailsAll/components/Application/ApplicationPresentation.vue @@ -2,16 +2,41 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-08 15:25:33 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-14 11:30:52 + * @LastEditTime: 2022-07-16 16:58:16 * @Description: 应用展示 视频播放 --> - - + + + + + + + + + - + @@ -22,106 +47,154 @@ diff --git a/front/src/views/detailsAll/components/Business/BusinessNavigation.vue b/front/src/views/detailsAll/components/Business/BusinessNavigation.vue index b35ba162..46a57003 100644 --- a/front/src/views/detailsAll/components/Business/BusinessNavigation.vue +++ b/front/src/views/detailsAll/components/Business/BusinessNavigation.vue @@ -8,7 +8,12 @@ - + {{ nav.name }} @@ -16,217 +21,216 @@ diff --git a/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue b/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue index f3fe90f6..76974000 100644 --- a/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue +++ b/front/src/views/detailsAll/components/Business/BusinessTopDetails.vue @@ -164,6 +164,9 @@ businessArea.value = props.dataList.infoList.filter( (val) => val.attrType === '应用领域' )[0].attrValue + let obj = props.dataList.infoList.filter( + (val) => val.attrType === '组件类型' + )[0] if ( props.dataList.infoList.filter((val) => val.attrType === '部署位置')[0] ) { diff --git a/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue b/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue index 8717495d..cfa20a0b 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue @@ -89,6 +89,7 @@ list.value = [] props.dataList.infoList.map((item) => { if ( + item.attrType === '功能介绍' || item.attrType === '常见问题' || item.attrType === '应用案例' || item.attrType === '应用场景' @@ -96,9 +97,12 @@ list.value.push(item.attrType) } else if (item.attrType === '组件视频介绍') { list.value.push('组件展示') + } else if (item.attrType === '是否支持试用' && item.attrValue === '是') { + list.value.push('组件试用') } }) list.value.unshift('关联应用') + list.value.push('使用方式') navList.value.forEach((item) => { console.log(item) if (list.value.indexOf(item.name) > -1) { @@ -111,9 +115,12 @@ // } } }) - select.value = navList.value.filter( - (item) => item.name === list.value[0] - )[0].key + if (navList.value.filter((item) => item.name === list.value[0])[0]) { + select.value = navList.value.filter( + (item) => (item.name === '关联应用') | (item.name === list.value[0]) + // (item) => item.name === list.value[0] + )[0].key + } console.log('11111111111111111111111111', list.value, navList.value) } watch( @@ -137,10 +144,15 @@ list.value.push(item.attrType) } else if (item.attrType === '组件视频介绍') { list.value.push('组件展示') + } else if ( + item.attrType === '是否支持试用' && + item.attrValue === '是' + ) { + list.value.push('组件试用') } }) list.value.unshift('关联应用') - list.value.push('组件试用') + // list.value.push('组件试用') list.value.push('使用方式') navList.value.forEach((item) => { console.log(item) diff --git a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue index 78281255..50ebfd2c 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue @@ -49,7 +49,7 @@ }) if (props.dataList.infoList) { let obj = props.dataList.infoList.filter( - (item) => item.attrType === '试用地址' + (item) => item.attrType === '是否支持试用' && item.attrValue === '是' )[0] if (!obj) { flag.value = false @@ -94,7 +94,9 @@ () => props.dataList, (val) => { if (val) { - let obj = val.infoList.filter((item) => item.attrType === '试用地址')[0] + let obj = val.infoList.filter( + (item) => item.attrType === '是否支持试用' && item.attrValue === '是' + )[0] if (!obj) { flag.value = false } else { diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceInformation.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceInformation.vue index 05dbb176..484b2503 100644 --- a/front/src/views/detailsAll/components/LayerService/LayerServiceInformation.vue +++ b/front/src/views/detailsAll/components/LayerService/LayerServiceInformation.vue @@ -90,7 +90,7 @@ values: '', }, { - type: '最大级别', + type: '最大级别名称', values: '', }, ], diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceNavigation.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceNavigation.vue index b0585b8f..cc206f14 100644 --- a/front/src/views/detailsAll/components/LayerService/LayerServiceNavigation.vue +++ b/front/src/views/detailsAll/components/LayerService/LayerServiceNavigation.vue @@ -82,7 +82,6 @@ const select = ref('layer-service-associated-ability') const selectNav = (key) => { select.value = key - console.log(key, select.value) mybus.emit('flyToView', select.value) } if (props.dataList.infoList) { @@ -145,9 +144,12 @@ item.show = true } }) - select.value = navList.value.filter( - (item) => item.name === list.value[0] - )[0].key + if (navList.value.filter((item) => item.name === list.value[0])[0]) { + select.value = navList.value.filter( + (item) => (item.name === '关联应用') | (item.name === list.value[0]) + // (item) => item.name === list.value[0] + )[0].key + } console.log('11111111111111111111111111', list.value, navList.value) } watch( diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index a45cd6ea..a6fbd0ea 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -10,57 +10,100 @@ - - + + {{ item.name }} 模糊搜索 - + 重置 - + - + {{ item.name }} - - - handleChange(item2, checked, item.name) -"> + + + handleChange(item2, checked, item.name) + " + > {{ item2.dict_label }} - - - + + + 共享条件 - chagneTag('申请')"> + chagneTag('申请')" + > 申请 @@ -69,7 +112,7 @@ :checked="tagFlag == '免批申请'" @change="() => chagneTag('免批申请')" > - 免批申请 + 免批 @@ -77,25 +120,49 @@ - + - + - + - - + + {{ item.name }} @@ -105,24 +172,41 @@ - - + + {{ item.name }} 模糊搜索 - + 重置 - + @@ -132,18 +216,28 @@ - + - - + + {{ item.name }} @@ -151,46 +245,82 @@ 模糊搜索 - + 重置 - + - + {{ item.name }} - - - handleChange(item2, checked, item.name) -"> + + + handleChange(item2, checked, item.name) + " + > {{ item2.dict_label }} - - - + + + 共享条件 - chagneTag('申请')"> + chagneTag('申请')" + > 申请 @@ -208,37 +338,71 @@ - + - + - + - - + + {{ item.name }} 模糊搜索 - + 重置 - + @@ -248,64 +412,113 @@ - + - - + + {{ item.name }} - + 模糊搜索 - + 重置 - + - + {{ item.name }} - - - handleChange(item2, checked, item.name) -"> + + + handleChange(item2, checked, item.name) + " + > {{ item2.dict_label }} - - - + + + 共享条件 - chagneTag('申请')"> + chagneTag('申请')" + > 申请 @@ -322,18 +535,35 @@ - + - + - + 青岛市政务资源管理平台{{ dataShowdev }} @@ -349,18 +579,28 @@ - + - - + + {{ item.name }} @@ -368,24 +608,41 @@ - - + + {{ item.name }} 模糊搜索 - + 重置 - + @@ -44,7 +44,7 @@ } }, created() { - this.uuidSplice() + // this.uuidSplice() this.getDevelopmentFile() }, methods: { @@ -92,12 +92,15 @@ const blob = new Blob([file], { type: 'md', }) - let myfile = new File([blob], this.uuidSnum + '.md') + if (this.uuidSnum === '') { + this.uuidSplice() + } + let myfile = new File([blob], this.uuidSnum) var formData = new FormData() const type = pinyin(this.dataFrom.type, { pattern: 'initial', }).replace(/\s*/g, '') - formData.append('fileName', this.uuidSnum + '.md') + formData.append('fileName', this.uuidSnum) formData.append('type', type) formData.append('file', myfile) // 'file' 为HTTP Post里的字段名, file 对浏览器里的File对象 // formData.append('name', this.route.currentRoute.query.id + '.md') @@ -118,22 +121,33 @@ } }, async getDevelopmentFile() { + debugger + const uuidParam = this.dataFrom.infoList.filter((item) => { + if (item.attrType === '技术文档') { + return item + } + }) + let uuid = '' + if (uuidParam[0].attrValue) { + uuid = uuidParam[0].attrValue.split('/')[1].split('.')[0] + } + this.uuidSnum = uuid const type = pinyin(this.dataFrom.type, { pattern: 'initial', }).replace(/\s*/g, '') console.log(type) const param = { type: type, - resourceId: this.uuidSnum, + resourceId: uuid, } const res = await getDevelopmentFile(param) this.text = res.data - let infoList = { - attrType: '技术文档', - attrValue: this.text.data, - delFlag: 0, - } - mybus.emit('chageDataFrom', infoList) + // let infoList = { + // attrType: '技术文档', + // attrValue: this.text.data, + // delFlag: 0, + // } + // mybus.emit('chageDataFrom', infoList) console.log('res', res) }, }, diff --git a/front/src/views/personalCenter/components/ApplyDetails.vue b/front/src/views/personalCenter/components/ApplyDetails.vue index 9a60c7b0..5f16d41f 100644 --- a/front/src/views/personalCenter/components/ApplyDetails.vue +++ b/front/src/views/personalCenter/components/ApplyDetails.vue @@ -23,7 +23,13 @@ 审批详情 子单号:{{ item[0] }} - + + + + {{ text }} + + + @@ -183,14 +189,12 @@ } else { shifoushizujian.value = false console.log(res.data.data.resourceDTO) - debugger res.data.data.resourceDTO.infoList.forEach((val) => { console.log(val, '111111111111111111111111') if (val.attrValue === '智能算法') { nameNotShow.value = true algorithmShow.value = false console.log(nameNotShow.value, algorithmShow.value, 'wowowo') - debugger } }) } @@ -268,6 +272,13 @@ text-align: center; font-size: 16px; } + :deep(.ant-table-tbody) > tr > .ant-table-cell:nth-child(5) { + width: 110px; + display: inline-block; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } .oddNumbers { margin-bottom: 0.05rem; } diff --git a/front/src/views/personalCenter/components/MyBrowse.vue b/front/src/views/personalCenter/components/MyBrowse.vue index 7cc980a6..eb3bab46 100644 --- a/front/src/views/personalCenter/components/MyBrowse.vue +++ b/front/src/views/personalCenter/components/MyBrowse.vue @@ -44,7 +44,9 @@ > @@ -142,6 +144,7 @@ import { onMounted, ref } from 'vue' import { useRouter } from 'vue-router' import { message } from 'ant-design-vue' + import { updateVisits, browsingInsert } from '@/api/home' import mybus from '@/myplugins/mybus' import { getBsList, BsDel, getTopCategory } from '@/api/personalCenter' const router = useRouter() @@ -171,7 +174,11 @@ console.log('编目一级=============>', res.data) res.data.data.forEach((val) => { // tabList.value.push(val.name) - if (val.name == '应用资源' || val.name == '组件服务') { + if ( + val.name == '应用资源' || + val.name == '组件服务' || + val.name == '知识库' + ) { tabList.value.push(val.name) } }) @@ -234,7 +241,9 @@ name: val.resourceDTO.name, id: val.id, checked: false, + visits: val.resourceDTO.visits, type: val.resourceDTO.type, + link: val.resourceDTO.link, resourceId: val.resourceId, createDate: val.createDate, description: val.resourceDTO.description, @@ -267,6 +276,28 @@ console.log('search======================>', name.value) } + const openHref = (item) => { + browsingInsert({ resourceId: item.resourceId }).then((res) => { + // console.log(res) + }) + const arrList = ref([]) + arrList.value = JSON.parse(window.sessionStorage.getItem('visits')) + if (arrList.value.indexOf(item.resourceId) === -1) { + arrList.value.push(item.resourceId) + updateVisits({ + id: item.resourceId, + visits: item.visits || '0', + }).then(() => { + window.sessionStorage.setItem('visits', JSON.stringify(arrList.value)) + }) + } + window.open(item.link) + // window.open( + // window.SITE_CONFIG.previewUrl + + // 'hisense_office/onlinePreview?url=' + + // btoa(encodeURI(item.fileHref)) + // ) + } //申请id const dataResourceId = ref([]) @@ -334,16 +365,20 @@ console.log(e) } // 详情 - const showItem = (id, type, delFlag) => { + const showItem = (id, type, delFlag, item) => { if (delFlag == 0) { - console.log('进入详情') - mybus.emit('tabsChange', { flag: id }) - router.push({ - path: '/details', - query: { - id: id, - }, - }) + console.log('进入详情', item) + if (item.type === '知识库') { + openHref(item) + } else { + mybus.emit('tabsChange', { flag: id }) + router.push({ + path: '/details', + query: { + id: id, + }, + }) + } } } @@ -374,6 +409,13 @@ span { margin-right: 0.3rem; } + .name { + max-width: 11rem; + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } } } .ant-list::-webkit-scrollbar { diff --git a/front/src/views/personalCenter/components/PurchaseVehicle.vue b/front/src/views/personalCenter/components/PurchaseVehicle.vue index 2ce412ad..44ccfa72 100644 --- a/front/src/views/personalCenter/components/PurchaseVehicle.vue +++ b/front/src/views/personalCenter/components/PurchaseVehicle.vue @@ -68,8 +68,8 @@ - - + + @@ -131,7 +130,7 @@ title="是否删除该记录?" ok-text="是" cancel-text="否" - @confirm="delOne(item)" + @confirm="delOne(item, valIndex)" @cancel="cancel" > { + const clean = (index) => { name.value = '' type.value = '' pageNum.value = '1' @@ -463,10 +462,10 @@ checkedListAll.value = [] checkAll.value = false showKey.value++ - getList() + getList('', index) } // 获取信息 - const getList = (type) => { + const getList = (type, index) => { if (type == 'init') { pageNum.value = 1 pageSize.value = 99999 @@ -491,7 +490,7 @@ val.pageNum = '1' val.pageSize = '99999' }) - if (statistics == res.data.data.list.length) { + if (statistics != 0 && statistics == res.data.data.list.length) { checkAll.value = true } if (list.value.length == 0) { @@ -501,8 +500,31 @@ load.value = Number(pageNum.value) } // console.log('整体页面加载次数===============>', load.value) + // 判断是否有已打开项,如果有重新载入之后自动打开 + debugger list.value = res.data.data.list + if (index || index === 0) { + debugger + list.value[index].show = true + // console.log('1111', list.value[index]) + showNew(list.value[index]) + // showBottom() + } + // list.value = res.data.data.list + console.log( + '重新请求值', + index, + // res.data.data.list[index].show, + list.value + ) + total.value = res.data.data.deptCount + console.log( + '重新请求值2', + index, + // res.data.data.list[index].show, + list.value + ) showKey.value++ if (type == 'init' || type == 'changePage') { getListByDeptId(list.value[0]) @@ -573,11 +595,15 @@ } // 显示资源信息 const showBottom = (item) => { + debugger item.show = !item.show if (item.show) { getListByDeptId(item) } } + const showNew = (item) => { + getListByDeptId(item) + } // 切换页数 const pageChange = (val) => { checkAll.value = false @@ -642,13 +668,13 @@ } // 判断是否全选 const judgeAll = (item, val) => { - // console.log( - // '判断是否全选============>', - // item, - // val, - // list.value, - // checkedList.value - // ) + console.log( + '判断是否全选============>', + item, + val, + list.value, + checkedList.value + ) if (!val) { let all = true list.value.map((val) => { @@ -734,7 +760,7 @@ } } - const delOne = (item) => { + const delOne = (item, index) => { // console.log(item) sgcDel({ ids: [item.id], @@ -743,7 +769,8 @@ message.success('删除成功') // console.log('删除申购车列表================>', res) mybus.emit('getSgcNum') - clean() + clean(index) + // val.show = true } }) }
{{ dataFrom.linkName }}
+ {{ dataFrom.link }} +
{{ dataFrom.numberName }}
{{ dataFrom.number }}
{{ dataFrom.passwordName }}
{{ dataFrom.password }}