mooho-base-admin-plus 2.10.1 → 2.10.3

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.10.1",
4
+ "version": "2.10.3",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -186,6 +186,7 @@
186
186
  </div>
187
187
  </template>
188
188
  <script>
189
+ import { useRouter } from 'vue-router';
189
190
  import modelApi from '../../api/model';
190
191
  import applicationApi from '../../api/application';
191
192
  import processInstApi from '../../api/processInst';
@@ -228,6 +229,13 @@
228
229
  },
229
230
  computed: {},
230
231
  async mounted() {
232
+ let router = useRouter();
233
+
234
+ console.log('router.currentRoute.value.fullPath', router.currentRoute.value.fullPath);
235
+ console.log('this.userPermissions', this.userPermissions);
236
+ console.log("url + '$' + key", router.currentRoute.value.fullPath.substr(1).split('?')[0] + '$' + 'create');
237
+ console.log("this.userPermissions[url + '$' + key]", this.userPermissions[router.currentRoute.value.fullPath.substr(1).split('?')[0] + '$' + 'create']);
238
+
231
239
  if (this.$route.meta.data.id) {
232
240
  let res = await this.loadPage(this.$route.meta.data.id);
233
241
  this.page = res.customPage;
@@ -264,7 +272,7 @@
264
272
 
265
273
  setTimeout(() => {
266
274
  if (!this.allow('all')) {
267
- this.filterData['createUserID'] = this.info.id;
275
+ this.$refs.table.filterData['createUserID'] = this.info.id;
268
276
  }
269
277
 
270
278
  this.$refs.table.init(this.page.tableViewCode, () => {