更新代码

This commit is contained in:
guaishoudemao
2021-02-06 16:42:26 +08:00
parent fdbd2ef1f1
commit c9b86697c3
80 changed files with 3056 additions and 2156 deletions

View File

@@ -14,6 +14,7 @@ couponFrom.install = function(Vue, options) {
instance.$mount(document.createElement('div'))
document.body.appendChild(instance.$el)
Vue.prototype.$modalCoupon = function(handle, keyNum, coupons=[], callback, userIds='') {
console.log( userIds)
instance.visible = true
instance.handle = handle
instance.keyNum = keyNum

View File

@@ -64,7 +64,7 @@
min-width="90"
>
<template slot-scope="scope">
<span>{{ scope.row.isLimited===0 ? '不限量' : scope.row.lastTotal }}</span>
<span>{{ !scope.row.isLimited ? '不限量' : scope.row.lastTotal }}</span>
</template>
</el-table-column>
<el-table-column v-if="handle==='send'" label="操作" min-width="120" fixed="right" align="center">
@@ -145,7 +145,9 @@ export default {
mounted() {
this.tableFrom.page = 1
this.getList()
this.multipleSelectionAll = this.couponData || []
this.couponData.forEach(row => {
this.$refs.table.toggleRowSelection(row);
});
},
methods: {
close() {
@@ -222,7 +224,7 @@ export default {
ok() {
if (this.multipleSelection.length > 0) {
this.$emit('getCouponId', this.multipleSelectionAll)
// this.close()
this.close()
} else {
this.$message.warning('请先选择优惠劵')
}