File tree Expand file tree Collapse file tree 6 files changed +513
-16
lines changed Expand file tree Collapse file tree 6 files changed +513
-16
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,11 @@ export function getMaterialPage(query) {
8
8
params : query
9
9
} )
10
10
}
11
+
12
+ // 删除公众号永久素材
13
+ export function deletePermanentMaterial ( id ) {
14
+ return request ( {
15
+ url : '/mp/material/delete-permanent?id=' + id ,
16
+ method : 'delete'
17
+ } )
18
+ }
Original file line number Diff line number Diff line change 19
19
</div >
20
20
</div >
21
21
<!-- 分页组件 -->
22
- <div v-if =" list.length <= 0 && !loading" class =" el-table__empty-block" >
23
- <span class =" el-table__empty-text" >暂无数据</span >
24
- </div >
25
22
<pagination v-show =" total > 0" :total =" total" :page.sync =" queryParams.pageNo" :limit.sync =" queryParams.pageSize"
26
23
@pagination =" getMaterialPage" />
27
24
</div >
92
89
</div >
93
90
</div >
94
91
<!-- 分页组件 -->
95
- <div v-if =" list.length <= 0 && !loading" class =" el-table__empty-block" >
96
- <span class =" el-table__empty-text" >暂无数据</span >
97
- </div >
98
92
<pagination v-show =" total > 0" :total =" total" :page.sync =" queryParams.pageNo" :limit.sync =" queryParams.pageSize"
99
93
@pagination =" getMaterialPage" />
100
94
</div >
Original file line number Diff line number Diff line change 235
235
" title" : ' ' ,
236
236
" introduction" : ' '
237
237
},
238
- actionUrl: process .env .VUE_APP_BASE_API + ' /admin-api/mp/material/upload-temporary' ,
238
+ actionUrl: process .env .VUE_APP_BASE_API + ' /admin-api/mp/material/upload-temporary' ,
239
239
headers: { Authorization: " Bearer " + getAccessToken () }, // 设置上传的请求头部
240
240
}
241
241
},
279
279
this .uploadData .accountId = this .objData .accountId ;
280
280
return true ;
281
281
},
282
- beforeImageUpload (file ){
282
+ beforeImageUpload (file ) {
283
283
// 校验格式
284
284
const isType = file .type === ' image/jpeg'
285
285
|| file .type === ' image/png'
Original file line number Diff line number Diff line change @@ -64,9 +64,6 @@ SOFTWARE.
64
64
</div >
65
65
</div >
66
66
<!-- 分页记录 -->
67
- <div v-if =" list.length <= 0 && !loading" class =" el-table__empty-block" >
68
- <span class =" el-table__empty-text" >暂无数据</span >
69
- </div >
70
67
<pagination v-show =" total > 0" :total =" total" :page.sync =" queryParams.pageNo" :limit.sync =" queryParams.pageSize"
71
68
@pagination =" getList" />
72
69
@@ -218,7 +215,6 @@ export default {
218
215
this .accounts = response .data ;
219
216
// 默认选中第一个
220
217
if (this .accounts .length > 0 ) {
221
- this .queryParams .accountId = this .accounts [0 ].id ;
222
218
this .setAccountId (this .accounts [0 ].id );
223
219
}
224
220
// 加载数据
@@ -241,7 +237,7 @@ export default {
241
237
}
242
238
243
239
this .loading = true
244
- getDraftPage (( this .queryParams ) ).then (response => {
240
+ getDraftPage (this .queryParams ).then (response => {
245
241
// 将 thumbUrl 转成 picUrl,保证 wx-news 组件可以预览封面
246
242
response .data .list .forEach (item => {
247
243
const newsItem = item .content .newsItem ;
Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ SOFTWARE.
51
51
</div >
52
52
</div >
53
53
<!-- 分页组件 -->
54
- <div v-if =" list.length <=0 && !loading" class =" el-table__empty-block" >
55
- <span class =" el-table__empty-text" >暂无数据</span >
56
- </div >
57
54
<pagination v-show =" total > 0" :total =" total" :page.sync =" queryParams.pageNo" :limit.sync =" queryParams.pageSize"
58
55
@pagination =" getList" />
59
56
</div >
You can’t perform that action at this time.
0 commit comments