| | |
| | | <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> |
| | |
| | | if (type === '新增') { |
| | | state.disabled = true; |
| | | state.title = '新增隐患排查单元'; |
| | | state.measureData = []; |
| | | state.checkUnitForm = { |
| | | taskUnitName: null, |
| | | note: null, |
| | |
| | | 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; |
| | | } |
| | | }; |
| | | |