4a4f2929 by renchao@pashanhoo.com

style:房屋用途

1 parent fc552fd6
......@@ -49,7 +49,14 @@
<el-row :gutter="10">
<el-col :span="8">
<el-form-item label="房屋用途:">
<el-input disabled v-model="ruleForm.qjh.showfwyt"></el-input>
<treeselect
v-model="ruleForm.qjh.showfwyt"
noOptionsText=""
disabled
placeholder=""
:normalizer="normalizer"
:show-count="true"
:options="dictData['A17']" />
</el-form-item>
</el-col>
<el-col :span="8">
......@@ -293,6 +300,17 @@
//传递参数
propsParam: {},
rules: {},
// 键名转换,方法默认是label和children进行树状渲染
normalizer (node) {
//方法
if (node.children == null || node.children == "null") {
delete node.children;
}
return {
id: node.dcode,
label: node.dname,
};
},
};
},
methods: {
......