Quellcode durchsuchen

元素库编辑表单接口修改

duy vor 2 Jahren
Ursprung
Commit
97bb96387b

+ 8 - 0
src/api/manager/wbstree.js

@@ -293,6 +293,14 @@ export const updateBatchNodeTableInfo2 = (data) => {
         data
     })
 }
+// 元素库编辑表单
+export const updateBatchNodeTableInfoElement = (data) => {
+    return request({
+        url: '/api/blade-manager/tableinfo/update-batch-tableInfo',
+        method: 'post',
+        data
+    })
+}
 
 export const updateStatus = (params) => {
     return request({

+ 4 - 6
src/views/manager/projectinfo/independent.vue

@@ -87,11 +87,9 @@
                     </el-input>
                 </template>
                 <template slot-scope="{type,size,row}" slot="menu">
-                      <el-button  :size="size" :type="type" @click="Associationlist(row)">关联清表</el-button>
-                      <el-button  :size="size" :type="type" @click="rightClick(
-                          row
-                        )">编辑元素</el-button>
-                      <el-button  :size="size" :type="type" @click="adjustExcel(row.id,row.primaryKeyId)">调整表单</el-button>
+                      <el-button  :size="size" :type="type" :disabled="row.excelIds == -1"  @click="Associationlist(row)">关联清表</el-button>
+                      <el-button  :size="size" :type="type"  @click="rightClick(row)">编辑元素</el-button>
+                      <el-button  :size="size" :type="type"  :disabled="row.excelIds == -1" @click="adjustExcel(row.id,row.primaryKeyId)">调整表单</el-button>
                       <el-button  :size="size" :type="type" @click="handleEditFormula(row)">编辑公式</el-button>
                       
                 </template>
@@ -101,7 +99,7 @@
       </div>
     </div>
     <Qute ref="Qute" :projectid="projectid" :wbsid="wbsid" :onLoad1="onLoad1" :refreshTree="refreshTree"> </Qute>
-    <Relation ref="Relation" :GLExcelFrom="GLExcelFrom" :wbsid="wbsid"></Relation>
+    <Relation ref="Relation" :GLExcelFrom="GLExcelFrom" :wbsid="wbsid"  :onLoad1="onLoad1"></Relation>
     <!-- 编辑元素 -->
        <!-- 编辑元素 -->
     <el-dialog

+ 3 - 2
src/views/manager/projectinfo/qutediaolog/relation.vue

@@ -91,7 +91,8 @@ import EditElement from "@/views/manager/projectinfo/editElement/editElement.vue
 import {findNodeTableByCondition as selectByNodeTable} from "@/api/manager/wbsprivate";
 export default {
     props:{
-        GLExcelFrom:Object
+        GLExcelFrom:Object,
+        onLoad1:Function
     },
     components:{EditElement},
     data(){
@@ -264,7 +265,7 @@ export default {
                         message: "关联清表成功",
                     });
                     // selectByNodeTable刷新表单列表
-                    // this.updateNodeTable();
+                    this.onLoad1();
                     this.GLExcel = false;
                     this.rightClick(
                         this.GLExcelFrom.id,

+ 4 - 4
src/views/manager/wbsinfo/element.vue

@@ -490,7 +490,7 @@
 <script>
 import { excelType} from '@/api/exctab/excelmodel';
 import {
-  updateBatchNodeTableInfo,
+  updateBatchNodeTableInfoElement,
   selectByNodeTable,
   selectFormElements,
   selectPrivateFormElements
@@ -1243,7 +1243,7 @@ export default {
         }
       })
       if (tag) {
-        this.updateBatchNodeTableInfo(da)
+        this.updateBatchNodeTableInfoElement(da)
       } else {
         this.$message({
           type: 'success',
@@ -1251,9 +1251,9 @@ export default {
         })
       }
     },
-    async updateBatchNodeTableInfo (da) {//共有编辑元素
+    async updateBatchNodeTableInfoElement (da) {//共有编辑元素
     console.log(da,'编辑表单');
-      const { data: res } = await updateBatchNodeTableInfo(da)
+      const { data: res } = await updateBatchNodeTableInfoElement(da)
       //console.log(res);
       if (res.code == 200) {
         this.$message.success('操作成功');