diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 09636f2a..53dd6b22 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -157,6 +157,13 @@ @click="deleteHandle2(scope.row.id)" >{{ $t('delete') }} + 完全删除 详情 @@ -256,6 +263,7 @@ export default { mixins: [mixinViewModule], data () { return { + superAdmin: '', required: ['归属部门', '部门联系人', '部门联系人电话', '应用领域', '共享条件', '算法名称', '算法描述', '图层名称', '图层描述', '组件名称', '组件描述', '组件地址', '服务地址', '服务接口', '接口请求方式', '算法类别'], notFilled: [], insertList: [], @@ -317,6 +325,10 @@ export default { created () { this.dataForm.name = '' this.dataForm.type = '组件服务' + this.$http.get('/sys/user/info').then(res => { + console.log('res', res.data.data) + this.superAdmin = res.data.data.superAdmin + }) }, mounted () { // window.addEventListener('resize', this.a) @@ -671,6 +683,31 @@ export default { arr.push('常见问题') this.$refs.putOnTheShelf.submit(arr) }, + // 完全删除 + deleteCompletely (row) { + console.log('完全删除===', row) + this.$confirm('确认是否删除?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$http.post('/resource/delResBySuAd?id=' + row.id).then(res => { + console.log('删除结果', res.data) + if (res.data.code == 0) { + this.$message({ + type: 'success', + message: '删除成功!' + }) + } + this.getDataList() + }) + }).catch(() => { + // this.$message({ + // type: 'info', + // message: '已取消删除' + // }); + }) + }, submitData () { console.log('提交11111111111===============>', this.putOnTheShelfList, this.submitFrom) const arr = [] diff --git a/back/src/views/modules/ability/bsabilityservice.vue b/back/src/views/modules/ability/bsabilityservice.vue index f3f404db..a9886b3c 100644 --- a/back/src/views/modules/ability/bsabilityservice.vue +++ b/back/src/views/modules/ability/bsabilityservice.vue @@ -145,6 +145,13 @@ @click="deleteHandle2(scope.row.id)" >{{ $t("delete") }} + 完全删除 详情 @@ -234,6 +241,7 @@ export default { mixins: [mixinViewModule], data () { return { + superAdmin: '', required: ['归属部门', '部门联系人', '部门联系人电话', '应用领域', '共享条件', '应用名称', '应用描述', '应用类型'], notFilled: [], mixinViewModuleOptions: { @@ -286,6 +294,10 @@ export default { created () { this.dataForm.name = '' this.dataForm.type = '应用资源' + this.$http.get('/sys/user/info').then(res => { + console.log('res', res.data.data) + this.superAdmin = res.data.data.superAdmin + }) }, mounted () { // window.addEventListener('resize', this.a) @@ -522,6 +534,31 @@ export default { // 将数据传递给引入的组件 }) }, + // 完全删除 + deleteCompletely (row) { + console.log('完全删除===', row) + this.$confirm('确认是否删除?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$http.post('/resource/delResBySuAd?id=' + row.id).then(res => { + console.log('删除结果', res.data) + if (res.data.code == 0) { + this.$message({ + type: 'success', + message: '删除成功!' + }) + } + this.getDataList() + }) + }).catch(() => { + // this.$message({ + // type: 'info', + // message: '已取消删除' + // }); + }) + }, // 应用与基础设施 applyAndInfrastructure (val) { const type = '基础设施'