Commit 59c761c8 authored by 仇晓婷's avatar 仇晓婷

文档分类设置字典

parent f28c5af8
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<Input v-model="entity.templateId"></Input> <Input v-model="entity.templateId"></Input>
</FormItem> </FormItem>
</Col>--> </Col>-->
<Col :span="24" v-if="inherit==0"> <Col :span="24" v-if="inherit == 0">
<Divider orientation="left">扩展属性</Divider> <Divider orientation="left">扩展属性</Divider>
<Table :columns="columns" :data="checkList" border> <Table :columns="columns" :data="checkList" border>
<template slot-scope="{ row, index }" slot="title"> <template slot-scope="{ row, index }" slot="title">
...@@ -164,7 +164,7 @@ export default { ...@@ -164,7 +164,7 @@ export default {
name: "Add", name: "Add",
data() { data() {
return { return {
disabled: false, codeList: [],
entity: { entity: {
creatorUserId: this.$store.state.userInfo.userId, creatorUserId: this.$store.state.userInfo.userId,
name: "", name: "",
...@@ -317,14 +317,19 @@ export default { ...@@ -317,14 +317,19 @@ export default {
eid: Number, eid: Number,
}, },
mounted() { mounted() {
// if (this.eid > 0) { this.tebleSet();
// this.load(this.eid); // console.log(this.row);
// }
console.log(this.row);
this.parms.eid = this.$u.guid(); this.parms.eid = this.$u.guid();
this.$refs.refFile.intFiles(); this.$refs.refFile.intFiles();
}, },
methods: { methods: {
tebleSet() {
Api.getChildren({ id: 582 }).then((r) => {
if (r.result) {
this.codeList = r.result;
}
});
},
addNew() { addNew() {
let maxId = 0; let maxId = 0;
this.checkList.map((u) => { this.checkList.map((u) => {
......
...@@ -24,5 +24,8 @@ export default { ...@@ -24,5 +24,8 @@ export default {
list(params){ list(params){
return Api.post(`${material}/documentpropertydefinition/list`,params); return Api.post(`${material}/documentpropertydefinition/list`,params);
}, },
getChildren(params){
return Api.get(`${systemUrl}/Dictionary/getChildren`,params); //字典
},
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment