anniuquanxain

This commit is contained in:
2309368887@qq.com 2022-07-21 16:05:09 +08:00
parent ecb23db22e
commit 23ec1dfc38
21 changed files with 83 additions and 46 deletions

View File

@ -96,9 +96,10 @@ const routes = [
"name": "eventfrom",
"path": "/ecm/event_from",
"meta": {
"title": "作业详情",
"title": "事件详情",
"icon": "el-icon-menu",
"hidden": true
"hidden": true,
"perms": ["eventfrom"]
},
"component": "ecm/event_from"
}
@ -109,7 +110,8 @@ const routes = [
"meta": {
"title": "处理作业",
"icon": "el-icon-menu",
"hidden": true
"hidden": true,
"perms": ["eventhandlefrom"]
},
"component": "ecm/event_handlefrom"
},
@ -443,7 +445,8 @@ const routes = [
"meta": {
"title": "入厂项目相关信息",
"icon": "el-icon-menu",
"hidden": true
"hidden": true,
"perms": ["rpjadd"]
},
"component": "rpm/rpjadd"
},
@ -604,7 +607,7 @@ const routes = [
"title": "相关证书",
"icon": "el-icon-menu",
"hidden": true,
"perms": ["certificates"]
},
"component": "hrm/certificate"
},

View File

@ -8,7 +8,7 @@
<el-button
type="primary"
icon="el-icon-plus"
v-auth="area.create"
v-auth="'area.create'"
@click="handleForm('add')"
></el-button>
</div>
@ -125,7 +125,7 @@
text
type="primary"
size="small"
v-auth="area.bind_rail"
v-auth="'area.bind_rail'"
@click="handleRail(scope.row)"
>围栏</el-button
>
@ -133,7 +133,7 @@
text
type="warning"
size="small"
v-auth="area.update"
v-auth="'area.update'"
@click="handleForm('edit', scope.row)"
>编辑</el-button
>
@ -142,7 +142,7 @@
@confirm="handleDel(scope.row, scope.$index)"
>
<template #reference>
<el-button text type="danger" size="small" v-auth="area.delete"
<el-button text type="danger" size="small" v-auth="'area.delete'"
>删除</el-button
>
</template>
@ -160,7 +160,7 @@
<el-button
type="primary"
icon="el-icon-plus"
v-auth="access.create"
v-auth="'access.create'"
@click="handleFormaccess('add')"
></el-button>
</div>
@ -255,7 +255,7 @@
@confirm="handleDelaccess(scope.row, scope.$index)"
>
<template #reference>
<el-button text type="danger" size="small" v-auth="access.delete"
<el-button text type="danger" size="small" v-auth="'access.delete'"
>删除</el-button
>
</template>

View File

@ -59,6 +59,7 @@
type="primary"
link
size="small"
v-auth="'notify_setting.update'"
@click="adds_edit(scope.row)"
>批量布设</el-button
>
@ -75,6 +76,7 @@
type="primary"
plain
icon="el-icon-plus"
v-auth="'notify_setting.update'"
@click="add"
></el-button>
</div>
@ -113,7 +115,7 @@
@confirm="table_del(scope.row, scope.$index)"
>
<template #reference>
<el-button text type="danger" size="small">删除</el-button>
<el-button text type="danger" size="small" v-auth="'notify_setting.delete'">删除</el-button>
</template>
</el-popconfirm>
</template>

View File

@ -8,6 +8,7 @@
type="primary"
plain
icon="el-icon-plus"
v-auth="'event_cate.create'"
@click="add"
></el-button>
<!-- <el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button> -->
@ -78,6 +79,7 @@
type="warning"
link
size="small"
v-auth="'event_cate.update'"
@click="table_edit(scope.row)"
>通用配置</el-button
>
@ -94,6 +96,7 @@
type="primary"
plain
icon="el-icon-plus"
v-auth="'notify_setting.create'"
@click="add2"
></el-button>
</div>
@ -180,6 +183,7 @@
type="danger"
link
size="small"
v-auth="'notify_setting.delete'"
@click="table_del(scope.row, scope.$index)"
>删除</el-button
>

View File

@ -5,6 +5,7 @@
<el-button
type="primary"
icon="el-icon-plus"
v-auth="'certificate.create'"
@click="handleForm('add')"
></el-button>
<!--
@ -52,6 +53,7 @@
text
type="warning"
size="small"
v-auth="'certificate.update'"
@click="handleForm('edit', scope.row)"
>编辑</el-button
>

View File

