| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="监督原因" prop="superviseReason"> |
| | | <el-input v-model="form.superviseReason" clearable disabled size="small"></el-input> |
| | | <el-input v-model="form.superviseReason" clearable placeholder="请输入监督原因" size="small"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | }, |
| | | // 方法集合 |
| | | methods: { |
| | | openDia(type, row, causeType) { |
| | | openDia(type, row) { |
| | | this.formDia = true |
| | | this.operationType = type |
| | | this.getUserList() |
| | | if (causeType == 1) { |
| | | this.form.superviseReason = '定期监督' |
| | | } else { |
| | | this.form.superviseReason = '动态监督' |
| | | } |
| | | if (type === 'edit') { |
| | | this.searchInfo(row) |
| | | } |
| | |
| | | }, |
| | | searchInfo (row) { |
| | | this.form = {...row} |
| | | // 导入的历史数据可能是完整日期(2026/3/15),月份选择器需要 YYYY.M 才能回显 |
| | | const text = row.superviseTime ? String(row.superviseTime).trim() : '' |
| | | const matched = text.match(/^(\d{4})\s*[./年-]\s*(\d{1,2})(?:\s*[./月-]\s*\d{1,2}\s*日?)?$/) |
| | | if (matched && Number(matched[2]) >= 1 && Number(matched[2]) <= 12) { |
| | | this.form.superviseTime = `${matched[1]}.${Number(matched[2])}` |
| | | } |
| | | }, |
| | | // 提交表单 |
| | | submitForm () { |