haoxuan
2024-04-12 0a8effeaa8e2e89babf883d1a74033510c27848d
src/views/systemSetting/silkStandardSetting/index.vue
@@ -3,7 +3,7 @@
    <div class="filter-card">
      <CommonSearch :show-add="false" :amount-view="false" placeholder="请输入关键词" @searchClick="onFilterSearch">
        <template slot="leftButton">
          <el-button size="small" type="primary" @click="addBtnClick" :disabled="!isEdit">新增</el-button>
          <el-button size="small" type="primary" @click="addBtnClick">新增</el-button>
          <el-button size="small" type="primary" @click="refreshClick">刷新</el-button>
          <el-button size="small" type="primary" @click="printClick" disabled>打印</el-button>
        </template>
@@ -17,6 +17,7 @@
        <div class="edit-sace-label">{{ isEdit ? "锁定保存" : "界面设计" }}</div>
      </div>
      <div>
        111:{{ this.silkTableList.tableData }}
        <SilkTableList
          :detail-enter="isEdit"
          :silk-table-list="silkTableList"
@@ -76,7 +77,7 @@
      projectOptions: getDataByType("projectOptions"),
      rankObj: {},
      columnInputList: [],
      dynamicsRanks: []
      dynamicsRanks: [],
    }
  },
  created() {
@@ -137,7 +138,14 @@
      this.silkTableList = {
        tableData: this.tableData,
        isReturn: false,
        tableColumn: this.tableColumn
        tableColumn: [
          { label: "检查项目名称", prop: "projectName", projectName: true },
          { label: "开始纤度", prop: "start", inputFloat: true },
          { label: "结束纤度", prop: "end", inputFloat: true },
          { label: "野纤", prop: "price1", inputFloat: true },
          { label: "大野", prop: "price2", inputFloat: true },
          { label: "特野", prop: "price3", inputFloat: true }
        ]
      }
    },
    // 搜索
@@ -146,7 +154,19 @@
    },
    // 新增
    addBtnClick() {
      this.tableData.push(this.dataObj)
      if(this.isEdit){
        this.tableData.push({
          projectName: "",
          start: 0,
          end: 0,
          price1: 0,
          price2: 0,
          price3: 0
        })
      }else{
        this.$message.error('请先解锁再新增!')
      }
    },
    // 刷新
    refreshClick() {