add: 分公司系统管理(菜单角色权限)

pull/5/head
dearlin 2023-11-28 15:25:53 +08:00
parent 8fa17b32d1
commit 0776f090ed
26 changed files with 142 additions and 103 deletions

View File

@ -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'

View File

@ -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>

View File

@ -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
},

View File

@ -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>

View File

@ -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" />

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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">

View File

@ -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) {

View File

@ -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">

View File

@ -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">

View File

@ -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>

View File

@ -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
})

View File

@ -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
})

View File

@ -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
})