Commit 1b48541a authored by 王晓倩's avatar 王晓倩

企业审核管理添加监管分类选择、经纬度显示到一行

parent 8bdafe49
...@@ -82,18 +82,28 @@ ...@@ -82,18 +82,28 @@
<el-form-item label="备注" prop="remarks"> <el-form-item label="备注" prop="remarks">
<el-input type="textarea" v-model.number="editForm.remarks"></el-input> <el-input type="textarea" v-model.number="editForm.remarks"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="经度" prop="longitude"> <el-form-item label="经度" prop="longitude">
<el-row> <el-row>
<el-col :span="16"> <el-col :span="8">
<el-input v-model.number="editForm.longitude"></el-input> <el-input v-model.number="editForm.longitude"></el-input>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-input v-model.number="editForm.latitude"></el-input>
</el-col>
<el-col :span="5">
<el-button type="primary" plain @click="MapdialogFun">选择经纬度</el-button> <el-button type="primary" plain @click="MapdialogFun">选择经纬度</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-form-item> </el-form-item>
<el-form-item label="纬度" prop="latitude"> <el-form-item label="监管分类" prop="regulationType">
<el-input v-model="editForm.latitude"></el-input> <el-select v-model="editForm.regulationType" placeholder="请选择" @change="seletChange" filterable>
<el-option
v-for="item in regulationTypeArr"
:key="item.code"
:label="item.typeName==null?'':item.typeName"
:value="item.code.toString()"
></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="绘制厂区边界"> <el-form-item label="绘制厂区边界">
<el-button type="primary" plain @click="MapdialogBFun">绘制</el-button> <span :class="editForm.boundary ? 'colorM' : 'colorR'">{{editForm.boundary ? '已绘制' : '未绘制'}}</span> <el-button type="primary" plain @click="MapdialogBFun">绘制</el-button> <span :class="editForm.boundary ? 'colorM' : 'colorR'">{{editForm.boundary ? '已绘制' : '未绘制'}}</span>
...@@ -145,6 +155,7 @@ export default class EnterprisesMgEdit extends Vue { ...@@ -145,6 +155,7 @@ export default class EnterprisesMgEdit extends Vue {
@Provide() editForm: any = {}; @Provide() editForm: any = {};
@Provide() qvvalue: any = []; //区域值 @Provide() qvvalue: any = []; //区域值
@Provide() signsArr: any = []; //图例list @Provide() signsArr: any = []; //图例list
@Provide() regulationTypeArr: any = [];
@Provide() dialogTableVisible: Boolean = false; @Provide() dialogTableVisible: Boolean = false;
@Provide() rules: any = { @Provide() rules: any = {
accountStatus: [{ accountStatus: [{
...@@ -277,12 +288,33 @@ export default class EnterprisesMgEdit extends Vue { ...@@ -277,12 +288,33 @@ export default class EnterprisesMgEdit extends Vue {
} }
} }
} }
//监管类型
getRegulationType() {
let that = this;
(that as any).$axios
.get(
`/regulationType/getRegulationTypeList?page=1&size=10000`
)
.then((res: any) => {
that.regulationTypeArr = res.data.pageData;
});
}
seletChange(code: any) {
let that = this,
arr;
arr = that.regulationTypeArr.filter((ele: any) => code == ele.code);
}
created() { created() {
this.getDetail(); this.getDetail();
this.getRegulationType();
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
@import "@/utils/public.scss"; @import "@/utils/public.scss";
.el-col {
margin-left: 0;
margin-right: 10px;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment