loulijun2021
2022-11-24 4a6d69f3ff895918b1b8f1e8e9b122ed8fcd5afa
src/views/sbgl/djbw.vue
@@ -136,6 +136,10 @@
            sortable="custom"
          >
            <template slot-scope="{row}">
              <div v-if="row.cycle==='Y'">年</div>
              <div v-if="row.cycle==='S'">季</div>
              <div v-if="row.cycle==='M'">月</div>
              <div v-if="row.cycle==='W'">周</div>
              <div v-if="row.cycle==='D'">日</div>
            </template>
          </el-table-column>
@@ -233,7 +237,12 @@
      <span slot="footer" class="dialog-footer">
        <div class="footerButton">
          <el-button @click="dialogVisibleCancel">取 消</el-button>
          <el-button type="primary" @click="dialogVisibleConfirm">确 定</el-button>
          <el-button
            type="primary"
            :loading="$store.state.app.buttonIsDisabled"
            :disabled="$store.state.app.buttonIsDisabled"
            @click="dialogVisibleConfirm"
          >确 定</el-button>
        </div>
      </span>
    </el-dialog>
@@ -284,6 +293,10 @@
        { code: 'N', name: '否' }
      ],
      cycleArr: [
        { code: 'Y', name: '年' },
        { code: 'S', name: '季' },
        { code: 'M', name: '月' },
        { code: 'W', name: '周' },
        { code: 'D', name: '日' }
      ],
@@ -425,6 +438,7 @@
    dialogVisibleConfirm() {
      this.$refs.dialogForm.validate(valid => {
        if (valid) {
          this.$store.state.app.buttonIsDisabled = true
          const data = {
            id: this.dialogForm.id,
            checkitemcode: this.dialogForm.checkitemcode,
@@ -437,9 +451,10 @@
          }
          AddUpdateDeviceCheckItem(data).then(res => {
            if (res.code === '200') {
              this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!')
              this.dialogVisible = false
              this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!')
              this.getDeviceCheckItemSearch()
              this.$store.state.app.buttonIsDisabled = false
            } else {
              this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!')
            }