@ -5,6 +5,7 @@
<el-button
type="primary"
icon="el-icon-plus"
v-auth="'employee.create'"
@click="handleForm('add')"
></el-button>
<!--
@ -63,6 +64,7 @@
type="primary"
size="small"
@click="Addcertificate(scope.row)"
v-auth="'employee.update'"
>绑定证书
</el-button>
<el-button
@ -76,6 +78,7 @@
text
type="warning"
size="small"
v-auth="'employee.update'"
@click="handleForm('edit', scope.row)"
>编辑
</el-button>

View File

@ -2,7 +2,7 @@
<el-container>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="add"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="add" v-auth="'operation.create'"></el-button>
<!-- <el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
<el-button type="primary" plain :disabled="selection.length!=1" @click="permission">权限设置</el-button> -->
</div>
@ -108,6 +108,7 @@
type="primary"
size="small"
@click="creatopl(scope.row)"
v-auth="'operation.create'"
>关联许可证</el-button
>
<el-button
@ -122,6 +123,7 @@
type="warning"
size="small"
@click="table_edit(scope.row, scope.$index)"
v-auth="'operation.update'"
>编辑</el-button
>
<el-button
@ -130,6 +132,7 @@
size="small"
v-if="scope.row.state == 10"
@click="table_del(scope.row)"
v-auth="'operation.delete'"
>删除</el-button
>
</el-button-group>

View File

@ -10,6 +10,7 @@
:title="item.name"
type="primary"
@click="addFire(item.id, item.name)"
v-auth="'opl.create'"
>
{{ item.name }}
</el-button>
@ -104,6 +105,7 @@
type="warning"
size="small"
@click="table_edit(scope.row, scope.$index)"
v-auth="'opl.update'"
>编辑</el-button
>
</el-button-group>

View File

@ -2,7 +2,7 @@
<el-container>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="add"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="add" v-auth="'opl_cate.create'"></el-button>
<!-- <el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
<el-button type="primary" plain :disabled="selection.length!=1" @click="permission">权限设置</el-button> -->
</div>
@ -25,7 +25,7 @@
<template #default="scope">
<el-button-group>
<el-button text type="primary" size="small" @click="table_show(scope.row, scope.$index)">查看</el-button>
<el-button text type="warning" size="small" @click="table_edit(scope.row, scope.$index)">编辑</el-button>
<el-button text type="warning" size="small" @click="table_edit(scope.row, scope.$index)" v-auth="'opl_cate.update'">编辑</el-button>
</el-button-group>
</template>

View File

@ -6,6 +6,7 @@
type="primary"
icon="el-icon-plus"
@click="handleForm('add')"
v-auth="'rcertificate.create'"
></el-button>
<!--
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
@ -54,6 +55,7 @@
type="warning"
size="small"
@click="handleForm('edit', scope.row)"
v-auth="'rcertificate.update'"
>编辑</el-button
>
@ -62,7 +64,7 @@
@confirm="table_del(scope.row, scope.$index)"
>
<template #reference>
<el-button text type="danger" size="small">删除</el-button>
<el-button text type="danger" size="small" v-auth="'rcertificate.delete'">删除</el-button>
</template>
</el-popconfirm>
</el-button-group>

View File

@ -2,7 +2,7 @@
<el-container>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="add"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="add" v-auth="'rparty.create'"></el-button>
<!-- <el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
<el-button type="primary" plain :disabled="selection.length!=1" @click="permission">权限设置</el-button> -->
</div>
@ -65,6 +65,7 @@
type="primary"
size="small"
@click="table_admin(scope.row)"
v-auth="'rparty:assgin'"
>分配账号</el-button>
<el-button
text
@ -78,6 +79,7 @@
type="warning"
size="small"
@click="table_edit(scope.row, scope.$index)"
v-auth="'rparty.update'"
>编辑</el-button
>
<el-popconfirm
@ -85,7 +87,7 @@
@confirm="table_del(scope.row, scope.$index)"
>
<template #reference>
<el-button text type="danger" size="small">删除</el-button>
<el-button text type="danger" size="small" v-auth="'rparty.delete'">删除</el-button>
</template>
</el-popconfirm>
</el-button-group>

View File

@ -2,7 +2,7 @@
<el-container>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="add"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="add" v-auth="'rpj.create'"></el-button>
<!-- <el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
<el-button type="primary" plain :disabled="selection.length!=1" @click="permission">权限设置</el-button> -->
</div>
@ -99,6 +99,7 @@
type="primary"
size="small"
@click="next_add(scope.row, scope.$index)"
v-auth="'rpj.update'"
>继续编辑
</el-button>
@ -121,7 +122,7 @@
@confirm="table_del(scope.row, scope.$index)"
>
<template #reference>
<el-button text type="danger" size="small">删除</el-button>
<el-button text type="danger" size="small" v-auth="'rpj.delete'">删除</el-button>
</template>
</el-popconfirm>
</el-button-group>

View File

@ -2,8 +2,8 @@
<el-container>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="addDept"></el-button>
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="addDept" v-auth="'dept.create'"></el-button>
<el-button type="danger" plain icon="el-icon-delete" v-auth="'dept.delete'" :disabled="selection.length==0" @click="batch_del"></el-button>
</div>
<div class="right-panel">
<div class="right-panel-search">
@ -21,11 +21,11 @@
<el-table-column label="创建日期" prop="create_time" min-width="200"></el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="200">
<template #default="scope">
<el-button link type="primary" size="small" @click="editDept(scope.row, scope.$index)">编辑</el-button>
<el-button link type="primary" size="small" @click="editDept(scope.row, scope.$index)" v-auth="'dept.update'">编辑</el-button>
<el-divider direction="vertical"></el-divider>
<el-popconfirm title="确定删除吗?" @confirm="delDept(scope.row, scope.$index)">
<template #reference>
<el-button link type="danger" size="small">删除</el-button>
<el-button link type="danger" size="small" v-auth="'dept.delete'">删除</el-button>
</template>
</el-popconfirm>
</template>

View File

@ -14,9 +14,9 @@
<span class="do">
<el-button-group>
<el-button icon="el-icon-edit" size="small"
@click.stop="dicTypeEdit(data)"></el-button>
@click.stop="dicTypeEdit(data)" v-auth="'dict.update'"></el-button>
<el-button icon="el-icon-delete" size="small"
@click.stop="dicTypeDel(node, data)"></el-button>
@click.stop="dicTypeDel(node, data)" v-auth="'dict.delete'"></el-button>
</el-button-group>
</span>
</span>
@ -24,15 +24,15 @@
</el-tree>
</el-main>
<el-footer style="height:51px;">
<el-button type="primary" size="mini" icon="el-icon-plus" style="width: 100%;" @click="addDicType">字典分类</el-button>
<el-button type="primary" size="mini" icon="el-icon-plus" style="width: 100%;" @click="addDicType" v-auth="'dict.create'">字典分类</el-button>
</el-footer>
</el-container>
</el-aside>
<el-container class="is-vertical">
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="addDic"></el-button>
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="addDic" v-auth="'dicttype.create'"></el-button>
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del" v-auth="'dicttype.delete'"></el-button>
</div>
</el-header>
<el-main class="nopadding">
@ -49,11 +49,11 @@
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="140">
<template #default="scope">
<el-button link size="small" @click="editDic(scope.row)">编辑</el-button>
<el-button link size="small" @click="editDic(scope.row)" v-auth="'dicttype.update'">编辑</el-button>
<el-divider direction="vertical"></el-divider>
<el-popconfirm title="确定删除吗?" @confirm="delDic(scope.row,scope.$index)">
<template #reference>
<el-button link size="small">删除</el-button>
<el-button link size="small" v-auth="'dicttype.delete'">删除</el-button>
</template>
</el-popconfirm>
</template>

View File

@ -9,6 +9,7 @@
type="primary"
icon="el-icon-plus"
@click="add"
v-auth="'post.create'"
></el-button>
</div>
</el-header>
@ -51,6 +52,7 @@
link
size="small"
@click="table_edit(scope.row)"
v-auth="'post.update'"
>编辑
</el-button>
</template>
@ -67,12 +69,14 @@
type="primary"
icon="el-icon-plus"
@click="addPostRole"
v-auth="'post.update'"
></el-button>
<el-button
type="danger"
plain
icon="el-icon-delete"
@click="delPostRole"
v-auth="'post.delete'"
></el-button>
</div>
</el-header>
@ -105,6 +109,7 @@
link
size="small"
@click="postRoleDel(scope.row)"
v-auth="'post.delete'"
>删除
</el-button>
</template>

View File

@ -2,8 +2,8 @@
<el-container>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="roleAdd"></el-button>
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length!==1" @click="batch_del"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="roleAdd" v-auth="'role.create'"></el-button>
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length!==1" @click="batch_del" v-auth="'role.delete'"></el-button>
<!--<el-button type="primary" plain :disabled="selection.length!=1" @click="permission">权限设置</el-button>-->
</div>
<div class="right-panel">
@ -22,11 +22,11 @@
<el-table-column label="角色描述" prop="description" width="150"></el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="140">
<template #default="scope">
<el-button link size="small" @click="roleEdit(scope.row, scope.$index)">编辑</el-button>
<el-button link size="small" @click="roleEdit(scope.row, scope.$index)" v-auth="'role.update'">编辑</el-button>
<el-divider direction="vertical"></el-divider>
<el-popconfirm title="确定删除吗?" @confirm="roleDel(scope.row, scope.$index)">
<template #reference>
<el-button link size="small">删除</el-button>
<el-button link size="small" v-auth="'role.delete'">删除</el-button>
</template>
</el-popconfirm>
</template>

View File

@ -29,9 +29,9 @@
<el-button type="primary" icon="el-icon-more" size="mini" circle plain></el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item @click="editTask(item)">编辑</el-dropdown-item>
<el-dropdown-item @click="editTask(item)" v-auth="'ptask.update'">编辑</el-dropdown-item>
<el-dropdown-item @click="logs(item)">日志</el-dropdown-item>
<el-dropdown-item @click="delTask(item)" divided>删除</el-dropdown-item>
<el-dropdown-item @click="delTask(item)" divided v-auth="'ptask.delete'">删除</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
@ -40,7 +40,7 @@
</el-card>
</el-col>
<el-col :xl="6" :lg="6" :md="8" :sm="12" :xs="24">
<el-card class="task task-add" shadow="none" @click="addTask">
<el-card class="task task-add" shadow="none" @click="addTask" v-auth="'ptask.create'">
<i class="el-icon-plus"></i>
<p>添加计划任务</p>
</el-card>

View File

@ -31,6 +31,7 @@
<el-button
type="primary"
icon="el-icon-plus"
v-auth="'user.create'"
@click="add"
></el-button>
<!-- <el-button
@ -106,6 +107,7 @@
link
size="small"
@click="formSetting(scope.row)"
v-auth="'user.create'"
>
设置
</el-button>
@ -115,6 +117,7 @@
link
size="small"
@click="formEdit(scope.row, '2')"
v-auth="'user.update'"
>
编辑
</el-button>
@ -124,7 +127,7 @@
@confirm="table_del(scope.row, scope.$index)"
>
<template #reference>
<el-button link type="danger" size="small">
<el-button link type="danger" size="small" v-auth="'user.delete'">
删除
</el-button>
</template>

View File

@ -2,7 +2,7 @@
<el-container>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="add"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="add" v-auth="'visit.create'"></el-button>
</div>
<div class="right-panel">
<div class="right-panel-search">
@ -129,6 +129,7 @@
type="primary"
size="small"
@click="addpepple(scope.row, scope.$index)"
v-auth="'visit.update'"
>继续编辑
</el-button>
<el-button
@ -143,6 +144,7 @@
type="primary"
size="small"
@click="table_del(scope.row)"
v-auth="'visit.delete'"
>删除
</el-button>
</el-button-group>

View File

@ -6,6 +6,7 @@
type="primary"
icon="el-icon-plus"
@click="handleForm('add')"
v-auth="'visit.create'"
></el-button>
<!--
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length==0" @click="batch_del"></el-button>
@ -46,6 +47,7 @@
type="warning"
size="small"
@click="handleForm('edit', scope.row)"
v-auth="'visit.update'"
>编辑</el-button
>
<el-popconfirm
@ -53,7 +55,8 @@
@confirm="delVisitor(scope.row)"
>
<template #reference>
<el-button text type="danger" size="small">删除</el-button>
<el-button text type="danger" size="small"
v-auth="'visit.delete'">删除</el-button>
</template>
</el-popconfirm>
</el-button-group>

View File

@ -2,9 +2,9 @@
<el-container>
<el-header>
<div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="handleAdd"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-auth="'workflow.create'"></el-button>
<el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length!==1"
@click="batch_del"></el-button>
@click="batch_del" v-auth="'workflow.delete'"></el-button>
</div>
<div class="right-panel">
<div class="right-panel-search">
@ -28,13 +28,13 @@
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="220">
<template #default="scope">
<el-button link size="small" type="primary" @click="workflowShow(scope.row)">配置</el-button>
<el-button link size="small" type="primary" @click="workflowShow(scope.row)" v-auth="'workflow.update'">配置</el-button>
<el-divider direction="vertical"></el-divider>
<el-button link size="small" type="primary" @click="workflowEdit(scope.row)">编辑</el-button>
<el-button link size="small" type="primary" @click="workflowEdit(scope.row)" v-auth="'workflow.update'">编辑</el-button>
<el-divider direction="vertical"></el-divider>
<el-popconfirm title="确定删除吗?" @confirm="workflowDel(scope.row)">
<template #reference>
<el-button link size="small" type="danger">删除</el-button>
<el-button link size="small" type="danger" v-auth="'workflow.delete'">删除</el-button>
</template>
</el-popconfirm>
</template>