Commit 648bd947 authored by renjintao's avatar renjintao

StoreHouse/type

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