diff --git a/back/src/assets/img/putOnTheShelf/update.png b/back/src/assets/img/putOnTheShelf/update.png new file mode 100644 index 00000000..baefd1f5 Binary files /dev/null and b/back/src/assets/img/putOnTheShelf/update.png differ diff --git a/back/src/mixins/process-module.js b/back/src/mixins/process-module.js index 0d303cd2..95fc3287 100644 --- a/back/src/mixins/process-module.js +++ b/back/src/mixins/process-module.js @@ -47,20 +47,31 @@ export default { } }, // 获取流程定义的表单路由配置信息 - getProcDefRouteSet (data, callback) { - this.$http.get(`/act/process/getProcDefBizRoute/${data.processDefinitionId}`).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) + getProcDefRouteSet (data, callback, str) { + if (data.resourceName && !data.processDefinitionId) { + switch (str) { + case '待办': + this.$router.push({ name: 'activiti-RoomExamineAdmin' }) + break + case '已办': + this.$router.push({ name: 'activiti-RoomExamineAdminDone' }) + break } - if (!res.data || !res.data.bizRoute) { - return this.$message.error(this.$t('process.routeError')) - } - var param = { - ...data, - ...res.data - } - callback(param) - }).catch(() => { }) + } else { + this.$http.get(`/act/process/getProcDefBizRoute/${data.processDefinitionId}`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + if (!res.data || !res.data.bizRoute) { + return this.$message.error(this.$t('process.routeError')) + } + var param = { + ...data, + ...res.data + } + callback(param) + }).catch(() => { }) + } }, getProcDefBizRouteAndProcessInstance (params, callback) { this.$http.get('/act/process/getProcDefBizRouteAndProcessInstance', { diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 53dd6b22..a5fe82e1 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -230,7 +230,7 @@ :close-on-press-escape="false" :destroy-on-close="true" :before-close="clear" - width="50%" + width="60%" > { - console.log('res', res.data.data) + console.log('res', res.data.data, !res.data.data.superAdmin, this.$store.state.user.roleIdList) this.superAdmin = res.data.data.superAdmin }) }, @@ -391,7 +394,9 @@ export default { infoList: [], delFlag: 0, type: '组件服务', - name: '' + name: '', + deptIds: [], + region: true } ) .then(({ data: res }) => { @@ -546,7 +551,9 @@ export default { infoList: [], delFlag: 0, type: '组件服务', - name: names + name: names, + deptIds: [], + region: true } ) .then(({ data: res }) => { @@ -623,6 +630,7 @@ export default { }, // 新上架 clear () { + this.$router.push(this.routePath) console.log('清空----------------------------------------') this.notFilled = [] this.showPutOnTheShelfFlag = false @@ -653,6 +661,7 @@ export default { }) }, showPutOnTheShelfVue () { + this.routePath = this.$route.path this.showPutOnTheShelfFlag = false this.showPutOnTheShelfFlag2 = true this.submitFrom.infoList[0].attrValue = this.radio diff --git a/back/src/views/modules/ability/bsabilityservice.vue b/back/src/views/modules/ability/bsabilityservice.vue index a9886b3c..f5e420a1 100644 --- a/back/src/views/modules/ability/bsabilityservice.vue +++ b/back/src/views/modules/ability/bsabilityservice.vue @@ -217,8 +217,8 @@ :close-on-press-escape='false' :destroy-on-close='true' :before-close='clear' - width="50%"> - + width="60%"> + 取 消 确 定 @@ -260,7 +260,8 @@ export default { creator: '', selectType: 0, delFlag: 0, - type: '应用资源' + type: '应用资源', + region: true }, qp: false, relateApplicationResourceVisible: false, @@ -270,6 +271,7 @@ export default { insertList: [], putOnTheShelfList: [], showPutOnTheShelfFlag2: false, + routePath: '', submitFrom: { type: '应用资源', deptId: '', @@ -319,7 +321,8 @@ export default { delFlag: 0, creator: '', type: '应用资源', - name: '' + name: '', + region: true }) ) .then(({ data: res }) => { @@ -405,7 +408,8 @@ export default { creator: '', selectType: 0, delFlag: 0, - name: names + name: names, + region: true }) ) .then(({ data: res }) => { @@ -591,6 +595,7 @@ export default { }, // 新上架 clear () { + this.$router.push(this.routePath) this.notFilled = [] this.showPutOnTheShelfFlag2 = false this.insertList = [] @@ -612,6 +617,7 @@ export default { }, // 上架 showPutOnTheShelf () { + this.routePath = this.$route.path this.showPutOnTheShelfFlag2 = true this.$http.get('/category/getCategoryTree').then(res => { this.insertList = res.data.data.filter(item => item.name === '应用资源')[0] diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue index 98610a23..e2eaba25 100644 --- a/back/src/views/modules/abilityStatistics/index.vue +++ b/back/src/views/modules/abilityStatistics/index.vue @@ -181,6 +181,7 @@ + + @@ -277,7 +279,7 @@ export default { provideSelects: [], departmentSelects: [], departmentSelects1: [], - provideSelects1:[], + provideSelects1: [], exportExcel: CONFIGITEM.configData[CONFIGITEM.version].apiURL + '/census/center/export', exportExcelCondition: '', exportExcelType: '', @@ -468,7 +470,6 @@ export default { this.detailsVisible = false }, handleCurrentChange (val) { - this.currentPage = val // todo if (this.departmentId === 3) { @@ -477,10 +478,8 @@ export default { if (this.departmentId === 4) { this.getTwoDetail(val) } - }, - // 组件服务部门发布情况--改为能力上架统计 getFirstTree (page) { if (this.examineStatus == '-1') { @@ -508,7 +507,6 @@ export default { } }) .then((res) => { - if (res.data.code !== 0) { this.tableData =[] this.tableDataClone = [] @@ -517,7 +515,33 @@ export default { }else{ const result = res.data.data - + for (let i = 0; i < result.length; i++) { + if (!result[i].hasOwnProperty('yyzy')) { + result[i].yyzy = 0 + } + if (!result[i].hasOwnProperty('kfzj')) { + result[i].kfzj = 0 + } + if (!result[i].hasOwnProperty('znsf')) { + result[i].znsf = 0 + } + if (!result[i].hasOwnProperty('tcfw')) { + result[i].tcfw = 0 + } + if (!result[i].hasOwnProperty('ywzj')) { + result[i].ywzj = 0 + } + if (!result[i].hasOwnProperty('hys')) { + result[i].hys = 0 + } + result[i].zj = + parseInt(result[i].yyzy) + + parseInt(result[i].kfzj) + + parseInt(result[i].znsf) + + parseInt(result[i].ywzj) + + parseInt(result[i].tcfw) + + parseInt(result[i].hys) + } this.tableData = res.data.data this.tableDataClone = res.data.data this.total = res.data.data.total @@ -530,7 +554,6 @@ export default { }) } }) - }, // 组件服务部门使用情况列表-改为能力使用统计 getSecondTree (page) { @@ -578,8 +601,8 @@ export default { endDate: this.endDate, resourceName: this.resourceName - }) - } + }) + } }) }, // 点击查看详情 @@ -653,28 +676,26 @@ export default { }) .then((res) => { if (res.data.code !== 0) { - this.tableData =[] - this.tableDataClone = [] - this.total = 0 - return this.$message.error("服务器内部异常") - - }else{ - this.tableData = res.data.data.list - this.tableDataClone = res.data.data.list - this.total = res.data.data.total - this.exportExcelCondition = qs.stringify({ - approveStatus: this.status, - deptId: this.abilityDepartment, - startDate: this.startDate, - endDate: this.endDate, - resourceName: this.resourceName - }) - } + this.tableData = [] + this.tableDataClone = [] + this.total = 0 + return this.$message.error('服务器内部异常') + } else { + this.tableData = res.data.data.list + this.tableDataClone = res.data.data.list + this.total = res.data.data.total + this.exportExcelCondition = qs.stringify({ + approveStatus: this.status, + deptId: this.abilityDepartment, + startDate: this.startDate, + endDate: this.endDate, + resourceName: this.resourceName + }) + } }) }, // 能力使用明细 getTwoDetail (page) { - var passAndReview = '' // 转变"通过"字段为通过 if (this.examineStatus == '-1') { this.status = '' @@ -704,31 +725,27 @@ export default { } }) .then((res) => { - if (res.data.code !== 0) { - this.tableData =[] - this.tableDataClone = [] - this.total = 0 - return this.$message.error("服务器内部异常") - - }else{ - this.tableData = res.data.data.list - this.tableDataClone = res.data.data.list - this.total = res.data.data.total - this.exportExcelCondition = qs.stringify({ - approveStatus: this.status, - deptId: this.abilityDepartment, - startDate: this.startDate, - endDate: this.endDate, - resourceName: this.resourceName, - provideDept: this.provideDepartment - }) - } - + this.tableData = [] + this.tableDataClone = [] + this.total = 0 + return this.$message.error('服务器内部异常') + } else { + this.tableData = res.data.data.list + this.tableDataClone = res.data.data.list + this.total = res.data.data.total + this.exportExcelCondition = qs.stringify({ + approveStatus: this.status, + deptId: this.abilityDepartment, + startDate: this.startDate, + endDate: this.endDate, + resourceName: this.resourceName, + provideDept: this.provideDepartment + }) + } }) }, - - + handleClick (row) { if (this.choseId === 0) { if (this.departmentId === 1) { @@ -757,8 +774,6 @@ export default { // 根据不同的type查询不同的表格数据 handleChose (index) { - - this.checked = false this.departmentId = index this.currentPage = 1 @@ -826,8 +841,8 @@ export default { }, // 明细按钮函数//明细按钮函数//明细按钮函数//明细按钮函数//明细按钮函数//明细按钮函数 goToDetail () { - this.abilityDepartment='' - this.provideDepartment='' + this.abilityDepartment = '' + this.provideDepartment = '' this.currentPage = 1 this.pageSize = 10 @@ -843,8 +858,8 @@ export default { }, // 返回按钮 goToBack () { - this.abilityDepartment='' - this.provideDepartment='' + this.abilityDepartment = '' + this.provideDepartment = '' this.checked = false this.currentPage = 1, diff --git a/back/src/views/modules/myAgent/CompetencyApplication.vue b/back/src/views/modules/myAgent/CompetencyApplication.vue index 941afd35..bfb11a81 100644 --- a/back/src/views/modules/myAgent/CompetencyApplication.vue +++ b/back/src/views/modules/myAgent/CompetencyApplication.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-27 11:27:22 * @LastEditors: Light - * @LastEditTime: 2022-12-06 10:18:28 + * @LastEditTime: 2022-12-15 10:28:03 * @Description: 能力申请 --> diff --git a/front/src/views/demandCenter/demandDetails.vue b/front/src/views/demandCenter/demandDetails.vue index 58aa69e9..535c36ab 100644 --- a/front/src/views/demandCenter/demandDetails.vue +++ b/front/src/views/demandCenter/demandDetails.vue @@ -159,7 +159,9 @@ text-align: center; cursor: pointer; " - @click="downloadFile(formName.enclosure, '申请附件')" + @click=" + downloadFile(formName.enclosure, formName.enclosureName) + " > 下载 @@ -362,6 +364,7 @@ xhr.responseType = 'blob' xhr.send() xhr.onload = function () { + console.log('下载', path, this.status, navigator) if (this.status === 200 || this.status === 304) { // 如果是IE10及以上,不支持download属性,采用msSaveOrOpenBlob方法,但是IE10以下也不支持msSaveOrOpenBlob if ('msSaveOrOpenBlob' in navigator) { @@ -379,6 +382,8 @@ a.click() document.body.removeChild(a) URL.revokeObjectURL(url) + } else { + message.warning('下载失败') } } } diff --git a/front/src/views/newHome/components/LatestCapabilities.vue b/front/src/views/newHome/components/LatestCapabilities.vue index 4f83e330..77381fa6 100644 --- a/front/src/views/newHome/components/LatestCapabilities.vue +++ b/front/src/views/newHome/components/LatestCapabilities.vue @@ -8,13 +8,13 @@
- +
{{ item.name }}
- {{ item.deptName }} -
+ {{ item.deptName }} +
{{ item.description || '暂无描述' }}
@@ -81,18 +81,26 @@ query: { // select: '组件服务', select: DETAIL_PAGE_CONTENT_DEFAULT_TAB, - orderField:'tdr.create_date' + orderField: 'tdr.create_date', }, }) } const selectOne = (id) => { console.log('点击===============》', id) - router.push({ - path: '/details', + // router.push({ + // path: '/details', + // query: { + // id: id, + // }, + // }) + const detailPage = router.resolve({ + path: '/details', // 跳转的页面路由 query: { id: id, + hiddenBackFlag: true, }, }) + window.open(detailPage.href, '_blank') } diff --git a/front/src/views/newHome/components/RecommendationAbility.vue b/front/src/views/newHome/components/RecommendationAbility.vue index 1f5dc17d..1b9d6987 100644 --- a/front/src/views/newHome/components/RecommendationAbility.vue +++ b/front/src/views/newHome/components/RecommendationAbility.vue @@ -104,12 +104,20 @@ } const selectOne = (id) => { console.log('点击===============》', id) - router.push({ - path: '/details', + // router.push({ + // path: '/details', + // query: { + // id: id, + // }, + // }) + const detailPage = router.resolve({ + path: '/details', // 跳转的页面路由 query: { id: id, + hiddenBackFlag: true, }, }) + window.open(detailPage.href, '_blank') }