|
@@ -249,7 +249,7 @@
|
|
|
placeholder="请选择所属方"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(item,index) in dataType"
|
|
|
+ v-for="(item,index) in ownerTypeList"
|
|
|
:key="index"
|
|
|
:label="item.dictValue"
|
|
|
:value="item.dictKey"
|
|
@@ -279,6 +279,7 @@ import { tabLazytree, getExcelHtmlCol, excelType, submitExcelRelationWbsTreeAndE
|
|
|
import { dictionarydataType } from "@/api/exctab/editelement";
|
|
|
import { getColByTabId } from "@/api/manager/AdjustForm";
|
|
|
import { selectByNodeTable } from "@/api/manager/wbstree";
|
|
|
+import { getDictionary } from "@/api/system/dict";
|
|
|
import Vue from 'vue'
|
|
|
export default {
|
|
|
data () {
|
|
@@ -323,8 +324,10 @@ export default {
|
|
|
tableOwner: '',
|
|
|
wbsId: '',
|
|
|
parentId: '',
|
|
|
- }
|
|
|
+ },
|
|
|
//#endregion
|
|
|
+
|
|
|
+ ownerTypeList: [],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -587,8 +590,23 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//#endregion
|
|
|
+
|
|
|
+ getOwnerTypelist () {
|
|
|
+ if (this.ownerTypeList.length > 1) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ getDictionary({
|
|
|
+ code: 'owner_type'
|
|
|
+ }).then((res) => {
|
|
|
+ res.data.data.forEach(element => {
|
|
|
+ element.dictKey = Number(element.dictKey)
|
|
|
+ });
|
|
|
+ this.ownerTypeList = res.data.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
created () {
|
|
|
+ this.getOwnerTypelist();
|
|
|
}
|
|
|
}
|
|
|
</script>
|