合并master
This commit is contained in:
		
						commit
						7a43087ae0
					
				@ -20,7 +20,7 @@
 | 
				
			|||||||
    <div  class="store-category">
 | 
					    <div  class="store-category">
 | 
				
			||||||
      <ul class="cate-list">
 | 
					      <ul class="cate-list">
 | 
				
			||||||
        <li class="cate-item" @click="searchByCate({id:'', labelName: '店铺推荐'})">首页</li>
 | 
					        <li class="cate-item" @click="searchByCate({id:'', labelName: '店铺推荐'})">首页</li>
 | 
				
			||||||
        <li class="cate-item" v-for="(cate, index) in cateList" :key="index" >
 | 
					        <li class="cate-item" v-for="(cate, index) in cateList" :key="index">
 | 
				
			||||||
          <Dropdown v-if="cate.children.length">
 | 
					          <Dropdown v-if="cate.children.length">
 | 
				
			||||||
            <div @click.self="searchByCate(cate)">{{cate.labelName}} <Icon type="ios-arrow-down"></Icon></div>
 | 
					            <div @click.self="searchByCate(cate)">{{cate.labelName}} <Icon type="ios-arrow-down"></Icon></div>
 | 
				
			||||||
            <DropdownMenu slot="list">
 | 
					            <DropdownMenu slot="list">
 | 
				
			||||||
 | 
				
			|||||||
