|
@@ -112,6 +112,17 @@
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
v-hasPermi="['system:user:remove']"
|
|
v-hasPermi="['system:user:remove']"
|
|
>删除</el-button>
|
|
>删除</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ icon="el-icon-turn-off"
|
|
|
|
+ size="mini"
|
|
|
|
+ :disabled="multiple"
|
|
|
|
+ @click="handleSetting"
|
|
|
|
+ v-hasPermi="['system:user:editbuylock']"
|
|
|
|
+ >购锁定票</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<!-- <el-col :span="1.5">
|
|
<!-- <el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -143,6 +154,12 @@
|
|
<el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
|
<el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
|
<el-table-column label="部门" align="center" key="deptName" prop="dept.deptName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
|
|
<el-table-column label="部门" align="center" key="deptName" prop="dept.deptName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
|
|
<el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" v-if="columns[4].visible" width="120" />
|
|
<el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" v-if="columns[4].visible" width="120" />
|
|
|
|
+ <el-table-column label="购锁定票" prop="isBuylock" width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-tag v-if="scope.row.isBuylock === 1" type="success">允 许</el-tag>
|
|
|
|
+ <el-tag v-else type="danger">不允许</el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="状态" align="center" key="status" v-if="columns[5].visible">
|
|
<el-table-column label="状态" align="center" key="status" v-if="columns[5].visible">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-switch
|
|
<el-switch
|
|
@@ -344,11 +361,26 @@
|
|
<el-button @click="upload.open = false">取 消</el-button>
|
|
<el-button @click="upload.open = false">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 批量设置 是否允许购买锁定票 -->
|
|
|
|
+ <el-dialog title="批量设置用户是否允许购买锁定票" :visible.sync="isVisible" width="500px" append-to-body>
|
|
|
|
+ <div style="display: flex; justify-content: center;">
|
|
|
|
+ <el-radio v-model="isBuylock" :label="1" border>允 许</el-radio>
|
|
|
|
+ <el-radio v-model="isBuylock" :label="0" border>不允许</el-radio>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="hanldeSubmit">确 定</el-button>
|
|
|
|
+ <el-button @click="isVisible = false">取 消</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, deptTreeSelect } from "@/api/system/user";
|
|
|
|
|
|
+import { listUser, getUser, delUser, addUser, updateUser,
|
|
|
|
+ resetUserPwd, changeUserStatus, deptTreeSelect, setIsBuylock
|
|
|
|
+} from "@/api/system/user";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -456,7 +488,9 @@ export default {
|
|
trigger: ["change","blur"]
|
|
trigger: ["change","blur"]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ isVisible: false,
|
|
|
|
+ isBuylock: 0,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -473,6 +507,29 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //
|
|
|
|
+ handleSetting() {
|
|
|
|
+ this.isVisible = true;
|
|
|
|
+ },
|
|
|
|
+ // 设置用户购买锁定票
|
|
|
|
+ hanldeSubmit() {
|
|
|
|
+ let obj = {
|
|
|
|
+ ids: this.ids,
|
|
|
|
+ isBuylock: this.isBuylock
|
|
|
|
+ }
|
|
|
|
+ console.log(obj,'234');
|
|
|
|
+ setIsBuylock(obj).then(res => {
|
|
|
|
+ if(res.code === 200 ) {
|
|
|
|
+ this.$modal.msgSuccess("设置成功");
|
|
|
|
+ this.isVisible = false;
|
|
|
|
+ this.getList();
|
|
|
|
+ } else {
|
|
|
|
+ this.isVisible = false;
|
|
|
|
+ }
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ this.isVisible = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
/** 查询用户列表 */
|
|
/** 查询用户列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|