|
@@ -1,21 +1,21 @@
|
|
|
<template>
|
|
|
<div class="assignAuthority">
|
|
|
- <el-row :gutter="10" type="flex" class="row-bg" justify="space-between">
|
|
|
+ <el-row type="flex" class="row-bg" justify="space-between">
|
|
|
<el-col :span="6">
|
|
|
<h3>权限分配</h3>
|
|
|
</el-col>
|
|
|
- <el-col :span="10">
|
|
|
+ <el-col :span="8">
|
|
|
<el-form ref="queryParams" :model="queryParams">
|
|
|
<el-form-item>
|
|
|
<el-input v-model="queryParams.nickName" placeholder="请输入姓名、部门"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-col>
|
|
|
- <el-col :span="6" >
|
|
|
+ <el-col :span="6" style="margin-left: 10px">
|
|
|
<el-button type="primary" @click="queryBtn">搜索</el-button>
|
|
|
<el-button type="primary" @click="resetBtn">重置</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="6" >
|
|
|
+ <el-col :span="4" >
|
|
|
<el-button type="primary" @click="addBtn">新增</el-button>
|
|
|
<!-- <el-button type="primary" @click="removeBtn">删除</el-button>-->
|
|
|
</el-col>
|
|
@@ -53,7 +53,6 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="isDefaultPerson"
|
|
|
- fixed="right"
|
|
|
label="是否为问题默认处理人">
|
|
|
<template #default="scope">
|
|
|
<el-select v-model="scope.row.isDefaultPerson" placeholder="请选择" @change="changeBtn(scope.row)">
|
|
@@ -145,6 +144,7 @@ import {addUser, list, userList, edit, removeByIdList} from "@/api/business/as/a
|
|
|
|
|
|
export default {
|
|
|
created() {
|
|
|
+ this.getTableHeight()
|
|
|
if(this.$route.query.id){
|
|
|
this.queryParams.hId=this.$route.query.id
|
|
|
list(this.queryParams).then(res =>{
|
|
@@ -155,19 +155,6 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
- //挂载window.onresize事件(动态设置table高度)
|
|
|
- let _this = this;
|
|
|
- window.onresize = () => {
|
|
|
- if (_this.resizeFlag) {
|
|
|
- clearTimeout(_this.resizeFlag);
|
|
|
- }
|
|
|
- _this.resizeFlag = setTimeout(() => {
|
|
|
- _this.getTableHeight();
|
|
|
- _this.resizeFlag = null;
|
|
|
- }, 100);
|
|
|
- };
|
|
|
- },
|
|
|
methods:{
|
|
|
//批量删除用户
|
|
|
removeBtn(){
|
|
@@ -275,7 +262,7 @@ export default {
|
|
|
},
|
|
|
//计算table高度(动态设置table高度)
|
|
|
getTableHeight() {
|
|
|
- let tableH = 150; //距离页面下方的高度
|
|
|
+ let tableH = 160; //距离页面下方的高度
|
|
|
let tableHeightDetil = window.innerHeight - tableH;
|
|
|
if (tableHeightDetil <= 300) {
|
|
|
this.tableHeight = 300;
|