Your Name
2022-08-03 6e1be6afed910d217199278bb3f89d8922dfc5af
src/views/doublePrevent/riskLevel/riskCheckUnit/components/checkUnitDialog.vue
@@ -47,7 +47,7 @@
            <template #footer>
                <span class="dialog-footer" v-show="disabled">
                    <el-button @click="isShowCheckUnitDialog = !isShowCheckUnitDialog" size="default">取 消</el-button>
                    <el-button type="primary" @click="submitCheckUnit" v-throttle size="default">确 实</el-button>
                    <el-button type="primary" @click="submitCheckUnit" v-throttle size="default">确 定</el-button>
                </span>
            </template>
        </el-dialog>
@@ -112,6 +112,7 @@
            if (type === '新增') {
                state.disabled = true;
                state.title = '新增隐患排查单元';
                state.measureData = [];
                state.checkUnitForm = {
                    taskUnitName: null,
                    note: null,
@@ -121,10 +122,12 @@
                state.disabled = false;
                state.title = '查看隐患排查单元';
                state.checkUnitForm = JSON.parse(JSON.stringify(value));
                state.measureData = state.checkUnitForm.measureList;
            } else {
                state.disabled = true;
                state.title = '修改隐患排查单元';
                state.checkUnitForm = JSON.parse(JSON.stringify(value));
                state.measureData = state.checkUnitForm.measureList;
            }
        };