add: 权限配置
parent
0776f090ed
commit
44687ab203
|
@ -68,8 +68,8 @@
|
|||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button icon="el-icon-check" type="success" @click="preExchange">兑换</el-button>
|
||||
<el-button icon="el-icon-check" type="success" @click="updateStage('RELEASE')">发布</el-button>
|
||||
<el-button v-show="edit" icon="el-icon-check" type="success" @click="preExchange">兑换</el-button>
|
||||
<el-button v-show="edit" icon="el-icon-check" type="success" @click="updateStage('RELEASE')">发布</el-button>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
|
@ -87,7 +87,7 @@
|
|||
</el-table>
|
||||
<!-- <el-button icon="el-icon-plus" @click="updateStage('EXCHANGE')">兑换</el-button>-->
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button icon="el-icon-plus" @click="updateStageEXCHANGE('EXCHANGE')">兑换</el-button>
|
||||
<el-button v-show="edit" icon="el-icon-plus" @click="updateStageEXCHANGE('EXCHANGE')">兑换</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
@ -123,6 +123,9 @@ export default {
|
|||
// 页面参数
|
||||
dialogTableVisible: false, // 兑换统计列表隐藏
|
||||
listLoading: false, // 是否加载
|
||||
add: false, // 新增权限
|
||||
del: false, // 删除权限
|
||||
edit: false, // 修改权限
|
||||
listQuery: {
|
||||
page: 1,
|
||||
limit: 20
|
||||
|
@ -170,6 +173,21 @@ export default {
|
|||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'reviewevaluate:add,reviewevaluate:del,reviewevaluate:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.reviewevaluatefhadminadd // 新增权限
|
||||
this.del = data.reviewevaluatefhadmindel // 删除权限
|
||||
this.edit = data.reviewevaluatefhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
// 获取参数列表
|
||||
getParam() {
|
||||
this.listLoading = true
|
||||
|
|
|
@ -43,16 +43,16 @@
|
|||
<el-table-column label="操作" align="center" width="420">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="success" icon="el-icon-view" size="mini" @click="goView(row.PROMISE_ID)">查看</el-button>
|
||||
<el-button v-if="row.ISDELETE === 1" type="success" icon="el-icon-check" size="mini" @click="goEnableOrDisable(0,row.PROMISE_ID)">启用</el-button>
|
||||
<el-button v-if="row.ISDELETE === 0" type="danger" icon="el-icon-close" size="mini" @click="goEnableOrDisable(1,row.PROMISE_ID)">禁用</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" plain @click="handleDelete(row.PROMISE_ID)">删除</el-button>
|
||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="goAddOrEdit(row.PROMISE_ID)">编辑</el-button>
|
||||
<el-button v-if="edit && row.ISDELETE === 1" type="success" icon="el-icon-check" size="mini" @click="goEnableOrDisable(0,row.PROMISE_ID)">启用</el-button>
|
||||
<el-button v-if="edit && row.ISDELETE === 0" type="danger" icon="el-icon-close" size="mini" @click="goEnableOrDisable(1,row.PROMISE_ID)">禁用</el-button>
|
||||
<el-button v-if="del" type="danger" icon="el-icon-delete" plain @click="handleDelete(row.PROMISE_ID)">删除</el-button>
|
||||
<el-button v-if="edit" type="primary" icon="el-icon-edit" size="mini" @click="goAddOrEdit(row.PROMISE_ID)">编辑</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="goAddOrEdit('')">新增</el-button>
|
||||
<el-button v-if="add" type="primary" icon="el-icon-plus" @click="goAddOrEdit('')">新增</el-button>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
|
@ -77,6 +77,9 @@ export default {
|
|||
},
|
||||
total: 0,
|
||||
KEYWORDS: '',
|
||||
add: false, // 新增权限
|
||||
del: false, // 删除权限
|
||||
edit: false, // 修改权限
|
||||
varList: [],
|
||||
dialog: {
|
||||
visible: false,
|
||||
|
@ -86,6 +89,7 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.getList()
|
||||
this.hasButton()
|
||||
},
|
||||
methods: {
|
||||
// 搜索
|
||||
|
@ -149,6 +153,21 @@ export default {
|
|||
this.dialog.visible = true
|
||||
})
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'promise:add,promise:del,promise:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.promisefhadminadd // 新增权限
|
||||
this.del = data.promisefhadmindel // 删除权限
|
||||
this.edit = data.promisefhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
handleDelete(id) {
|
||||
this.$confirm('确定要删除吗?', {
|
||||
confirmButtonText: '确定',
|
||||
|
|
|
@ -87,17 +87,17 @@
|
|||
<el-table-column label="操作" align="center" width="500">
|
||||
<template slot-scope="{row}">
|
||||
<el-button icon="el-icon-view" size="mini" @click="goSee(row.PROMISE_ID)">查看</el-button>
|
||||
<el-button v-if="row.STATE === '1'" type="success" icon="el-icon-check" size="mini" @click="goEnableOrDisable('0',row.PROMISE_ID)">启用</el-button>
|
||||
<el-button v-if="row.STATE === '0'" type="danger" icon="el-icon-close" size="mini" @click="goEnableOrDisable('1',row.PROMISE_ID)">禁用</el-button>
|
||||
<el-button :disabled="row.ISSIGN !== 0" type="primary" icon="el-icon-edit" size="mini" @click="goAddOrEdit(row.PROMISE_ID)">编辑</el-button>
|
||||
<el-button v-if="edit && row.STATE === '1'" type="success" icon="el-icon-check" size="mini" @click="goEnableOrDisable('0',row.PROMISE_ID)">启用</el-button>
|
||||
<el-button v-if="edit && row.STATE === '0'" type="danger" icon="el-icon-close" size="mini" @click="goEnableOrDisable('1',row.PROMISE_ID)">禁用</el-button>
|
||||
<el-button v-if="edit" :disabled="row.ISSIGN !== 0" type="primary" icon="el-icon-edit" size="mini" @click="goAddOrEdit(row.PROMISE_ID)">编辑</el-button>
|
||||
<el-button icon="el-icon-view" size="mini" @click="goDetails(row.PROMISE_ID)">详情</el-button>
|
||||
<el-button v-if="ISMAIN ==='1'" icon="el-icon-close" type="danger" size="mini" @click="goDelete(row.PROMISE_ID)">删除</el-button>
|
||||
<el-button v-if="del && ISMAIN ==='1'" icon="el-icon-close" type="danger" size="mini" @click="goDelete(row.PROMISE_ID)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="goAddOrEdit('')">新增</el-button>
|
||||
<el-button v-if="add" type="primary" icon="el-icon-plus" @click="goAddOrEdit('')">新增</el-button>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
|
@ -118,6 +118,9 @@ export default {
|
|||
page: 1,
|
||||
limit: 20
|
||||
},
|
||||
add: false, // 新增权限
|
||||
del: false, // 删除权限
|
||||
edit: false, // 修改权限
|
||||
total: 0,
|
||||
KEYWORDS: '',
|
||||
LEVEL: '',
|
||||
|
@ -138,6 +141,7 @@ export default {
|
|||
this.getTreeData()
|
||||
this.getLevel()
|
||||
this.getEditMyInfo()
|
||||
this.hasButton()
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
@ -207,6 +211,21 @@ export default {
|
|||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'promisebook:add,promisebook:del,promisebook:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.promisebookfhadminadd // 新增权限
|
||||
this.del = data.promisebookfhadmindel // 删除权限
|
||||
this.edit = data.promisebookfhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
goEnableOrDisable(STATE, PROMISE_ID) {
|
||||
this.$confirm(`确定要${STATE === '1' ? '禁用' : '启用'}当前承诺书吗?`, {
|
||||
type: 'warning'
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
<el-table-column label="操作" align="center" width="200px">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="primary" icon="el-icon-view" size="mini" @click="goView(row.CORPINFO_ID)">查看</el-button>
|
||||
<el-button v-if="row.STATE == '1'" type="primary" icon="el-icon-s-check" size="mini" @click="handleAudit(row.CORPINFO_ID)">审核</el-button>
|
||||
<el-button v-if="edit && row.STATE == '1'" type="primary" icon="el-icon-s-check" size="mini" @click="handleAudit(row.CORPINFO_ID)">审核</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -392,16 +392,16 @@ export default {
|
|||
|
||||
// 判断按钮权限,用于是否显示按钮
|
||||
hasButton: function() {
|
||||
var keys = 'units:add,units:del,units:edit,toExcel'
|
||||
var keys = 'xgfaudit:add,xgfaudit:del,xgfaudit:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.unitsfhadminadd // 新增权限
|
||||
this.del = data.unitsfhadmindel // 删除权限
|
||||
this.edit = data.unitsfhadminedit // 修改权限
|
||||
this.add = data.xgfauditfhadminadd // 新增权限
|
||||
this.del = data.xgfauditfhadmindel // 删除权限
|
||||
this.edit = data.xgfauditfhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="200">
|
||||
<template slot-scope="{row}">
|
||||
<el-button v-if="(row.AUDIT_STATUS === 1 || row.AUDIT_STATUS === 0 ) && (row.MANAGER_USER_ID == USER_ID && row.managerCount != row.USER_COUNT ) || (row.TERRITORIALITY_USER_ID == USER_ID && row.territorialityCount != row.USER_COUNT ) " type="success" icon="el-icon-edit" size="mini" @click="handleAudit(row.TRAININGBATCH_ID)">审核</el-button>
|
||||
<el-button v-if="edit && (row.AUDIT_STATUS === 1 || row.AUDIT_STATUS === 0 ) && (row.MANAGER_USER_ID == USER_ID && row.managerCount != row.USER_COUNT ) || (row.TERRITORIALITY_USER_ID == USER_ID && row.territorialityCount != row.USER_COUNT ) " type="success" icon="el-icon-edit" size="mini" @click="handleAudit(row.TRAININGBATCH_ID)">审核</el-button>
|
||||
<el-button v-else type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row.TRAININGBATCH_ID)">查看</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -100,6 +100,9 @@ export default {
|
|||
},
|
||||
total: 0,
|
||||
varList: [],
|
||||
add: false,
|
||||
del: false,
|
||||
edit: false,
|
||||
XGF_NAME: '',
|
||||
dates: [],
|
||||
statusList: [{ value: 0, label: '股份公司待审核' }, { value: 1, label: '分公司待审核' }, { value: 2, label: '培训中' }, { value: 3, label: '培训完成' }, { value: -1, label: '股份公司审核未通过' }, { value: -2, label: '分公司审核未通过' }],
|
||||
|
@ -108,6 +111,7 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.getList()
|
||||
this.hasButton()
|
||||
},
|
||||
methods: {
|
||||
getQuery() {
|
||||
|
@ -124,6 +128,21 @@ export default {
|
|||
this.AUDIT_STATUS = ''
|
||||
this.getQuery()
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'flowaudit:add,flowaudit:del,flowaudit:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.flowauditfhadminadd // 新增权限
|
||||
this.del = data.flowauditfhadmindel // 删除权限
|
||||
this.edit = data.flowauditfhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
getList() {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
<el-table-column :formatter="(row) => formatStateLabel(row)" prop="STATE" label="状态" />
|
||||
<el-table-column label="操作" align="center" width="120">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="warning" icon="el-icon-refresh" size="mini" @click="resetPassword(row)">重置密码</el-button>
|
||||
<el-button v-show="edit" type="warning" icon="el-icon-refresh" size="mini" @click="resetPassword(row)">重置密码</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -198,6 +198,7 @@ export default {
|
|||
this.getList()
|
||||
this.getDict()
|
||||
this.getTreeList()
|
||||
this.hasButton()
|
||||
},
|
||||
methods: {
|
||||
onChange(value) {
|
||||
|
@ -299,16 +300,16 @@ export default {
|
|||
},
|
||||
// 判断按钮权限,用于是否显示按钮
|
||||
hasButton: function() {
|
||||
var keys = 'relevantunits:add,relevantunits:del,relevantunits:edit,toExcel'
|
||||
var keys = 'xgfinsert:add,xgfinsert:del,xgfinsert:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.corpinfofhadminadd // 新增权限
|
||||
this.del = data.corpinfofhadmindel // 删除权限
|
||||
this.edit = data.corpinfofhadminedit // 修改权限
|
||||
this.add = data.xgfinsertfhadminadd // 新增权限
|
||||
this.del = data.xgfinsertfhadmindel // 删除权限
|
||||
this.edit = data.xgfinsertfhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue