loulijun2021
2022-08-25 955081f4111c7d276bb63d3ee8dacb3e07bc53be
src/views/sbgl/djbz.vue
@@ -162,13 +162,14 @@
        </el-form>
      </div>
      <div>
        <i class="el-icon-s-operation" style="color:#42b983;margin: -20px 10px 20px 0" />设备点检点检信息
        <i class="el-icon-s-operation" style="color:#42b983;margin: -20px 10px 20px 0" />设备关联点检项信息:
      </div>
      <div style="margin-bottom:10px">
        <el-button type="primary" icon="el-icon-circle-plus-outline" @click="addRow">新增</el-button>
      </div>
      <div class="elTableDiv">
        <el-table
          ref="tableDataDialogRef"
          :data="tableDataDialog"
          :height="(tableHeight-300)+'px'"
          border
@@ -227,12 +228,12 @@
          </el-table-column>
          <el-table-column
            prop="chkdesc"
            prop="checkitem_descr"
            label="点检要求"
          >
            <template slot-scope="{row}">
              <div v-if="row.isVisible===0">{{ row.chkdesc }}</div>
              <el-input v-else v-model="row.chkdesc" />
              <div v-if="row.isVisible===0">{{ row.checkitem_descr }}</div>
              <el-input v-else v-model="row.checkitem_descr" />
            </template>
          </el-table-column>
          <el-table-column
@@ -461,13 +462,18 @@
      this.operation = operation
      this.dialogVisible = true
      this.getDeviceCheckItemSelect()
      this.$nextTick(() => {
        this.$refs.tableDataDialogRef.doLayout()
      })
    },
    // 修改按钮
    edit(operation, row) {
      this.operation = operation
      this.dialogVisible = true
      this.getDeviceCheckItemSelect()
      this.$nextTick(() => {
        this.$refs.tableDataDialogRef.doLayout()
      })
      this.$nextTick(() => {
        this.dialogForm.OrgCode = row.org_code
        this.dialogForm.OrgName = row.org_name
@@ -539,7 +545,7 @@
    },
    selectChange(val, row) {
      row.chkdesc = this.checkItemSelectArr.find(item => {
      row.checkitem_descr = this.checkItemSelectArr.find(item => {
        return item.code === val || item.name === val
      }).description
@@ -565,7 +571,7 @@
      this.tableDataDialog.push({
        checkitem_code: '',
        checkitem_name: '',
        chkdesc: '',
        checkitem_descr: '',
        isscan: 'Y',
        cycle: 'D',
        isVisible: 1
@@ -583,7 +589,7 @@
          this.tableDataDialog.splice(index, 1, {
            checkitem_code: row.checkitem_code,
            checkitem_name: row.checkitem_name,
            chkdesc: row.chkdesc,
            checkitem_descr: row.checkitem_descr,
            isscan: row.isscan,
            cycle: row.cycle,
            isVisible: 1