Browse Source

Merge branch 'dev' into 'test'

Dev

See merge request quanshu/mp-ui-pc!161
hunagwb 3 years ago
parent
commit
e0f95f13fc

+ 1 - 1
src/components/DragImageUpload/index.vue

@@ -259,7 +259,7 @@ export default {
       if (this.fileSize) {
       if (this.fileSize) {
         const isLt = file.size / 1024 / 1024 < this.fileSize;
         const isLt = file.size / 1024 / 1024 < this.fileSize;
         if (!isLt) {
         if (!isLt) {
-          this.$message.error(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
+          this.$message.error(`上传图片大小不能超过 ${this.fileSize} MB!`);
           return false;
           return false;
         }
         }
       }
       }

+ 1 - 1
src/components/ImageUpload/index.vue

@@ -238,7 +238,7 @@
         if (this.fileSize) {
         if (this.fileSize) {
           const isLt = file.size / 1024 / 1024 < this.fileSize;
           const isLt = file.size / 1024 / 1024 < this.fileSize;
           if (!isLt) {
           if (!isLt) {
-            this.$message.error(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
+            this.$message.error(`上传图片大小不能超过 ${this.fileSize} MB!`);
             return false;
             return false;
           }
           }
         }
         }

+ 1 - 3
src/views/business/channel/childs.vue

@@ -351,14 +351,12 @@ export default {
 
 
     /** 搜索按钮操作 */
     /** 搜索按钮操作 */
     handleQuery() {
     handleQuery() {
-      this.queryParams.pageNum = 1;
+      this.pageParams.pageNum = 1;
       this.getList();
       this.getList();
     },
     },
     /** 重置按钮操作 */
     /** 重置按钮操作 */
     resetQuery() {
     resetQuery() {
       this.queryParams= {
       this.queryParams= {
-        pageNum: 1,
-        pageSize: 10,
          name: "",
          name: "",
          mobile: "",
          mobile: "",
          provinceId:"",
          provinceId:"",

+ 6 - 7
src/views/business/channel/index.vue

@@ -288,15 +288,16 @@ export default {
   },
   },
   watch: {
   watch: {
     // 根据渠道名称筛选渠道树
     // 根据渠道名称筛选渠道树
-    channelName(val) {
-      this.$refs.tree.filter(val);
-    }
+    //channelName(val) {
+      // this.$refs.tree.filter(val);
+    //}
   },
   },
   mounted() {
   mounted() {
      this.getProvinceList()
      this.getProvinceList()
+
   },
   },
   created() {
   created() {
-    this.getList();
+     this.getList();
   },
   },
   methods: {
   methods: {
     /** 查询用户列表 */
     /** 查询用户列表 */
@@ -395,14 +396,12 @@ export default {
 
 
     /** 搜索按钮操作 */
     /** 搜索按钮操作 */
     handleQuery() {
     handleQuery() {
-      this.queryParams.pageNum = 1;
+      this.pageParams.pageNum = 1;
       this.getList();
       this.getList();
     },
     },
     /** 重置按钮操作 */
     /** 重置按钮操作 */
     resetQuery() {
     resetQuery() {
       this.queryParams= {
       this.queryParams= {
-        pageNum: 1,
-        pageSize: 10,
          name: "",
          name: "",
          mobile: "",
          mobile: "",
          provinceId:"",
          provinceId:"",

+ 2 - 2
src/views/business/goods/add.vue

@@ -10,9 +10,9 @@
         </el-col>
         </el-col>
         <el-col :span="23">
         <el-col :span="23">
           <el-form-item label="商品主图:" prop="picUrl">
           <el-form-item label="商品主图:" prop="picUrl">
-            <Upload v-model="mainPicUrl" :limit="10" />
+            <Upload v-model="mainPicUrl" :file-size="0.12" :limit="10" />
             <br>
             <br>
-            <div class="tip">第一张图片将作为商品列表图片,最多上传10张,多张图片之间可随意调整位置,支持jpg、png格式上传,建议使用尺寸800x800像素以上、大小不超过1M的正方形图片;</div>
+            <div class="tip">第一张图片将作为商品列表图片,最多上传10张,多张图片之间可随意调整位置,支持jpg、png格式,推荐750*750px,大小不超过120k;</div>
           </el-form-item>
           </el-form-item>
         </el-col>
         </el-col>
       </el-row>
       </el-row>

+ 1 - 1
src/views/business/salesite/index.vue

@@ -377,7 +377,7 @@ export default {
     /** 搜索按钮操作 */
     /** 搜索按钮操作 */
     handleQuery() {
     handleQuery() {
       this.channelList = this.channelCopyList;
       this.channelList = this.channelCopyList;
-      this.queryParams.pageNum = 1;
+      this.pageParams.pageNum = 1;
       this.getList();
       this.getList();
     },
     },
     /** 重置按钮操作 */
     /** 重置按钮操作 */

+ 2 - 2
src/views/business/ticket/create.vue

@@ -23,13 +23,13 @@
             <image-upload
             <image-upload
               :limit="1"
               :limit="1"
               :value="form.picUrl"
               :value="form.picUrl"
-              :file-size="50"
+              :file-size="0.12"
               :is-public="true"
               :is-public="true"
               @input="pictureSelect"
               @input="pictureSelect"
             />
             />
           </el-form-item>
           </el-form-item>
           <div class="tip">
           <div class="tip">
-            上传1张图片,支持jpg、png格式上传,建议使用尺寸800x800像素以上、大小不超过1M的正方形图片
+            上传1张图片,支持jpg、png格式上传,大小不超过120k
           </div>
           </div>
           <el-form-item label="面值" prop="facePrice">
           <el-form-item label="面值" prop="facePrice">
             <el-input
             <el-input