Commit 22ef5091 by crushh

update: 去掉测试数据

parent 744c09cd
......@@ -170,6 +170,7 @@
type="primary"
size="small"
v-if="type=='查看'"
:disabled="!multipleSelection.length"
slot="reference"
>
批量移除
......@@ -180,6 +181,7 @@
size="small"
:loading="btnLoading"
@click="submit"
:disabled="!multipleSelection.length"
v-if="type=='选择'"
>
批量添加
......@@ -288,6 +290,8 @@ export default {
this.relateForm.currentPage = 1;
if (type == '查看') {
this.relateForm.integralMallProRuleId = integralMallProRuleId;
} else {
delete this.relateForm.integralMallProRuleId;
}
this.getRelatingGoodsTable();
},
......@@ -311,11 +315,6 @@ export default {
this.multipleSelection = val;
},
multipleDel () {
if (!this.multipleSelection.length) {
this.$message.warning('请至少选择一件商品');
return;
}
this.btnLoading = true;
const data = {};
data.integralMallProIdList = this.multipleSelection.map(item => item.integralMallProId);
......@@ -346,34 +345,15 @@ export default {
},
getRelatingGoodsTable () {
this.loading = true;
if (this.type == '选择') {
delete this.relateForm.integralMallProRuleId;
}
const params = this.relateForm;
request.get('/api-integral-mall/page-rule-pro', { params }).then(res => {
this.relatingGoodsTable = res.data.result.result || [];
this.totalCount = res.data.result.totalCount;
for (let i = 0; i < 5; i++) {
this.relatingGoodsTable.push({
mallProImageUrl: 'https://pic01-10001430.image.myqcloud.com/f39e4665-db45-487e-847a-673fedddab44',
proName: '上架规则说明内容内容上架规则说明内容内容上架规则说明内容内容',
proCode: 236,
proType: '实物礼品',
costValue: 1000.00,
virtualStock: 1000,
integralMallProId: i,
ruleTitle: '新客积分兑换上架规则规则',
});
}
}).finally(_ => {
this.loading = false;
});
},
submit () {
if (!this.multipleSelection.length) {
this.$message.warning('请至少选择一件商品');
return;
}
this.btnLoading = true;
const data = {};
data.integralMallProIdList = this.multipleSelection.map(item => item.integralMallProId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment