Commit dc28e50d authored by 仇晓婷's avatar 仇晓婷

优化物料

parent d9c76614
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<State code="material.main.status" :value="parseInt(entity.status)" /> <State code="material.main.status" :value="parseInt(entity.status)" />
</Filed> </Filed>
<Filed :span="8" name="版本:"> <Filed :span="8" name="版本:">
<State code="material.main.version" :value="parseInt(entity.version)" /> <State code="material.main.version" :value="parseInt(entity.version)" />
</Filed> </Filed>
<Filed :span="8" name="描述:">{{entity.description}}</Filed> <Filed :span="8" name="描述:">{{entity.description}}</Filed>
</Row> </Row>
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
</div> </div>
</div> </div>
<div v-show="showTable"> <div v-show="showTable">
<DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="750"></DataGrid> <Table border :columns="columns" :data="data1" :height="820"></Table>
<!-- <DataGrid :columns="columns" ref="grid" :action="action" :tool="false" :height="750" :conditions="easySearch"></DataGrid> -->
</div> </div>
</Content> </Content>
</Layout> </Layout>
...@@ -83,7 +84,7 @@ export default { ...@@ -83,7 +84,7 @@ export default {
], ],
columns: [ columns: [
{ {
key: "name", key: "title",
title: "名称", title: "名称",
align: "left" align: "left"
}, },
...@@ -149,7 +150,22 @@ export default { ...@@ -149,7 +150,22 @@ export default {
} else { } else {
this.showFrom = false; this.showFrom = false;
this.showTable = true; this.showTable = true;
this.$refs.grid.reload(this.easySearch); let conditions = [
{
conditionalType: "Equal",
fieldName: "tableTitle",
fieldValue: "material"
},
{
conditionalType: "Equal",
fieldName: "tId",
fieldValue: this.eid
}
];
Api.categoryList({ conditions: conditions }).then(r => {
this.data1 = r.result;
});
// this.$refs.grid.reload(this.easySearch);
} }
}, },
l(key) { l(key) {
......
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