mooho-base-admin-plus 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -64,7 +64,6 @@
64
64
  mixins: [mixinPage],
65
65
  data() {
66
66
  return {
67
- inited: false,
68
67
  opened: false, // 是否打开
69
68
  sourceFilter: {} // 来源筛选
70
69
  };
@@ -115,8 +114,6 @@
115
114
  this.$refs.selectTargetTable.init(targetViewCode, () => {
116
115
  this.setSelected([]);
117
116
 
118
- this.inited = true;
119
-
120
117
  if (typeof callback === 'function') {
121
118
  callback();
122
119
  }
@@ -154,8 +151,11 @@
154
151
  * @public
155
152
  */
156
153
  setSelected(data) {
157
- if (this.inited) {
154
+ if (this.$refs.selectTargetTable.inited) {
158
155
  this.$refs.selectTargetTable.loadData(data);
156
+ }
157
+
158
+ if (this.$refs.selectSourceTable.inited) {
159
159
  this.$refs.selectSourceTable.setSelected(data);
160
160
  }
161
161
  },
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div>
3
+ <DatePicker type="date" size="small" />
3
4
  <Row :gutter="24" class="ivu-mt">
4
5
  <Col :xxl="8" :xl="12" :lg="12" :md="12" :sm="24" :xs="24" class="ivu-mb">
5
6
  <div>
@@ -11,7 +11,7 @@
11
11
  </template>
12
12
  <script>
13
13
  import { mixinPage } from '/src';
14
- import { mapState, mapActions } from 'vuex';
14
+ import { mapState } from 'vuex';
15
15
 
16
16
  export default {
17
17
  name: 'test-logReport',
@@ -21,7 +21,7 @@
21
21
  return {};
22
22
  },
23
23
  computed: {
24
- ...mapState('custom', ['test'])
24
+ ...mapState(['test'])
25
25
  },
26
26
  created() {},
27
27
  methods: {}