style:房屋用途
Showing
1 changed file
with
19 additions
and
1 deletions
... | @@ -49,7 +49,14 @@ | ... | @@ -49,7 +49,14 @@ |
49 | <el-row :gutter="10"> | 49 | <el-row :gutter="10"> |
50 | <el-col :span="8"> | 50 | <el-col :span="8"> |
51 | <el-form-item label="房屋用途:"> | 51 | <el-form-item label="房屋用途:"> |
52 | <el-input disabled v-model="ruleForm.qjh.showfwyt"></el-input> | 52 | <treeselect |
53 | v-model="ruleForm.qjh.showfwyt" | ||
54 | noOptionsText="" | ||
55 | disabled | ||
56 | placeholder="" | ||
57 | :normalizer="normalizer" | ||
58 | :show-count="true" | ||
59 | :options="dictData['A17']" /> | ||
53 | </el-form-item> | 60 | </el-form-item> |
54 | </el-col> | 61 | </el-col> |
55 | <el-col :span="8"> | 62 | <el-col :span="8"> |
... | @@ -293,6 +300,17 @@ | ... | @@ -293,6 +300,17 @@ |
293 | //传递参数 | 300 | //传递参数 |
294 | propsParam: {}, | 301 | propsParam: {}, |
295 | rules: {}, | 302 | rules: {}, |
303 | // 键名转换,方法默认是label和children进行树状渲染 | ||
304 | normalizer (node) { | ||
305 | //方法 | ||
306 | if (node.children == null || node.children == "null") { | ||
307 | delete node.children; | ||
308 | } | ||
309 | return { | ||
310 | id: node.dcode, | ||
311 | label: node.dname, | ||
312 | }; | ||
313 | }, | ||
296 | }; | 314 | }; |
297 | }, | 315 | }, |
298 | methods: { | 316 | methods: { | ... | ... |
-
Please register or sign in to post a comment