| | |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="隐患地点:" prop="dangerLocation"> |
| | | <el-input v-model="ruleForm.dangerLocation" :size="size" clearable placeholder="请输入隐患地点" :disabled="disabled"></el-input> |
| | | <el-select v-model="ruleForm.dangerLocation" placeholder="请选择隐患地点" clearable :disabled="disabled"> |
| | | <el-option |
| | | v-for="item in positonOptions" |
| | | :key="item.dictId" |
| | | :label="item.dictName" |
| | | :value="item.dictId"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="隐患标题" prop="title"> |
| | | <el-input v-model="ruleForm.title" :size="size" type="textarea" :rows="5" clearable placeholder="请输入隐患标题" :disabled="disabled"></el-input> |
| | |
| | | disabled:false, |
| | | loading: false, |
| | | dataList: [], //举报隐患信息列表 |
| | | positonOptions:[],//隐患地点 |
| | | imageList:[], |
| | | asyncTitle: true, // 对话框title 新增:true 修改:false |
| | | asyncVisible: false, // 添加 修改对话框 |
| | |
| | | that.size = changeSize(); |
| | | } |
| | | that.searchButtonInfo(true); |
| | | that.searchPositionInfos() |
| | | }, |
| | | methods: { |
| | | //获取隐患地点 |
| | | searchPositionInfos(){ |
| | | let params = { |
| | | pageNum: 1, |
| | | pageSize: 100000000 |
| | | } |
| | | this.$api.Dictionary.searchDictionary(params).then(res=>{ |
| | | if(res.statusMsg === 'ok'){ |
| | | this.positonOptions = res.data.list.filter(item =>item.dictType === 'danger_region') |
| | | }else{ |
| | | this.$message.warning(res.statusMsg) |
| | | } |
| | | }) |
| | | }, |
| | | // 查询按钮列表信息 |
| | | searchButtonInfo(bol) { |
| | | if(bol) { |