jufubao-admin-library 1.1.115 → 1.1.117

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.
@@ -187,7 +187,7 @@ export default {
187
187
  parent_id: "",
188
188
  //分页参数
189
189
  page_token: 1, //当前页面数量
190
- limit: 28, //搜索参数
190
+ limit: 35, //搜索参数
191
191
  total: 0,
192
192
  listWidth: "1000px",
193
193
  componentName: "company",
@@ -189,7 +189,7 @@ export default {
189
189
  parent_id: "",
190
190
  //分页参数
191
191
  page_token: 1, //当前页面数量
192
- limit: 28, //搜索参数
192
+ limit: 35, //搜索参数
193
193
  total: 0,
194
194
  listWidth: "1000px",
195
195
  componentName: "my",
@@ -157,7 +157,7 @@ export default {
157
157
  searchKey: "searchKey",
158
158
  //分页参数
159
159
  page_token: 1, //当前页面数量
160
- limit: 28, //搜索参数
160
+ limit: 35, //搜索参数
161
161
  total: 0,
162
162
  listWidth: "1000px",
163
163
  componentName: "platform",
@@ -136,7 +136,7 @@ export default {
136
136
  parent_id: "",
137
137
  //分页参数
138
138
  page_token: 1, //当前页面数量
139
- limit: 28, //搜索参数
139
+ limit: 35, //搜索参数
140
140
  total: 0,
141
141
  listWidth: "1000px",
142
142
  componentName: "share",
@@ -45,17 +45,6 @@
45
45
  ></Share>
46
46
  <!-- 分享素材 end -->
47
47
  </keep-alive>
48
-
49
- <!-- 素材详情 start -->
50
- <Detail
51
- @close="handleCloseDetail"
52
- @replace="handlerRplace"
53
- @delete="handleUnSelect"
54
- v-if="updateMaterialId"
55
- :id="updateMaterialId"
56
- :type="type"
57
- ></Detail>
58
- <!-- 素材详情 end -->
59
48
  <!-- 中转站 start -->
60
49
  <Selects
61
50
  v-if="selectMaterial && selectMaterial.length > 0 && setting.num > 1"
@@ -75,6 +75,7 @@ export const materialMixins = {
75
75
  },
76
76
  handleDelete(data) {
77
77
  this.selectMaterialId = "";
78
+ this.getList()
78
79
  this.$emit("unSelect", data);
79
80
  },
80
81
  //关闭素材详情并清空素材id
@@ -87,39 +88,13 @@ export const materialMixins = {
87
88
  },
88
89
  watch: {
89
90
  "selectMaterialId"(n, o) {
90
- //由于keep-alive缓存,会调用多个组件的getList方法,所以需要判断
91
- if (this.$parent.$parent.type !== this.componentName) return
92
- // 如果n存在
91
+ // 如果是第一次
93
92
  if (n) {
94
93
  // 将listWidth设置为720px
95
94
  this.listWidth = "720px";
96
- // 将limit设置为20
97
- this.limit = 20;
98
- // 在list中查找file_id为n的元素,并返回其索引
99
- let index = this.list.findIndex((item) => item.file_id === n);
100
- // 如果索引大于19,应该请求下一页数据
101
- if (index > 19) {
102
- // 将pageSize加1
103
- this.page_token = this.page_token + 1;
104
- }
105
- // 调用getList方法
106
- this.getList();
107
95
  } else {
108
96
  // 将listWidth设置为1000px
109
97
  this.listWidth = "1000px";
110
- // 将limit设置为28
111
- this.limit = 28;
112
- // 在list中查找file_id为n的元素,并返回其索引
113
- let index = this.list.findIndex((item) => item.file_id === o);
114
- console.log(index, "index");
115
-
116
- // 如果索引小于8,应该请求上一页数据
117
- if (index < 8) {
118
- // 将pageSize减1
119
- this.page_token = (Number(this.page_token) <= 1) ? 1 : this.page_token - 1;
120
- }
121
- // 调用getList方法
122
- this.getList();
123
98
  }
124
99
  },
125
100
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-admin-library",
3
- "version": "1.1.115",
3
+ "version": "1.1.117",
4
4
  "description": "聚福宝福利后台管理系统公共模块",
5
5
  "author": "goashiyong <gaoshiyong1272@vip.163.com>",
6
6
  "scripts": {