diff --git a/back/src/views/modules/abilityStatistics/applicationResources.vue b/back/src/views/modules/abilityStatistics/applicationResources.vue index 2c24531a..aea5855f 100644 --- a/back/src/views/modules/abilityStatistics/applicationResources.vue +++ b/back/src/views/modules/abilityStatistics/applicationResources.vue @@ -1,7 +1,11 @@ @@ -48,7 +58,7 @@ //移除方法 const removeFunction = (data) => { dataForm.value.map((val) => { - val.arr = val.arr.filter((item) => item.resourceId !== data.resourceId) + val.arr = val.arr.filter((item) => item.id !== data.id) }) dataForm.value = dataForm.value.filter((val) => val.arr.length !== 0) } diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index 5060a8ba..b2645069 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -1152,7 +1152,8 @@ }) mybus.on('changePage', (page) => { paramsGetResources.pageNum = page - getAppResources() + console.log('changePage', paramsGetResources.pageNum) + getAppResources('分页查询') console.log('paramsGetResources', paramsGetResources) }) mybus.on('changeSelcted', () => { @@ -1246,11 +1247,11 @@ let newQuery = JSON.parse( JSON.stringify(router.currentRoute.value.query) ) - if (Cardsname.value == name) { - Cardsname.value = '' - } else { - Cardsname.value = name - } + // if (Cardsname.value == name) { + // Cardsname.value = '' + // } else { + Cardsname.value = name + // } console.log( '更改前url中的select=====================>', router.currentRoute.value.query.select diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index 0af91f1c..d0d5866d 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -84,7 +84,7 @@ { val.arr.map((item) => { - formName.system.push({ - resourceId: item.resourceId, - resourceName: item.resourceName, - }) - console.log(item.id) - ids.push(item.id) + if (item.type !== '基础设施') { + formName.system.push({ + resourceId: item.resourceId, + resourceName: item.resourceName, + }) + console.log(item.id) + ids.push(item.id) + } else { + let obj = {} + Object.assign(obj, formName) + console.log('摄像头===============>', obj, item) + obj.system = [] + item.note1 = JSON.parse(item.note1) + item.note1.map((sxt) => { + obj.system.push({ + resourceId: sxt.idtCameraChannel, + resourceName: sxt.channelName, + cameraId: sxt.channelId, + }) + }) + submitApply(obj).then((res) => { + applySuccess.value = false + console.log('摄像头申请================>', res) + if (item.id) { + sgcDel({ ids: [item.id] }).then((res) => { + if (res.data.msg === 'success') { + mybus.emit('getSgcNum') + } + }) + } + }) + } }) }) console.log('提交数据==========================>', formName, ids) - submitApply(formName).then((res) => { - applySuccess.value = false - message.success('操作成功!') - console.log('能力申请================>', res) - if (ids) { - sgcDel({ ids: ids }).then((res) => { - if (res.data.msg === 'success') { - mybus.emit('getSgcNum') - } - }) - } - }) - // if (arr && arr.length !== 0) { - // console.log('提交') - // const obj = ref({}) - // for (const key in formName) { - // if (key !== 'formNameSystem') { - // obj.value[key] = formName[key] - // } - // } - // submitApply(obj.value).then((res) => { - // applySuccess.value = false - // message.success('操作成功!') - // console.log('能力申请================>', res) - // if (ids) { - // sgcDel({ ids: ids }).then((res) => { - // if (res.data.msg === 'success') { - // mybus.emit('getSgcNum') - // } - // }) - // } - // }) - // } else { - // lastestPage({ - // key: dataForm.processDefinitionKey, - // }) - // .then(({ data: res }) => { - // if (res.code !== 0) { - // return message.error(res.msg) - // } - // if (!res.data.list || res.data.list.length <= 0) { - // return message.error('没有查询到流程,请先设计流程') - // } - // // proxy.$http['post'](formUrl, rootObj[formName]) - // tabilityapplication(formName) - // .then(({ data: res }) => { - // if (res.code !== 0) { - // message.error(res.msg) - // if (callbacks.formSaveErrorCallback) { - // callbacks.formSaveErrorCallback(res) - // } - // } - // if (callbacks.formSaveSuccessCallback) { - // callbacks.formSaveSuccessCallback(res) - // } - // if (!res.data.businessKey) { - // return message.error('业务KEY为空,无法启动流程') - // // startProcess(dataForm.processDefinitionKey, null, rootObj[formName]) - // } else { - // startProcess( - // dataForm.processDefinitionKey, - // res.data.businessKey - // // rootObj[formName] - // ) - // } - // }) - // .catch(() => {}) - // }) - // .catch(() => {}) - // // }) - // } + if (formName.system.length !== 0) { + submitApply(formName).then((res) => { + applySuccess.value = false + message.success('操作成功!') + console.log('能力申请================>', res) + if (ids) { + sgcDel({ ids: ids }).then((res) => { + if (res.data.msg === 'success') { + mybus.emit('getSgcNum') + } + }) + } + }) + } }) } } diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index 46f6f7ae..19bc6095 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -172,7 +172,7 @@ router.push({ path: '/DetailsPageconetent', query: { - select: '', + select: '组件服务', }, }) break @@ -197,7 +197,7 @@ }) break case '后台管理': - window.open(window.SITE_CONFIG.backUrl + '/#/bscatalogue-bscatalogue') + window.open(window.SITE_CONFIG.backUrl + '/#/login') window.reload('http://15.2.21.238:9797') break case '赋能案例': diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index af86e9fd..13fdcfac 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -157,15 +157,6 @@ v-if="item.isCollect == 'true'" @click="addCollect(item)" > - - 免费试用 -
查看详情 + + 免费试用 + {{ item.shareCondition == '免批申请' ? '免批申请' : '立即申请' diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index e68ecad9..970ada79 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -37,7 +37,7 @@

已选 - {{ allClick.length }} + {{ selectedRowKeys.length }}

@@ -86,7 +86,9 @@ @change="handleTableChange" :row-selection="{ selectedRowKeys: selectedRowKeys, - onChange: onSelectChange, + // onChange: onSelectChange, + onSelect: onSelectChange, + onSelectAll: onSelectAll, }" >