|
@@ -344,7 +344,7 @@
|
|
|
icon="el-icon-circle-plus-outline"
|
|
|
class="underline btn24"
|
|
|
size="mini"
|
|
|
- @click="handleMoveLabel('right', 1, scope.row)"
|
|
|
+ @click="handleMoveLabel('right', scope.row)"
|
|
|
>添加</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -393,7 +393,7 @@
|
|
|
icon="el-icon-remove-outline"
|
|
|
class="underline btn24"
|
|
|
size="mini"
|
|
|
- @click="handleMoveLabel('left', 1, scope.row)"
|
|
|
+ @click="handleMoveLabel('left', scope.row)"
|
|
|
>移除</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -505,11 +505,17 @@ export default {
|
|
|
},
|
|
|
selectedCouponList() {
|
|
|
return this.allVerificationList.filter((ele) => {
|
|
|
+ if(this.createForm.verificationList == null) {
|
|
|
+ this.createForm.verificationList = [];
|
|
|
+ }
|
|
|
return this.createForm.verificationList.includes(ele.deptId);
|
|
|
});
|
|
|
},
|
|
|
unselectedCouponList() {
|
|
|
return this.allVerificationList.filter((ele) => {
|
|
|
+ if(this.createForm.verificationList == null) {
|
|
|
+ this.createForm.verificationList = [];
|
|
|
+ }
|
|
|
return !!!this.createForm.verificationList.includes(ele.deptId);
|
|
|
});
|
|
|
},
|
|
@@ -519,6 +525,20 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleMoveLabel(direction, row){
|
|
|
+ console.log(row)
|
|
|
+ if(this.createForm.verificationList == null) {
|
|
|
+ this.createForm.verificationList = [];
|
|
|
+ }
|
|
|
+
|
|
|
+ if(direction == "right"){
|
|
|
+ this.createForm.verificationList.push(row.deptId)
|
|
|
+ }else{
|
|
|
+ this.createForm.verificationList = this.createForm.verificationList.filter((ele)=>{
|
|
|
+ return ele != row.deptId
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
handleFlagChange() {
|
|
|
const that = this
|
|
|
let text = this.couponEnabledFlag === "1" ? "启用" : "停用";
|