-
+
+
+ width="35%"
+ >
@@ -36,22 +37,26 @@
title="图片素材库"
append-to-body
:visible.sync="listDialogVisible"
- width="70%">
+ width="70%"
+ >
+ @click="materialgroupAdd()"
+ >
添加分组
-
-
- {{item.name}}
+
+
+ {{ item.name }}
@@ -60,7 +65,7 @@
- {{materialgroupObj.name}}
+ {{ materialgroupObj.name }}
重命名
删除
@@ -73,7 +78,8 @@
:file-list="[]"
:on-progress="handleProgress"
:before-upload="beforeUpload"
- :on-success="handleSuccess">
+ :on-success="handleSuccess"
+ >
点击上传
@@ -86,42 +92,43 @@
type="info"
:closable="false"
center
- show-icon>
-
+ show-icon
+ />
-
-
-
-
-
- 选择
-
-
-
- 删除
-
-
+
+
+
+
+
+ 选择
+
+
+
+ 删除
+
+
-
-
-
+
+
+
+ class="pagination"
+ @size-change="sizeChange"
+ @current-change="pageChange"
+ />
@@ -136,318 +143,318 @@
-->
diff --git a/src/utils/index.js b/src/utils/index.js
index f224280..54664f0 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -95,7 +95,7 @@ export function formatTimeTwo(time) {
time = time * 1000
const d = new Date(time)
return (
- d.getFullYear()+'年'+
+ d.getFullYear() + '年' +
(d.getMonth() + 1) +
'月' +
d.getDate() +
@@ -105,10 +105,8 @@ export function formatTimeTwo(time) {
d.getMinutes() +
'分'
)
-
}
-
/**
* @param {string} url
* @returns {Object}
diff --git a/src/views/activity/bargain/form.vue b/src/views/activity/bargain/form.vue
index 1ea9cfc..d192ac1 100644
--- a/src/views/activity/bargain/form.vue
+++ b/src/views/activity/bargain/form.vue
@@ -30,10 +30,10 @@
-
+
-
+
@@ -98,13 +98,11 @@
-
-
diff --git a/src/views/shop/cate/index.vue b/src/views/shop/cate/index.vue
index 8cef3f6..2091edf 100644
--- a/src/views/shop/cate/index.vue
+++ b/src/views/shop/cate/index.vue
@@ -16,7 +16,7 @@
-
+
@@ -98,16 +98,16 @@ export default {
]
}
},
- watch:{
+ watch: {
picArr: function(val) {
- this.form.pic = val.join(",");
+ this.form.pic = val.join(',')
}
},
methods: {
// 新增与编辑前做的操作
[CRUD.HOOK.afterToCU](crud, form) {
console.log(form)
- if(form.pic){
+ if (form.pic) {
this.picArr = form.pic.split(',')
}
diff --git a/src/views/shop/goods/form.vue b/src/views/shop/goods/form.vue
index acf9bc3..9988df9 100644
--- a/src/views/shop/goods/form.vue
+++ b/src/views/shop/goods/form.vue
@@ -17,10 +17,10 @@
-
+
-
+
@@ -151,15 +151,15 @@ export default {
}
}
},
- watch:{
+ watch: {
'form.imageArr': function(val) {
- if(val){
- this.form.image = val.join(",");
+ if (val) {
+ this.form.image = val.join(',')
}
},
'form.sliderImageArr': function(val) {
- if(val){
- this.form.sliderImage = val.join(",");
+ if (val) {
+ this.form.sliderImage = val.join(',')
}
}
},
diff --git a/src/views/shop/order/detail.vue b/src/views/shop/order/detail.vue
index fe85ecc..0ec0ad1 100644
--- a/src/views/shop/order/detail.vue
+++ b/src/views/shop/order/detail.vue
@@ -115,7 +115,7 @@ export default {
rules: {
unique: [
{ required: true, message: 'please enter', trigger: 'blur' }
- ],
+ ]
}
}
},
diff --git a/src/views/shop/order/edit.vue b/src/views/shop/order/edit.vue
index b95882d..2cec088 100644
--- a/src/views/shop/order/edit.vue
+++ b/src/views/shop/order/edit.vue
@@ -1,14 +1,14 @@
-
+
-
+
-
-
+
+