28557
This commit is contained in:
@@ -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("视频格式错误")
|
||||
|
||||
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user