liuyc 2 ani în urmă
părinte
comite
a4bf89bffe

+ 4 - 2
src/views/manager/projectinfo/tree.vue

@@ -1417,7 +1417,7 @@
     >
       <FormulaEdit
         :wbsid="id"
-        :nodeid="curTreeData.id" 
+        :nodeid="curTreeData.id"
         :eleid="formulaCurRow.id"
         :globaltype="formulaCurRow.globaltype"
         :projectid="projectid"
@@ -2503,11 +2503,13 @@ export default {
     },
 
     getTableTypelist() {
+      const type = this.wbsType
       if (this.tableTypelist.length > 1) {
         return;
       }
       getDictionary({
-        code: "table_type",
+        // code: "table_type",
+        code: type === 2 ? "trial_table_type" : "table_type",
       }).then((res) => {
         res.data.data.forEach((element) => {
           element.dictKey = Number(element.dictKey);

+ 3 - 1
src/views/manager/wbsinfo/edit.vue

@@ -2544,11 +2544,13 @@ export default {
     },
 
     getTableTypelist () {
+      const type = this.wbsType
       if (this.tableTypelist.length > 1) {
         return;
       }
       getDictionary({
-        code: 'table_type'
+        // code: "table_type",
+        code: type === 2 ? "trial_table_type" : "table_type",
       }).then((res) => {
         res.data.data.forEach(element => {
           element.dictKey = Number(element.dictKey)