|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="panorama con">
|
|
<div class="panorama con">
|
|
|
<div class="top">
|
|
<div class="top">
|
|
|
- <crumbs :list="tablist"/>
|
|
|
|
|
|
|
+ <crumbs :list="tablist" />
|
|
|
<div class="filter">
|
|
<div class="filter">
|
|
|
<div>
|
|
<div>
|
|
|
<input
|
|
<input
|
|
@@ -9,43 +9,60 @@
|
|
|
v-model="searchKey"
|
|
v-model="searchKey"
|
|
|
@keyup.enter="(paging.current = 1) && getMaterialList()"
|
|
@keyup.enter="(paging.current = 1) && getMaterialList()"
|
|
|
placeholder="搜索素材"
|
|
placeholder="搜索素材"
|
|
|
- >
|
|
|
|
|
- <i @click="(paging.current = 1) && getMaterialList()" class="iconfont iconbs_search"></i>
|
|
|
|
|
|
|
+ />
|
|
|
|
|
+ <i
|
|
|
|
|
+ @click="(paging.current = 1) && getMaterialList()"
|
|
|
|
|
+ class="iconfont iconbs_search"
|
|
|
|
|
+ ></i>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="btn">
|
|
<div class="btn">
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <button @mouseover.stop="showList=true" @click="$refs.uploadFile.click();" class="ui-button ui-button-rect submit"><span>上传素材</span><i class="iconfont iconbs_upload"></i>
|
|
|
|
|
- <upload ref="uploadFile"
|
|
|
|
|
- :failString="'格式错误,请上传10MB以内、jpg/png格式的图片'"
|
|
|
|
|
- :limitFailStr="'过大,请上传10MB以内、jpg/png格式的图片'"
|
|
|
|
|
- accept-type="image/png,image/jpeg" media-type="image" :limit="10" @file-change="onFileChange"></upload>
|
|
|
|
|
- <div @click.stop class="upload-list" v-if="showList">
|
|
|
|
|
- <div class="top">
|
|
|
|
|
- <span>上传列表({{uploadList.length}})</span>
|
|
|
|
|
- <i class="iconfont icon_close" @click="showList=false"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <ul v-if="uploadList.length>0">
|
|
|
|
|
- <li v-for="(item,i) in uploadList" :key="i">
|
|
|
|
|
- <span>{{item.name}}</span>
|
|
|
|
|
- <span class="success" :class="item.status.indexOf('失败')>-1?'error':''">{{item.status}}</span>
|
|
|
|
|
- <i @click="delUploadItem(i)" class="iconfont icon_close"></i>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- <div class="nouploaddata" v-else>
|
|
|
|
|
- 暂无正在上传的素材
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <button
|
|
|
|
|
+ @mouseover.stop="showList = true"
|
|
|
|
|
+ @click="$refs.uploadFile.click()"
|
|
|
|
|
+ class="ui-button ui-button-rect submit"
|
|
|
|
|
+ >
|
|
|
|
|
+ <span>上传素材</span><i class="iconfont iconbs_upload"></i>
|
|
|
|
|
+ <upload
|
|
|
|
|
+ ref="uploadFile"
|
|
|
|
|
+ :failString="'格式错误,请上传10MB以内、jpg/png格式的图片'"
|
|
|
|
|
+ :limitFailStr="'过大,请上传10MB以内、jpg/png格式的图片'"
|
|
|
|
|
+ accept-type="image/png,image/jpeg"
|
|
|
|
|
+ media-type="image"
|
|
|
|
|
+ :limit="10"
|
|
|
|
|
+ @file-change="onFileChange"
|
|
|
|
|
+ ></upload>
|
|
|
|
|
+ <template v-if="showList">
|
|
|
|
|
+ <UploadList
|
|
|
|
|
+ @close="
|
|
|
|
|
+ () => {
|
|
|
|
|
+ showList = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ "
|
|
|
|
|
+ :list="uploadList"
|
|
|
|
|
+ @del="delUploadItem"
|
|
|
|
|
+ />
|
|
|
|
|
+ </template>
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="list">
|
|
<div class="list">
|
|
|
- <tableList @selection-change="data=>{selectedArr=data}" :header='tabHeader' :showLine='true' :selection='false' :data='list' class="table-list" >
|
|
|
|
|
- <div slot-scope="{data}" slot="header">
|
|
|
|
|
- {{data.name}}
|
|
|
|
|
|
|
+ <tableList
|
|
|
|
|
+ @selection-change="
|
|
|
|
|
+ (data) => {
|
|
|
|
|
+ selectedArr = data;
|
|
|
|
|
+ }
|
|
|
|
|
+ "
|
|
|
|
|
+ :header="tabHeader"
|
|
|
|
|
+ :showLine="true"
|
|
|
|
|
+ :selection="false"
|
|
|
|
|
+ :data="list"
|
|
|
|
|
+ class="table-list"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div slot-scope="{ data }" slot="header">
|
|
|
|
|
+ {{ data.name }}
|
|
|
</div>
|
|
</div>
|
|
|
- <div slot-scope="{data,item,sub}" slot="item" style="width:100%">
|
|
|
|
|
|
|
+ <div slot-scope="{ data, item, sub }" slot="item" style="width: 100%">
|
|
|
<div class="handle" v-if="sub.canclick">
|
|
<div class="handle" v-if="sub.canclick">
|
|
|
<i
|
|
<i
|
|
|
class="iconfont iconbs_list_edit hover-tips"
|
|
class="iconfont iconbs_list_edit hover-tips"
|
|
@@ -61,26 +78,43 @@
|
|
|
</div>
|
|
</div>
|
|
|
</i>
|
|
</i>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="img" v-else-if="sub.type=='image'">
|
|
|
|
|
- <img :id="'img'+item.id" v-viewer :src="data+`?${Math.random()}`" alt="">
|
|
|
|
|
|
|
+ <div class="img" v-else-if="sub.type == 'image'">
|
|
|
|
|
+ <img
|
|
|
|
|
+ :id="'img' + item.id"
|
|
|
|
|
+ v-viewer
|
|
|
|
|
+ :src="data + `?${Math.random()}`"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
- <span v-else @click="sub.fontweight&&(viewImg('img'+item.id))" :style="{fontWeight:sub.fontweight,color:'#202020'}">{{data||'-'}}</span>
|
|
|
|
|
|
|
+ <span
|
|
|
|
|
+ v-else
|
|
|
|
|
+ @click="sub.fontweight && viewImg('img' + item.id)"
|
|
|
|
|
+ :style="{ fontWeight: sub.fontweight, color: '#202020' }"
|
|
|
|
|
+ >{{ data || "-" }}</span
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</tableList>
|
|
</tableList>
|
|
|
<div class="nodata" v-if="list.length == 0">
|
|
<div class="nodata" v-if="list.length == 0">
|
|
|
- <img :src="$noresult" alt="">
|
|
|
|
|
- <span>{{isClickSearch?'未搜索到结果':'暂无素材,快去上传吧'}}</span>
|
|
|
|
|
|
|
+ <img :src="$noresult" alt="" />
|
|
|
|
|
+ <span>{{
|
|
|
|
|
+ isClickSearch ? "未搜索到结果" : "暂无素材,快去上传吧"
|
|
|
|
|
+ }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="paging">
|
|
<div class="paging">
|
|
|
<Paging
|
|
<Paging
|
|
|
- v-if="paging.total>0"
|
|
|
|
|
|
|
+ v-if="paging.total > 0"
|
|
|
:paging="paging"
|
|
:paging="paging"
|
|
|
@changeCurrent="changeCurrent"
|
|
@changeCurrent="changeCurrent"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <rename :item="popupItem" :show='showRename' @rename="handleRename" @close="showRename=false" />
|
|
|
|
|
|
|
+ <rename
|
|
|
|
|
+ :item="popupItem"
|
|
|
|
|
+ :show="showRename"
|
|
|
|
|
+ @rename="handleRename"
|
|
|
|
|
+ @close="showRename = false"
|
|
|
|
|
+ />
|
|
|
<preview
|
|
<preview
|
|
|
:item="popupItem"
|
|
:item="popupItem"
|
|
|
:show="showPreview"
|
|
:show="showPreview"
|
|
@@ -90,195 +124,218 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import tableList from '@/components/table'
|
|
|
|
|
-import crumbs from '@/components/crumbs'
|
|
|
|
|
-import {data} from './image'
|
|
|
|
|
-import rename from '../popup/rename'
|
|
|
|
|
-import Paging from '../components/paging'
|
|
|
|
|
|
|
+import tableList from "@/components/table";
|
|
|
|
|
+import crumbs from "@/components/crumbs";
|
|
|
|
|
+import { data } from "./image";
|
|
|
|
|
+import rename from "../popup/rename";
|
|
|
|
|
+import Paging from "../components/paging";
|
|
|
|
|
+import UploadList from "../components/uploadList";
|
|
|
|
|
+
|
|
|
import Upload from "@/components/shared/uploads/UploadMultiple";
|
|
import Upload from "@/components/shared/uploads/UploadMultiple";
|
|
|
-import { changeByteUnit } from '@/utils/file'
|
|
|
|
|
|
|
+import { changeByteUnit } from "@/utils/file";
|
|
|
import preview from "../popup/preview";
|
|
import preview from "../popup/preview";
|
|
|
|
|
|
|
|
import {
|
|
import {
|
|
|
getMaterialList,
|
|
getMaterialList,
|
|
|
uploadMaterial,
|
|
uploadMaterial,
|
|
|
editMaterial,
|
|
editMaterial,
|
|
|
- delMaterial
|
|
|
|
|
|
|
+ delMaterial,
|
|
|
} from "@/api";
|
|
} from "@/api";
|
|
|
|
|
|
|
|
|
|
+const TYPE = "image";
|
|
|
|
|
|
|
|
-const TYPE = 'image'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- components:{
|
|
|
|
|
|
|
+ components: {
|
|
|
tableList,
|
|
tableList,
|
|
|
crumbs,
|
|
crumbs,
|
|
|
rename,
|
|
rename,
|
|
|
Paging,
|
|
Paging,
|
|
|
Upload,
|
|
Upload,
|
|
|
- preview
|
|
|
|
|
|
|
+ preview,
|
|
|
|
|
+ UploadList,
|
|
|
},
|
|
},
|
|
|
- data(){
|
|
|
|
|
|
|
+ data() {
|
|
|
return {
|
|
return {
|
|
|
- showPreview:false,
|
|
|
|
|
- showRename:false,
|
|
|
|
|
- showList:false,
|
|
|
|
|
- isClickSearch:'',
|
|
|
|
|
- popupItem:'',
|
|
|
|
|
|
|
+ showPreview: false,
|
|
|
|
|
+ showRename: false,
|
|
|
|
|
+ showList: false,
|
|
|
|
|
+ isClickSearch: "",
|
|
|
|
|
+ popupItem: "",
|
|
|
tabHeader: data,
|
|
tabHeader: data,
|
|
|
selectedArr: [],
|
|
selectedArr: [],
|
|
|
- searchKey:'',
|
|
|
|
|
- tablist:[{
|
|
|
|
|
- name:'图片',
|
|
|
|
|
- id:TYPE
|
|
|
|
|
- }],
|
|
|
|
|
- list:[],
|
|
|
|
|
- uploadList:[],
|
|
|
|
|
|
|
+ searchKey: "",
|
|
|
|
|
+ tablist: [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "图片",
|
|
|
|
|
+ id: TYPE,
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
|
|
+ list: [],
|
|
|
|
|
+ uploadList: [],
|
|
|
paging: {
|
|
paging: {
|
|
|
pageSize: 12,
|
|
pageSize: 12,
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
total: 0,
|
|
total: 0,
|
|
|
showSize: 4,
|
|
showSize: 4,
|
|
|
- current: 1
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ current: 1,
|
|
|
|
|
+ },
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.getMaterialList();
|
|
this.getMaterialList();
|
|
|
},
|
|
},
|
|
|
- watch:{
|
|
|
|
|
- 'paging.pageNum':function () {
|
|
|
|
|
- this.getMaterialList()
|
|
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ "paging.pageNum": function () {
|
|
|
|
|
+ this.getMaterialList();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- methods:{
|
|
|
|
|
- viewImg(id){
|
|
|
|
|
- const viewer = this.$el.querySelector('#'+id).$viewer
|
|
|
|
|
- viewer.show()
|
|
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ viewImg(id) {
|
|
|
|
|
+ const viewer = this.$el.querySelector("#" + id).$viewer;
|
|
|
|
|
+ viewer.show();
|
|
|
},
|
|
},
|
|
|
- handleRename(data){
|
|
|
|
|
- editMaterial({
|
|
|
|
|
- id:this.popupItem.id,
|
|
|
|
|
- name:data
|
|
|
|
|
- },()=>{
|
|
|
|
|
- this.$tips({ content: "修改成功",icon:'ok'});
|
|
|
|
|
- this.showRename = false
|
|
|
|
|
- this.popupItem = ''
|
|
|
|
|
|
|
+ handleRename(data) {
|
|
|
|
|
+ editMaterial(
|
|
|
|
|
+ {
|
|
|
|
|
+ id: this.popupItem.id,
|
|
|
|
|
+ name: data,
|
|
|
|
|
+ },
|
|
|
|
|
+ () => {
|
|
|
|
|
+ this.$tips({ content: "修改成功", icon: "ok" });
|
|
|
|
|
+ this.showRename = false;
|
|
|
|
|
+ this.popupItem = "";
|
|
|
this.getMaterialList();
|
|
this.getMaterialList();
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
},
|
|
},
|
|
|
- delUploadItem(index){
|
|
|
|
|
- ~index && this.uploadList.splice(index, 1)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ delUploadItem(index) {
|
|
|
|
|
+ ~index && this.uploadList.splice(index, 1);
|
|
|
},
|
|
},
|
|
|
- del(item){
|
|
|
|
|
|
|
+ del(item) {
|
|
|
this.$confirm({
|
|
this.$confirm({
|
|
|
- content: "是否删除?",
|
|
|
|
|
- ok: () => {
|
|
|
|
|
- delMaterial(item.id,()=>{
|
|
|
|
|
- this.$tips({ content: "删除成功",icon:'ok' });
|
|
|
|
|
- this.getMaterialList();
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ content: "是否删除?",
|
|
|
|
|
+ ok: () => {
|
|
|
|
|
+ delMaterial(item.id, () => {
|
|
|
|
|
+ this.$tips({ content: "删除成功", icon: "ok" });
|
|
|
|
|
+ this.getMaterialList();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
onFileChange(file) {
|
|
onFileChange(file) {
|
|
|
- let canUploadList = []
|
|
|
|
|
|
|
+ let canUploadList = [];
|
|
|
for (let i = 0; i < file.files.length; i++) {
|
|
for (let i = 0; i < file.files.length; i++) {
|
|
|
let item = file.files[i];
|
|
let item = file.files[i];
|
|
|
let tmp = {
|
|
let tmp = {
|
|
|
- status:'上传中',
|
|
|
|
|
- name:item.name
|
|
|
|
|
- }
|
|
|
|
|
- if (item.type.indexOf("jpeg") <= -1&&item.type.indexOf('png')<=-1) {
|
|
|
|
|
|
|
+ statusStr: "上传中",
|
|
|
|
|
+ status: 4,
|
|
|
|
|
+ uid: `u_${this.$randomWord(true, 8, 8)}`,
|
|
|
|
|
+ name: item.name,
|
|
|
|
|
+ };
|
|
|
|
|
+ if (item.type.indexOf("jpeg") <= -1 && item.type.indexOf("png") <= -1) {
|
|
|
return this.$alert({
|
|
return this.$alert({
|
|
|
- content: `“${item.name}”格式错误,请上传10MB以内、jpg/png格式的图片`
|
|
|
|
|
|
|
+ content: `“${item.name}”格式错误,请上传10MB以内、jpg/png格式的图片`,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- let tname= item.name.substring(0, item.name.lastIndexOf("."));
|
|
|
|
|
- if (tname.length > 50) {
|
|
|
|
|
|
|
+ let tname = item.name.substring(0, item.name.lastIndexOf("."));
|
|
|
|
|
+ if (tname.length > 50) {
|
|
|
return this.$alert({
|
|
return this.$alert({
|
|
|
- content: `“${item.name}”名称过长,请上传标题在50字以内的图片`
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ content: `“${item.name}”名称过长,请上传标题在50字以内的图片`,
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
- this.uploadList.push(tmp)
|
|
|
|
|
- canUploadList.push(item)
|
|
|
|
|
|
|
+ this.uploadList.push(tmp);
|
|
|
|
|
+ canUploadList.push({
|
|
|
|
|
+ file: item,
|
|
|
|
|
+ list: { ...tmp },
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ let p = [];
|
|
|
|
|
+ canUploadList.forEach((i) => {
|
|
|
|
|
+ let promise = new Promise((resolve) => {
|
|
|
|
|
+ resolve(i);
|
|
|
|
|
+ });
|
|
|
|
|
+ p.push(promise);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
- let p = []
|
|
|
|
|
- canUploadList.forEach(i => {
|
|
|
|
|
- let promise = new Promise((resolve)=>{
|
|
|
|
|
- resolve({file:i})
|
|
|
|
|
- })
|
|
|
|
|
- p.push(promise)
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
- Promise.all(p).then(result=>{
|
|
|
|
|
- let pp = []
|
|
|
|
|
- p.length>0&&result.forEach((data,i) => {
|
|
|
|
|
- let params = {}
|
|
|
|
|
- params['file'] = data.file
|
|
|
|
|
- if (data.file.name.length>50) {
|
|
|
|
|
- this.uploadList[i].status = '上传失败'
|
|
|
|
|
- }
|
|
|
|
|
- let promise = new Promise((resolve, reject) => {
|
|
|
|
|
- uploadMaterial(params, TYPE, response => {
|
|
|
|
|
|
|
+ Promise.all(p).then((result) => {
|
|
|
|
|
+ let pp = [];
|
|
|
|
|
+ p.length > 0 &&
|
|
|
|
|
+ result.forEach((data) => {
|
|
|
|
|
+ let params = {};
|
|
|
|
|
+ params["file"] = data.file;
|
|
|
|
|
+ let promise = new Promise((resolve, reject) => {
|
|
|
|
|
+ uploadMaterial(
|
|
|
|
|
+ params,
|
|
|
|
|
+ {
|
|
|
|
|
+ type: TYPE,
|
|
|
|
|
+ uid: data.list.uid,
|
|
|
|
|
+ },
|
|
|
|
|
+ (response) => {
|
|
|
resolve(response);
|
|
resolve(response);
|
|
|
- },(err)=>{
|
|
|
|
|
- reject(err)
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
- pp.push(promise)
|
|
|
|
|
- });
|
|
|
|
|
- pp.length>0&& Promise.all(pp).then(response=>{
|
|
|
|
|
- if (response.length > 0) {
|
|
|
|
|
- response.forEach((item,i)=>{
|
|
|
|
|
- if (item.code!=0) {
|
|
|
|
|
- this.uploadList[i].status = '上传失败'
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ (err) => {
|
|
|
|
|
+ reject(err);
|
|
|
}
|
|
}
|
|
|
- else {
|
|
|
|
|
- this.uploadList.splice(i,1)
|
|
|
|
|
|
|
+ );
|
|
|
|
|
+ });
|
|
|
|
|
+ pp.push(promise);
|
|
|
|
|
+ });
|
|
|
|
|
+ pp.length > 0 &&
|
|
|
|
|
+ Promise.all(pp).then((response) => {
|
|
|
|
|
+ if (response.length > 0) {
|
|
|
|
|
+ this.uploadList.forEach(item=>{
|
|
|
|
|
+ item.status = 5
|
|
|
|
|
+ })
|
|
|
|
|
+ response.forEach((item) => {
|
|
|
|
|
+ let idx = this.uploadList.findIndex(
|
|
|
|
|
+ (sub) => sub.uid == item.data.tempId
|
|
|
|
|
+ );
|
|
|
|
|
+ if (item.code == 0) {
|
|
|
|
|
+ if (idx > -1) {
|
|
|
|
|
+ this.uploadList.splice(idx,1)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- this.getMaterialList();
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ this.getMaterialList();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
- changeCurrent(data){
|
|
|
|
|
- this.paging.pageNum = data
|
|
|
|
|
|
|
+ changeCurrent(data) {
|
|
|
|
|
+ this.paging.pageNum = data;
|
|
|
},
|
|
},
|
|
|
getMaterialList() {
|
|
getMaterialList() {
|
|
|
- this.isClickSearch = !!this.searchKey
|
|
|
|
|
|
|
+ this.isClickSearch = !!this.searchKey;
|
|
|
getMaterialList(
|
|
getMaterialList(
|
|
|
{
|
|
{
|
|
|
pageNum: this.paging.pageNum,
|
|
pageNum: this.paging.pageNum,
|
|
|
pageSize: this.paging.pageSize,
|
|
pageSize: this.paging.pageSize,
|
|
|
searchKey: this.searchKey,
|
|
searchKey: this.searchKey,
|
|
|
- type:TYPE
|
|
|
|
|
|
|
+ type: TYPE,
|
|
|
},
|
|
},
|
|
|
(data) => {
|
|
(data) => {
|
|
|
-
|
|
|
|
|
- this.list = data.data.list.map(i=>{
|
|
|
|
|
- i.fileSize = changeByteUnit(Number(i.fileSize))
|
|
|
|
|
- return i
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.list = data.data.list.map((i) => {
|
|
|
|
|
+ i.fileSize = changeByteUnit(Number(i.fileSize));
|
|
|
|
|
+ return i;
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
this.paging.pageNum = data.data.pageNum;
|
|
this.paging.pageNum = data.data.pageNum;
|
|
|
this.paging.pageSize = data.data.pageSize;
|
|
this.paging.pageSize = data.data.pageSize;
|
|
|
this.paging.total = data.data.total;
|
|
this.paging.total = data.data.total;
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
-.panorama{
|
|
|
|
|
-
|
|
|
|
|
|
|
+.panorama {
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
-@import '../style.less';
|
|
|
|
|
|
|
+@import "../style.less";
|
|
|
</style>
|
|
</style>
|