Просмотр исходного кода

Merge branch 'master' of http://62.234.61.92:3000/wjm/mec-cloud_IntelligentManufacturing_CRM

lph 1 год назад
Родитель
Сommit
ce7c4593ba

+ 27 - 17
zkqy-admin/src/main/java/com/zkqy/web/controller/system/SysBpmNodeScriptController.java

@@ -1,8 +1,12 @@
 package com.zkqy.web.controller.system;
 
+import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
 
+import com.mchange.v1.identicator.IdList;
+import com.zkqy.common.annotation.Anonymous;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -32,8 +36,7 @@ import com.zkqy.common.core.page.TableDataInfo;
 @RestController
 @RequestMapping("/system/script")
 @Api(value = "/system/script")
-public class SysBpmNodeScriptController extends BaseController
-{
+public class SysBpmNodeScriptController extends BaseController {
     @Autowired
     private ISysBpmNodeScriptService sysBpmNodeScriptService;
 
@@ -43,8 +46,7 @@ public class SysBpmNodeScriptController extends BaseController
 //    //@PreAuthorize("@ss.hasPermi('system:script:list')")
     @GetMapping("/list")
     @ApiOperation(value = "查询流程节点脚本列表")
-    public TableDataInfo list(SysBpmNodeScript sysBpmNodeScript)
-    {
+    public TableDataInfo list(SysBpmNodeScript sysBpmNodeScript) {
         startPage();
         List<SysBpmNodeScript> list = sysBpmNodeScriptService.selectSysBpmNodeScriptList(sysBpmNodeScript);
         return getDataTable(list);
@@ -57,8 +59,7 @@ public class SysBpmNodeScriptController extends BaseController
     @Log(title = "流程节点脚本", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     @ApiOperation(value = "导出流程节点脚本列表")
-    public void export(HttpServletResponse response, SysBpmNodeScript sysBpmNodeScript)
-    {
+    public void export(HttpServletResponse response, SysBpmNodeScript sysBpmNodeScript) {
         List<SysBpmNodeScript> list = sysBpmNodeScriptService.selectSysBpmNodeScriptList(sysBpmNodeScript);
         ExcelUtil<SysBpmNodeScript> util = new ExcelUtil<SysBpmNodeScript>(SysBpmNodeScript.class);
         util.exportExcel(response, list, "流程节点脚本数据");
@@ -70,8 +71,7 @@ public class SysBpmNodeScriptController extends BaseController
 //    //@PreAuthorize("@ss.hasPermi('system:script:query')")
     @GetMapping(value = "/{id}")
     @ApiOperation(value = "获取流程节点脚本详细信息")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
         return success(sysBpmNodeScriptService.selectSysBpmNodeScriptById(id));
     }
 
@@ -82,8 +82,20 @@ public class SysBpmNodeScriptController extends BaseController
     @Log(title = "流程节点脚本", businessType = BusinessType.INSERT)
     @PostMapping
     @ApiOperation(value = "新增流程节点脚本")
-    public AjaxResult add(@RequestBody SysBpmNodeScript sysBpmNodeScript)
-    {
+    public AjaxResult add(@RequestBody SysBpmNodeScript sysBpmNodeScript) {
+//        String asd = "母卷,放卷装置,放卷张力控制,入料牵引机构,入料牵引张力,预烘箱加热,纠偏机构,正面涂装,下层烘箱加热,纠偏机构,反面涂装,上层烘箱加热,纠偏机构,出料牵引机构,出料牵引张力,收卷纠偏,收卷张力机构,收卷";
+//        List<SysBpmNodeScript> sysBpmNodeScriptList = new ArrayList<>();
+//        List<String> list = Arrays.asList(asd.split(","));
+//        list.forEach(item -> {
+//            SysBpmNodeScript end = new SysBpmNodeScript();
+//            end.setIndustryType("55");
+//            end.setScriptKey("850da57a-0037-4f16-9887-1985656278e5");
+//            end.setScriptName(item);
+//            end.setScriptType(1L);
+//            sysBpmNodeScriptService.insertSysBpmNodeScript(end);
+//        });
+//        System.out.println(sysBpmNodeScriptList);
+//        return null;
         return toAjax(sysBpmNodeScriptService.insertSysBpmNodeScript(sysBpmNodeScript));
     }
 
@@ -94,8 +106,7 @@ public class SysBpmNodeScriptController extends BaseController
     @Log(title = "流程节点脚本", businessType = BusinessType.UPDATE)
     @PutMapping
     @ApiOperation(value = "修改流程节点脚本")
-    public AjaxResult edit(@RequestBody SysBpmNodeScript sysBpmNodeScript)
-    {
+    public AjaxResult edit(@RequestBody SysBpmNodeScript sysBpmNodeScript) {
         return toAjax(sysBpmNodeScriptService.updateSysBpmNodeScript(sysBpmNodeScript));
     }
 
@@ -106,16 +117,15 @@ public class SysBpmNodeScriptController extends BaseController
     @Log(title = "流程节点脚本", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     @ApiOperation(value = "删除流程节点脚本")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
+    public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(sysBpmNodeScriptService.deleteSysBpmNodeScriptByIds(ids));
     }
 
     /**
-     *  根据scriptKey获取流程节点脚本详细信息
+     * 根据scriptKey获取流程节点脚本详细信息
      */
     @GetMapping("/selectSysBpmNodeScriptByScriptKey/{scriptKey}")
-    public AjaxResult selectSysBpmNodeScriptByScriptKey(@PathVariable("scriptKey") String scriptKey){
+    public AjaxResult selectSysBpmNodeScriptByScriptKey(@PathVariable("scriptKey") String scriptKey) {
         return success(sysBpmNodeScriptService.selectSysBpmNodeScriptByScriptKey(scriptKey));
     }
 
@@ -123,7 +133,7 @@ public class SysBpmNodeScriptController extends BaseController
      * 根据scriptKeys获取流程节点脚本详细信息
      */
     @PostMapping("/selectSysBpmNodeScriptByScriptKeys")
-    public AjaxResult selectSysBpmNodeScriptByScriptKeys(@RequestBody List<String> scriptKeys){
+    public AjaxResult selectSysBpmNodeScriptByScriptKeys(@RequestBody List<String> scriptKeys) {
         return AjaxResult.success(sysBpmNodeScriptService.selectSysBpmNodeScriptByScriptKeys(scriptKeys));
     }
 

+ 1 - 1
zkqy-system/src/main/java/com/zkqy/system/service/impl/SysBpmNodeScriptServiceImpl.java

@@ -57,7 +57,7 @@ public class SysBpmNodeScriptServiceImpl implements ISysBpmNodeScriptService
     public int insertSysBpmNodeScript(SysBpmNodeScript sysBpmNodeScript)
     {
         sysBpmNodeScript.setCreateTime(DateUtils.getNowDate());
-        sysBpmNodeScript.setCreateBy(SecurityUtils.getUserId().toString());
+//        sysBpmNodeScript.setCreateBy(SecurityUtils.getUserId().toString());
         return sysBpmNodeScriptMapper.insertSysBpmNodeScript(sysBpmNodeScript);
     }
 

+ 47 - 134
zkqy-ui/src/views/tableMange/components/ClassificationQueryPanel.vue

@@ -10,7 +10,7 @@
     </el-button>
     <el-table :data="tableData" style="width: 100%">
       <el-table-column align="center" label="序号" type="index" width="50"/>
-      <el-table-column align="center" prop="conditionNotes" label="条件名称">
+      <el-table-column align="center" prop="conditionName" label="条件名称">
         <template slot-scope="scope">
           <el-input
             v-model="scope.row.conditionName"
@@ -19,22 +19,13 @@
           ></el-input>
         </template>
       </el-table-column>
-      <el-table-column align="center" prop="conditionNotes" label="描述条件">
-        <template slot-scope="scope">
-          <el-input
-            v-model="scope.row.conditionNotes"
-            size="normal"
-            clearable
-          ></el-input>
-        </template>
-      </el-table-column>
+
       <el-table-column
         align="center"
         prop="conditionField"
-        label="条件字段"
-        width="100">
+        label="条件字段">
         <template slot-scope="scope">
-          <el-select v-model="scope.row.conditionField" placeholder="请选择条件字段" clearable filterable>
+          <el-select v-model="scope.row.conditionField" placeholder="请选择条件字段" filterable>
             <el-option
               v-for="item in fieldList"
               :key="item.fieldName"
@@ -53,82 +44,19 @@
 
       <el-table-column align="center" prop="conditionType" label="条件类型">
         <template slot-scope="scope">
-          <el-select v-model="scope.row.conditionType" clearable filterable>
+          <el-select v-model="scope.row.conditionType" filterable>
             <el-option v-for="item in conditionTypeOptions" :key="item.value" :label="item.label" :value="item.value">
             </el-option>
           </el-select>
         </template>
       </el-table-column>
-
-      <el-table-column align="center" prop="componentType" label="显示类型">
-        <template slot-scope="scope">
-          <el-select v-model="scope.row.componentType" clearable filterable>
-            <el-option
-              v-for="item in componentTypeOptions"
-              :key="item.value"
-              :label="item.label"
-              :value="item.value"
-            >
-            </el-option>
-          </el-select>
-        </template>
-      </el-table-column>
-      <el-table-column align="center" prop="componentSize" label="尺寸">
-        <template slot-scope="scope">
-          <el-select v-model="scope.row.componentSize" clearable filterable>
-            <el-option
-              v-for="item in componentSizeOptions"
-              :key="item.value"
-              :label="item.label"
-              :value="item.value"
-            >
-            </el-option>
-          </el-select>
-        </template>
-      </el-table-column>
-      <el-table-column align="center" prop="componentIcon" label="图标">
-        <template slot-scope="scope">
-          <el-popover
-            placement="bottom-start"
-            width="460"
-            trigger="click"
-            @show="$refs['iconSelect'].reset()"
-          >
-            <IconSelect
-              ref="iconSelect"
-              @selected="
-                (name) => {
-                  selected(name, scope.row);
-                }
-              "
-              :active-icon="scope.row.componentIcon"
-            />
-            <el-input
-              slot="reference"
-              v-model="scope.row.componentIcon"
-              placeholder="点击选择图标"
-              readonly
-            >
-              <svg-icon
-                v-if="scope.row.componentIcon"
-                slot="prefix"
-                :icon-class="scope.row.componentIcon"
-                style="width: 25px"
-              />
-              <i v-else slot="prefix" class="el-icon-search el-input__icon"/>
-            </el-input>
-          </el-popover>
-        </template>
-      </el-table-column>
-
-      <el-table-column align="center" prop="conditionDefaultValue" label="默认值">
+      <el-table-column align="center" prop="conditionDefaultValue" label="默认条件值">
         <template slot-scope="scope">
-          <!--          handleDisabled(scope.row)
-                    :disabled="tableData[scope.$index].componentType='input'"-->
-          <el-input v-model="scope.row.conditionDefaultValue"></el-input>
+          <el-input v-model="scope.row.conditionDefaultValue"
+                    :disabled="scope.row.conditionType!='button' && scope.row.conditionType!='radio'"></el-input>
         </template>
       </el-table-column>
-      <el-table-column align="center" prop="sort" label="展示顺序">
+      <el-table-column align="center" prop="sort" label="渲染顺序" width="80">
         <template slot-scope="scope">
           <el-input v-model="scope.row.sort"></el-input>
         </template>
@@ -151,15 +79,43 @@
       </el-table-column>
     </el-table>
     <!--  查询条件更多设置弹窗  -->
-    <el-dialog :title="settings.title" :visible.sync="settings.open" width="400px" append-to-body fullscreen>
-      <el-input
-        type="textarea"
-        :rows="8"
-        placeholder="请输入当前下拉框数据来源sql语句,例如SELECT custom_name AS label, custom_no AS `value`, id AS id FROM customer"
-        v-model="tableData[settings.dataIndex].conditionDatasource">
-      </el-input>
+    <el-dialog :title="settings.title" :visible.sync="settings.open" width="500px" append-to-body>
       <!-- 下拉框数据来源(字典、表数据)设置label、value -->
       <!-- 时间范围(选择到年、月、日 时、分、秒)   -->
+      <el-form label-width="100px" v-if="tableData.length!=0">
+        <el-form-item label="显示类型">
+          <el-select v-model="tableData[settings.dataIndex].componentType" clearable filterable>
+            <el-option v-for="item in componentTypeOptions" :key="item.value" :label="item.label"
+                       :value="item.value"/>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="显示尺寸">
+          <el-select v-model="tableData[settings.dataIndex].componentSize" clearable filterable>
+            <el-option v-for="item in componentSizeOptions" :key="item.value" :label="item.label" :value="item.value"/>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="显示图标">
+          <el-popover placement="bottom-start" width="460" trigger="click" @show="$refs['iconSelect'].reset()">
+            <IconSelect ref="iconSelect" @selected="(name) => selected(name, settings.row)"
+                        :active-icon="tableData[settings.dataIndex].componentIcon"/>
+            <el-input slot="reference" v-model="tableData[settings.dataIndex].componentIcon"
+                      placeholder="点击选择图标" readonly>
+              <svg-icon v-if="tableData[settings.dataIndex].componentIcon" slot="prefix"
+                        :icon-class="tableData[settings.dataIndex].componentIcon"
+                        style="width: 25px"/>
+              <i v-else slot="prefix" class="el-icon-search el-input__icon"/>
+            </el-input>
+          </el-popover>
+        </el-form-item>
+        <el-form-item label="条件描述">
+          <el-input v-model="tableData[settings.dataIndex].conditionNotes" type="text"
+                    placeholder="描述例句(请输入姓名、请输入编号...)"/>
+        </el-form-item>
+        <el-form-item label="下拉sql" v-show="tableData[settings.dataIndex].conditionType=='select'">
+          <el-input v-model="tableData[settings.dataIndex].conditionDatasource" type="textarea" :rows="8"
+                    placeholder="请输入当前下拉框数据来源sql语句,例如:SELECT custom_name AS `label`, custom_no AS `value`, id AS id FROM {DBNAME}.customer"/>
+        </el-form-item>
+      </el-form>
     </el-dialog>
   </div>
 </template>
@@ -179,6 +135,7 @@ export default {
   data() {
     return {
       settings: {
+        row: {},
         title: "",
         open: false,
         dataIndex: 0,
@@ -266,24 +223,6 @@ export default {
     myTableFieldList: {
       handler(nval) {
         this.fieldList = nval;
-
-        console.log(this.fieldList);
-        // 初始化删除逻辑条件
-        // let is_has_del_flag = nval.find((item) => {
-        //   return item.fieldName == "del_flag";
-        // });
-        // console.log(is_has_del_flag);
-        // if (is_has_del_flag) {
-        //   let { fieldName, tableName } = is_has_del_flag;
-        //   this.tableData = [];
-        //   this.tableData.push({
-        //     fieldName: tableName + "." + fieldName,
-        //     condition: "=",
-        //     refValue: 0,
-        //   });
-        // } else {
-        //   this.tableData = [];
-        // }
       },
       deep: true,
       immediate: true,
@@ -291,7 +230,6 @@ export default {
     myFilterDataEcho: {
       handler(val) {
         if (val) {
-          console.log("valavavalvlavl", val);
           this.tableData = val;
         }
       },
@@ -301,7 +239,6 @@ export default {
   },
   computed: {
     myTableFieldList() {
-      console.log(this.tableFieldList);
       return this.tableFieldList;
     },
     myFilterDataEcho() {
@@ -314,24 +251,21 @@ export default {
       // console.log(scope.$index)
       // 设置当前选择查询条件的sql语句
       this.settings.dataIndex = scope.$index;
+      this.settings.row = scope.row;
       this.settings.open = true
       this.settings.title = "设置条件-" + scope.row.conditionName
     },
     // 处理联合查询,默认值输入框禁用逻辑
     handleDisabled(row) {
-      console.log("rowrowrow", row)
       // 如果是文本类型则禁用默认值输入框
       if (row.componentType == 'input') {
-        console.log("进入", row)
         return 'disabled';
       }
       return false;
     },
     // 选择图标
     selected(name, row) {
-      console.log(name, row);
       row.componentIcon = name;
-      // this.btnGroupFormData.btnIcon = name;
     },
     // 新增条件回调
     addCondition() {
@@ -344,7 +278,7 @@ export default {
         conditionDefaultValue: "", //按钮值
         sort: this.tableData.length + 1, //排序
         componentType: "primary", //显示类型
-        componentsSize: "default", //尺寸
+        componentSize: "default", //尺寸
         componentIcon: "", //图标
       });
     },
@@ -366,27 +300,6 @@ export default {
   },
 
   mounted() {
-    const mime = 'text/x-mariadb'
-    // let theme = 'ambiance'//设置主题,不设置的会使用默认主题
-    this.editor = CodeMirror.fromTextArea(this.$refs.mycode, {
-      mode: mysql, // 选择对应代码编辑器的语言,我这边选的是数据库,根据个人情况自行设置即可
-      indentWithTabs: true,
-      smartIndent: true,
-      lineNumbers: true,
-      matchBrackets: true,
-      // theme: 'base16-light',
-      // autofocus: true,
-      extraKeys: {'Ctrl': 'autocomplete'}, // 自定义快捷键
-      hintOptions: {// 自定义提示选项
-        tables: {
-          users: ['1112', '123123', '124124'],
-          countries: ['124', '124124', '1']
-        }
-      }
-    })
-    this.editor.on('cursorActivity', () => {
-      this.editor.showHint()
-    })
   },
 };
 </script>

+ 21 - 54
zkqy-ui/src/views/tableMange/index.vue

@@ -438,7 +438,7 @@
               :filterDataEcho="filterDataEcho"
             ></DataFilterPanel>
           </el-tab-pane>
-          <el-tab-pane label="按钮配置" name="classificationQuery">
+          <el-tab-pane label="联合查询" name="classificationQuery">
             <ClassificationQueryPanel
               ref="classificationQueryRef"
               :tableFieldList="tableFieldList"
@@ -965,7 +965,6 @@ export default {
     // menuOrderNum() {
     //   if (!this.formData.routePath) return 0;
     //   let targetMenu = this.getTargetMenu(this.menus);
-    //   console.log(targetMenu);
     //   if (targetMenu.children?.length) {
     //     return targetMenu.children.length;
     //   } else {
@@ -1001,11 +1000,9 @@ export default {
         if (res.code == 200) {
           this.btnTemplate = res.data.map((item) => JSON.parse(item.remark));
         } else {
-          console.log(res);
           this.$message.error("获取按钮模板数据失败");
         }
       } catch (error) {
-        console.log(error);
         this.$message.error("获取按钮模板数据失败");
       }
     },
@@ -1047,7 +1044,6 @@ export default {
     treeSelectChange(val) {
       // await this.getMenuList();
       //没有change事件
-      console.log("val", val);
     },
     async treeSelectFocus() {
       await this.getMenuList();
@@ -1075,7 +1071,6 @@ export default {
       let tableComment = this.getTableCommont(this.tableName, this.tableList);
       // 获取当前表单结构信息
       getListName(data).then((res) => {
-        // console.log(res);
         this.tableFieldList = res.map((item, index) => {
           return {
             id: this.tableName + "_" + item.fieldName,
@@ -1098,7 +1093,6 @@ export default {
             relationFieldList: [],
           };
         });
-        // console.log(this.tableFieldList);
       });
     },
     // 关联表变化回调
@@ -1578,7 +1572,6 @@ export default {
           //   isRelationFieldAll: false,
           // };
           // this.validateField(this.tableFieldList, validateParams);
-          // console.log(validateParams);
           // if (validateParams.isFieldDescrib) {
           //   this.$message.error("需要显示的字段描述不能为空");
           //   return;
@@ -1634,29 +1627,28 @@ export default {
       // });
     },
 
-    // 处理配置的条件查询按钮数据
+    // 联合查询条件
     getBtnData(searchArr = []) {
       // 按钮条件list
-      let classificationData =
-        this.$refs.classificationQueryRef.getConditions();
-      let res = searchArr
-        .map((item) => {
-          return {
-            conditionField: item,
-            conditionName: "超级查询",
-            conditionType: "SuperQuery",
-          };
-        })
-      // .filter((item) => {
-      //   return !classificationData.some((v) => {
-      //     return v.conditionField == item.conditionField;
-      //   });
-      // });
+      let classificationData = this.$refs.classificationQueryRef.getConditions();
+      let res = searchArr.map((item) => {
+        return {
+          conditionField: item,
+          conditionName: "超级查询",
+          conditionType: "SuperQuery",
+        };
+      })
+      let list = Object.assign([], classificationData);
+      // 校验 填写不完整删除查询条件
+      classificationData.forEach((item, index) => {
+        if (item.conditionName == "" || item.conditionField == "" || item.conditionType == "") {
+          classificationData.splice(index, 1);
+        }
+      })
       return [...res, ...classificationData];
     },
     // 创建回调
     async createHandle() {
-      // console.log(123);
       // this.sqlKey = uuidv4();
       this.isInputInvalid = true;
       this.$refs.formData.validate(async (valid) => {
@@ -1692,27 +1684,11 @@ export default {
             this.$message.warning("请至少选择一个包含查询字段");
             return false;
           }
-          // let validateParams = {
-          //   isFieldDescrib: false,
-          //   isRelationFieldAll: false,
-          // };
-          // this.validateField(this.tableFieldList, validateParams);
-          // console.log(validateParams);
-          // if (validateParams.isFieldDescrib) {
-          //   this.$message.error("需要显示的字段描述不能为空");
-          //   return;
-          // }
-          // if (validateParams.isRelationFieldAll) {
-          //   this.$message.error("请补全关联条件");
-          //   return;
-          // }
-          // console.log("123", columns);
           this.uuid = uuidv4();
           this.tableKey = uuidv4();
           // 表单
           let result;
           let btnTemplate = this.formateBtnTemplate();
-          console.log(btnTemplate);
 
           // if (this.tId && this.menuId) {
           if (this.menuId && !this.isNeedNewMenu) {
@@ -1780,6 +1756,8 @@ export default {
           if (result.code == 200) {
             // 更新路由
             this.reloadRouter();
+
+            // 得到联合查询数组
             let conditions = this.$refs.dataFilterRef?.getConditions();
             let conditionDefaultValueMap = {};
             conditions.map((item) => {
@@ -1787,9 +1765,10 @@ export default {
                 " " + item.condition + " " + item.refValue
               );
             });
-
             // let isAsc = this.formData.isAsc == "ASC" ? 0 : 1;
             let btnData = this.getBtnData(searchFieldList);
+
+
             let data = {
               conditionDefaultValueMap, //数据筛选条件
               tId: this.tId,
@@ -1856,7 +1835,6 @@ export default {
               this.dragTableStatisticList.forEach((item) => {
                 item.tableKey = this.editData.tableKey;
               });
-              // console.log(res);
               res1 = await updateStatistic({
                 tableKey: this.editData.tableKey,
                 dragTableStatisticList: this.dragTableStatisticList,
@@ -1870,7 +1848,6 @@ export default {
                 data.tableKey
               );
               res = await addDragTable(data);
-              // console.log('123456789', res)
               this.dragTableStatisticList.forEach((item) => {
                 item.tableKey = this.uuid;
               });
@@ -1890,7 +1867,6 @@ export default {
                 btnTemplate.menuID = result.data;
                 let btnRes = await insertByDefaultBtn(btnTemplate);
                 if (btnRes.code == 200) {
-                  console.log(btnRes);
                   // 发送权限请求
                   let payload = btnRes.data.map((item) => {
                     return {
@@ -2032,15 +2008,12 @@ export default {
       this.isShowAddData = true;
       this.dataType = await this.getDicts("table_statistic_type");
       this.dataType = this.dataType.data;
-      // console.log(this.dataType)
     },
     async updataDialog() {
-      // console.log(this.dataType)
     },
     // 修改数据字段
     upadtaData() {
       this.dragTableStatisticList.forEach((item, index) => {
-        // console.log(this.dataCountFormData);
         if (item.id !== undefined && item.id == this.dataCountFormData.id) {
           this.dragTableStatisticList[index] = this.dataCountFormData;
         } else if (item.xid == this.dataCountFormData.xid) {
@@ -2048,12 +2021,10 @@ export default {
         }
       });
       this.isShowAddData = false;
-      // console.log(this.dragTableStatisticList)
       this.dataCountFormData = {};
     },
     // 添加数据字段
     addData() {
-      // console.log(this.dataCountFormData);
       this.dataCountFormData.xid = Date.now();
       this.dataCountFormData.tableKey = this.tableKey;
       this.dragTableStatisticList.push(this.dataCountFormData);
@@ -2073,20 +2044,16 @@ export default {
         searchFieldList: this.searchFieldList,
         dtTableName: this.tableName,
       }).then((res) => {
-        // console.log(res)
       });
     },
     // 修改统计信息
     async handleUpdateStat(row) {
-      // console.log(row);
       this.dataCountFormData = row;
       this.dataCountFormData.xid = Date.now();
       this.staictitle = "修改统计数据字段";
       this.dataType = await this.getDicts("table_statistic_type");
       this.dataType = this.dataType.data;
       this.isShowAddData = true;
-      // console.log(this.dataCountFormData)
-      // console.log(this.dragTableStatisticList);
     },
     // 删除统计信息
     handleDeleteStat(row) {