|
@ -99,7 +99,7 @@ export default { |
|
|
// 遍历用户数据让select组件渲染选项 |
|
|
// 遍历用户数据让select组件渲染选项 |
|
|
if (res.data.operators) { |
|
|
if (res.data.operators) { |
|
|
this.personnelList = [] |
|
|
this.personnelList = [] |
|
|
res.data.operators.forEach(element => { |
|
|
res.data.operators?.forEach(element => { |
|
|
listUser({ |
|
|
listUser({ |
|
|
data: { |
|
|
data: { |
|
|
timeView: { |
|
|
timeView: { |
|
@ -121,7 +121,7 @@ export default { |
|
|
this.ruleForm = res.data |
|
|
this.ruleForm = res.data |
|
|
// 渲染选中项 |
|
|
// 渲染选中项 |
|
|
this.ruleForm.selectUser = [] |
|
|
this.ruleForm.selectUser = [] |
|
|
res.data.operators.forEach(element => { |
|
|
res.data.operators?.forEach(element => { |
|
|
let a = { |
|
|
let a = { |
|
|
id: element.uid, |
|
|
id: element.uid, |
|
|
lebel: element.name |
|
|
lebel: element.name |
|
@ -131,6 +131,10 @@ export default { |
|
|
this.dialogVisible = true |
|
|
this.dialogVisible = true |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
resetForm(){ |
|
|
|
|
|
this.$refs.ruleForm.resetFields() |
|
|
|
|
|
this.dialogVisible = false |
|
|
|
|
|
}, |
|
|
// 保存维修记录 |
|
|
// 保存维修记录 |
|
|
submitForm(formName, confirm = false) { |
|
|
submitForm(formName, confirm = false) { |
|
|
this.$refs[formName].validate((valid) => { |
|
|
this.$refs[formName].validate((valid) => { |
|
@ -281,6 +285,7 @@ export default { |
|
|
} |
|
|
} |
|
|
// 获取列表数据 |
|
|
// 获取列表数据 |
|
|
this.getTableData(this.$route.query.name || '') |
|
|
this.getTableData(this.$route.query.name || '') |
|
|
|
|
|
this.searchPlan('') |
|
|
// 获取状态字典 |
|
|
// 获取状态字典 |
|
|
getDicts('xs_yh_record_status').then((res) => { |
|
|
getDicts('xs_yh_record_status').then((res) => { |
|
|
if (res.data && Array.isArray(res.data)) { |
|
|
if (res.data && Array.isArray(res.data)) { |
|
@ -357,8 +362,8 @@ export default { |
|
|
<el-option v-for="item in planList" :key="item.id" :label="item.name" :value="item.id"> |
|
|
<el-option v-for="item in planList" :key="item.id" :label="item.name" :value="item.id"> |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-button button class="search-btn" type="success" size="small">详情</el-button> |
|
|
<el-button :disabled="true" class="ml-6" type="success" size="small">详情</el-button> |
|
|
<el-button button class="search-btn" type="success" size="small">打开地图</el-button> |
|
|
<el-button :disabled="true" class="ml-6" type="success" size="small">打开地图</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<el-form-item label-width="130px" label="堤防名称"> |
|
|
<el-form-item label-width="130px" label="堤防名称"> |
|
@ -498,6 +503,9 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ml-6{ |
|
|
|
|
|
margin-left: 6px; |
|
|
|
|
|
} |
|
|
/deep/.el-input__count { |
|
|
/deep/.el-input__count { |
|
|
height: 15px; |
|
|
height: 15px; |
|
|
line-height: 15px; |
|
|
line-height: 15px; |
|
|