Commit 5e779303 authored by 仇晓婷's avatar 仇晓婷

优化文档

parent f7b792d3
...@@ -170,7 +170,9 @@ ...@@ -170,7 +170,9 @@
<!-- <Input v-model="entity.template" type="textarea" :rows="5"></Input> --> <!-- <Input v-model="entity.template" type="textarea" :rows="5"></Input> -->
<files ref="refFile" :parms="parms" files /> <files ref="refFile" :parms="parms" files />
</FormItem> </FormItem>
<a href="#" @click="template" class="a-xiazai">下载模板</a> <a href="#" @click="template" class="a-xiazai" v-if="templateId"
>下载模板</a
>
</div> </div>
</Col> </Col>
<!-- <Col :span="12"> <!-- <Col :span="12">
...@@ -238,6 +240,7 @@ export default { ...@@ -238,6 +240,7 @@ export default {
categoryId: this.treeId, categoryId: this.treeId,
img: "", img: "",
code: "", code: "",
workFlowIds: this.workFlowIds,
// title: "", // title: "",
// field: "", // field: "",
// dataType: null, // dataType: null,
...@@ -277,6 +280,8 @@ export default { ...@@ -277,6 +280,8 @@ export default {
v: Object, v: Object,
treeId: Number, treeId: Number,
eid: Number, eid: Number,
workFlowIds: String,
templateId: String,
}, },
created() {}, created() {},
mounted() { mounted() {
...@@ -367,6 +372,7 @@ export default { ...@@ -367,6 +372,7 @@ export default {
Api.get({ id: v }).then((r) => { Api.get({ id: v }).then((r) => {
this.entity = r.result; this.entity = r.result;
this.avatorPath = fileUrlDown + r.result.img; this.avatorPath = fileUrlDown + r.result.img;
this.imgName = r.result.img; this.imgName = r.result.img;
this.entity.status = r.result.status; this.entity.status = r.result.status;
if (r.result.filePath && r.result.filePath != "") { if (r.result.filePath && r.result.filePath != "") {
......
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
<!-- <Input v-model="entity.template" type="textarea" :rows="5"></Input> --> <!-- <Input v-model="entity.template" type="textarea" :rows="5"></Input> -->
<files ref="refFile" :parms="parms" files /> <files ref="refFile" :parms="parms" files />
</FormItem> </FormItem>
<a href="#" @click="template" class="a-xiazai">下载模板</a> <a href="#" @click="template" class="a-xiazai" v-if="templateId">下载模板</a>
</div> </div>
</Col> </Col>
<!-- <Col :span="12"> <!-- <Col :span="12">
...@@ -242,7 +242,7 @@ export default { ...@@ -242,7 +242,7 @@ export default {
}, },
}; };
}, },
props: ["eid", "treeId"], props: ["eid", "treeId", "templateId"],
mounted() { mounted() {
this.initFiled(); this.initFiled();
this.parms.eid = this.$u.guid(); this.parms.eid = this.$u.guid();
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
:addShow="addShow" :addShow="addShow"
:ids="ids" :ids="ids"
:workFlowIds="workFlowIds" :workFlowIds="workFlowIds"
:templateId="templateId"
/> />
</Content> </Content>
</Layout> </Layout>
...@@ -42,6 +43,7 @@ export default { ...@@ -42,6 +43,7 @@ export default {
addShow: false, addShow: false,
ids: [], ids: [],
workFlowIds: "", workFlowIds: "",
templateId: "",
}; };
}, },
mounted() {}, mounted() {},
...@@ -53,6 +55,7 @@ export default { ...@@ -53,6 +55,7 @@ export default {
change(item, ids) { change(item, ids) {
this.treeId = item.id; this.treeId = item.id;
this.workFlowIds = item.workFlowIds; this.workFlowIds = item.workFlowIds;
this.templateId = item.templateId;
this.ids = ids; this.ids = ids;
}, },
hide() { hide() {
......
...@@ -88,7 +88,10 @@ ...@@ -88,7 +88,10 @@
>&nbsp; >&nbsp;
<a @click="view(row.id)"> <Icon type="md-document" />详情 </a> <a @click="view(row.id)"> <Icon type="md-document" />详情 </a>
&nbsp; &nbsp;
<a @click="sub(row.id)" v-if="row.status == 1"> <a
@click="sub(row.id)"
v-if="row.status == 1 && row.workFlowIds"
>
<Icon type="md-color-wand" />送审 <Icon type="md-color-wand" />送审
</a> </a>
</div> </div>
...@@ -112,6 +115,7 @@ ...@@ -112,6 +115,7 @@
:treeId="treeId" :treeId="treeId"
:rowsTable="rowsTable" :rowsTable="rowsTable"
:workFlowIds="workFlowIds" :workFlowIds="workFlowIds"
:templateId="templateId"
@on-close="cancel" @on-close="cancel"
@on-ok="ok" @on-ok="ok"
/> />
...@@ -136,7 +140,7 @@ export default { ...@@ -136,7 +140,7 @@ export default {
title: "新增", title: "新增",
detail: null, detail: null,
curId: 0, curId: 0,
columns: [ columns: [
{ {
type: "selection", type: "selection",
...@@ -226,7 +230,7 @@ export default { ...@@ -226,7 +230,7 @@ export default {
attrs: { oprate: "detail" }, attrs: { oprate: "detail" },
on: { click: () => this.sub(params.row.id) }, on: { click: () => this.sub(params.row.id) },
}, },
params.row.status == 1 ? "送审" : "" params.row.status == 1 && params.row.workFlowIds ? "送审" : ""
), ),
]); ]);
}, },
...@@ -246,6 +250,7 @@ export default { ...@@ -246,6 +250,7 @@ export default {
addShow: Boolean, addShow: Boolean,
ids: Array, ids: Array,
workFlowIds: String, workFlowIds: String,
templateId: String,
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
......
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