|
@@ -91,7 +91,8 @@ import { ref,onMounted,reactive } from 'vue'
|
|
|
import { Search,Download,Tools,Plus,Check,Close } from "@element-plus/icons-vue";
|
|
import { Search,Download,Tools,Plus,Check,Close } from "@element-plus/icons-vue";
|
|
|
let upUrl=window.baseUrl+'/api/resource/oss/upload'
|
|
let upUrl=window.baseUrl+'/api/resource/oss/upload'
|
|
|
let headers={
|
|
let headers={
|
|
|
- Authorization:'Bearer'+` ${Authorization}`
|
|
|
|
|
|
|
+ Authorization:'Bearer'+` ${Authorization}`,
|
|
|
|
|
+ clientid:'e5cd7e4891bf95d1d19206ce24a7b32e'
|
|
|
}
|
|
}
|
|
|
let fileList=ref([])
|
|
let fileList=ref([])
|
|
|
let searchWord=ref('')
|
|
let searchWord=ref('')
|
|
@@ -104,7 +105,19 @@ let excellloading=ref(false)
|
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
|
//v-loading="excellloading" @click="downExcell"
|
|
//v-loading="excellloading" @click="downExcell"
|
|
|
let activeName=ref('first')
|
|
let activeName=ref('first')
|
|
|
-
|
|
|
|
|
|
|
+const handleChange=val=>{
|
|
|
|
|
+
|
|
|
|
|
+ if(val.response){
|
|
|
|
|
+ ruleForm.addr=val.response.data.url
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: '操作成功',
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ duration: 3 * 1000
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
const addItem=data=>{
|
|
const addItem=data=>{
|
|
|
if(data.id){
|
|
if(data.id){
|
|
|
for(let key in data){
|
|
for(let key in data){
|
|
@@ -219,8 +232,12 @@ onMounted(()=>{
|
|
|
</div> -->
|
|
</div> -->
|
|
|
</div>
|
|
</div>
|
|
|
<el-table element-loading-text='加载中' header-row-class-name="reset-gray-head" :data="tableData" style="width: 100%" v-loading="loading">
|
|
<el-table element-loading-text='加载中' header-row-class-name="reset-gray-head" :data="tableData" style="width: 100%" v-loading="loading">
|
|
|
- <el-table-column prop="name" label="宣传图" />
|
|
|
|
|
- <el-table-column prop="addr" label="文件名" />
|
|
|
|
|
|
|
+ <el-table-column prop="name" label="文件名" />
|
|
|
|
|
+ <el-table-column prop="addr" label="宣传图">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <img :src="scope.row.addr" alt="">
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
|
|
|
<el-table-column prop="contactName" label="上传时间">
|
|
<el-table-column prop="contactName" label="上传时间">
|
|
|
|
|
|
|
@@ -297,7 +314,8 @@ onMounted(()=>{
|
|
|
:headers="headers"
|
|
:headers="headers"
|
|
|
:limit="1"
|
|
:limit="1"
|
|
|
:show-file-list="false"
|
|
:show-file-list="false"
|
|
|
- :on-exceed="handleExceed"
|
|
|
|
|
|
|
+
|
|
|
|
|
+ :on-change="handleChange"
|
|
|
:file-list="fileList">
|
|
:file-list="fileList">
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
|
|