jufubao-admin-library 1.1.115 → 1.1.116
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/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/company.vue +1 -1
- package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/my.vue +1 -1
- package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/platform.vue +1 -1
- package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/share.vue +1 -1
- package/library/viewModules/viewsMaterial/viewsMaterial/mixins/handleMaterial.js +1 -27
- package/package.json +1 -1
|
@@ -87,39 +87,13 @@ export const materialMixins = {
|
|
|
87
87
|
},
|
|
88
88
|
watch: {
|
|
89
89
|
"selectMaterialId"(n, o) {
|
|
90
|
-
|
|
91
|
-
if (this.$parent.$parent.type !== this.componentName) return
|
|
92
|
-
// 如果n存在
|
|
90
|
+
// 如果是第一次
|
|
93
91
|
if (n) {
|
|
94
92
|
// 将listWidth设置为720px
|
|
95
93
|
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
94
|
} else {
|
|
108
95
|
// 将listWidth设置为1000px
|
|
109
96
|
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
97
|
}
|
|
124
98
|
},
|
|
125
99
|
},
|