|
@@ -160,10 +160,10 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="keyword" class="form-index">
|
|
|
|
|
|
+ <el-form-item label="" prop="searchValue" class="form-index">
|
|
<el-input
|
|
<el-input
|
|
maxLength="20"
|
|
maxLength="20"
|
|
- v-model="userQueryParamsLeft.keyword"
|
|
|
|
|
|
+ v-model="userQueryParamsLeft.searchValue"
|
|
placeholder="搜索姓名/工号"
|
|
placeholder="搜索姓名/工号"
|
|
clearable
|
|
clearable
|
|
@clear="userHandleQueryLeft"
|
|
@clear="userHandleQueryLeft"
|
|
@@ -175,7 +175,7 @@
|
|
<p class="page-reset-common-style-button" @click="userResetQueryLeft" style="width:60px;">重置</p>
|
|
<p class="page-reset-common-style-button" @click="userResetQueryLeft" style="width:60px;">重置</p>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <el-table ref="leftUserTable" border :data="userTableListLeft" @selection-change="userChangeLeft" :row-key="getRowKeys">
|
|
|
|
|
|
+ <el-table class="table-box" ref="leftUserTable" border :data="userTableListLeft" @selection-change="userChangeLeft" :row-key="getRowKeys">
|
|
<el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
<el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
<el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
|
|
<el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
|
|
<el-table-column label="工号" align="center" prop="account" show-overflow-tooltip width="150"/>
|
|
<el-table-column label="工号" align="center" prop="account" show-overflow-tooltip width="150"/>
|
|
@@ -211,10 +211,10 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="" prop="keyword" class="form-index">
|
|
|
|
|
|
+ <el-form-item label="" prop="searchValue" class="form-index">
|
|
<el-input
|
|
<el-input
|
|
maxLength="20"
|
|
maxLength="20"
|
|
- v-model="userQueryParamsRight.keyword"
|
|
|
|
|
|
+ v-model="userQueryParamsRight.searchValue"
|
|
placeholder="搜索姓名/工号"
|
|
placeholder="搜索姓名/工号"
|
|
clearable
|
|
clearable
|
|
@clear="userHandleQueryRight"
|
|
@clear="userHandleQueryRight"
|
|
@@ -226,7 +226,7 @@
|
|
<p class="page-reset-common-style-button" @click="userResetQueryRight" style="width:60px;">重置</p>
|
|
<p class="page-reset-common-style-button" @click="userResetQueryRight" style="width:60px;">重置</p>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <el-table ref="rightUserTable" border :data="userTableListRight" @selection-change="userChangeRight" :row-key="getRowKeys">
|
|
|
|
|
|
+ <el-table class="table-box" ref="rightUserTable" border :data="userTableListRight" @selection-change="userChangeRight" :row-key="getRowKeys">
|
|
<el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
<el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
|
|
<el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
|
|
<el-table-column label="姓名" align="center" prop="userName" show-overflow-tooltip/>
|
|
<el-table-column label="工号" align="center" prop="account" show-overflow-tooltip width="150"/>
|
|
<el-table-column label="工号" align="center" prop="account" show-overflow-tooltip width="150"/>
|
|
@@ -259,7 +259,7 @@ import {
|
|
securitycourseEdit,
|
|
securitycourseEdit,
|
|
examSecuritycourseAdd
|
|
examSecuritycourseAdd
|
|
} from "@/api/safetyEducationExam/index";
|
|
} from "@/api/safetyEducationExam/index";
|
|
-import { getDeptDropList, systemUserSelectUser } from '@/api/commonality/permission'
|
|
|
|
|
|
+import { getDeptDropList, systemUserSelectUser,systemUserSelectByPage } from '@/api/commonality/permission'
|
|
import {laboratorySubRelInfoList,} from "@/api/commonality/noPermission";
|
|
import {laboratorySubRelInfoList,} from "@/api/commonality/noPermission";
|
|
export default {
|
|
export default {
|
|
name: 'trainingCourseAddDialog',
|
|
name: 'trainingCourseAddDialog',
|
|
@@ -350,7 +350,7 @@ import { getDeptDropList, systemUserSelectUser } from '@/api/commonality/permiss
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
userType:2,
|
|
userType:2,
|
|
deptId:null,
|
|
deptId:null,
|
|
- keyword:null,
|
|
|
|
|
|
+ searchValue:null,
|
|
filtType:1
|
|
filtType:1
|
|
},
|
|
},
|
|
userTableListLeft:[],
|
|
userTableListLeft:[],
|
|
@@ -362,7 +362,7 @@ import { getDeptDropList, systemUserSelectUser } from '@/api/commonality/permiss
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
userType:2,
|
|
userType:2,
|
|
deptId:null,
|
|
deptId:null,
|
|
- keyword:null,
|
|
|
|
|
|
+ searchValue:null,
|
|
filtType:2
|
|
filtType:2
|
|
},
|
|
},
|
|
userTableListRight:[],
|
|
userTableListRight:[],
|
|
@@ -661,7 +661,7 @@ import { getDeptDropList, systemUserSelectUser } from '@/api/commonality/permiss
|
|
page: 1,
|
|
page: 1,
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
deptId:"",
|
|
deptId:"",
|
|
- keyword:"",
|
|
|
|
|
|
+ searchValue:"",
|
|
userType:2,
|
|
userType:2,
|
|
filtType:1
|
|
filtType:1
|
|
});
|
|
});
|
|
@@ -675,7 +675,7 @@ import { getDeptDropList, systemUserSelectUser } from '@/api/commonality/permiss
|
|
for(let i=0;i<self.dialogTableDataList.length;i++){
|
|
for(let i=0;i<self.dialogTableDataList.length;i++){
|
|
leftObj.selectedUserIds.push(self.dialogTableDataList[i].userId);
|
|
leftObj.selectedUserIds.push(self.dialogTableDataList[i].userId);
|
|
}
|
|
}
|
|
- findUserList(leftObj).then(response => {
|
|
|
|
|
|
+ systemUserSelectByPage(leftObj).then(response => {
|
|
this.userTotalLeft = response.data.total;
|
|
this.userTotalLeft = response.data.total;
|
|
this.userTableListLeft = response.data.records;
|
|
this.userTableListLeft = response.data.records;
|
|
});
|
|
});
|
|
@@ -694,7 +694,7 @@ import { getDeptDropList, systemUserSelectUser } from '@/api/commonality/permiss
|
|
page: 1,
|
|
page: 1,
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
deptId:"",
|
|
deptId:"",
|
|
- keyword:"",
|
|
|
|
|
|
+ searchValue:"",
|
|
userType:2,
|
|
userType:2,
|
|
filtType:2
|
|
filtType:2
|
|
});
|
|
});
|
|
@@ -708,7 +708,10 @@ import { getDeptDropList, systemUserSelectUser } from '@/api/commonality/permiss
|
|
for(let i=0;i<self.dialogTableDataList.length;i++){
|
|
for(let i=0;i<self.dialogTableDataList.length;i++){
|
|
rightObj.userIds.push(self.dialogTableDataList[i].userId);
|
|
rightObj.userIds.push(self.dialogTableDataList[i].userId);
|
|
}
|
|
}
|
|
- findUserList(rightObj).then(response => {
|
|
|
|
|
|
+ if(!rightObj.userIds[0]){
|
|
|
|
+ rightObj.userIds = ['']
|
|
|
|
+ }
|
|
|
|
+ systemUserSelectByPage(rightObj).then(response => {
|
|
this.userTotalRight = response.data.total;
|
|
this.userTotalRight = response.data.total;
|
|
this.userTableListRight = response.data.records;
|
|
this.userTableListRight = response.data.records;
|
|
});
|
|
});
|