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
|
@@ -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
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
<script>
|
|
13
13
|
import { mixinPage } from '/src';
|
|
14
|
-
import { mapState
|
|
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(
|
|
24
|
+
...mapState(['test'])
|
|
25
25
|
},
|
|
26
26
|
created() {},
|
|
27
27
|
methods: {}
|