|
|
|
@ -87,7 +87,7 @@
|
|
|
|
v-hasPermi="['system:user:remove']"
|
|
|
|
v-hasPermi="['system:user:remove']"
|
|
|
|
>清除评分账号</el-button>
|
|
|
|
>清除评分账号</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="2">
|
|
|
|
<el-col :span="2.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
plain
|
|
|
|
plain
|
|
|
|
@ -95,8 +95,19 @@
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
:disabled="multiple"
|
|
|
|
:disabled="multiple"
|
|
|
|
@click="multipleTasksAddsUser"
|
|
|
|
@click="multipleTasksAddsUser"
|
|
|
|
|
|
|
|
v-hasPermi="['system:user:add']"
|
|
|
|
>多任务评分账号生成</el-button>
|
|
|
|
>多任务评分账号生成</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="2.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="info"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="multipleTasksViewUser"
|
|
|
|
|
|
|
|
v-hasPermi="['system:user:list']"
|
|
|
|
|
|
|
|
>多任务评分账号查看</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
@ -149,6 +160,7 @@
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-user-solid"
|
|
|
|
icon="el-icon-user-solid"
|
|
|
|
|
|
|
|
v-hasPermi="['system:user:add']"
|
|
|
|
@click="handleAddsUser(scope.row)"
|
|
|
|
@click="handleAddsUser(scope.row)"
|
|
|
|
>生成评分账号
|
|
|
|
>生成评分账号
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
@ -156,6 +168,7 @@
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-view"
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
|
|
|
v-hasPermi="['system:user:list']"
|
|
|
|
@click="viewUser(scope.row)"
|
|
|
|
@click="viewUser(scope.row)"
|
|
|
|
>查看评分账号
|
|
|
|
>查看评分账号
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
@ -624,26 +637,69 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 多任务评分账号查看 -->
|
|
|
|
|
|
|
|
<el-dialog title="多任务评分账号查看" :visible.sync="drwScpfzhInfo.open" width="1200px">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="drwScpfzhInfo.multiple"
|
|
|
|
|
|
|
|
@click="drwDeleteUsers" v-hasPermi="['system:user:remove']">清除评分账号</el-button>
|
|
|
|
|
|
|
|
<el-table style="margin-top: 10px;" border v-loading="drwScpfzhInfo.loading" :data="drwScpfzhInfo.list" @selection-change="handleSelectionChange1">
|
|
|
|
|
|
|
|
<el-table-column type="selection" width="50" align="center" />
|
|
|
|
|
|
|
|
<el-table-column label="用户编号" align="center" prop="userId" width="90"/>
|
|
|
|
|
|
|
|
<el-table-column label="用户名称" align="center" prop="userName" min-width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
|
|
|
<el-table-column label="用户昵称" align="center" prop="nickName" min-width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
|
|
|
<el-table-column label="部门" align="center" prop="dept.deptName" min-width="100" :show-overflow-tooltip="true" />
|
|
|
|
|
|
|
|
<el-table-column label="考核项" align="center" prop="itemNames"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" min-width="200">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<div v-if="scope.row.itemNames">
|
|
|
|
|
|
|
|
<div v-if="scope.row.itemNames.split(';').length>0">
|
|
|
|
|
|
|
|
<div v-for="item in scope.row.itemNames.split(';')">
|
|
|
|
|
|
|
|
{{ item }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div v-else>{{ scope.row.itemNames }}</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="状态" align="center" key="status">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-switch v-model="scope.row.status" active-value="0" inactive-value="1" disabled></el-switch>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="160"/>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
|
|
|
v-show="drwScpfzhInfo.total>0"
|
|
|
|
|
|
|
|
:total="drwScpfzhInfo.total"
|
|
|
|
|
|
|
|
:page.sync="drwScpfzhInfo.queryParams.pageNum"
|
|
|
|
|
|
|
|
:limit.sync="drwScpfzhInfo.queryParams.pageSize"
|
|
|
|
|
|
|
|
@pagination="drwScpfzhInfoQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button @click="drwScpfzhInfoCancel">取 消</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listPingce, getPingce, delPingce, addPingce, updatePingce, getItemVote, addsUser, generateResult, pcItemVotes } from "@/api/kaohe/pingce"
|
|
|
|
import { listPingce, getPingce, delPingce, addPingce, updatePingce, getItemVote, addsUser, generateResult, pcItemVotes } from "@/api/kaohe/pingce";
|
|
|
|
import { listKh_result } from "@/api/kaohe/kh_result"
|
|
|
|
import { listKh_result } from "@/api/kaohe/kh_result";
|
|
|
|
import { deptTreeSelect } from "@/api/system/user";
|
|
|
|
import { deptTreeSelect, ldUserlist, delUser, delUserPingfen } from "@/api/system/user";
|
|
|
|
import { listTemplate } from "@/api/kaohe/template"
|
|
|
|
import { listTemplate } from "@/api/kaohe/template";
|
|
|
|
import { listEmployee } from "@/api/kaohe/employee"
|
|
|
|
import { listEmployee } from "@/api/kaohe/employee";
|
|
|
|
import { addVote, updateVote } from "@/api/kaohe/vote"
|
|
|
|
import { addVote, updateVote } from "@/api/kaohe/vote";
|
|
|
|
import { listVote_items } from "@/api/kaohe/vote_items"
|
|
|
|
import { listVote_items } from "@/api/kaohe/vote_items";
|
|
|
|
import { listVote_emp } from "@/api/kaohe/vote_emp"
|
|
|
|
import { listVote_emp } from "@/api/kaohe/vote_emp";
|
|
|
|
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";
|
|
|
|
import TableColumn from '@/components/TableColumn'
|
|
|
|
import TableColumn from '@/components/TableColumn';
|
|
|
|
import {delUserPingfen} from "../../../api/system/user";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Pingce",
|
|
|
|
name: "Pingce",
|
|
|
|
dicts: ['kh_state', 'sys_user_sex', 'bkhdx_type', 'pf_state'],
|
|
|
|
dicts: ['kh_state', 'sys_user_sex', 'bkhdx_type', 'pf_state', 'sys_normal_disable'],
|
|
|
|
components: { Treeselect, TableColumn },
|
|
|
|
components: { Treeselect, TableColumn },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
@ -803,7 +859,28 @@ export default {
|
|
|
|
// 多任务生成评分账号
|
|
|
|
// 多任务生成评分账号
|
|
|
|
drwScpfzhOpen: false,
|
|
|
|
drwScpfzhOpen: false,
|
|
|
|
// 多任务生成评分账号
|
|
|
|
// 多任务生成评分账号
|
|
|
|
drwScpfzhForm: []
|
|
|
|
drwScpfzhForm: [],
|
|
|
|
|
|
|
|
/** 选择模板*/
|
|
|
|
|
|
|
|
drwScpfzhInfo: {
|
|
|
|
|
|
|
|
// 选中数组
|
|
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
|
|
|
multiple: true,
|
|
|
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
|
|
|
open: false,
|
|
|
|
|
|
|
|
// 列表遮罩层
|
|
|
|
|
|
|
|
loading: false,
|
|
|
|
|
|
|
|
// 列表查询参数
|
|
|
|
|
|
|
|
queryParams: {
|
|
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
|
|
pcIds: null,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 表格数据
|
|
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
// 总条数
|
|
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
@ -1477,16 +1554,6 @@ export default {
|
|
|
|
viewUser(row){
|
|
|
|
viewUser(row){
|
|
|
|
this.$router.push({ path: '/system/user', query: { pcId: row.id}});
|
|
|
|
this.$router.push({ path: '/system/user', query: { pcId: row.id}});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 清除该评分账号
|
|
|
|
|
|
|
|
rwAddsUser(){
|
|
|
|
|
|
|
|
const ids = row.id || this.ids
|
|
|
|
|
|
|
|
this.$modal.confirm('是否确认清除该评分账号数据项?').then(function() {
|
|
|
|
|
|
|
|
return delUserPingfen(ids)
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功")
|
|
|
|
|
|
|
|
}).catch(() => {})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 查看评分任务
|
|
|
|
// 查看评分任务
|
|
|
|
viewVote(row){
|
|
|
|
viewVote(row){
|
|
|
|
this.$router.push({ path: '/toupiao/vote', query: { pcId: row.id}});
|
|
|
|
this.$router.push({ path: '/toupiao/vote', query: { pcId: row.id}});
|
|
|
|
@ -1628,6 +1695,46 @@ export default {
|
|
|
|
drwScpfzhCancel(){
|
|
|
|
drwScpfzhCancel(){
|
|
|
|
this.drwScpfzhOpen = false;
|
|
|
|
this.drwScpfzhOpen = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 多任务评分账号查看
|
|
|
|
|
|
|
|
multipleTasksViewUser(){
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.open = true;
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.ids = [];
|
|
|
|
|
|
|
|
if(this.ids.length>0){
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.queryParams.pcIds = this.ids.join(',');
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.queryParams.pcIds = null
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.queryParams.pageNum = 1;
|
|
|
|
|
|
|
|
this.drwScpfzhInfoQuery();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 多任务评分账号查看列表查询 */
|
|
|
|
|
|
|
|
drwScpfzhInfoQuery() {
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.loading = true;
|
|
|
|
|
|
|
|
ldUserlist(this.drwScpfzhInfo.queryParams).then(response => {
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.list = response.rows;
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.total = response.total;
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.loading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 多任务评分账号查看弹出框关闭*/
|
|
|
|
|
|
|
|
drwScpfzhInfoCancel() {
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.open = false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
|
|
|
handleSelectionChange1(selection) {
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.ids = selection.map(item => item.userId)
|
|
|
|
|
|
|
|
this.drwScpfzhInfo.multiple = !selection.length
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 清除评分账号按钮操作 */
|
|
|
|
|
|
|
|
drwDeleteUsers(row) {
|
|
|
|
|
|
|
|
const userIds = row.userId || this.drwScpfzhInfo.ids;
|
|
|
|
|
|
|
|
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
|
|
|
|
|
|
|
|
return delUser(userIds)
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.drwScpfzhInfoQuery()
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功")
|
|
|
|
|
|
|
|
}).catch(() => {})
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|