qianlishi 3 年之前
父节点
当前提交
5876f84237

+ 0 - 1
report-ui/src/components/AnjiPlus/anji-cascader.vue

@@ -75,7 +75,6 @@
 <script>
 import axios from "axios";
 import { getToken } from "@/utils/auth";
-import Cookies from "js-cookie";
 export default {
   name: "Cselect",
   props: {

+ 0 - 1
report-ui/src/components/AnjiPlus/anji-checkbox.vue

@@ -12,7 +12,6 @@
 
 <script>
 import request from "@/utils/request";
-import { valueOf } from "screenfull";
 export default {
   props: {
     dictCode: null, // 当传入dictCode时,可以不用传递url

+ 0 - 3
report-ui/src/components/AnjiPlus/anji-crud/anji-crud.vue

@@ -814,7 +814,6 @@ export default {
     },
     // 带单位的输入框
     fieldValueByAnjiInput(value, columnConfig) {
-      console.log(1);
       const localStorageUnit = this.getSettingByName("unit_conversion");
       let objUnitConversion = "";
       let objUnitKeepPoint = "";
@@ -1025,8 +1024,6 @@ export default {
   .el-button--text:focus {
     color: #799ffc;
     border-color: transparent;
-    // background-color: transparent;
-    // background: red !important;
   }
   .el-button + .el-button {
     margin-left: 0 !important;

+ 0 - 41
report-ui/src/components/AnjiPlus/anji-crud/edit-table.vue

@@ -14,8 +14,6 @@
           @selection-change="handleSelectionChange"
           @row-click="handleTableRowClick"
         >
-          <!-- <el-table-column fixed type="selection" width="50" align="center" /> -->
-
           <el-table-column label="序号" min-width="50" align="center">
             <template slot-scope="scope">
               {{ scope.$index + 1 }}
@@ -377,8 +375,6 @@ export default {
     },
     // 表格选中某一行时
     handleTableRowClick(row, column, event) {
-      // console.log(row)
-      // console.log(column)
       // 行点击后,回调option中的tableRowClick事件
       if (typeof this.option.tableRowClick == "function") {
         this.option.tableRowClick(
@@ -457,43 +453,6 @@ export default {
           this.$emit("input", this.form.records);
         }
       });
-      /*
-      this.$refs['form'].validate((valid) => {
-        if (valid) {
-          // 验证通过
-          if (this.isBlank(row[this.primaryKeyFieldName])) {
-            // 补全关联属性
-            if (typeof this.option.beforeInsert == 'function') {
-              this.option.beforeInsert(this.relateData, row)
-            }
-            // 主键为空,新增
-            this.option.buttons.add.api(row).then((response) => {
-              if (response.code == 200) {
-                this.$set(this.saveButtonStatus, index, 'inShow')
-                // 保存完成后刷新列表
-                this.handleQueryPageList()
-              }
-            })
-          } else {
-            // 补全关联属性
-            if (typeof this.option.beforeUpdate == 'function') {
-              this.option.beforeUpdate(this.relateData, row)
-            }
-            // 修改
-            this.option.buttons.edit.api(row).then((response) => {
-              if (response.code == 200) {
-                this.$set(this.saveButtonStatus, index, 'inShow')
-                // 保存完成后刷新列表
-                this.handleQueryPageList()
-              }
-            })
-          }
-        } else {
-          console.log('valid fail')
-          return false
-        }
-      })
-      */
     },
     // 删除
     handleDelete(row, index) {

+ 0 - 30
report-ui/src/components/AnjiPlus/anji-crud/edit.vue

@@ -164,9 +164,6 @@ export default {
         return [];
       } else {
         return this.option.joinEntitys;
-        // 找出所有hide != true的关联表
-        // let entitys = this.option.joinEntitys.filter((item) => item['hide'] == null || item['hide'] == false)
-        // return entitys
       }
     },
     // 一对一关联表的个数
@@ -354,7 +351,6 @@ export default {
       }
       // 修改
       if (this.modelType == "edit") {
-        // console.log(this.$slots.customCard[0].context.$refs.cardInEditData.updateData.settingValue)
         const { code, message } = await this.option.buttons.edit.api(params);
         if (code == "200") {
           // 保存结束,关闭对话框
@@ -367,32 +363,6 @@ export default {
           console.log(`提交表单调用更新接口失败:${message}`);
         }
       }
-      /* 分步提交
-      // 提交主表
-      this.$refs.mainForm.handleSave(() => {
-        // 如果没有一对一的关联表,直接关闭对话框
-        if (this.countJoinEntityOneToOne == 0) {
-          // 保存结束,关闭对话框
-          this.handleCloseDialog()
-          // 向外层发关闭事件
-          this.$emit('closeEvent')
-          return
-        }
-        // 主表保存成功后,保存子表
-        for (let i = 0; i < this.joinEntitys.length; i++) {
-          if (this.joinEntitys[i].joinType == 'OneToOne') {
-            this.$refs['joinForm' + i].handleSave(() => {
-              this.countForSavedOneToOneJoinEntity++
-              if (this.countForSavedOneToOneJoinEntity == this.countJoinEntityOneToOne) {
-                // 保存结束,关闭对话框
-                this.handleCloseDialog()
-                // 向外层发关闭事件
-                this.$emit('closeEvent')
-              }
-            })
-          }
-        }
-      })*/
     },
     // 子表单数据校验
     checkedChildrenValidate(list, confingList) {

+ 0 - 3
report-ui/src/components/AnjiPlus/anji-input.vue

@@ -168,9 +168,6 @@ export default {
 }
 </script>
 <style lang="less" scoped>
-// /deep/.el-input-group__append {
-//   padding: 0 5px;
-// }
 /deep/.el-input__suffix {
   padding: 0 6px;
 }

+ 0 - 8
report-ui/src/components/AnjiPlus/anji-select.vue

@@ -293,7 +293,6 @@ export default {
         headers: { noPrompt: true },
         params: param
       }).then(response => {
-        // console.log(response)
         this.setOptions(response.data);
       });
     },
@@ -331,16 +330,9 @@ export default {
         return;
       }
       this.totalPage = resData.pages;
-      // resData.records
-      // resData.total
-      // resData.size
-      // resData.current
       this.options = resData.records;
     },
     remoteQuery(keyword) {
-      // if (this.isBlank(keyword)) {
-      //   return
-      // }
       setTimeout(() => {
         if (
           this.method != null &&