diff --git a/vue/src/views/biz/picture.vue b/vue/src/views/biz/picture.vue
index 1dcac7c..4a2e813 100644
--- a/vue/src/views/biz/picture.vue
+++ b/vue/src/views/biz/picture.vue
@@ -2,7 +2,7 @@
-
上传图片
@@ -15,7 +15,7 @@
-
+
@@ -29,6 +29,7 @@
+
@@ -74,6 +75,8 @@
desc: '结束时间'
}]
+ srcList = [];
+
example = {
page: 1,
size: 20
@@ -95,9 +98,13 @@
if (page != null) {
this.example.page = page
}
- this.$get(that.url, that.example).then(function(response) {
- if (response) {
- that.result = response
+ this.$get(that.url, that.example).then(rsp => {
+ that.srcList = [];
+ if (rsp) {
+ that.result = rsp
+ rsp.rows.forEach(item => {
+ that.srcList.push(that.$store.state.conf.host + '/' + item.path);
+ })
} else {
that.result = {
rows: [],
@@ -173,6 +180,7 @@
if (response.success == false) {
that.$showMessage('error', response.message, true);
} else {
+ that.query();
that.$showMessage('success', response.message, true)
}
this.$refs.upload.clearFiles();
@@ -190,12 +198,17 @@
}
}
if (file) {
+ const that = this;
this.$confirm('是否要上传剪切板中复制的图片?', '提示', {
confirmButtonText: '是的',
cancelButtonText: '不用',
type: 'warning'
}).then(() => {
- this.$upload(file, this.url);
+ this.$upload(file, this.url).then(rsp => {
+ if(rsp){
+ that.query();
+ }
+ });
}).catch(() => {})
}
}
@@ -234,4 +247,9 @@
.image-list {
overflow-y: auto;
}
+
+ .image {
+ height: 120px;
+ width: 200px;
+ }