zuozhengqing
2024-04-11 763762fca04a6dcf391f75e9541fe7287f6b0ed1
src/views/systemSetting/silkStandardSetting/components/silkTableList.vue
@@ -67,7 +67,7 @@
                      :disabled="!isOperate"
                      @change="
                        (val) => {
                          commonInputChange(val, item.prop, scope.row, scope)
                          commonInputChange(val, item.prop, scope)
                        }
                      "
                    ></el-input>
@@ -83,7 +83,7 @@
                          v-for="(item, index) in projectOptions"
                          :key="index"
                          :label="item.value"
                          :value="item.value"
                          :value="item.id"
                        >
                        </el-option>
                      </el-select>
@@ -162,6 +162,11 @@
                    "
                  ></el-input-number>
                </el-form-item>
                <div v-else-if="item.isCallMethod">
                  <span :class="item.isClass ? item.getClassName(scope.row[item.prop], scope.row) : ''">{{
                    item.getCallMethod(scope.row[item.prop], scope.row)
                  }}</span>
                </div>
                <span v-else style="text-align: right">{{ scope.row[item.prop] }}</span>
              </template>
            </el-table-column>
@@ -198,6 +203,7 @@
<script>
// import { getProductList } from "@/api/common/other"
import { getDataByType } from "@/api/data"
export default {
  name: "CommmonFormTableView",
  components: {},
@@ -250,13 +256,7 @@
      productList: [],
      tableList: [],
      projectIndex: 0,
      projectOptions: [
        { id: 1, value: "纤度偏差" },
        { id: 2, value: "二次变化" },
        { id: 3, value: "清洁分" },
        { id: 4, value: "洁净分" },
        { id: 5, value: "最大偏差" }
      ]
      projectOptions: getDataByType("projectOptions")
    }
  },
  created() {
@@ -299,8 +299,8 @@
        this.$emit("addProjectClick")
      }
    },
    commonInputChange(val, prop, row, scope) {
      this.$emit("inputContent", val, prop, row, scope)
    commonInputChange(val, prop, scope) {
      this.$emit("inputContent", val, prop, scope)
    },
    // 删除
    deleteClick(scope) {
@@ -317,6 +317,7 @@
    // 添加列头部标题输入
    addColumnInputChange(val, prop) {
      console.log(val, prop, "添加列头部标题输入")
      this.$emit("addColumnInputChange", val, prop)
    },
    // 删除列
    clearupColumn(prop) {