mooho-base-admin-plus 2.2.4 → 2.2.6

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.2.4",
4
+ "version": "2.2.6",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -4,7 +4,7 @@
4
4
  <PageHeader :title="$route.meta.title" :content="$route.meta.description" hidden-breadcrumb />
5
5
  </div>
6
6
  <Card :bordered="false" dis-hover class="ivu-mt">
7
- <view-table ref="table" v-if="page" @create="create">
7
+ <view-table ref="table" v-if="page" :filter="filter" :create-enable="allow('create')" @create="create">
8
8
  <template #command="{ row }">
9
9
  <Button
10
10
  size="small"
@@ -123,6 +123,7 @@
123
123
  components: {},
124
124
  data() {
125
125
  return {
126
+ filter: {},
126
127
  applicationType: {},
127
128
  page: {},
128
129
  messageData: {
@@ -150,6 +151,10 @@
150
151
  this.page = res.customPage;
151
152
 
152
153
  setTimeout(() => {
154
+ if (!this.allow('all')) {
155
+ this.filter.createUserID = this.info.id;
156
+ }
157
+
153
158
  this.$refs.table.init(this.page.tableViewCode, () => {
154
159
  this.$refs.table.loadData();
155
160
  });