add: 分公司系统管理(菜单角色权限)
parent
8fa17b32d1
commit
0776f090ed
|
@ -76,8 +76,7 @@
|
|||
<el-table-column prop="TYPENAME" label="清单类型" width="140" align="center" show-overflow-tooltip />
|
||||
<el-table-column prop="" label="操作" width="140" align="center">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="primary" icon="el-icon-caret-right" size="mini" @click="handleCheck(row.LISTMANAGER_ID)">开始检查</el-button>
|
||||
|
||||
<el-button v-show="add" type="primary" icon="el-icon-caret-right" size="mini" @click="handleCheck(row.LISTMANAGER_ID)">开始检查</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -141,6 +140,7 @@ export default {
|
|||
this.getList()
|
||||
this.getTreeData()
|
||||
this.getDict()
|
||||
this.hasButton()
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
@ -196,6 +196,23 @@ export default {
|
|||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.checkrecordfhadminadd // 新增权限
|
||||
this.del = data.checkrecordfhadmindel // 删除权限
|
||||
this.edit = data.checkrecordfhadminedit // 修改权限
|
||||
this.toExcel = data.toExcel
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
|
||||
// 跳转检查页面
|
||||
handleCheck(id) {
|
||||
this.$parent.activeName = 'Checkdstart'
|
||||
|
|
|
@ -89,9 +89,9 @@
|
|||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="add" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="del" type="danger" icon="el-icon-delete" plain @click="batchDel">删除</el-button>
|
||||
<el-button type="success" icon="el-icon-finished" plain @click="handleInherit">继承清单</el-button>
|
||||
<el-button v-show="edit" type="success" icon="el-icon-finished" plain @click="handleInherit">继承清单</el-button>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
</template>
|
||||
<template v-else>
|
||||
<el-button type="primary" icon="el-icon-tickets" size="mini" @click="goCheck(row.CHECKRECORD_ID)" >检查记录</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" size="mini" @click="goDel(row.CHECKRECORD_ID)">删除</el-button>
|
||||
<el-button v-show="del" type="danger" icon="el-icon-delete" size="mini" @click="goDel(row.CHECKRECORD_ID)">删除</el-button>
|
||||
</template>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -100,6 +100,7 @@ export default {
|
|||
page: 1,
|
||||
limit: 20
|
||||
},
|
||||
// recordlist:list
|
||||
|
||||
defaultProps: {
|
||||
value: 'id',
|
||||
|
@ -129,8 +130,25 @@ export default {
|
|||
created() {
|
||||
this.getList()
|
||||
this.getTreeData()
|
||||
this.hasButton()
|
||||
},
|
||||
methods: {
|
||||
hasButton: function() {
|
||||
var keys = 'recordlist:add,recordlist:del,recordlist:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.recordlistfhadminadd // 新增权限
|
||||
this.del = data.recordlistfhadmindel // 删除权限
|
||||
this.edit = data.recordlistfhadminedit // 修改权限
|
||||
this.toExcel = data.toExcel
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
getRowKey(row) {
|
||||
return row.CHECKRECORD_ID
|
||||
},
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button v-if="addBtnType" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-if="add" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList(HIDDENREGION_ID)" />
|
||||
</div>
|
||||
|
|
|
@ -76,14 +76,14 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="操作" align="left" width="200">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.QUALIFICATIONS_ID)">修改</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.QUALIFICATIONS_ID)">删除</el-button>
|
||||
<el-button v-show="edit" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.QUALIFICATIONS_ID)">修改</el-button>
|
||||
<el-button v-show="del" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.QUALIFICATIONS_ID)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="add" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<!-- <el-button v-show="del" type="danger" icon="el-icon-delete" plain @click="batchDel">删除</el-button>-->
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
|
|
|
@ -79,14 +79,14 @@
|
|||
</span>
|
||||
检查表二维码
|
||||
</el-button>
|
||||
<el-button v-show="row.STATE === 1" type="primary" icon="el-icon-success" @click="openCheck(row)">启用
|
||||
<el-button v-show="edit && row.STATE === 1" type="primary" icon="el-icon-success" @click="openCheck(row)">启用
|
||||
</el-button>
|
||||
<el-button v-show="row.STATE === 0" type="danger" icon="el-icon-error" @click="closeCheck(row)">禁用
|
||||
<el-button v-show="edit && row.STATE === 0" type="danger" icon="el-icon-error" @click="closeCheck(row)">禁用
|
||||
</el-button>
|
||||
<el-button type="success" icon="el-icon-success" @click="getInfo(row)">查看</el-button>
|
||||
<el-button type="success" icon="el-icon-edit" @click="handleEdit(row)">修改
|
||||
<el-button v-show="edit" type="success" icon="el-icon-edit" @click="handleEdit(row)">修改
|
||||
</el-button>
|
||||
<el-button type="danger" icon="el-icon-error" @click="delCheckDetails(row)">
|
||||
<el-button v-show="del" type="danger" icon="el-icon-error" @click="delCheckDetails(row)">
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
|
@ -94,7 +94,7 @@
|
|||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="add" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="del" type="danger" icon="el-icon-delete" plain @click="batchDel">批量删除</el-button>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
|
||||
|
@ -231,6 +231,7 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.getList()
|
||||
this.hasButton()
|
||||
this.getTreeData()
|
||||
this.getDict()
|
||||
this.loginuser = JSON.parse(sessionStorage.getItem('user')).USER_ID
|
||||
|
@ -358,7 +359,6 @@ export default {
|
|||
this.listLoading = false
|
||||
this.varList = data.varList
|
||||
this.total = data.page.totalResult
|
||||
this.hasButton()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
@ -425,16 +425,16 @@ export default {
|
|||
},
|
||||
// 判断按钮权限,用于是否显示按钮
|
||||
hasButton: function() {
|
||||
var keys = 'listmanager:add,listmanager:del,listmanager:edit,toExcel'
|
||||
var keys = 'firefightingchecklist:add,firefightingchecklist:del,firefightingchecklist:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.listmanagerfhadminadd // 新增权限
|
||||
this.del = data.listmanagerfhadmindel // 删除权限
|
||||
this.edit = data.listmanagerfhadminedit // 修改权限
|
||||
this.add = data.firefightingchecklistfhadminadd // 新增权限
|
||||
this.del = data.firefightingchecklistfhadmindel // 删除权限
|
||||
this.edit = data.firefightingchecklistfhadminedit // 修改权限
|
||||
this.toExcel = data.toExcel
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
|
|
|
@ -286,7 +286,6 @@ export default {
|
|||
this.listLoading = false
|
||||
this.varList = data.varList
|
||||
this.total = data.page.totalResult
|
||||
this.hasButton()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
@ -392,16 +391,16 @@ export default {
|
|||
},
|
||||
|
||||
hasButton: function() {
|
||||
var keys = 'listmanager:add,listmanager:del,listmanager:edit,toExcel'
|
||||
var keys = 'firefightingdevice:add,firefightingdevice:del,firefightingdevice:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.listmanagerfhadminadd // 新增权限
|
||||
this.del = data.listmanagerfhadmindel // 删除权限
|
||||
this.edit = data.listmanagerfhadminedit // 修改权限
|
||||
this.add = data.firefightingdevicefhadminadd // 新增权限
|
||||
this.del = data.firefightingdevicefhadmindel // 删除权限
|
||||
this.edit = data.firefightingdevicefhadminedit // 修改权限
|
||||
this.toExcel = data.toExcel // 导出到excel权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
@click="handleEdit(row.FIRE_POINT_ID)">修改
|
||||
</el-button>
|
||||
<el-button
|
||||
v-show="row.DEVICE_COUNT == 0"
|
||||
v-show="del && row.DEVICE_COUNT == 0"
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
|
@ -76,14 +76,14 @@
|
|||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" @click="handleDelete">批量删除</el-button>
|
||||
<el-button v-show="add" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="del" type="danger" icon="el-icon-delete" @click="handleDelete">批量删除</el-button>
|
||||
</div>
|
||||
<pagination
|
||||
:total="total"
|
||||
:page.sync="listQuery.page"
|
||||
:limit.sync="listQuery.limit"
|
||||
@pagination="getList(FIRE_POINT_ID)"/>
|
||||
@pagination="getList()"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -217,7 +217,6 @@ export default {
|
|||
this.listLoading = false
|
||||
this.varList = data.varList
|
||||
this.total = data.page.totalResult
|
||||
this.hasButton()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
@ -308,16 +307,16 @@ export default {
|
|||
})
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'listmanager:add,listmanager:del,listmanager:edit,toExcel'
|
||||
var keys = 'firefightingpoints:add,firefightingpoints:del,firefightingpoints:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.listmanagerfhadminadd // 新增权限
|
||||
this.del = data.listmanagerfhadmindel // 删除权限
|
||||
this.edit = data.listmanagerfhadminedit // 修改权限
|
||||
this.add = data.firefightingpointsfhadminadd // 新增权限
|
||||
this.del = data.firefightingpointsfhadmindel // 删除权限
|
||||
this.edit = data.firefightingpointsfhadminedit // 修改权限
|
||||
this.toExcel = data.toExcel // 导出到excel权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
|
|
|
@ -181,6 +181,7 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.getList()
|
||||
this.hasButton()
|
||||
this.getTreeData()
|
||||
this.getDict()
|
||||
},
|
||||
|
@ -229,7 +230,6 @@ export default {
|
|||
this.varList = data.varList
|
||||
this.ls = data.ls
|
||||
this.total = data.page.totalResult
|
||||
this.hasButton()
|
||||
this.pd = data.pd
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
|
@ -341,16 +341,16 @@ export default {
|
|||
this.$parent.FIRE_RECORD_ID = FIRE_RECORD_ID
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel'
|
||||
var keys = 'firefightingrecord:add,firefightingrecord:del,firefightingrecord:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.checkrecordfhadminadd // 新增权限
|
||||
this.del = data.checkrecordfhadmindel // 删除权限
|
||||
this.edit = data.checkrecordfhadminedit // 修改权限
|
||||
this.add = data.firefightingrecordfhadminadd // 新增权限
|
||||
this.del = data.firefightingrecordfhadmindel // 删除权限
|
||||
this.edit = data.firefightingrecordfhadminedit // 修改权限
|
||||
this.toExcel = data.toExcel // 导出到excel权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
|
|
|
@ -209,16 +209,16 @@ export default {
|
|||
this.$parent.activeName = 'List'
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel'
|
||||
var keys = 'firefightingrecord:add,firefightingrecord:del,firefightingrecord:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.checkrecordfhadminadd // 新增权限
|
||||
this.del = data.checkrecordfhadmindel // 删除权限
|
||||
this.edit = data.checkrecordfhadminedit // 修改权限
|
||||
this.add = data.firefightingrecordfhadminadd // 新增权限
|
||||
this.del = data.firefightingrecordfhadmindel // 删除权限
|
||||
this.edit = data.firefightingrecordfhadminedit // 修改权限
|
||||
this.toExcel = data.toExcel // 导出到excel权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
|
|
|
@ -53,21 +53,21 @@
|
|||
@click="handleEdit(row.FIRE_REGION_ID,row.STATE)">编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
v-show="edit && row.ITEMCOUNT == 0"
|
||||
v-show="del && row.ITEMCOUNT == 0"
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
@click="handelDelete(row)">删除
|
||||
</el-button>
|
||||
<el-button
|
||||
v-show="row.STATE === 0"
|
||||
v-show="edit && row.STATE === 0"
|
||||
type="warning"
|
||||
icon="el-icon-circle-close"
|
||||
size="mini"
|
||||
@click="handleClose(row.FIRE_REGION_ID,row.FIRE_REGION_NAME)">禁用
|
||||
</el-button>
|
||||
<el-button
|
||||
v-show="row.STATE === 1"
|
||||
v-show="edit && row.STATE === 1"
|
||||
type="success"
|
||||
icon="el-icon-circle-check"
|
||||
size="mini"
|
||||
|
@ -78,8 +78,8 @@
|
|||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button type="danger" icon="el-icon-plus" @click="handelDelete">批量删除</el-button>
|
||||
<el-button v-show="add" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="del" type="danger" icon="el-icon-plus" @click="handelDelete">批量删除</el-button>
|
||||
</div>
|
||||
<pagination
|
||||
:total="total"
|
||||
|
@ -373,16 +373,16 @@ export default {
|
|||
},
|
||||
|
||||
hasButton: function() {
|
||||
var keys = 'listmanager:add,listmanager:del,listmanager:edit,toExcel'
|
||||
var keys = 'firefightingregion:add,firefightingregion:del,firefightingregion:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.listmanagerfhadminadd // 新增权限
|
||||
this.del = data.listmanagerfhadmindel // 删除权限
|
||||
this.edit = data.listmanagerfhadminedit // 修改权限
|
||||
this.add = data.firefightingregionfhadminadd // 新增权限
|
||||
this.del = data.firefightingregionfhadmindel // 删除权限
|
||||
this.edit = data.firefightingregionfhadminedit // 修改权限
|
||||
this.toExcel = data.toExcel // 导出到excel权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="操作" width="190">
|
||||
<template slot-scope="{row}">
|
||||
<el-button v-show="edit" icon="el-icon-view" size="mini" @click="goView('view',row.HIDDENEXAMINE_ID)">查看</el-button>
|
||||
<el-button icon="el-icon-view" size="mini" @click="goView('view',row.HIDDENEXAMINE_ID)">查看</el-button>
|
||||
<el-button v-show="edit" :disabled="row.exaSTATE !='-1'" type="success" icon="el-icon-check" size="mini" @click="goView('confirm',row.HIDDENEXAMINE_ID)">审核</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
</el-table-column>-->
|
||||
<el-table-column label="操作" width="220">
|
||||
<template slot-scope="{row}">
|
||||
<el-button v-show="edit" icon="el-icon-view" size="mini" @click="goView(row.HIDDEN_ID,'view')">查看</el-button>
|
||||
<el-button icon="el-icon-view" size="mini" @click="goView(row.HIDDEN_ID,'view')">查看</el-button>
|
||||
<el-button v-show="edit" type="success" icon="el-icon-view" size="mini" @click="goView(row.HIDDEN_ID,'edit')">确认</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
</el-table-column>-->
|
||||
<el-table-column label="操作" width="220">
|
||||
<template slot-scope="{row}">
|
||||
<el-button v-show="edit" icon="el-icon-view" size="mini" @click="goView(row.HIDDEN_ID,'view')">查看</el-button>
|
||||
<el-button icon="el-icon-view" size="mini" @click="goView(row.HIDDEN_ID,'view')">查看</el-button>
|
||||
<el-button v-show="edit" type="success" icon="el-icon-view" size="mini" @click="goView(row.HIDDEN_ID,'edit')">核实</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="操作" width="190">
|
||||
<template slot-scope="{row}">
|
||||
<el-button v-show="edit" icon="el-icon-view" size="mini" @click="goView('view',row.HIDDENEXAMINE_ID)">查看</el-button>
|
||||
<el-button icon="el-icon-view" size="mini" @click="goView('view',row.HIDDENEXAMINE_ID)">查看</el-button>
|
||||
<el-button v-show="edit" :disabled="row.exaSTATE !='-1'" type="success" icon="el-icon-check" size="mini" @click="goView('confirm',row.HIDDENEXAMINE_ID)">审核</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
|
@ -179,15 +179,15 @@
|
|||
<el-button v-if="hasButtenAllMap.buttenTypeRectify" :disabled="!row.STATE =='1' || !row.STATE =='10'" type="danger" icon="el-icon-document" size="mini" @click="goRectify(row.HIDDEN_ID)">整改</el-button>
|
||||
<el-button v-if="hasButtenAllMap.buttenTypePostpone" :disabled="!((row.STATE =='-1' || row.STATE =='1' || row.STATE =='10') && row.exaCount === 0 )" type="warning" icon="el-icon-document" size="mini" @click="goApplyDelay(row)">申请延期</el-button>
|
||||
<el-button v-if="hasButtenAllMap.buttenTypeCheck" :disabled="row.STATE !='2'" type="success" icon="el-icon-document-checked" size="mini" @click="goCheck(row.HIDDEN_ID)">验收</el-button>
|
||||
<el-button v-if="hasButtenAllMap.buttenTypeUpdate && row.STATE =='16' && row.CREATOR === loginUserId" icon="el-icon-edit" size="mini" @click="goEdit(row.HIDDEN_ID)">编辑</el-button>
|
||||
<el-button v-show="hasButtenAllMap.buttenTypeDelete " v-if="row.STATE =='16'&& row.CREATOR === loginUserId && ISMAIN !='1'" type="danger" icon="el-icon-delete" size="mini" @click="goDel(row.HIDDEN_ID)">删除</el-button>
|
||||
<el-button v-if="hasButtenAllMap.buttenTypeUpdate && edit && row.STATE =='16' && row.CREATOR === loginUserId" icon="el-icon-edit" size="mini" @click="goEdit(row.HIDDEN_ID)">编辑</el-button>
|
||||
<el-button v-show="hasButtenAllMap.buttenTypeDelete && del " v-if="row.STATE =='16'&& row.CREATOR === loginUserId && ISMAIN !='1'" type="danger" icon="el-icon-delete" size="mini" @click="goDel(row.HIDDEN_ID)">删除</el-button>
|
||||
<el-button v-show="hasButtenAllMap.buttenTypeDelete && del" type="danger" icon="el-icon-delete" size="mini" @click="goDel(row.HIDDEN_ID)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button v-show="hasButtenAllMap.buttenTypeAdd" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="add && hasButtenAllMap.buttenTypeAdd" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
</div>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
|
|
|
@ -145,9 +145,9 @@
|
|||
<el-table-column label="操作" align="center" width="400">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.OUTSOURCED_ID)">查看</el-button>
|
||||
<el-button v-if="loginUserId == row.CREATOR" type="success" icon="el-icon-view" size="mini" @click="handleJie(row.OUTSOURCED_ID)">结束</el-button>
|
||||
<el-button v-show="edit" v-if="loginUserId == row.CREATOR" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.OUTSOURCED_ID)">编辑</el-button>
|
||||
<el-button v-show="del" v-if="loginUserId == row.CREATOR" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.OUTSOURCED_ID)">删除</el-button>
|
||||
<el-button v-if="edit && loginUserId == row.CREATOR" type="success" icon="el-icon-view" size="mini" @click="handleJie(row.OUTSOURCED_ID)">结束</el-button>
|
||||
<el-button v-if="edit && loginUserId == row.CREATOR" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.OUTSOURCED_ID)">编辑</el-button>
|
||||
<el-button v-if="del && loginUserId == row.CREATOR" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.OUTSOURCED_ID)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
|
|
@ -7,13 +7,6 @@
|
|||
<el-input v-model="KEYWORDS" placeholder="搜索姓名、单位名称、特种作业证书编号"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="6">-->
|
||||
<!-- <el-form-item label="人员类型">-->
|
||||
<!-- <el-select ref="PTYPE" v-model="PTYPE" title="人员类型" style="width: 100%;">-->
|
||||
<!-- <el-option v-for="item in typeList" :key="item.ID" :label="item.NAME" :value="item.NAME" />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="6">
|
||||
<el-form-item label="作业类别">
|
||||
<el-select ref="JOB_TYPE" v-model="JOB_TYPE" title="作业类别" style="width: 100%;">
|
||||
|
@ -76,7 +69,7 @@
|
|||
<el-table-column label="操作" align="left" width="400">
|
||||
<template slot-scope="{row}">
|
||||
<el-button v-show="edit" type="success" icon="el-icon-edit" size="mini" @click="resetPwd(row.PERSONNELMANAGEMENT_ID,row.NAME)">重置密码</el-button>
|
||||
<el-button v-show="edit" type="success" icon="el-icon-view" size="mini" @click="gosee(row.PERSONNELMANAGEMENT_ID)">查看</el-button>
|
||||
<el-button type="success" icon="el-icon-view" size="mini" @click="gosee(row.PERSONNELMANAGEMENT_ID)">查看</el-button>
|
||||
<el-button v-show="del" :disabled="loginUserId !== row.CREATOR" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row.PERSONNELMANAGEMENT_ID)">删除</el-button>
|
||||
<el-button v-show="edit" :disabled="loginUserId !== row.CREATOR" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row.PERSONNELMANAGEMENT_ID)">编辑</el-button>
|
||||
</template>
|
||||
|
|
|
@ -7,13 +7,6 @@
|
|||
<el-input v-model="KEYWORDS" placeholder="搜索相关方单位名称、负责人姓名" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="6">-->
|
||||
<!-- <el-form-item label="类型" label-width="50px">-->
|
||||
<!-- <el-select v-model="UNITS_TYPE" style="width: 100%;">-->
|
||||
<!-- <el-option v-for="item in typeList" :key="item.ID" :label="item.NAME" :value="item.NAME" />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="6">
|
||||
<el-form-item label-width="10px">
|
||||
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||
|
|
|
@ -63,14 +63,14 @@
|
|||
<template slot-scope="{row}">
|
||||
<el-button type="success" icon="el-icon-caret-right" size="mini" @click="showVideo(row)">播放</el-button>
|
||||
<el-button
|
||||
v-show="row.CORPINFO_ID"
|
||||
v-show="edit && row.CORPINFO_ID"
|
||||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
@click="handleEdit(row)">修改
|
||||
</el-button>
|
||||
<el-button
|
||||
v-show="row.CORPINFO_ID"
|
||||
v-show="del && row.CORPINFO_ID"
|
||||
:disabled="row.ITEM_COUNT != 0"
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
|
@ -82,8 +82,8 @@
|
|||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" @click="handleBatchDel">批量删除</el-button>
|
||||
<el-button v-show="add" type="primary" icon="el-icon-plus" @click="handleAdd">新增</el-button>
|
||||
<el-button v-show="del" type="danger" icon="el-icon-delete" @click="handleBatchDel">批量删除</el-button>
|
||||
</div>
|
||||
<pagination
|
||||
:total="total"
|
||||
|
@ -197,6 +197,7 @@ import { requestFN } from '@/utils/request'
|
|||
import waves from '@/directive/waves' // waves directive
|
||||
import SelectTree from '@/components/SelectTree'
|
||||
import TiandiMap from '../../../../components/TianMap/TiandiMap'
|
||||
import de from 'element-ui/src/locale/lang/de'
|
||||
|
||||
export default {
|
||||
components: { Pagination, SelectTree, TiandiMap },
|
||||
|
@ -293,6 +294,7 @@ export default {
|
|||
},
|
||||
async created() {
|
||||
await this.getUnitsList()
|
||||
await this.hasButton()
|
||||
await this.getList()
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
@ -300,6 +302,25 @@ export default {
|
|||
clearInterval(this.timer)
|
||||
},
|
||||
methods: {
|
||||
de() {
|
||||
return de
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'videoinfomanager:add,videoinfomanager:del,videoinfomanager:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.videoinfomanagerfhadminadd // 新增权限
|
||||
this.del = data.videoinfomanagerfhadmindel // 删除权限
|
||||
this.edit = data.videoinfomanagerfhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
|
||||
// 播放
|
||||
handleBack() {
|
||||
if (this.dialogVideoAll) {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
</el-col>
|
||||
<el-col :span="16">
|
||||
<el-form-item style="text-align: right">
|
||||
<el-button v-waves size="mini" plain type="info" icon="el-icon-bottom-right" @click="dialogFormDaoru = true">
|
||||
<el-button v-waves v-show="add" size="mini" plain type="info" icon="el-icon-bottom-right" @click="dialogFormDaoru = true">
|
||||
导入
|
||||
</el-button>
|
||||
<el-button v-waves size="mini" plain type="info" icon="el-icon-right" @click="getDaochu">
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item style="text-align: right">
|
||||
<el-button v-waves class="filter-item" type="info" icon="el-icon-bottom-right" size="mini" plain @click="dialogFormDaoru = true">
|
||||
<el-button v-waves v-show="add" class="filter-item" type="info" icon="el-icon-bottom-right" size="mini" plain @click="dialogFormDaoru = true">
|
||||
导入
|
||||
</el-button>
|
||||
<el-button v-waves class="filter-item" type="info" icon="el-icon-right" size="mini" plain @click="getDaochu">
|
||||
|
|
|
@ -111,12 +111,12 @@
|
|||
<template slot-scope="{row}">
|
||||
<el-button icon="el-icon-view" size="mini" @click="goDetail(row)">查看</el-button>
|
||||
<el-button
|
||||
v-if="(row.INSPECTION_STATUS === '3' || row.INSPECTION_STATUS === '4') && row.INSPECTED_SITEUSER_ID.includes(USER_ID)"
|
||||
v-if="edit && (row.INSPECTION_STATUS === '3' || row.INSPECTION_STATUS === '4') && row.INSPECTED_SITEUSER_ID.includes(USER_ID)"
|
||||
type="primary"
|
||||
icon="el-icon-view"
|
||||
size="mini"
|
||||
@click="goAssign(row)">指派</el-button>
|
||||
<el-button v-if="(row.INSPECTION_STATUS === '6' || row.INSPECTION_STATUS === '5'||row.INSPECTION_STATUS === '7') && row.checkout === 1" type="success" icon="el-icon-view" size="mini" @click="goAccept(row)">验收</el-button>
|
||||
<el-button v-if=" edit && (row.INSPECTION_STATUS === '6' || row.INSPECTION_STATUS === '5'||row.INSPECTION_STATUS === '7') && row.checkout === 1" type="success" icon="el-icon-view" size="mini" @click="goAccept(row)">验收</el-button>
|
||||
<!-- <el-button v-if="row.INSPECTION_STATUS === '3'" type="success" icon="el-icon-view" size="mini" @click="goAccept(row)">验收</el-button>-->
|
||||
|
||||
</template>
|
||||
|
|
|
@ -80,10 +80,10 @@
|
|||
<el-table-column label="操作" align="center" width="300">
|
||||
<template slot-scope="{row}">
|
||||
<el-button icon="el-icon-view" size="mini" @click="goDetail(row)">查看</el-button>
|
||||
<el-button v-if="row.CREATOR === USER_ID && row.HIDDEN_STATUS === '101'" type="primary" icon="el-icon-edit" size="mini" @click="goAssign(row, '102')">指派确认人</el-button>
|
||||
<el-button v-if="row.CONFIRM_USER === USER_ID && row.HIDDEN_STATUS === '102'" type="primary" icon="el-icon-edit" size="mini" @click="goAssign(row, '1')">指派整改人</el-button>
|
||||
<el-button v-if="row.RECTIFICATIONOR === USER_ID && row.HIDDEN_STATUS === '1'" type="primary" icon="el-icon-edit" size="mini" @click="goRectify(row)">隐患整改</el-button>
|
||||
<el-button v-if="row.CHECKOR === USER_ID && row.HIDDEN_STATUS === '2'" type="primary" icon="el-icon-edit" size="mini" @click="goAccept(row)">隐患验收</el-button>
|
||||
<el-button v-if="edit && row.CREATOR === USER_ID && row.HIDDEN_STATUS === '101'" type="primary" icon="el-icon-edit" size="mini" @click="goAssign(row, '102')">指派确认人</el-button>
|
||||
<el-button v-if="edit && row.CONFIRM_USER === USER_ID && row.HIDDEN_STATUS === '102'" type="primary" icon="el-icon-edit" size="mini" @click="goAssign(row, '1')">指派整改人</el-button>
|
||||
<el-button v-if="edit && row.RECTIFICATIONOR === USER_ID && row.HIDDEN_STATUS === '1'" type="primary" icon="el-icon-edit" size="mini" @click="goRectify(row)">隐患整改</el-button>
|
||||
<el-button v-if="edit && row.CHECKOR === USER_ID && row.HIDDEN_STATUS === '2'" type="primary" icon="el-icon-edit" size="mini" @click="goAccept(row)">隐患验收</el-button>
|
||||
<!-- <el-button v-if="row.CREATOR === USER_ID && row.HIDDEN_STATUS === '4'" type="primary" icon="el-icon-view" size="mini" @click="goDetail(row)">考评</el-button>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -279,16 +279,16 @@ export default {
|
|||
},
|
||||
// 判断按钮权限,用于是否显示按钮
|
||||
hasButton: function() {
|
||||
var keys = 'safetyenvironmental:add,safetyenvironmental:del,safetyenvironmental:edit,toExcel'
|
||||
var keys = 'safetyenvironmentalhidden:add,safetyenvironmentalhidden:del,safetyenvironmentalhidden:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.safetyenvironmentalfhadminadd // 新增权限
|
||||
this.del = data.safetyenvironmentalfhadmindel // 删除权限
|
||||
this.edit = data.safetyenvironmentalfhadminedit // 修改权限
|
||||
this.add = data.safetyenvironmentalhiddenfhadminadd // 新增权限
|
||||
this.del = data.safetyenvironmentalhiddenfhadmindel // 删除权限
|
||||
this.edit = data.safetyenvironmentalhiddenfhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
|
|
@ -127,8 +127,7 @@
|
|||
<template slot-scope="{row}">
|
||||
<el-button icon="el-icon-view" size="mini" @click="goDetail(row)">查看</el-button>
|
||||
<el-button
|
||||
v-show="edit && row.INSPECTION_STATUS == '2'"
|
||||
v-if=" row.INSPECTED_SITEUSER_ID === loginUserId"
|
||||
v-show="edit && row.INSPECTION_STATUS == '2' && row.INSPECTED_SITEUSER_ID === loginUserId"
|
||||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
|
@ -403,16 +402,16 @@ export default {
|
|||
|
||||
// 判断按钮权限,用于是否显示按钮
|
||||
hasButton: function() {
|
||||
var keys = 'safetyenvironmentalinspector:add,safetyenvironmentalinspector:del,safetyenvironmentalinspector:edit,toExcel'
|
||||
var keys = 'safetyenvironmentalexplain:add,safetyenvironmentalexplain:del,safetyenvironmentalexplain:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.safetyenvironmentalinspectorfhadminadd // 新增权限
|
||||
this.del = data.safetyenvironmentalinspectorfhadmindel // 删除权限
|
||||
this.edit = data.safetyenvironmentalinspectorfhadminedit // 修改权限
|
||||
this.add = data.safetyenvironmentalexplainfhadminadd // 新增权限
|
||||
this.del = data.safetyenvironmentalexplainfhadmindel // 删除权限
|
||||
this.edit = data.safetyenvironmentalexplainfhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
<el-table-column label="操作" align="center" width="200">
|
||||
<template slot-scope="{row}">
|
||||
<el-button icon="el-icon-view" size="mini" @click="goDetail(row)">查看</el-button>
|
||||
<el-button type="primary" @click="openTrajectory(row.INSPECTION_ID)">申辩记录</el-button>
|
||||
<el-button v-show="edit" type="primary" @click="openTrajectory(row.INSPECTION_ID)">申辩记录</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -295,16 +295,16 @@ export default {
|
|||
|
||||
// 判断按钮权限,用于是否显示按钮
|
||||
hasButton: function() {
|
||||
var keys = 'safetyenvironmentalinspector:add,safetyenvironmentalinspector:del,safetyenvironmentalinspector:edit,toExcel'
|
||||
var keys = 'safetyenvironmentalplead:add,safetyenvironmentalplead:del,safetyenvironmentalplead:edit,toExcel'
|
||||
requestFN(
|
||||
'/head/hasButton',
|
||||
{
|
||||
keys: keys
|
||||
}
|
||||
).then((data) => {
|
||||
this.add = data.safetyenvironmentalinspectorfhadminadd // 新增权限
|
||||
this.del = data.safetyenvironmentalinspectorfhadmindel // 删除权限
|
||||
this.edit = data.safetyenvironmentalinspectorfhadminedit // 修改权限
|
||||
this.add = data.safetyenvironmentalpleadfhadminadd // 新增权限
|
||||
this.del = data.safetyenvironmentalpleadfhadmindel // 删除权限
|
||||
this.edit = data.safetyenvironmentalpleadfhadminedit // 修改权限
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue