|
@@ -22,7 +22,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="危险源类型:" prop="hazardTypeMode">
|
|
|
- <el-select v-model="form.hazardTypeMode" placeholder="请选择">
|
|
|
+ <el-select v-model="form.hazardTypeMode" placeholder="请选择" @change="hazardTypeModeFun()">
|
|
|
<el-option :label="item.dictLabel" :value="item.dictValue" v-for="(item,index) in materialTypeList" :key="index"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -176,6 +176,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ hazardTypeModeFun(){
|
|
|
+ for(let i=0;i<this.materialTypeList.length;i++){
|
|
|
+ if(this.form.hazardTypeMode==this.materialTypeList[i].dictValue){
|
|
|
+ this.$set(this.form,'hazardTypeModeName',this.materialTypeList[i].dictLabel);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//预览
|
|
|
previewButton(){
|
|
|
this.$set(this.form,'content',this.$refs.UEditor.text);
|