|
|
@ -2,22 +2,22 @@ |
|
|
<div class="mod-user"> |
|
|
<div class="mod-user"> |
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-input v-model="dataForm.userName" placeholder="用户账号" clearable></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="dataForm.userName" :placeholder="$t('sys.user.userAccount')" clearable></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-input v-model="dataForm.userNo" placeholder="人员编码" clearable></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="dataForm.userNo" :placeholder="$t('sys.user.userNo')" clearable></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-input v-model="dataForm.userDisplay" placeholder="用户名" clearable></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="dataForm.userDisplay" :placeholder="$t('sys.user.userName')" clearable></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button @click="getDataList()" type="primary">{{ buttons.search || '查询' }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" type="primary" @click="addOrUpdateHandle()">{{ buttons.add || '新增' }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="siteAuthorize()"> {{ buttons.factoryAuthorization || '工厂授权' }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="buAuthorize()">{{ buttons.buAuthorization || 'BU授权' }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="deptAuthorize()">{{ buttons.deptAuthorization || '部门授权' }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="businessRoleAuthorize()">{{ buttons.businessRoleAuthorization || '岗位角色' }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="machineResourceAuthorize()">{{ buttons.machineResourceAuthorization || '机台授权' }}</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="getDataList()" type="primary">{{ buttons.search || $t('sys.common.search') }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" type="primary" @click="addOrUpdateHandle()">{{ buttons.add || $t('sys.common.add') }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="siteAuthorize()"> {{ buttons.factoryAuthorization || $t('sys.user.factoryAuthorization') }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="buAuthorize()">{{ buttons.buAuthorization || $t('sys.user.buAuthorization') }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="deptAuthorize()">{{ buttons.deptAuthorization || $t('sys.user.deptAuthorization') }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="businessRoleAuthorize()">{{ buttons.businessRoleAuthorization || $t('sys.user.businessRoleAuthorization') }}</el-button> |
|
|
|
|
|
<el-button v-if="isAuth('sys:user:save')" :disabled="this.showButton" type="primary" @click="machineResourceAuthorize()">{{ buttons.machineResourceAuthorization || $t('sys.user.machineResourceAuthorization') }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
@ -34,40 +34,40 @@ |
|
|
prop="username" |
|
|
prop="username" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
:label="buttons.username||'用户账号'"> |
|
|
|
|
|
|
|
|
:label="buttons.username||$t('sys.user.userAccount')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="userNo" |
|
|
prop="userNo" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
:label="buttons.userNo||'人员编码'"> |
|
|
|
|
|
|
|
|
:label="buttons.userNo||$t('sys.user.userNo')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="userDisplay" |
|
|
prop="userDisplay" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
:label="buttons.userDisplay||'用户名'"> |
|
|
|
|
|
|
|
|
:label="buttons.userDisplay||$t('sys.user.userName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="email" |
|
|
prop="email" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
:label="buttons.email||'邮箱'"> |
|
|
|
|
|
|
|
|
:label="buttons.email||$t('sys.user.email')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="mobile" |
|
|
prop="mobile" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
:label="buttons.mobile||'手机号'"> |
|
|
|
|
|
|
|
|
:label="buttons.mobile||$t('sys.user.mobile')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="status" |
|
|
prop="status" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
:label="buttons.status||'状态'"> |
|
|
|
|
|
|
|
|
:label="buttons.status||$t('sys.user.status')"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link v-if="scope.row.status === 0" type="success">{{ buttons.disable || '禁用' }}</el-link> |
|
|
|
|
|
<el-link v-else type="danger">{{ buttons.normal || '正常' }}</el-link> |
|
|
|
|
|
|
|
|
<el-link v-if="scope.row.status === 0" type="success">{{ buttons.disable || $t('sys.user.disabled') }}</el-link> |
|
|
|
|
|
<el-link v-else type="danger">{{ buttons.normal || $t('sys.user.normal') }}</el-link> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
@ -75,17 +75,17 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
width="180" |
|
|
width="180" |
|
|
:label="buttons.createTime||'创建时间'"> |
|
|
|
|
|
|
|
|
:label="buttons.createTime||$t('sys.common.createTime')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
fixed="right" |
|
|
fixed="right" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
width="110" |
|
|
width="110" |
|
|
:label="buttons.cz||'操作'"> |
|
|
|
|
|
|
|
|
:label="buttons.cz||$t('sys.common.operation')"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<a v-if="isAuth('sys:user:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.userId)">{{ buttons.edit || '修改' }}</a> |
|
|
|
|
|
<a v-if="isAuth('sys:user:delete')" type="text" size="small" @click="deleteHandle(scope.row.userId)">{{ buttons.delete || '删除' }}</a> |
|
|
|
|
|
|
|
|
<a v-if="isAuth('sys:user:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.userId)">{{ buttons.edit || $t('sys.common.edit') }}</a> |
|
|
|
|
|
<a v-if="isAuth('sys:user:delete')" type="text" size="small" @click="deleteHandle(scope.row.userId)">{{ buttons.delete || $t('sys.common.delete') }}</a> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -105,23 +105,23 @@ |
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList" @close="closeDialog"></add-or-update> |
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList" @close="closeDialog"></add-or-update> |
|
|
|
|
|
|
|
|
<!-- 新增用户site --> |
|
|
<!-- 新增用户site --> |
|
|
<el-dialog title="工厂" :close-on-click-modal="false" v-drag :visible.sync="siteAddModal" width="900px"> |
|
|
|
|
|
|
|
|
<el-dialog :title="$t('sys.user.factory')" :close-on-click-modal="false" v-drag :visible.sync="siteAddModal" width="900px"> |
|
|
<div style="font-size: 12px"> |
|
|
<div style="font-size: 12px"> |
|
|
<el-form :inline="true" label-position="top" :model="siteData"> |
|
|
<el-form :inline="true" label-position="top" :model="siteData"> |
|
|
<el-form-item :label="'工厂编码'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.factoryCode')"> |
|
|
<el-input v-model="siteData.siteid" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="siteData.siteid" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'工厂名称'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.factoryName')"> |
|
|
<el-input v-model="siteData.sitename" clearable style="width: 200px"></el-input> |
|
|
<el-input v-model="siteData.sitename" clearable style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="getSite()">查询</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="getSite()">{{ $t('sys.common.search') }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<span style="font-size: 12px" >可选工厂</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.availableFactory') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="siteList1" |
|
|
:data="siteList1" |
|
|
@ -142,27 +142,27 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="工厂编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.factoryCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="sitename" |
|
|
prop="sitename" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="工厂名称"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.factoryName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="addSite()">添加>></el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="addSite()">{{ $t('sys.user.addToRight') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="deleteSite()">删除<<</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="deleteSite()">{{ $t('sys.user.removeToLeft') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<span style="font-size: 12px" >已有工厂</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.existingFactory') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="siteList2" |
|
|
:data="siteList2" |
|
|
@ -183,20 +183,20 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="工厂编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.factoryCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="sitename" |
|
|
prop="sitename" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="工厂名称"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.factoryName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
</el-container> |
|
|
</el-container> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="siteAddModal = false">关闭</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="siteAddModal = false">{{ $t('sys.common.close') }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
@ -204,23 +204,23 @@ |
|
|
<el-dialog title="BU" :close-on-click-modal="false" v-drag :visible.sync="buAddModal" width="900px"> |
|
|
<el-dialog title="BU" :close-on-click-modal="false" v-drag :visible.sync="buAddModal" width="900px"> |
|
|
<div style="font-size: 12px"> |
|
|
<div style="font-size: 12px"> |
|
|
<el-form :inline="true" label-position="top" :model="buData"> |
|
|
<el-form :inline="true" label-position="top" :model="buData"> |
|
|
<el-form-item :label="'工厂编码'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.factoryCode')"> |
|
|
<el-input v-model="buData.site" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="buData.site" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'BU编码'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.buCode')"> |
|
|
<el-input v-model="buData.buNo" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="buData.buNo" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'BU名称'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.buName')"> |
|
|
<el-input v-model="buData.buDesc" clearable style="width: 200px"></el-input> |
|
|
<el-input v-model="buData.buDesc" clearable style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="getBu()">查询</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="getBu()">{{ $t('sys.common.search') }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<span style="font-size: 12px" >可选BU</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.availableBu') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="buList1" |
|
|
:data="buList1" |
|
|
@ -241,34 +241,34 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="工厂编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.factoryCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="buNo" |
|
|
prop="buNo" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="BU编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.buCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="buDesc" |
|
|
prop="buDesc" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="BU名称"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.buName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="addBu()">添加>></el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="addBu()">{{ $t('sys.user.addToRight') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="deleteBu()">删除<<</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="deleteBu()">{{ $t('sys.user.removeToLeft') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<span style="font-size: 12px" >已有BU</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.existingBu') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="buList2" |
|
|
:data="buList2" |
|
|
@ -289,48 +289,48 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="工厂编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.factoryCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="buNo" |
|
|
prop="buNo" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="BU编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.buCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="buDesc" |
|
|
prop="buDesc" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="BU名称"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.buName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
</el-container> |
|
|
</el-container> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="buAddModal = false">关闭</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="buAddModal = false">{{ $t('sys.common.close') }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 新增用户部门 --> |
|
|
<!-- 新增用户部门 --> |
|
|
<el-dialog title="部门" :close-on-click-modal="false" v-drag :visible.sync="deptAddModal" width="900px"> |
|
|
|
|
|
|
|
|
<el-dialog :title="$t('sys.user.dept')" :close-on-click-modal="false" v-drag :visible.sync="deptAddModal" width="900px"> |
|
|
<div style="font-size: 12px"> |
|
|
<div style="font-size: 12px"> |
|
|
<el-form :inline="true" label-position="top" :model="deptData"> |
|
|
<el-form :inline="true" label-position="top" :model="deptData"> |
|
|
<el-form-item :label="'部门编码'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.deptCode')"> |
|
|
<el-input v-model="deptData.departmentId" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="deptData.departmentId" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'部门名称'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.deptName')"> |
|
|
<el-input v-model="deptData.departmentName" clearable style="width: 200px"></el-input> |
|
|
<el-input v-model="deptData.departmentName" clearable style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="getDept()">查询</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="getDept()">{{ $t('sys.common.search') }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<span style="font-size: 12px" >可选部门</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.availableDept') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="deptList1" |
|
|
:data="deptList1" |
|
|
@ -358,27 +358,27 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="部门编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.deptCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="departmentName" |
|
|
prop="departmentName" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="部门名称"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.deptName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="addDept()">添加>></el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="addDept()">{{ $t('sys.user.addToRight') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="deleteDept()">删除<<</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="deleteDept()">{{ $t('sys.user.removeToLeft') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<span style="font-size: 12px" >已有部门</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.existingDept') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="deptList2" |
|
|
:data="deptList2" |
|
|
@ -406,41 +406,41 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="部门编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.deptCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="departmentName" |
|
|
prop="departmentName" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="部门名称"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.deptName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
</el-container> |
|
|
</el-container> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="deptAddModal = false">关闭</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="deptAddModal = false">{{ $t('sys.common.close') }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 新增用户角色 --> |
|
|
<!-- 新增用户角色 --> |
|
|
<el-dialog title="角色" :close-on-click-modal="false" v-drag :visible.sync="businessRoleAddModal" width="900px"> |
|
|
|
|
|
|
|
|
<el-dialog :title="$t('sys.user.role')" :close-on-click-modal="false" v-drag :visible.sync="businessRoleAddModal" width="900px"> |
|
|
<div style="font-size: 12px"> |
|
|
<div style="font-size: 12px"> |
|
|
<el-form :inline="true" label-position="top" :model="businessRoleData"> |
|
|
<el-form :inline="true" label-position="top" :model="businessRoleData"> |
|
|
<el-form-item :label="'角色编码'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.roleCode')"> |
|
|
<el-input v-model="businessRoleData.roleNo" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="businessRoleData.roleNo" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'角色名称'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.role.roleName')"> |
|
|
<el-input v-model="businessRoleData.roleDesc" clearable style="width: 200px"></el-input> |
|
|
<el-input v-model="businessRoleData.roleDesc" clearable style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="getBusinessRole()">查询</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="getBusinessRole()">{{ $t('sys.common.search') }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<span style="font-size: 12px" >可选角色</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.availableRole') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="businessRoleList1" |
|
|
:data="businessRoleList1" |
|
|
@ -461,27 +461,27 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="角色编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.roleCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="roleDesc" |
|
|
prop="roleDesc" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="角色名称"> |
|
|
|
|
|
|
|
|
:label="$t('sys.role.roleName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="addBusinessRole()">添加>></el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="addBusinessRole()">{{ $t('sys.user.addToRight') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="deleteBusinessRole()">删除<<</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="deleteBusinessRole()">{{ $t('sys.user.removeToLeft') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<span style="font-size: 12px" >已有角色</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.existingRole') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="businessRoleList2" |
|
|
:data="businessRoleList2" |
|
|
@ -502,44 +502,44 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="角色编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.roleCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="roleDesc" |
|
|
prop="roleDesc" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="角色名称"> |
|
|
|
|
|
|
|
|
:label="$t('sys.role.roleName')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
</el-container> |
|
|
</el-container> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="businessRoleAddModal = false">关闭</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="businessRoleAddModal = false">{{ $t('sys.common.close') }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 机台授权弹窗 --> |
|
|
<!-- 机台授权弹窗 --> |
|
|
<el-dialog title="机台授权" :close-on-click-modal="false" v-drag :visible.sync="machineResourceAddModal" width="900px"> |
|
|
|
|
|
|
|
|
<el-dialog :title="$t('sys.user.machineResourceAuthorization')" :close-on-click-modal="false" v-drag :visible.sync="machineResourceAddModal" width="900px"> |
|
|
<div style="font-size: 12px"> |
|
|
<div style="font-size: 12px"> |
|
|
<el-form :inline="true" label-position="top" :model="machineResourceData"> |
|
|
<el-form :inline="true" label-position="top" :model="machineResourceData"> |
|
|
<el-form-item :label="'工厂编码'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.factoryCode')"> |
|
|
<el-input v-model="machineResourceData.site" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="machineResourceData.site" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'机台编码'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.machineCode')"> |
|
|
<el-input v-model="machineResourceData.resourceID" clearable style="width: 120px"></el-input> |
|
|
<el-input v-model="machineResourceData.resourceID" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'机台描述'"> |
|
|
|
|
|
|
|
|
<el-form-item :label="$t('sys.user.machineDesc')"> |
|
|
<el-input v-model="machineResourceData.resourceDesc" clearable style="width: 200px"></el-input> |
|
|
<el-input v-model="machineResourceData.resourceDesc" clearable style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="getMachineResource()">查询</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="getMachineResource()">{{ $t('sys.common.search') }}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-container style="margin-top: 0px;"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<el-main style="width: 400px; padding: 1px"> |
|
|
<span style="font-size: 12px" >可选机台</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.availableMachine') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="machineResourceList1" |
|
|
:data="machineResourceList1" |
|
|
@ -560,27 +560,27 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="机台编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.machineCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="resourceDesc" |
|
|
prop="resourceDesc" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="机台描述"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.machineDesc')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<el-main style="width: 111px;padding: 1px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<div style="margin-top: 182px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="addMachineResource()">添加>></el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="addMachineResource()">{{ $t('sys.user.addToRight') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<div style="margin-top: 15px;margin-left: 18px"> |
|
|
<el-button type="primary" @click="deleteMachineResource()">删除<<</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="deleteMachineResource()">{{ $t('sys.user.removeToLeft') }}</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-main> |
|
|
</el-main> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<el-main style="width: 400px;padding: 1px"> |
|
|
<span style="font-size: 12px" >已有机台</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 12px" >{{ $t('sys.user.existingMachine') }}</span> |
|
|
<el-table |
|
|
<el-table |
|
|
height="400px" |
|
|
height="400px" |
|
|
:data="machineResourceList2" |
|
|
:data="machineResourceList2" |
|
|
@ -601,20 +601,20 @@ |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="80" |
|
|
min-width="80" |
|
|
label="机台编码"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.machineCode')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="resourceDesc" |
|
|
prop="resourceDesc" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
label="机台描述"> |
|
|
|
|
|
|
|
|
:label="$t('sys.user.machineDesc')"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-main> |
|
|
</el-main> |
|
|
</el-container> |
|
|
</el-container> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
<el-button type="primary" @click="machineResourceAddModal = false">关闭</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="machineResourceAddModal = false">{{ $t('sys.common.close') }}</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
@ -661,29 +661,29 @@ export default { |
|
|
userDisplay: '' |
|
|
userDisplay: '' |
|
|
}, |
|
|
}, |
|
|
buttons: { |
|
|
buttons: { |
|
|
cz: '操作', |
|
|
|
|
|
search: '查询', |
|
|
|
|
|
add: '添加', |
|
|
|
|
|
edit: '编辑', |
|
|
|
|
|
delete: '删除', |
|
|
|
|
|
specialCompetencies: '特殊权限', |
|
|
|
|
|
factoryAuthorization: '工厂授权', |
|
|
|
|
|
buAuthorization: 'BU授权', |
|
|
|
|
|
deptAuthorization: '部门授权', |
|
|
|
|
|
businessRoleAuthorization: '岗位角色', |
|
|
|
|
|
machineResourceAuthorization: '机台授权', |
|
|
|
|
|
createTime: '创建时间', |
|
|
|
|
|
username: '用户账号', |
|
|
|
|
|
userNo: '人员编码', |
|
|
|
|
|
userDisplay: '用户名', |
|
|
|
|
|
email: '邮箱', |
|
|
|
|
|
mobile: '手机号', |
|
|
|
|
|
status: '状态', |
|
|
|
|
|
disable: '禁用', |
|
|
|
|
|
normal: '正常', |
|
|
|
|
|
auth: '审核', |
|
|
|
|
|
allAuth: '所有权限', |
|
|
|
|
|
currentAuth: '当前权限' |
|
|
|
|
|
|
|
|
cz: this.$t('sys.common.operation'), |
|
|
|
|
|
search: this.$t('sys.common.search'), |
|
|
|
|
|
add: this.$t('sys.common.add'), |
|
|
|
|
|
edit: this.$t('sys.common.edit'), |
|
|
|
|
|
delete: this.$t('sys.common.delete'), |
|
|
|
|
|
specialCompetencies: this.$t('sys.role.authorize'), |
|
|
|
|
|
factoryAuthorization: this.$t('sys.user.factoryAuthorization'), |
|
|
|
|
|
buAuthorization: this.$t('sys.user.buAuthorization'), |
|
|
|
|
|
deptAuthorization: this.$t('sys.user.deptAuthorization'), |
|
|
|
|
|
businessRoleAuthorization: this.$t('sys.user.businessRoleAuthorization'), |
|
|
|
|
|
machineResourceAuthorization: this.$t('sys.user.machineResourceAuthorization'), |
|
|
|
|
|
createTime: this.$t('sys.common.createTime'), |
|
|
|
|
|
username: this.$t('sys.user.userAccount'), |
|
|
|
|
|
userNo: this.$t('sys.user.userNo'), |
|
|
|
|
|
userDisplay: this.$t('sys.user.userName'), |
|
|
|
|
|
email: this.$t('sys.user.email'), |
|
|
|
|
|
mobile: this.$t('sys.user.mobile'), |
|
|
|
|
|
status: this.$t('sys.user.status'), |
|
|
|
|
|
disable: this.$t('sys.user.disabled'), |
|
|
|
|
|
normal: this.$t('sys.user.normal'), |
|
|
|
|
|
auth: this.$t('sys.role.authorize'), |
|
|
|
|
|
allAuth: this.$t('sys.role.authorize'), |
|
|
|
|
|
currentAuth: this.$t('sys.role.authorize') |
|
|
}, |
|
|
}, |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
selectUser: {}, |
|
|
selectUser: {}, |
|
|
@ -846,9 +846,9 @@ export default { |
|
|
let userIds = id ? [id] : this.dataListSelections.map(item => { |
|
|
let userIds = id ? [id] : this.dataListSelections.map(item => { |
|
|
return item.userId |
|
|
return item.userId |
|
|
}) |
|
|
}) |
|
|
this.$confirm(`确定对[id=${userIds.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
|
|
|
this.$confirm(this.$t('sys.user.confirmDelete', { ids: userIds.join(','), action: id ? this.$t('sys.common.delete') : this.$t('sys.user.batchDelete') }), this.$t('sys.common.tip'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm'), |
|
|
|
|
|
cancelButtonText: this.$t('sys.common.cancel'), |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.$http({ |
|
|
this.$http({ |
|
|
@ -857,7 +857,7 @@ export default { |
|
|
data: this.$http.adornData(userIds, false) |
|
|
data: this.$http.adornData(userIds, false) |
|
|
}).then(({data}) => { |
|
|
}).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.$message.success('操作成功') |
|
|
|
|
|
|
|
|
this.$message.success(this.$t('sys.common.operationSuccess')) |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(data.msg) |
|
|
this.$message.error(data.msg) |
|
|
@ -919,7 +919,7 @@ export default { |
|
|
// 添加site |
|
|
// 添加site |
|
|
addSite () { |
|
|
addSite () { |
|
|
if(this.siteSelections1 == null || this.siteSelections1.length === 0){ |
|
|
if(this.siteSelections1 == null || this.siteSelections1.length === 0){ |
|
|
this.$message.warning('请选择可选工厂!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectAvailableFactory')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -934,8 +934,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.siteSelections1 = [] |
|
|
this.siteSelections1 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -944,7 +944,7 @@ export default { |
|
|
// 删除site |
|
|
// 删除site |
|
|
deleteSite () { |
|
|
deleteSite () { |
|
|
if(this.siteSelections2 == null || this.siteSelections2.length === 0){ |
|
|
if(this.siteSelections2 == null || this.siteSelections2.length === 0){ |
|
|
this.$message.warning('请选择已有工厂!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectExistingFactory')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -959,8 +959,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.siteSelections2 = [] |
|
|
this.siteSelections2 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1017,7 +1017,7 @@ export default { |
|
|
// 添加bu |
|
|
// 添加bu |
|
|
addBu () { |
|
|
addBu () { |
|
|
if (this.buSelections1 == null || this.buSelections1.length === 0) { |
|
|
if (this.buSelections1 == null || this.buSelections1.length === 0) { |
|
|
this.$message.warning('请选择可选BU!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectAvailableBu')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -1032,8 +1032,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.buSelections1 = [] |
|
|
this.buSelections1 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1042,7 +1042,7 @@ export default { |
|
|
// 删除bu |
|
|
// 删除bu |
|
|
deleteBu () { |
|
|
deleteBu () { |
|
|
if (this.buSelections2 == null || this.buSelections2.length === 0) { |
|
|
if (this.buSelections2 == null || this.buSelections2.length === 0) { |
|
|
this.$message.warning('请选择已有BU!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectExistingBu')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -1057,8 +1057,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.buSelections2 = [] |
|
|
this.buSelections2 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1116,7 +1116,7 @@ export default { |
|
|
// 添加部门 |
|
|
// 添加部门 |
|
|
addDept () { |
|
|
addDept () { |
|
|
if (this.deptSelections1 == null || this.deptSelections1.length === 0) { |
|
|
if (this.deptSelections1 == null || this.deptSelections1.length === 0) { |
|
|
this.$message.warning('请选择可选部门!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectAvailableDept')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -1131,8 +1131,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.deptSelections1 = [] |
|
|
this.deptSelections1 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1141,7 +1141,7 @@ export default { |
|
|
// 删除部门 |
|
|
// 删除部门 |
|
|
deleteDept () { |
|
|
deleteDept () { |
|
|
if (this.deptSelections2 == null || this.deptSelections2.length === 0) { |
|
|
if (this.deptSelections2 == null || this.deptSelections2.length === 0) { |
|
|
this.$message.warning('请选择已有部门!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectExistingDept')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -1156,8 +1156,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.deptSelections2 = [] |
|
|
this.deptSelections2 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1214,7 +1214,7 @@ export default { |
|
|
//添加角色 |
|
|
//添加角色 |
|
|
addBusinessRole () { |
|
|
addBusinessRole () { |
|
|
if (this.businessRoleSelections1 == null || this.businessRoleSelections1.length === 0) { |
|
|
if (this.businessRoleSelections1 == null || this.businessRoleSelections1.length === 0) { |
|
|
this.$message.warning('请选择可选角色!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectAvailableRole')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -1229,8 +1229,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.businessRoleSelections1 = [] |
|
|
this.businessRoleSelections1 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1239,7 +1239,7 @@ export default { |
|
|
//删除角色 |
|
|
//删除角色 |
|
|
deleteBusinessRole () { |
|
|
deleteBusinessRole () { |
|
|
if (this.businessRoleSelections2 == null || this.businessRoleSelections2.length === 0) { |
|
|
if (this.businessRoleSelections2 == null || this.businessRoleSelections2.length === 0) { |
|
|
this.$message.warning('请选择已有角色!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectExistingRole')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -1254,8 +1254,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.businessRoleSelections2 = [] |
|
|
this.businessRoleSelections2 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1312,7 +1312,7 @@ export default { |
|
|
// 添加机台 |
|
|
// 添加机台 |
|
|
addMachineResource () { |
|
|
addMachineResource () { |
|
|
if (this.machineResourceSelections1 == null || this.machineResourceSelections1.length === 0) { |
|
|
if (this.machineResourceSelections1 == null || this.machineResourceSelections1.length === 0) { |
|
|
this.$message.warning('请选择可选机台!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectAvailableMachine')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -1327,8 +1327,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.machineResourceSelections1 = [] |
|
|
this.machineResourceSelections1 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
@ -1337,7 +1337,7 @@ export default { |
|
|
// 删除机台 |
|
|
// 删除机台 |
|
|
deleteMachineResource () { |
|
|
deleteMachineResource () { |
|
|
if (this.machineResourceSelections2 == null || this.machineResourceSelections2.length === 0) { |
|
|
if (this.machineResourceSelections2 == null || this.machineResourceSelections2.length === 0) { |
|
|
this.$message.warning('请选择已有机台!') |
|
|
|
|
|
|
|
|
this.$message.warning(this.$t('sys.user.selectExistingMachine')) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
let inData = { |
|
|
let inData = { |
|
|
@ -1352,8 +1352,8 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.machineResourceSelections2 = [] |
|
|
this.machineResourceSelections2 = [] |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
|
|
|
this.$alert(data.msg, this.$t('sys.user.error'), { |
|
|
|
|
|
confirmButtonText: this.$t('sys.common.confirm') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|