diff --git a/buyer/src/pages/Merchant.vue b/buyer/src/pages/Merchant.vue index 14db72cc..cdf934a9 100644 --- a/buyer/src/pages/Merchant.vue +++ b/buyer/src/pages/Merchant.vue @@ -20,7 +20,7 @@
+ :on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
-
直播间背景图,图片规则:建议像素1080*1920,大小不超过2M
+
直播间背景图,图片规则:建议像素1080*1920,大小不超过1M
@@ -79,7 +79,7 @@ + :on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
@@ -191,6 +191,13 @@ export default { this.imageVisible = true; this.imageSrc = src; }, + // 上传文件超过大小限制 + handleMaxSize(file) { + this.$Notice.warning({ + title: "文件大小过大", + desc: "所选文件大小过大, 不得超过 1M.", + }); + }, /** * 获取直播间详情 */ diff --git a/manager/src/views/sys/oss-manage/ossManage.vue b/manager/src/views/sys/oss-manage/ossManage.vue index 88fe7f52..ec7383fe 100644 --- a/manager/src/views/sys/oss-manage/ossManage.vue +++ b/manager/src/views/sys/oss-manage/ossManage.vue @@ -187,7 +187,7 @@ :headers="accessToken" :on-success="handleSuccess" :on-error="handleError" - :max-size="5120" + :max-size="1024" :on-exceeded-size="handleMaxSize" multiple type="drag" @@ -694,7 +694,7 @@ export default { handleMaxSize(file) { this.$Notice.warning({ title: "文件大小过大", - desc: "所选文件‘ " + file.name + " ’大小过大, 不得超过 5M.", + desc: "所选文件大小过大, 不得超过 1M.", }); }, // 上传成功回调 diff --git a/manager/src/views/sys/user-manage/userManage.vue b/manager/src/views/sys/user-manage/userManage.vue index 268beaea..e419b46a 100644 --- a/manager/src/views/sys/user-manage/userManage.vue +++ b/manager/src/views/sys/user-manage/userManage.vue @@ -3,7 +3,7 @@
- + - + - + - - - -
@@ -143,8 +136,6 @@ export default { username: "", departmentId: "", mobile: "", - type: "", - status: "", pageNumber: 1, pageSize: 10, sort: "createTime", @@ -158,7 +149,6 @@ export default { mobile: "", email: "", sex: "", - type: 0, roles: [], departmentId: "", departmentTitle: "" @@ -388,13 +378,6 @@ export default { getUserList() { // 多条件搜索用户列表 this.loading = true; - // 避免后台默认值 - if (!this.searchForm.type) { - this.searchForm.type = ""; - } - if (!this.searchForm.status) { - this.searchForm.status = ""; - } getUserListData(this.searchForm).then(res => { this.loading = false; if (res.success) { @@ -461,21 +444,21 @@ export default { if (valid) { if (this.modalType == 0) { // 添加用户 避免编辑后传入id - delete this.form.id; - delete this.form.status; - if (this.form.password == "" || this.form.password == undefined) { + const params = JSON.parse(JSON.stringify(this.form)) + delete params.id; + delete params.status; + if (params.password == "" || params.password == undefined) { this.errorPass = "密码不能为空"; return; } - if (this.form.password.length < 6) { + if (params.password.length < 6) { this.errorPass = "密码长度不得少于6位"; return; } //todo - this.form.password = this.md5(this.form.password) - + params.password = this.md5(params.password) this.submitLoading = true; - addUser(this.form).then(res => { + addUser(params).then(res => { this.submitLoading = false; if (res.success) { this.$Message.success("操作成功"); @@ -503,6 +486,15 @@ export default { this.modalType = 0; this.modalTitle = "添加用户"; this.$refs.form.resetFields(); + this.form = { // 表单 + username: "", + mobile: "", + email: "", + sex: "", + roles: [], + departmentId: "", + departmentTitle: "" + }, this.$refs.depTree.setData("", ""); this.userModalVisible = true; }, diff --git a/seller/src/views/change-password/change-password.vue b/seller/src/views/change-password/change-password.vue index 52f63c33..98c8799d 100644 --- a/seller/src/views/change-password/change-password.vue +++ b/seller/src/views/change-password/change-password.vue @@ -1,9 +1,7 @@
@@ -316,7 +316,7 @@ export default { handleMaxSize(file) { this.$Notice.warning({ title: "超过文件大小限制", - desc: "图片 " + file.name + " 不能超过2mb", + desc: "图片不能超过1mb", }); }, // 获取详情 diff --git a/seller/src/views/order/order/orderList.vue b/seller/src/views/order/order/orderList.vue index 870a7bb7..a3f1f32b 100644 --- a/seller/src/views/order/order/orderList.vue +++ b/seller/src/views/order/order/orderList.vue @@ -258,7 +258,7 @@ export default { const params = { // 搜索框初始化对象 pageNumber: 1, // 当前页数 - pageSize: 100, // 页面大小 + pageSize: 10000, // 页面大小 sort: "startDate", // 默认排序字段 order: "desc", // 默认排序方式 startDate: "", // 起始时间 @@ -284,7 +284,7 @@ export default { } return res.result } else { - this.$Message.warning('暂无待发货订单') + this.$Message.warning('导出订单失败,请重试') } }, diff --git a/seller/src/views/promotion/live/addLive.vue b/seller/src/views/promotion/live/addLive.vue index 220af7c8..1f9b78bc 100644 --- a/seller/src/views/promotion/live/addLive.vue +++ b/seller/src/views/promotion/live/addLive.vue @@ -67,12 +67,12 @@
+ :on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
-
直播间背景图,图片规则:建议像素1080*1920,大小不超过2M
+
直播间背景图,图片规则:建议像素1080*1920,大小不超过1M
@@ -88,7 +88,7 @@ + :on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
@@ -467,7 +467,7 @@ export default { handleMaxSize(file) { this.$Notice.warning({ title: "图片超过限制大小!", - desc: file.name + "图片超过规定限制大小,请重新上传", + desc: "图片超过规定限制大小,请重新上传", }); },