92b7581b by 杨威

权利人组件字典绑定

1 parent 9db815d8
......@@ -8,8 +8,8 @@
import { getDdicByMC } from "../src/api/common";
export default {
mounted() {
window.addEventListener("unload", this.saveState);
this.getDic();
window.addEventListener("unload", this.saveState);
},
methods: {
saveState() {
......@@ -17,7 +17,6 @@ export default {
},
//请求字典数据
getDic() {
debugger
let s = this.$store.state;
s.zjzlList = s.zjzlList.length == 0 ? this.getDicData("证件种类") : s.zjzlList;
s.gjList = s.gjList.length == 0 ? this.getDicData("国家和地区") : s.gjList;
......
......@@ -61,7 +61,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="formData.qlrlxbsm">
<el-option
v-for="item in qllxList"
v-for="item in qlrlxList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -75,7 +75,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="formData.zjzlbsm">
<el-option
v-for="item in qllxList"
v-for="item in zlzlList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -103,7 +103,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="formData.gjbsm">
<el-option
v-for="item in qllxList"
v-for="item in gjList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -115,7 +115,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="formData.hjszssbsm">
<el-option
v-for="item in qllxList"
v-for="item in ssList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -129,7 +129,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="formData.xbbsm">
<el-option
v-for="item in qllxList"
v-for="item in xbList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -147,7 +147,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="formData.sshy">
<el-option
v-for="item in qllxList"
v-for="item in sshyList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -176,7 +176,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="formData.fr.zjzlbsm">
<el-option
v-for="item in qllxList"
v-for="item in zjzlList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -222,7 +222,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="item.zjzlbsm">
<el-option
v-for="item in qllxList"
v-for="item in zjzlList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -251,7 +251,7 @@
<td colspan="3">
<el-select class="formSelect" v-model="formData.gyfsbsm">
<el-option
v-for="item in qllxList"
v-for="item in qlrlxList"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
......@@ -356,7 +356,12 @@ export default {
zjh: "",
zjzlbsm: "",
},
qllxList: [],
qlrlxList: this.$store.state.qlrlxList,
zjzlList: this.$store.state.zjzlList,
xbList: this.$store.state.xbList,
gjList: this.$store.state.gjList,
ssList: this.$store.state.ssList,
sshyList: this.$store.state.sshyList,
};
},
methods: {
......