|
|
@ -122,6 +122,36 @@ |
|
|
:visible.sync="specialVisible" |
|
|
:visible.sync="specialVisible" |
|
|
width="600px" |
|
|
width="600px" |
|
|
:append-to-body="true"> |
|
|
:append-to-body="true"> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:data="securityList" |
|
|
|
|
|
border |
|
|
|
|
|
v-loading="dataListLoading" |
|
|
|
|
|
highlight-current-row |
|
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
|
style="width: 100%;"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
v-for="(item,index) in columnList" :key="index" |
|
|
|
|
|
:sortable="item.columnSortable" |
|
|
|
|
|
:prop="item.columnProp" |
|
|
|
|
|
:header-align="item.headerAlign" |
|
|
|
|
|
:show-overflow-tooltip="item.showOverflowTooltip" |
|
|
|
|
|
:align="item.align" |
|
|
|
|
|
:fixed="item.fixed" |
|
|
|
|
|
:width="item.columnWidth" |
|
|
|
|
|
:label="item.columnLabel"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> |
|
|
|
|
|
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|
|
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
type="selection" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
width="50"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<el-button type="primary">确定</el-button> |
|
|
<el-button type="primary">确定</el-button> |
|
|
<el-button @click="specialVisible = false" type="primary">取消</el-button> |
|
|
<el-button @click="specialVisible = false" type="primary">取消</el-button> |
|
|
@ -148,10 +178,13 @@ |
|
|
import {getUserAccessSiteList, saveUserAccessSiteList} from '@/api/factory/accessSite.js' |
|
|
import {getUserAccessSiteList, saveUserAccessSiteList} from '@/api/factory/accessSite.js' |
|
|
import {getSiteList} from '@/api/factory/site.js' |
|
|
import {getSiteList} from '@/api/factory/site.js' |
|
|
import AddOrUpdate from './user-add-or-update' |
|
|
import AddOrUpdate from './user-add-or-update' |
|
|
|
|
|
import {getUserBusinessRoleList, saveUserBusinessRole,} from '@/api/auditManagement/auditType.js' |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
getUserBusinessRoleList, |
|
|
|
|
|
saveUserBusinessRole, |
|
|
|
|
|
} from '@/api/auditManagement/auditType.js' |
|
|
|
|
|
|
|
|
getUserSpecialSecurity, |
|
|
|
|
|
saveUserSpecialSecurity, |
|
|
|
|
|
updateUserSpecialSecurity |
|
|
|
|
|
} from '@/api/factory/userSpecialSecurity.js' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
@ -173,11 +206,27 @@ export default { |
|
|
dataForm: { |
|
|
dataForm: { |
|
|
userName: '' |
|
|
userName: '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
columnList: [{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
serialNumber: 'security'+this.$route.meta.menuId+'securitydesc', |
|
|
|
|
|
tableId: this.$route.meta.menuId + 'security', |
|
|
|
|
|
tableName: "locationTable", |
|
|
|
|
|
columnProp: "securitydesc", |
|
|
|
|
|
headerAlign: "center", |
|
|
|
|
|
align: "center", |
|
|
|
|
|
columnLabel: "", |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: false, |
|
|
|
|
|
},], |
|
|
dataList: [], |
|
|
dataList: [], |
|
|
|
|
|
securityList: [], |
|
|
siteList: [], |
|
|
siteList: [], |
|
|
selectSitList: ["1",], |
|
|
|
|
|
|
|
|
selectSitList: [], |
|
|
selectUser: {}, |
|
|
selectUser: {}, |
|
|
|
|
|
|
|
|
pageIndex: 1, |
|
|
pageIndex: 1, |
|
|
pageSize: 20, |
|
|
pageSize: 20, |
|
|
totalPage: 0, |
|
|
totalPage: 0, |
|
|
@ -213,13 +262,18 @@ export default { |
|
|
} |
|
|
} |
|
|
return itemSite; |
|
|
return itemSite; |
|
|
}) |
|
|
}) |
|
|
saveUserAccessSiteList(accessSiteList).then(({data}) => { |
|
|
|
|
|
|
|
|
let accessSite = { |
|
|
|
|
|
userid: this.selectUser.username, |
|
|
|
|
|
accessSiteList: accessSiteList |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
saveUserAccessSiteList(accessSite).then(({data}) => { |
|
|
if (data.code === 0) { |
|
|
if (data.code === 0) { |
|
|
this.$message.success(data.msg) |
|
|
this.$message.success(data.msg) |
|
|
this.siteList = [] |
|
|
this.siteList = [] |
|
|
this.selectSitList = [] |
|
|
this.selectSitList = [] |
|
|
this.siteVisible = false |
|
|
this.siteVisible = false |
|
|
}else { |
|
|
|
|
|
|
|
|
} else { |
|
|
this.$message.warning(data.msg) |
|
|
this.$message.warning(data.msg) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|