已修改2个文件
72 ■■■■■ 文件已修改
pages/marketing/coupon/activity/index.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/marketing/member-level.vue 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/marketing/coupon/activity/index.vue
@@ -63,6 +63,7 @@
            formatter: getActivityEffectiveTime,
            minWidth: 320,
          },
          { label: '领取渠道', prop: 'getTypeName', minWidth: 120 },
          { label: '已领取总数', prop: 'getNum', minWidth: 150 },
          { label: '剩余未领取总数', prop: 'unGetNum', minWidth: 150 },
          { label: '状态', prop: 'statusName', minWidth: 120 },
@@ -99,8 +100,19 @@
        searchForm: [
          {
            type: 'row',
            items: [...couponSearchForm()],
            items: [...couponSearchForm(),
              {
                label: '领取渠道:',
                id: 'getType',
                type: 'bus-select-dict',
                el: {
                  code: 'COUPON_GET_TYPE',
                  style: 'width:100%',
                },
              },
            ],
          },
        ],
        form: [
          ...couponForm(),
pages/marketing/member-level.vue
@@ -22,6 +22,28 @@
          },
          { label: '等级折扣', prop: 'discountTypeStr' },
          { label: '操作人', prop: 'createName' },
          {
            label: '背景图片',
            formatter: (row) =>
              row.background ? (
                <el-bus-image
                  src={row.background}
                  lazy={true}
                  style="width:50px;height:50px"
                ></el-bus-image>
              ) : null,
          },
          {
            label: '样式图片',
            formatter: (row) =>
              row.pictures ? (
                <el-bus-image
                  src={row.pictures}
                  lazy={true}
                  style="width:50px;height:50px"
                ></el-bus-image>
              ) : null,
          },
        ],
        beforeOpen: (row, isNew) => {
          if (!isNew) {
@@ -144,6 +166,42 @@
              trigger: 'blur',
            },
          },
          {
            label: '背景图片:',
            id: 'background',
            type: 'bus-upload',
            el: {
              listType: 'picture-card',
              limit: 1,
              limitSize: 2,
              tipText: '大小不超过2M',
              valueType: 'string',
            },
            forceDisabled: true,
            rules: {
              required: true,
              message: '请上传背景图片',
              trigger: 'blur',
            },
          },
          {
            label: '样式图片:',
            id: 'pictures',
            type: 'bus-upload',
            el: {
              listType: 'picture-card',
              limit: 1,
              limitSize: 2,
              tipText: '大小不超过2M',
              valueType: 'string',
            },
            forceDisabled: true,
            rules: {
              required: true,
              message: '请上传样式图片',
              trigger: 'blur',
            },
          },
        ],
      },
    }