wl-design-mobile 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -62,8 +62,9 @@ export default {
|
|
|
62
62
|
|
|
63
63
|
let formData = new FormData();
|
|
64
64
|
formData.append('file', file);
|
|
65
|
+
console.log("lambo-file-upload-collapse afterRead 上传路径:", fileUploadUrl)
|
|
65
66
|
axios.post(fileUploadUrl, formData, {}).then(res => {
|
|
66
|
-
console.log("
|
|
67
|
+
console.log("lambo-file-upload-collapse afterRead 上传结果:", res)
|
|
67
68
|
if (res && res.code == "1") {
|
|
68
69
|
let fileData = res.data;
|
|
69
70
|
if (fileData && fileData.length > 0) {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import LamboCollapse from "../../collapse/lambo-collapse.vue";
|
|
16
16
|
import LamboIconBtn from "../../btn/lambo-icon-btn.vue";
|
|
17
17
|
import {axios} from "../../util/axios";
|
|
18
|
-
import {fileUploadUrl} from "../../api/doc";
|
|
18
|
+
import {fileGetUrl, fileUploadUrl} from "../../api/doc";
|
|
19
19
|
import {Toast} from "vant";
|
|
20
20
|
import LamboImgGrid from "../../doc/img/comonents/lambo-img-grid.vue";
|
|
21
21
|
|
|
@@ -63,17 +63,18 @@ export default {
|
|
|
63
63
|
|
|
64
64
|
let formData = new FormData();
|
|
65
65
|
formData.append('file', file);
|
|
66
|
+
console.log("lambo-img-upload-collapse afterRead 上传路径:", fileUploadUrl)
|
|
66
67
|
axios.post(fileUploadUrl, formData, {}).then(res => {
|
|
67
|
-
console.log("
|
|
68
|
+
console.log("lambo-img-upload-collapse afterRead 上传结果:", res)
|
|
68
69
|
if (res && res.code == "1") {
|
|
69
70
|
let fileData = res.data;
|
|
70
71
|
if (fileData && fileData.length > 0) {
|
|
71
72
|
let resFile = fileData[0]
|
|
72
|
-
if (resFile && resFile.fileId
|
|
73
|
+
if (resFile && resFile.fileId) {
|
|
73
74
|
let item = {
|
|
74
75
|
fileId: resFile.fileId,
|
|
75
76
|
fileName: resFile.fileName || file.name,
|
|
76
|
-
src: resFile.
|
|
77
|
+
src: fileGetUrl + resFile.fileId
|
|
77
78
|
}
|
|
78
79
|
this.data.push(item)
|
|
79
80
|
Toast.success(file.name + '上传成功');
|
|
@@ -3,14 +3,8 @@
|
|
|
3
3
|
<div class="table-head">
|
|
4
4
|
<div class="table-cell" :style="{'--width': item.width + 'px' || 'auto'}" v-for="(item,index) in columns" :key="index" >{{ item.title }}</div>
|
|
5
5
|
</div>
|
|
6
|
-
<van-list
|
|
7
|
-
|
|
8
|
-
v-model="loading"
|
|
9
|
-
:finished="finished"
|
|
10
|
-
finished-text="没有更多了"
|
|
11
|
-
@load="onLoad"
|
|
12
|
-
offset="10"
|
|
13
|
-
>
|
|
6
|
+
<van-list ref="vanList1" v-model="loading"
|
|
7
|
+
:finished="finished" finished-text="没有更多了" @load="onLoad" offset="10">
|
|
14
8
|
<div class="table-row" v-for="(item,index) in list" :key="index">
|
|
15
9
|
<template v-for="column in columns">
|
|
16
10
|
<div v-if="column.type === 'index'" v-bind:key="column.key" class="table-cell table-cell-list" :style="{'--width': column.width + 'px' || 'auto'}">{{index + 1}}</div>
|