|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
<!-- 数据表格 -->
|
|
<!-- 数据表格 -->
|
|
|
|
|
+ <org-user-search @search="reload" ref="searchRef"></org-user-search>
|
|
|
<ele-pro-table
|
|
<ele-pro-table
|
|
|
ref="table"
|
|
ref="table"
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
@@ -9,40 +10,49 @@
|
|
|
full-height="calc(100vh - 116px)"
|
|
full-height="calc(100vh - 116px)"
|
|
|
tool-class="ele-toolbar-form"
|
|
tool-class="ele-toolbar-form"
|
|
|
:page-size="pageSize"
|
|
:page-size="pageSize"
|
|
|
|
|
+ row-key="id"
|
|
|
|
|
+ :selection.sync="selection"
|
|
|
@columns-change="handleColumnChange"
|
|
@columns-change="handleColumnChange"
|
|
|
:cache-key="cacheKeyUrl"
|
|
:cache-key="cacheKeyUrl"
|
|
|
|
|
+ @update:selection="handleSelectionChange"
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
- <org-user-search @search="reload" ref="searchRef">
|
|
|
|
|
- <el-button
|
|
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- class="ele-btn-icon"
|
|
|
|
|
- @click="openEdit()"
|
|
|
|
|
- v-if="$hasPermission('main:user:save')"
|
|
|
|
|
- >
|
|
|
|
|
- 添加
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- icon="el-icon-upload2"
|
|
|
|
|
- plain
|
|
|
|
|
- @click="uploadFile"
|
|
|
|
|
- v-if="$hasPermission('main:user:save')"
|
|
|
|
|
- >导入</el-button
|
|
|
|
|
- >
|
|
|
|
|
- <el-button
|
|
|
|
|
- type="primary"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- icon="el-icon-download"
|
|
|
|
|
- plain
|
|
|
|
|
- @click="exportUsers"
|
|
|
|
|
- >导出</el-button
|
|
|
|
|
- >
|
|
|
|
|
- </org-user-search>
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="openEdit()"
|
|
|
|
|
+ v-if="$hasPermission('main:user:save')"
|
|
|
|
|
+ >
|
|
|
|
|
+ 添加
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ icon="el-icon-upload2"
|
|
|
|
|
+ plain
|
|
|
|
|
+ @click="uploadFile"
|
|
|
|
|
+ v-if="$hasPermission('main:user:save')"
|
|
|
|
|
+ >导入</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ icon="el-icon-download"
|
|
|
|
|
+ plain
|
|
|
|
|
+ @click="exportUsers"
|
|
|
|
|
+ >导出</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ icon="el-icon-guide"
|
|
|
|
|
+ plain
|
|
|
|
|
+ @click="bindingProcess"
|
|
|
|
|
+ >绑定关键工序</el-button
|
|
|
|
|
+ >
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 角色列 -->
|
|
<!-- 角色列 -->
|
|
|
<template v-slot:roles="{ row }">
|
|
<template v-slot:roles="{ row }">
|
|
@@ -157,7 +167,7 @@
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
custom-class="ele-dialog-form"
|
|
custom-class="ele-dialog-form"
|
|
|
:maxable="true"
|
|
:maxable="true"
|
|
|
- @close="userShow = false"
|
|
|
|
|
|
|
+ @close="userShow = false"
|
|
|
>
|
|
>
|
|
|
<UserSearch @search="reload1"></UserSearch>
|
|
<UserSearch @search="reload1"></UserSearch>
|
|
|
<!-- 数据表格 -->
|
|
<!-- 数据表格 -->
|
|
@@ -175,6 +185,11 @@
|
|
|
<el-button type="primary" @click="getUser"> 确认 </el-button>
|
|
<el-button type="primary" @click="getUser"> 确认 </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</ele-modal>
|
|
</ele-modal>
|
|
|
|
|
+
|
|
|
|
|
+ <critical-process
|
|
|
|
|
+ ref="criticalProcessRef"
|
|
|
|
|
+ @chooseProcess="chooseProcess"
|
|
|
|
|
+ ></critical-process>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -194,6 +209,7 @@
|
|
|
import { pageUsers, exportUsers } from '@/api/system/user';
|
|
import { pageUsers, exportUsers } from '@/api/system/user';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import { getFactoryarea } from '@/api/factoryModel';
|
|
import { getFactoryarea } from '@/api/factoryModel';
|
|
|
|
|
+ import criticalProcess from './criticalProcess.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [tabMixins, dictMixins],
|
|
mixins: [tabMixins, dictMixins],
|
|
@@ -202,7 +218,8 @@
|
|
|
OrgUserSearch,
|
|
OrgUserSearch,
|
|
|
OrgUserEdit,
|
|
OrgUserEdit,
|
|
|
addUsers,
|
|
addUsers,
|
|
|
- UserSearch
|
|
|
|
|
|
|
+ UserSearch,
|
|
|
|
|
+ criticalProcess
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
// 机构id
|
|
// 机构id
|
|
@@ -226,10 +243,17 @@
|
|
|
columns() {
|
|
columns() {
|
|
|
let columnsVersion = this.columnsVersion;
|
|
let columnsVersion = this.columnsVersion;
|
|
|
return [
|
|
return [
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 45,
|
|
|
|
|
+ type: 'selection',
|
|
|
|
|
+ columnKey: 'selection',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
columnKey: 'index',
|
|
columnKey: 'index',
|
|
|
|
|
+ label: '序号',
|
|
|
type: 'index',
|
|
type: 'index',
|
|
|
- width: 45,
|
|
|
|
|
|
|
+ width: 55,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
fixed: 'left'
|
|
fixed: 'left'
|
|
@@ -339,7 +363,7 @@
|
|
|
width: 200,
|
|
width: 200,
|
|
|
align: 'left',
|
|
align: 'left',
|
|
|
resizable: false,
|
|
resizable: false,
|
|
|
- fixed:'right',
|
|
|
|
|
|
|
+ fixed: 'right',
|
|
|
slot: 'action',
|
|
slot: 'action',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
@@ -432,7 +456,8 @@
|
|
|
{ value: 6, label: '离职' }
|
|
{ value: 6, label: '离职' }
|
|
|
],
|
|
],
|
|
|
pageSize: this.$store.state.tablePageSize,
|
|
pageSize: this.$store.state.tablePageSize,
|
|
|
- cacheKeyUrl: 'ef00833a-system-organization'
|
|
|
|
|
|
|
+ cacheKeyUrl: 'ef00833a-system-organization',
|
|
|
|
|
+ selection: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -470,7 +495,7 @@
|
|
|
size: limit,
|
|
size: limit,
|
|
|
groupId: this.organizationId,
|
|
groupId: this.organizationId,
|
|
|
isQueryLZ: 1,
|
|
isQueryLZ: 1,
|
|
|
- affiDeptId:1
|
|
|
|
|
|
|
+ affiDeptId: 1
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|
|
@@ -507,6 +532,22 @@
|
|
|
this.$refs.userEditRef.setDisabled(disabled);
|
|
this.$refs.userEditRef.setDisabled(disabled);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ bindingProcess() {
|
|
|
|
|
+ if (this.selection.length == 0) {
|
|
|
|
|
+ return this.$message.warning('请至少选择一名需要绑定的人员');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.criticalProcessRef.open(this.selection, 'batch');
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ chooseProcess() {
|
|
|
|
|
+ this.reload();
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ handleSelectionChange(data) {
|
|
|
|
|
+ this.selection = data;
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
// 解除绑定
|
|
// 解除绑定
|
|
|
toUnBind(row) {
|
|
toUnBind(row) {
|
|
|
const loading = this.$loading({ lock: true });
|
|
const loading = this.$loading({ lock: true });
|