|
@@ -46,7 +46,7 @@
|
|
|
style="width: 100%;"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
v-loading="listLoading" border>
|
|
|
- <el-table-column v-if="permission == 1" type="selection" width="60" align="center"></el-table-column>
|
|
|
+ <el-table-column type="selection" width="60" align="center"></el-table-column>
|
|
|
<el-table-column label="编号" width="100" align="center">
|
|
|
<template slot-scope="scope">{{scope.row.uuid}}</template>
|
|
|
</el-table-column>
|
|
@@ -96,6 +96,26 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
+ <div class="batch-operate-container">
|
|
|
+ <el-select
|
|
|
+ size="small"
|
|
|
+ v-model="operateType" placeholder="批量操作">
|
|
|
+ <el-option
|
|
|
+ v-for="item in operateOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-button
|
|
|
+ style="margin-left: 20px"
|
|
|
+ class="search-button"
|
|
|
+ @click="handleBatchOperate()"
|
|
|
+ type="primary"
|
|
|
+ size="small">
|
|
|
+ 确定
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
<div class="pagination-container">
|
|
|
<el-pagination
|
|
|
background
|
|
@@ -151,7 +171,7 @@
|
|
|
<script>
|
|
|
import userConstants from './common/constants'
|
|
|
import {formatDate} from '@/utils/date';
|
|
|
- import distributeCouponsDialog from '@/views/sms/coupon/dialog/distributeCoupons.vue';
|
|
|
+ // import distributeCouponsDialog from '@/views/sms/coupon/dialog/distributeCoupons.vue';
|
|
|
const defaultListQuery = {
|
|
|
current: 1,
|
|
|
size: 10,
|
|
@@ -170,7 +190,7 @@
|
|
|
export default {
|
|
|
name: 'adminList',
|
|
|
components: {
|
|
|
- distributeCouponsDialog
|
|
|
+ // distributeCouponsDialog
|
|
|
},
|
|
|
props:{
|
|
|
permission:null
|
|
@@ -185,7 +205,14 @@
|
|
|
dialogVisible: false,
|
|
|
admin: Object.assign({}, defaultAdmin),
|
|
|
isEdit: false,
|
|
|
- multipleSelection:[]
|
|
|
+ multipleSelection:[],
|
|
|
+ operateOptions: [
|
|
|
+ {
|
|
|
+ label: "发放优惠券",
|
|
|
+ value: 1
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ operateType:null
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -242,6 +269,30 @@
|
|
|
this.isEdit = false;
|
|
|
this.admin = Object.assign({},defaultAdmin);
|
|
|
},
|
|
|
+
|
|
|
+ handleBatchOperate(){
|
|
|
+ if(this.multipleSelection==null||this.multipleSelection.length<1){
|
|
|
+ this.$message({
|
|
|
+ message: '请选择要操作的账号',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 1000
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // let ids=[];
|
|
|
+ // for(let i=0;i<this.multipleSelection.length;i++){
|
|
|
+ // ids.push(this.multipleSelection[i].id);
|
|
|
+ // }
|
|
|
+ switch(this.operateType){
|
|
|
+ case 1:
|
|
|
+ var data = {
|
|
|
+ personList:this.multipleSelection,
|
|
|
+ type:1
|
|
|
+ }
|
|
|
+ this.$refs.distributeCouponsDialog.open(data)
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ },
|
|
|
// handleStatusChange(index, row) {
|
|
|
// this.$confirm('是否要修改该状态?', '提示', {
|
|
|
// confirmButtonText: '确定',
|