Ver Fonte

复制本表删除接口更改

duy há 2 anos atrás
pai
commit
521b26f6bf

+ 1 - 1
src/api/modules/tentative/detect/test.js

@@ -116,7 +116,7 @@ export default {
     //自检删除复制的表
     async removeBussTabInfo(form, msg = true) {
         return httpApi({
-            url: '/api/blade-business/detection/self/remove-buss-tabInfo',
+            url: '/api/blade-business/self/remove-buss-tab',
             method: 'post',
             params: form
         }, msg);

+ 2 - 2
src/views/tentative/detect/components/ListItem.vue

@@ -7,7 +7,7 @@
                         <div class="hc-collapse-item-header">
                             <div class="text-lg truncate item-title">{{item.nodeName}}</div>
                             <div class="hc-extra-text-box">
-                                <HcTooltip keys="wbs_del_table" v-if="item['isCopeTab'] === 2">
+                                <HcTooltip keys="wbs_del_table" v-if="item['isCopeTab'] === 1">
                                     <el-button type="danger" plain :disabled="item['isBussShow'] === 2" @click.stop="delClick(item,index)">删除本表</el-button>
                                 </HcTooltip>
                                 <HcTooltip keys="wbs_copy_table">
@@ -631,7 +631,7 @@ const delClick = async ({pKeyId}) => {
     if (pkeyIds) {
         const { id } = baseData.value
         const {error, code} = await dataApi.removeBussTabInfo({
-            id: id,
+            // id: id,
             pKeyId: pkeyIds
         })
         if (!error && code === 200) {