@ -16,16 +16,9 @@ let commonUrl = (process.env.NODE_ENV === 'development' ? config.api_dev.common
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// 文件上传接口
 | 
					// 文件上传接口
 | 
				
			||||||
export const uploadFile = commonUrl+ "/common/upload/file";
 | 
					export const uploadFile = commonUrl+ "/common/upload/file";
 | 
				
			||||||
// 验证码渲染图片接口
 | 
					 | 
				
			||||||
export const drawCodeImage = commonUrl + "/common/captcha/draw/";
 | 
					 | 
				
			||||||
// 获取菜单
 | 
					 | 
				
			||||||
export const getMenuList = managerUrl + "/permission/getMenuList";
 | 
					 | 
				
			||||||
// Websocket
 | 
					// Websocket
 | 
				
			||||||
export const ws = managerUrl + "/ws";
 | 
					export const ws = managerUrl + "/ws";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const getMessageSendData = "";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
//获取所有city
 | 
					//获取所有city
 | 
				
			||||||
export const getAllCity = (params) => {
 | 
					export const getAllCity = (params) => {
 | 
				
			||||||
  return getRequest(commonUrl + '/common/region/allCity', params)
 | 
					  return getRequest(commonUrl + '/common/region/allCity', params)
 | 
				
			||||||
 | 
				
			|||||||
@ -27,7 +27,7 @@
 | 
				
			|||||||
        :on-error="handleError"
 | 
					        :on-error="handleError"
 | 
				
			||||||
        :format="['jpg','jpeg','png','gif','bmp']"
 | 
					        :format="['jpg','jpeg','png','gif','bmp']"
 | 
				
			||||||
        accept=".jpg, .jpeg, .png, .gif, .bmp"
 | 
					        accept=".jpg, .jpeg, .png, .gif, .bmp"
 | 
				
			||||||
        :max-size="maxSize*1024"
 | 
					        :max-size="1024"
 | 
				
			||||||
        :on-format-error="handleFormatError"
 | 
					        :on-format-error="handleFormatError"
 | 
				
			||||||
        :on-exceeded-size="handleMaxSize"
 | 
					        :on-exceeded-size="handleMaxSize"
 | 
				
			||||||
        :before-upload="beforeUpload"
 | 
					        :before-upload="beforeUpload"
 | 
				
			||||||
@ -74,10 +74,6 @@ export default {
 | 
				
			|||||||
      type: Boolean,
 | 
					      type: Boolean,
 | 
				
			||||||
      default: false
 | 
					      default: false
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    maxSize: {
 | 
					 | 
				
			||||||
      type: Number,
 | 
					 | 
				
			||||||
      default: 5
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    maxlength: Number,
 | 
					    maxlength: Number,
 | 
				
			||||||
    icon: {
 | 
					    icon: {
 | 
				
			||||||
      type: String,
 | 
					      type: String,
 | 
				
			||||||
@ -116,7 +112,7 @@ export default {
 | 
				
			|||||||
      this.loading = false;
 | 
					      this.loading = false;
 | 
				
			||||||
      this.$Notice.warning({
 | 
					      this.$Notice.warning({
 | 
				
			||||||
        title: "文件大小过大",
 | 
					        title: "文件大小过大",
 | 
				
			||||||
        desc: "所选文件‘ " + file.name + " ’大小过大, 不得超过 " + this.maxSize + "M."
 | 
					        desc: "所选文件大小过大, 不得超过1M."
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    // 上传前
 | 
					    // 上传前
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,7 @@
 | 
				
			|||||||
        :on-success="handleSuccess"
 | 
					        :on-success="handleSuccess"
 | 
				
			||||||
        :on-error="handleError"
 | 
					        :on-error="handleError"
 | 
				
			||||||
        :format="['jpg','jpeg','png','gif']"
 | 
					        :format="['jpg','jpeg','png','gif']"
 | 
				
			||||||
        :max-size="maxSize*1024"
 | 
					        :max-size="1024"
 | 
				
			||||||
        :on-format-error="handleFormatError"
 | 
					        :on-format-error="handleFormatError"
 | 
				
			||||||
        :on-exceeded-size="handleMaxSize"
 | 
					        :on-exceeded-size="handleMaxSize"
 | 
				
			||||||
        :before-upload="handleBeforeUpload"
 | 
					        :before-upload="handleBeforeUpload"
 | 
				
			||||||
@ -72,10 +72,6 @@ export default {
 | 
				
			|||||||
      type: Boolean,
 | 
					      type: Boolean,
 | 
				
			||||||
      default: true
 | 
					      default: true
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    maxSize: {
 | 
					 | 
				
			||||||
      type: Number,
 | 
					 | 
				
			||||||
      default: 5
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    limit: {
 | 
					    limit: {
 | 
				
			||||||
      type: Number,
 | 
					      type: Number,
 | 
				
			||||||
      default: 10
 | 
					      default: 10
 | 
				
			||||||
@ -147,11 +143,7 @@ export default {
 | 
				
			|||||||
      this.$Notice.warning({
 | 
					      this.$Notice.warning({
 | 
				
			||||||
        title: "文件大小过大",
 | 
					        title: "文件大小过大",
 | 
				
			||||||
        desc:
 | 
					        desc:
 | 
				
			||||||
          "所选文件‘ " +
 | 
					          "所选文件大小过大,不能超过1M."
 | 
				
			||||||
          file.name +
 | 
					 | 
				
			||||||
          " ’大小过大, 不得超过 " +
 | 
					 | 
				
			||||||
          this.maxSize +
 | 
					 | 
				
			||||||
          "M."
 | 
					 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    // 上传之前钩子
 | 
					    // 上传之前钩子
 | 
				
			||||||
 | 
				
			|||||||
@ -35,9 +35,9 @@
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
      </Form>
 | 
					      </Form>
 | 
				
			||||||
      <div>
 | 
					      <div>
 | 
				
			||||||
        <download-excel class="export-excel-wrapper" :data="data" :fields="fields" name="商品订单.xls">
 | 
					        <download-excel class="export-excel-wrapper" :data="data" :fields="fields" :fetch="exportOrder" name="商品订单.xls">
 | 
				
			||||||
          <Button type="info" class="export">
 | 
					          <Button type="info" class="export">
 | 
				
			||||||
            导出Excel
 | 
					            导出订单
 | 
				
			||||||
          </Button>
 | 
					          </Button>
 | 
				
			||||||
        </download-excel>
 | 
					        </download-excel>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
@ -269,6 +269,24 @@ export default {
 | 
				
			|||||||
        query: { sn: sn },
 | 
					        query: { sn: sn },
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    // 导出订单
 | 
				
			||||||
 | 
					    async exportOrder () {
 | 
				
			||||||
 | 
					      const params = JSON.parse(JSON.stringify(this.searchForm))
 | 
				
			||||||
 | 
					      params.pageNumber = 1;
 | 
				
			||||||
 | 
					      params.pageSize = 10000
 | 
				
			||||||
 | 
					      const result = await API_Order.getOrderList(params)
 | 
				
			||||||
 | 
					      if (result.success) {
 | 
				
			||||||
 | 
					        if (result.result.records.length === 0) {
 | 
				
			||||||
 | 
					          this.$Message.warning('暂无待发货订单')
 | 
				
			||||||
 | 
					          return []
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
 | 
					          return result.result.records
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      } else {
 | 
				
			||||||
 | 
					        this.$Message.warning('导出订单失败,请重试')
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  mounted() {
 | 
					  mounted() {
 | 
				
			||||||
    this.init();
 | 
					    this.init();
 | 
				
			||||||
 | 
				
			|||||||
@ -58,12 +58,12 @@
 | 
				
			|||||||
            </template>
 | 
					            </template>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <Upload v-if="liveForm.coverImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleCoverImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
 | 
					          <Upload v-if="liveForm.coverImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleCoverImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
 | 
				
			||||||
            :on-format-error="handleFormatError" :max-size="2048" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
 | 
					            :on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
 | 
				
			||||||
            <div style="width: 58px;height:58px;line-height: 58px;">
 | 
					            <div style="width: 58px;height:58px;line-height: 58px;">
 | 
				
			||||||
              <Icon type="ios-camera" size="20"></Icon>
 | 
					              <Icon type="ios-camera" size="20"></Icon>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
          </Upload>
 | 
					          </Upload>
 | 
				
			||||||
          <div class="tips"> 直播间背景图,图片规则:建议像素1080*1920,大小不超过2M</div>
 | 
					          <div class="tips"> 直播间背景图,图片规则:建议像素1080*1920,大小不超过1M</div>
 | 
				
			||||||
        </FormItem>
 | 
					        </FormItem>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- 直播间背景墙 -->
 | 
					        <!-- 直播间背景墙 -->
 | 
				
			||||||
@ -79,7 +79,7 @@
 | 
				
			|||||||
            </template>
 | 
					            </template>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <Upload v-if="liveForm.shareImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleShareImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
 | 
					          <Upload v-if="liveForm.shareImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleShareImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
 | 
				
			||||||
            :on-format-error="handleFormatError" :max-size="2048" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
 | 
					            :on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
 | 
				
			||||||
            <div style="width: 58px;height:58px;line-height: 58px;">
 | 
					            <div style="width: 58px;height:58px;line-height: 58px;">
 | 
				
			||||||
              <Icon type="ios-camera" size="20"></Icon>
 | 
					              <Icon type="ios-camera" size="20"></Icon>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
@ -191,6 +191,13 @@ export default {
 | 
				
			|||||||
      this.imageVisible = true;
 | 
					      this.imageVisible = true;
 | 
				
			||||||
      this.imageSrc = src;
 | 
					      this.imageSrc = src;
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    // 上传文件超过大小限制
 | 
				
			||||||
 | 
					    handleMaxSize(file) {
 | 
				
			||||||
 | 
					      this.$Notice.warning({
 | 
				
			||||||
 | 
					        title: "文件大小过大",
 | 
				
			||||||
 | 
					        desc: "所选文件大小过大, 不得超过 1M.",
 | 
				
			||||||
 | 
					      });
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 获取直播间详情
 | 
					     * 获取直播间详情
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
				
			|||||||
@ -187,7 +187,7 @@
 | 
				
			|||||||
        :headers="accessToken"
 | 
					        :headers="accessToken"
 | 
				
			||||||
        :on-success="handleSuccess"
 | 
					        :on-success="handleSuccess"
 | 
				
			||||||
        :on-error="handleError"
 | 
					        :on-error="handleError"
 | 
				
			||||||
        :max-size="5120"
 | 
					        :max-size="1024"
 | 
				
			||||||
        :on-exceeded-size="handleMaxSize"
 | 
					        :on-exceeded-size="handleMaxSize"
 | 
				
			||||||
        multiple
 | 
					        multiple
 | 
				
			||||||
        type="drag"
 | 
					        type="drag"
 | 
				
			||||||
@ -694,7 +694,7 @@ export default {
 | 
				
			|||||||
    handleMaxSize(file) {
 | 
					    handleMaxSize(file) {
 | 
				
			||||||
      this.$Notice.warning({
 | 
					      this.$Notice.warning({
 | 
				
			||||||
        title: "文件大小过大",
 | 
					        title: "文件大小过大",
 | 
				
			||||||
        desc: "所选文件‘ " + file.name + " ’大小过大, 不得超过 5M.",
 | 
					        desc: "所选文件大小过大, 不得超过 1M.",
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    // 上传成功回调
 | 
					    // 上传成功回调
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@
 | 
				
			|||||||
    <Card>
 | 
					    <Card>
 | 
				
			||||||
      <Row @keydown.enter.native="handleSearch">
 | 
					      <Row @keydown.enter.native="handleSearch">
 | 
				
			||||||
        <Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
 | 
					        <Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
 | 
				
			||||||
          <Form-item label="用户名" prop="username">
 | 
					          <Form-item label="用户名">
 | 
				
			||||||
            <Input
 | 
					            <Input
 | 
				
			||||||
              type="text"
 | 
					              type="text"
 | 
				
			||||||
              v-model="searchForm.username"
 | 
					              v-model="searchForm.username"
 | 
				
			||||||
@ -12,7 +12,7 @@
 | 
				
			|||||||
              style="width: 200px"
 | 
					              style="width: 200px"
 | 
				
			||||||
            />
 | 
					            />
 | 
				
			||||||
          </Form-item>
 | 
					          </Form-item>
 | 
				
			||||||
          <Form-item label="联系方式" prop="mobile">
 | 
					          <Form-item label="联系方式">
 | 
				
			||||||
            <Input
 | 
					            <Input
 | 
				
			||||||
              type="text"
 | 
					              type="text"
 | 
				
			||||||
              v-model="searchForm.mobile"
 | 
					              v-model="searchForm.mobile"
 | 
				
			||||||
@ -22,16 +22,9 @@
 | 
				
			|||||||
            />
 | 
					            />
 | 
				
			||||||
          </Form-item>
 | 
					          </Form-item>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <Form-item label="部门" prop="department" >
 | 
					          <Form-item label="部门">
 | 
				
			||||||
            <department-choose @on-change="handleSelectDep" style="width: 150px;" ref="dep"></department-choose>
 | 
					            <department-choose @on-change="handleSelectDep" style="width: 150px;" ref="dep"></department-choose>
 | 
				
			||||||
          </Form-item>
 | 
					          </Form-item>
 | 
				
			||||||
 | 
					 | 
				
			||||||
          <Form-item label="用户状态" prop="status">
 | 
					 | 
				
			||||||
            <Select v-model="searchForm.status" placeholder="请选择" clearable style="width: 150px">
 | 
					 | 
				
			||||||
              <Option value="true">启用</Option>
 | 
					 | 
				
			||||||
              <Option value="false">禁用</Option>
 | 
					 | 
				
			||||||
            </Select>
 | 
					 | 
				
			||||||
          </Form-item>
 | 
					 | 
				
			||||||
          <Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
 | 
					          <Button @click="handleSearch" type="primary" icon="ios-search" class="search-btn">搜索</Button>
 | 
				
			||||||
        </Form>
 | 
					        </Form>
 | 
				
			||||||
      </Row>
 | 
					      </Row>
 | 
				
			||||||
@ -143,8 +136,6 @@ export default {
 | 
				
			|||||||
        username: "",
 | 
					        username: "",
 | 
				
			||||||
        departmentId: "",
 | 
					        departmentId: "",
 | 
				
			||||||
        mobile: "",
 | 
					        mobile: "",
 | 
				
			||||||
        type: "",
 | 
					 | 
				
			||||||
        status: "",
 | 
					 | 
				
			||||||
        pageNumber: 1,
 | 
					        pageNumber: 1,
 | 
				
			||||||
        pageSize: 10,
 | 
					        pageSize: 10,
 | 
				
			||||||
        sort: "createTime",
 | 
					        sort: "createTime",
 | 
				
			||||||
@ -158,7 +149,6 @@ export default {
 | 
				
			|||||||
        mobile: "",
 | 
					        mobile: "",
 | 
				
			||||||
        email: "",
 | 
					        email: "",
 | 
				
			||||||
        sex: "",
 | 
					        sex: "",
 | 
				
			||||||
        type: 0,
 | 
					 | 
				
			||||||
        roles: [],
 | 
					        roles: [],
 | 
				
			||||||
        departmentId: "",
 | 
					        departmentId: "",
 | 
				
			||||||
        departmentTitle: ""
 | 
					        departmentTitle: ""
 | 
				
			||||||
@ -388,13 +378,6 @@ export default {
 | 
				
			|||||||
    getUserList() {
 | 
					    getUserList() {
 | 
				
			||||||
      // 多条件搜索用户列表
 | 
					      // 多条件搜索用户列表
 | 
				
			||||||
      this.loading = true;
 | 
					      this.loading = true;
 | 
				
			||||||
      // 避免后台默认值
 | 
					 | 
				
			||||||
      if (!this.searchForm.type) {
 | 
					 | 
				
			||||||
        this.searchForm.type = "";
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
      if (!this.searchForm.status) {
 | 
					 | 
				
			||||||
        this.searchForm.status = "";
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
      getUserListData(this.searchForm).then(res => {
 | 
					      getUserListData(this.searchForm).then(res => {
 | 
				
			||||||
        this.loading = false;
 | 
					        this.loading = false;
 | 
				
			||||||
        if (res.success) {
 | 
					        if (res.success) {
 | 
				
			||||||
@ -461,21 +444,21 @@ export default {
 | 
				
			|||||||
        if (valid) {
 | 
					        if (valid) {
 | 
				
			||||||
          if (this.modalType == 0) {
 | 
					          if (this.modalType == 0) {
 | 
				
			||||||
            // 添加用户 避免编辑后传入id
 | 
					            // 添加用户 避免编辑后传入id
 | 
				
			||||||
            delete this.form.id;
 | 
					            const params = JSON.parse(JSON.stringify(this.form))
 | 
				
			||||||
            delete this.form.status;
 | 
					            delete params.id;
 | 
				
			||||||
            if (this.form.password == "" || this.form.password == undefined) {
 | 
					            delete params.status;
 | 
				
			||||||
 | 
					            if (params.password == "" || params.password == undefined) {
 | 
				
			||||||
              this.errorPass = "密码不能为空";
 | 
					              this.errorPass = "密码不能为空";
 | 
				
			||||||
              return;
 | 
					              return;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (this.form.password.length < 6) {
 | 
					            if (params.password.length < 6) {
 | 
				
			||||||
              this.errorPass = "密码长度不得少于6位";
 | 
					              this.errorPass = "密码长度不得少于6位";
 | 
				
			||||||
              return;
 | 
					              return;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            //todo
 | 
					            //todo
 | 
				
			||||||
            this.form.password = this.md5(this.form.password)
 | 
					            params.password = this.md5(params.password)
 | 
				
			||||||
 | 
					 | 
				
			||||||
            this.submitLoading = true;
 | 
					            this.submitLoading = true;
 | 
				
			||||||
            addUser(this.form).then(res => {
 | 
					            addUser(params).then(res => {
 | 
				
			||||||
              this.submitLoading = false;
 | 
					              this.submitLoading = false;
 | 
				
			||||||
              if (res.success) {
 | 
					              if (res.success) {
 | 
				
			||||||
                this.$Message.success("操作成功");
 | 
					                this.$Message.success("操作成功");
 | 
				
			||||||
@ -503,6 +486,15 @@ export default {
 | 
				
			|||||||
      this.modalType = 0;
 | 
					      this.modalType = 0;
 | 
				
			||||||
      this.modalTitle = "添加用户";
 | 
					      this.modalTitle = "添加用户";
 | 
				
			||||||
      this.$refs.form.resetFields();
 | 
					      this.$refs.form.resetFields();
 | 
				
			||||||
 | 
					      this.form = { // 表单
 | 
				
			||||||
 | 
					        username: "",
 | 
				
			||||||
 | 
					        mobile: "",
 | 
				
			||||||
 | 
					        email: "",
 | 
				
			||||||
 | 
					        sex: "",
 | 
				
			||||||
 | 
					        roles: [],
 | 
				
			||||||
 | 
					        departmentId: "",
 | 
				
			||||||
 | 
					        departmentTitle: ""
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      this.$refs.depTree.setData("", "");
 | 
					      this.$refs.depTree.setData("", "");
 | 
				
			||||||
      this.userModalVisible = true;
 | 
					      this.userModalVisible = true;
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +1,7 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div>
 | 
					  <div>
 | 
				
			||||||
    <Card class="change-pass">
 | 
					    <Card class="change-pass">
 | 
				
			||||||
      <p slot="title">
 | 
					      <p slot="title"><Icon type="key"></Icon>修改密码</p>
 | 
				
			||||||
        <Icon type="key"></Icon>修改密码
 | 
					 | 
				
			||||||
      </p>
 | 
					 | 
				
			||||||
      <div>
 | 
					      <div>
 | 
				
			||||||
        <Form
 | 
					        <Form
 | 
				
			||||||
          ref="editPasswordForm"
 | 
					          ref="editPasswordForm"
 | 
				
			||||||
 | 
				
			|||||||
@ -78,7 +78,7 @@
 | 
				
			|||||||
                </vuedraggable>
 | 
					                </vuedraggable>
 | 
				
			||||||
                <Upload ref="upload" :show-upload-list="false" 
 | 
					                <Upload ref="upload" :show-upload-list="false" 
 | 
				
			||||||
                  :on-success="handleSuccessGoodsPicture" :format="['jpg', 'jpeg', 'png']"
 | 
					                  :on-success="handleSuccessGoodsPicture" :format="['jpg', 'jpeg', 'png']"
 | 
				
			||||||
                  :on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize"
 | 
					                  :on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize" :max-size="1024"
 | 
				
			||||||
                  :before-upload="handleBeforeUploadGoodsPicture" multiple type="drag" :action="uploadFileUrl"
 | 
					                  :before-upload="handleBeforeUploadGoodsPicture" multiple type="drag" :action="uploadFileUrl"
 | 
				
			||||||
                  :headers="accessToken" style="margin-left:10px">
 | 
					                  :headers="accessToken" style="margin-left:10px">
 | 
				
			||||||
                  <div style="width: 148px; height: 148px; line-height: 148px">
 | 
					                  <div style="width: 148px; height: 148px; line-height: 148px">
 | 
				
			||||||
@ -183,7 +183,7 @@
 | 
				
			|||||||
                            </vuedraggable>
 | 
					                            </vuedraggable>
 | 
				
			||||||
                            <Upload ref="uploadSku" :show-upload-list="false"
 | 
					                            <Upload ref="uploadSku" :show-upload-list="false"
 | 
				
			||||||
                                :on-success="handleSuccess" :format="['jpg', 'jpeg', 'png']"
 | 
					                                :on-success="handleSuccess" :format="['jpg', 'jpeg', 'png']"
 | 
				
			||||||
                                :on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize"
 | 
					                                :on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize" :max-size="1024"
 | 
				
			||||||
                                :before-upload="handleBeforeUpload" multiple type="drag" :action="uploadFileUrl"
 | 
					                                :before-upload="handleBeforeUpload" multiple type="drag" :action="uploadFileUrl"
 | 
				
			||||||
                                :headers="accessToken" style="display: inline-block; width: 58px">
 | 
					                                :headers="accessToken" style="display: inline-block; width: 58px">
 | 
				
			||||||
                              <div>
 | 
					                              <div>
 | 
				
			||||||
@ -609,7 +609,7 @@ export default {
 | 
				
			|||||||
    handleMaxSize(file) {
 | 
					    handleMaxSize(file) {
 | 
				
			||||||
      this.$Notice.warning({
 | 
					      this.$Notice.warning({
 | 
				
			||||||
        title: "超过文件大小限制",
 | 
					        title: "超过文件大小限制",
 | 
				
			||||||
        desc: "图片 " + file.name + " 不能超过2mb"
 | 
					        desc: "图片大小不能超过1MB"
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    // 图片上传前钩子
 | 
					    // 图片上传前钩子
 | 
				
			||||||
 | 
				
			|||||||
@ -27,7 +27,7 @@
 | 
				
			|||||||
        :on-error="handleError"
 | 
					        :on-error="handleError"
 | 
				
			||||||
        :format="['jpg','jpeg','png','gif','bmp']"
 | 
					        :format="['jpg','jpeg','png','gif','bmp']"
 | 
				
			||||||
        accept=".jpg, .jpeg, .png, .gif, .bmp"
 | 
					        accept=".jpg, .jpeg, .png, .gif, .bmp"
 | 
				
			||||||
        :max-size="maxSize*1024"
 | 
					        :max-size="1024"
 | 
				
			||||||
        :on-format-error="handleFormatError"
 | 
					        :on-format-error="handleFormatError"
 | 
				
			||||||
        :on-exceeded-size="handleMaxSize"
 | 
					        :on-exceeded-size="handleMaxSize"
 | 
				
			||||||
        :before-upload="beforeUpload"
 | 
					        :before-upload="beforeUpload"
 | 
				
			||||||
@ -71,10 +71,6 @@ export default {
 | 
				
			|||||||
      type: Boolean,
 | 
					      type: Boolean,
 | 
				
			||||||
      default: false
 | 
					      default: false
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    maxSize: { // 图片最大尺寸
 | 
					 | 
				
			||||||
      type: Number,
 | 
					 | 
				
			||||||
      default: 5
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    maxlength: Number, // 最大长度
 | 
					    maxlength: Number, // 最大长度
 | 
				
			||||||
    icon: { // 上传按钮图标
 | 
					    icon: { // 上传按钮图标
 | 
				
			||||||
      type: String,
 | 
					      type: String,
 | 
				
			||||||
@ -113,7 +109,7 @@ export default {
 | 
				
			|||||||
      this.loading = false;
 | 
					      this.loading = false;
 | 
				
			||||||
      this.$Notice.warning({
 | 
					      this.$Notice.warning({
 | 
				
			||||||
        title: "文件大小过大",
 | 
					        title: "文件大小过大",
 | 
				
			||||||
        desc: "所选文件‘ " + file.name + " ’大小过大, 不得超过 " + this.maxSize + "M."
 | 
					        desc: "所选文件大小过大, 不得超过1M."
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    // 上传前
 | 
					    // 上传前
 | 
				
			||||||
 | 
				
			|||||||
@ -30,7 +30,7 @@
 | 
				
			|||||||
        :on-success="handleSuccess"
 | 
					        :on-success="handleSuccess"
 | 
				
			||||||
        :on-error="handleError"
 | 
					        :on-error="handleError"
 | 
				
			||||||
        :format="['jpg','jpeg','png','gif']"
 | 
					        :format="['jpg','jpeg','png','gif']"
 | 
				
			||||||
        :max-size="maxSize*1024"
 | 
					        :max-size="1024"
 | 
				
			||||||
        :on-format-error="handleFormatError"
 | 
					        :on-format-error="handleFormatError"
 | 
				
			||||||
        :on-exceeded-size="handleMaxSize"
 | 
					        :on-exceeded-size="handleMaxSize"
 | 
				
			||||||
        :before-upload="handleBeforeUpload"
 | 
					        :before-upload="handleBeforeUpload"
 | 
				
			||||||
@ -74,10 +74,6 @@ export default {
 | 
				
			|||||||
      type: Boolean,
 | 
					      type: Boolean,
 | 
				
			||||||
      default: true
 | 
					      default: true
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    maxSize: { // 大小限制 MB
 | 
					 | 
				
			||||||
      type: Number,
 | 
					 | 
				
			||||||
      default: 5
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    disable:{ // 禁止上传
 | 
					    disable:{ // 禁止上传
 | 
				
			||||||
      type: Boolean,
 | 
					      type: Boolean,
 | 
				
			||||||
      default: false
 | 
					      default: false
 | 
				
			||||||
@ -154,11 +150,7 @@ export default {
 | 
				
			|||||||
      this.$Notice.warning({
 | 
					      this.$Notice.warning({
 | 
				
			||||||
        title: "文件大小过大",
 | 
					        title: "文件大小过大",
 | 
				
			||||||
        desc:
 | 
					        desc:
 | 
				
			||||||
          "所选文件‘ " +
 | 
					          "所选文件大小过大, 不得超过1M."
 | 
				
			||||||
          file.name +
 | 
					 | 
				
			||||||
          " ’大小过大, 不得超过 " +
 | 
					 | 
				
			||||||
          this.maxSize +
 | 
					 | 
				
			||||||
          "M."
 | 
					 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    handleBeforeUpload() {
 | 
					    handleBeforeUpload() {
 | 
				
			||||||
 | 
				
			|||||||
@ -89,7 +89,7 @@
 | 
				
			|||||||
                  </template>
 | 
					                  </template>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <Upload ref="upload" :show-upload-list="false" :on-format-error="handleFormatError" :action="uploadFileUrl" :headers="accessToken" :on-success="handleSuccessGoodsPicture"
 | 
					                <Upload ref="upload" :show-upload-list="false" :on-format-error="handleFormatError" :action="uploadFileUrl" :headers="accessToken" :on-success="handleSuccessGoodsPicture"
 | 
				
			||||||
                  :format="['jpg','jpeg','png']" :max-size="2048" :on-exceeded-size="handleMaxSize" :before-upload="handleBeforeUpload" multiple type="drag"
 | 
					                  :format="['jpg','jpeg','png']" :max-size="1024" :on-exceeded-size="handleMaxSize" :before-upload="handleBeforeUpload" multiple type="drag"
 | 
				
			||||||
                  style="display: inline-block;width:58px;">
 | 
					                  style="display: inline-block;width:58px;">
 | 
				
			||||||
                  <div style="width: 58px;height:58px;line-height: 58px;">
 | 
					                  <div style="width: 58px;height:58px;line-height: 58px;">
 | 
				
			||||||
                    <Icon type="ios-camera" size="20"></Icon>
 | 
					                    <Icon type="ios-camera" size="20"></Icon>
 | 
				
			||||||
@ -316,7 +316,7 @@ export default {
 | 
				
			|||||||
    handleMaxSize(file) {
 | 
					    handleMaxSize(file) {
 | 
				
			||||||
      this.$Notice.warning({
 | 
					      this.$Notice.warning({
 | 
				
			||||||
        title: "超过文件大小限制",
 | 
					        title: "超过文件大小限制",
 | 
				
			||||||
        desc: "图片  " + file.name + " 不能超过2mb",
 | 
					        desc: "图片不能超过1mb",
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    // 获取详情
 | 
					    // 获取详情
 | 
				
			||||||
 | 
				
			|||||||
@ -258,7 +258,7 @@ export default {
 | 
				
			|||||||
      const params = {
 | 
					      const params = {
 | 
				
			||||||
        // 搜索框初始化对象
 | 
					        // 搜索框初始化对象
 | 
				
			||||||
        pageNumber: 1, // 当前页数
 | 
					        pageNumber: 1, // 当前页数
 | 
				
			||||||
        pageSize: 100, // 页面大小
 | 
					        pageSize: 10000, // 页面大小
 | 
				
			||||||
        sort: "startDate", // 默认排序字段
 | 
					        sort: "startDate", // 默认排序字段
 | 
				
			||||||
        order: "desc", // 默认排序方式
 | 
					        order: "desc", // 默认排序方式
 | 
				
			||||||
        startDate: "", // 起始时间
 | 
					        startDate: "", // 起始时间
 | 
				
			||||||
@ -284,7 +284,7 @@ export default {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        return res.result
 | 
					        return res.result
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        this.$Message.warning('暂无待发货订单')
 | 
					        this.$Message.warning('导出订单失败,请重试')
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      
 | 
					      
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
				
			|||||||
@ -67,12 +67,12 @@
 | 
				
			|||||||
            </template>
 | 
					            </template>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <Upload v-if="liveForm.coverImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleCoverImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
 | 
					          <Upload v-if="liveForm.coverImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleCoverImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
 | 
				
			||||||
            :on-format-error="handleFormatError" :max-size="2048" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
 | 
					            :on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
 | 
				
			||||||
            <div style="width: 58px;height:58px;line-height: 58px;">
 | 
					            <div style="width: 58px;height:58px;line-height: 58px;">
 | 
				
			||||||
              <Icon type="ios-camera" size="20"></Icon>
 | 
					              <Icon type="ios-camera" size="20"></Icon>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
          </Upload>
 | 
					          </Upload>
 | 
				
			||||||
          <div class="tips"> 直播间背景图,图片规则:建议像素1080*1920,大小不超过2M</div>
 | 
					          <div class="tips"> 直播间背景图,图片规则:建议像素1080*1920,大小不超过1M</div>
 | 
				
			||||||
        </FormItem>
 | 
					        </FormItem>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <!-- 直播间背景墙 -->
 | 
					        <!-- 直播间背景墙 -->
 | 
				
			||||||
@ -88,7 +88,7 @@
 | 
				
			|||||||
            </template>
 | 
					            </template>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <Upload v-if="liveForm.shareImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleShareImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
 | 
					          <Upload v-if="liveForm.shareImg.length ==0" ref="upload" :show-upload-list="false" :on-success="handleShareImgSuccess" :default-file-list="defaultImgList" :format="['jpg','jpeg','png']"
 | 
				
			||||||
            :on-format-error="handleFormatError" :max-size="2048" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
 | 
					            :on-format-error="handleFormatError" :max-size="1024" :on-exceeded-size="handleMaxSize" type="drag" :action="action" :headers="accessToken" style="display: inline-block;width:58px;">
 | 
				
			||||||
            <div style="width: 58px;height:58px;line-height: 58px;">
 | 
					            <div style="width: 58px;height:58px;line-height: 58px;">
 | 
				
			||||||
              <Icon type="ios-camera" size="20"></Icon>
 | 
					              <Icon type="ios-camera" size="20"></Icon>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
@ -467,7 +467,7 @@ export default {
 | 
				
			|||||||
    handleMaxSize(file) {
 | 
					    handleMaxSize(file) {
 | 
				
			||||||
      this.$Notice.warning({
 | 
					      this.$Notice.warning({
 | 
				
			||||||
        title: "图片超过限制大小!",
 | 
					        title: "图片超过限制大小!",
 | 
				
			||||||
        desc: file.name + "图片超过规定限制大小,请重新上传",
 | 
					        desc: "图片超过规定限制大小,请重新上传",
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user