1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
| <template>
| <div ref="container" class="page-list-container">
| <!--数据Table-->
| <yrt-data-list :ref="dataListRef" :editor-ref="editorRef" :data-options="dataOptions" :fields.sync="dataListOptions.fields" :buttons="dataListOptions.buttons" :button-click="buttonClick" :data-list-selections.sync="dataListSelections" :auth-nodes="authNodes" :fixed-where="fixedWhere">
| <template slot="button-tool2-slot">
| <el-checkbox v-model="showAll" @change="onShowAll">显示全部</el-checkbox>
| </template>
| </yrt-data-list>
| </div>
| </template>
| <script>
| import baseLayout from "@/components/common/base-layout.vue";
|
| export default {
| name: "storage-base-product-placeholder",
| components: {},
| mixins: [baseLayout],
| data() {
| return {
| // 显示全部
| showAll: false,
| fixedWhere: {
| placeholderStorage: {
| operator: ">",
| value: 0
| }
| }
| };
| },
| activated() {
| // SaaS模块权限
| this.common.hasSaaSAuth("库存占位查询", this.$refs.container);
| },
| methods: {
| // 显示全部
| onShowAll() {
| if (!this.showAll) {
| this.fixedWhere = {
| placeholderStorage: {
| operator: ">",
| value: 0
| }
| };
| } else {
| this.fixedWhere = {};
| }
| this.$nextTick(() => {
| this.dataList.loadData();
| });
| }
| }
| };
| </script>
|
|