This commit is contained in:
yanran200730
2022-03-28 13:54:21 +08:00
parent 0eb5036b11
commit 92dfebc1d4
2 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<template>
<ai-detail class="content-add">
<ai-detail class="content-add" v-loading="isLoading">
<template slot="title">
<ai-title :title="params.id ? '编辑' + moduleName : '添加' + moduleName" isShowBack isShowBottomBorder @onBackClick="cancel(false)">
</ai-title>
@@ -207,6 +207,7 @@
if (fileType && this.accept.indexOf(fileType.toLocaleLowerCase()) > -1) {
let formData = new FormData()
formData.append('file', file.file);
this.isLoading = true
this.instance.post(`/admin/file/add-unlimited`, formData).then(res => {
if (res && res.data) {
let videoList = res.data[0].split(";");
@@ -216,6 +217,10 @@
url: videoList[0]
}]
}
this.isLoading = false
}).catch(() => {
this.isLoading = false
})
} else {
return this.$message.error("视频格式错误")

View File

@@ -72,6 +72,8 @@
colConfigs: [
{ prop: 'title', label: '标题', align: 'left', width: '200px' },
{ prop: 'areaName', label: '地区', align: 'left' },
{ prop: 'examineStatus', label: '状态', align: 'center', formart: v => this.dict.getLabel('auditStatus', v) },
{ prop: 'examineOpinion', label: '信息', align: 'center' },
{ prop: 'viewCount', label: '浏览次数', align: 'center' },
{ prop: 'createUserName', label: '发布人', align: 'center' },
{ prop: 'createTime', label: '发布时间', align: 'center' },