|
@@ -1130,6 +1130,32 @@
|
|
|
></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="dynamicDict"
|
|
|
+ label="动态字典"
|
|
|
+ width="120"
|
|
|
+ >
|
|
|
+ <template slot="header">
|
|
|
+
|
|
|
+ <span>动态字典</span>
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-select
|
|
|
+ v-model="scope.row.dynamicDict"
|
|
|
+ @change="setDefaultLength(scope.row)"
|
|
|
+ size="small"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in dynamicDictList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.dictValue"
|
|
|
+ :value="item.dictKey"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
label="操作"
|
|
@@ -1798,7 +1824,8 @@ export default {
|
|
|
],//树组件操作菜单
|
|
|
menusData1:[{icon: 'el-icon-plus', label: '新增节点', key: "add"}],
|
|
|
menuKey:'',
|
|
|
- nodeInfoSaveload:false
|
|
|
+ nodeInfoSaveload:false,
|
|
|
+ dynamicDictList:[]
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -1906,6 +1933,7 @@ export default {
|
|
|
this.getTableTypelist();
|
|
|
this.getDataTypelist();
|
|
|
this.getOwnerTypelist();
|
|
|
+ this.getDictTypelist()
|
|
|
this.defaultExpandedKeys = getStore({name:this.expandName});
|
|
|
},
|
|
|
loadNode (node, resolve) {
|
|
@@ -2662,6 +2690,19 @@ export default {
|
|
|
this.dataTypeList = res.data.data;
|
|
|
})
|
|
|
},
|
|
|
+ getDictTypelist () {
|
|
|
+ if (this.dynamicDictList.length > 1) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ getDictionary({
|
|
|
+ code: 'land_field_dict'
|
|
|
+ }).then((res) => {
|
|
|
+ res.data.data.forEach(element => {
|
|
|
+ element.dictKey = Number(element.dictKey)
|
|
|
+ });
|
|
|
+ this.dynamicDictList = res.data.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
getOwnerTypelist () {
|
|
|
if (this.ownerTypeList.length > 1) {
|
|
|
return;
|