Commit 648bd947 authored by renjintao's avatar renjintao

StoreHouse/type

parent ebc06c43
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<FooterToolbar v-if="batch" v-show="footerToolbar"> <FooterToolbar v-if="batch" v-show="footerToolbar">
<div class="tip">已选{{selectItems.length}}</div> <div class="tip">已选{{selectItems.length}}</div>
<slot name="batch"></slot> <slot name="batch"></slot>
<Button @click="footerToolbar=false">取消</Button> <Button @click="cancelBatch">取消</Button>
</FooterToolbar> </FooterToolbar>
</div> </div>
</template> </template>
...@@ -296,8 +296,8 @@ export default { ...@@ -296,8 +296,8 @@ export default {
} }
if (this.action) { if (this.action) {
//条件初始化处理。 //条件初始化处理。
if(this.initsearch){ if (this.initsearch) {
this.initsearch(this.search) this.initsearch(this.search);
} }
this.$api.post(this.action, this.search).then(r => { this.$api.post(this.action, this.search).then(r => {
if (this.format) { if (this.format) {
...@@ -484,6 +484,11 @@ export default { ...@@ -484,6 +484,11 @@ export default {
}, },
selectAll(status) { selectAll(status) {
this.$refs.table.selectAll(status); this.$refs.table.selectAll(status);
},
//批量取消
cancelBatch() {
this.footerToolbar = false;
this.$refs.table.selectAll(false);
} }
}, },
computed: { computed: {
......
<template> <template>
<Layout class="full"> <Layout class="full">
<Sider hide-trigger :style="{background: '#fff'}" class="menu" width="240" style=" flex:0;"> <Sider hide-trigger :style="{background: '#fff'}" class="menu" width="240" style=" flex:0;">
<StoreHouseLeft @storeIds="storeIds" :type='1'></StoreHouseLeft> <StoreHouseLeft @storeIds="storeIds" :type='2'></StoreHouseLeft>
</Sider> </Sider>
<Content class="content"> <Content class="content">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight"> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight">
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
:show.sync="showStoreHouseTree" :show.sync="showStoreHouseTree"
:value.sync="conditions.storeId.value" :value.sync="conditions.storeId.value"
:text.sync="conditions.storeTitle.value" :text.sync="conditions.storeTitle.value"
:type='2'
/> />
</div> </div>
</template> </template>
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
:show.sync="showStoreHouseTree" :show.sync="showStoreHouseTree"
:value.sync="conditions.storeId.value" :value.sync="conditions.storeId.value"
:text.sync="conditions.storeTitle.value" :text.sync="conditions.storeTitle.value"
:type='1'
/> />
</div> </div>
</template> </template>
......
<template> <template>
<Layout class="full"> <Layout class="full">
<Sider hide-trigger :style="{background: '#fff'}" class="menu" width="240" style=" flex:0;"> <Sider hide-trigger :style="{background: '#fff'}" class="menu" width="240" style=" flex:0;">
<StoreHouseLeft @storeIds="storeIds" c></StoreHouseLeft> <StoreHouseLeft @storeIds="storeIds" :type='3'></StoreHouseLeft>
</Sider> </Sider>
<Content class="content"> <Content class="content">
<DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight"> <DataGrid :columns="columns" ref="grid" :action="action" :conditions="easySearch" :height="tdHeight">
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
:show.sync="showStoreHouseTree" :show.sync="showStoreHouseTree"
:value.sync="conditions.storeId.value" :value.sync="conditions.storeId.value"
:text.sync="conditions.storeTitle.value" :text.sync="conditions.storeTitle.value"
:type='3'
/> />
</div> </div>
</template> </template>
......
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