页面权限设置

This commit is contained in:
shijing 2023-12-20 10:05:09 +08:00
parent 39f8a9fda6
commit 76e50e36e2
21 changed files with 39 additions and 38 deletions

BIN
dist.rar Normal file

Binary file not shown.

View File

@ -5,12 +5,12 @@
<el-icon-full-screen /> <el-icon-full-screen />
</el-icon> </el-icon>
</div> </div>
<div class="panel-item hidden-sm-and-down" @click="openBook"> <!-- <div class="panel-item hidden-sm-and-down" @click="openBook">
<el-icon> <el-icon>
<el-icon-files /> <el-icon-files />
</el-icon> </el-icon>
</div> </div> -->
<div class="msg panel-item" @click="showMsg"> <!-- <div class="msg panel-item" @click="showMsg">
<el-badge :hidden="msgList.length == 0" :value="msgList.length" class="badge" type="danger"> <el-badge :hidden="msgList.length == 0" :value="msgList.length" class="badge" type="danger">
<el-icon> <el-icon>
<el-icon-chat-dot-round /> <el-icon-chat-dot-round />
@ -46,11 +46,12 @@
</el-main> </el-main>
<el-footer> <el-footer>
<el-button type="primary" @click="goEvent">事件中心</el-button> <el-button type="primary" @click="goEvent">事件中心</el-button>
<!-- <el-button @click="markRead">全部设为已读</el-button> -->
</el-footer> </el-footer>
</el-container> </el-container>
</el-drawer> </el-drawer>
</div> </div> -->
<!-- <el-button @click="markRead">全部设为已读</el-button> -->
<el-dropdown class="user panel-item" trigger="click" @command="handleUser"> <el-dropdown class="user panel-item" trigger="click" @command="handleUser">
<div class="user-avatar"> <div class="user-avatar">
<el-avatar :size="34" shape="square">{{ userNameF }}</el-avatar> <el-avatar :size="34" shape="square">{{ userNameF }}</el-avatar>

View File

@ -2,8 +2,8 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" @click="add('do_in')">生产入库</el-button> <el-button type="primary" @click="add('do_in')" v-auth="'mio.do'">生产入库</el-button>
<el-button type="primary" @click="add('sale_out')">销售发货</el-button> <el-button type="primary" @click="add('sale_out')" v-auth="'mio.sale'">销售发货</el-button>
<el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型" <el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型"
@change="handleQuery"> @change="handleQuery">
<el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>

View File

@ -2,8 +2,8 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" @click="add('do_in')">生产入库</el-button> <el-button type="primary" @click="add('do_in')" v-auth="'mio.do'">生产入库</el-button>
<el-button type="primary" @click="add('do_out')">生产领料</el-button> <el-button type="primary" @click="add('do_out')" v-auth="'mio.do'">生产领料</el-button>
<el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型" <el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型"
@change="handleQuery"> @change="handleQuery">
<el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>

View File

@ -2,7 +2,7 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" @click="add('pur_in')">采购入库</el-button> <el-button type="primary" @click="add('pur_in')" v-auth="'mio.pur'">采购入库</el-button>
<el-select v-model="query.state" clearable style="width: 120px; margin-left: 2px" placeholder="状态" <el-select v-model="query.state" clearable style="width: 120px; margin-left: 2px" placeholder="状态"
@change="handleQuery"> @change="handleQuery">
<el-option v-for="item in stateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option v-for="item in stateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>

View File

@ -2,8 +2,8 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" @click="add('do_out')">生产领料</el-button> <el-button type="primary" @click="add('do_out')" v-auth="'mio.do'">生产领料</el-button>
<el-button type="primary" @click="add('pur_in')">采购入库</el-button> <el-button type="primary" @click="add('pur_in')" v-auth="'mio.pur'">采购入库</el-button>
<el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型" <el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型"
@change="handleQuery"> @change="handleQuery">
<el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>

View File

@ -8,8 +8,8 @@
<el-button type="primary" @click="add('pur_in')">采购入库</el-button> <el-button type="primary" @click="add('pur_in')">采购入库</el-button>
<el-button type="primary" @click="add('sale_out')">销售发货</el-button> <el-button type="primary" @click="add('sale_out')">销售发货</el-button>
<el-divider direction="vertical"></el-divider> --> <el-divider direction="vertical"></el-divider> -->
<el-button type="primary" @click="add('other_in')">其他入库</el-button> <el-button type="primary" @click="add('other_in')" v-auth="'mio.other'">其他入库</el-button>
<el-button type="primary" @click="add('other_out')">其他出库</el-button> <el-button type="primary" @click="add('other_out')" v-auth="'mio.other'">其他出库</el-button>
<el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型" <el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型"
@change="handleQuery"> @change="handleQuery">
<el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>

View File

@ -45,7 +45,7 @@
<el-table-column label="操作" fixed="right" align="center" width="100px"> <el-table-column label="操作" fixed="right" align="center" width="100px">
<template #default="scope"> <template #default="scope">
<!-- <el-link type="primary" @click="table_check(scope.row)" v-if="mioObj.state==20&&mioObj.type=='do_in'"> --> <!-- <el-link type="primary" @click="table_check(scope.row)" v-if="mioObj.state==20&&mioObj.type=='do_in'"> -->
<el-link type="primary" @click="table_check(scope.row)" v-if="scope.row.test_date==null"> <el-link type="primary" @click="table_check(scope.row)" v-if="scope.row.test_date==null" v-auth="'mioitem.test'">
检验 检验
</el-link> </el-link>
<el-link type="primary" @click="check_Show(scope.row)" v-else> <el-link type="primary" @click="check_Show(scope.row)" v-else>

View File

@ -2,7 +2,7 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <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="'warehouse.create'">新增</el-button>
</div> </div>
<div class="right-panel"> <div class="right-panel">
<!-- <el-input v-model="query.search" placeholder="名称" clearable style="margin-right: 5px;"></el-input> <!-- <el-input v-model="query.search" placeholder="名称" clearable style="margin-right: 5px;"></el-input>

View File

@ -2,7 +2,7 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <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="'material.create'">新增</el-button>
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">

View File

@ -63,12 +63,12 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="140"> <el-table-column label="操作" fixed="right" align="center" width="140">
<template #default="scope"> <template #default="scope">
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'mgroup.update'" <el-button link size="small" @click="table_edit(scope.row)" v-auth="'route.update'"
type="primary">编辑</el-button> type="primary">编辑</el-button>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)"> <el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
<template #reference> <template #reference>
<el-button link size="small" v-auth="'mgroup.delete'" <el-button link size="small" v-auth="'route.delete'"
type="danger">删除</el-button> type="danger">删除</el-button>
</template> </template>
</el-popconfirm> </el-popconfirm>

View File

@ -68,11 +68,11 @@
查看 查看
</el-button> </el-button>
<el-button link type="primary" @click.stop="table_edit(scope.row)" <el-button link type="primary" @click.stop="table_edit(scope.row)"
v-if="scope.row.state == 10"> v-if="scope.row.state == 10" v-auth="'utask.update'">
编辑 编辑
</el-button> </el-button>
<el-popconfirm title="确定删除吗?" @confirm.stop="table_del(scope.row)" <el-popconfirm title="确定删除吗?" @confirm.stop="table_del(scope.row)"
v-if="scope.row.state == 10 || scope.row.state == 14"> v-if="scope.row.state == 10 || scope.row.state == 14" v-auth="'utask.delete'">
<template #reference> <template #reference>
<el-button link type="danger">删除</el-button> <el-button link type="danger">删除</el-button>
</template> </template>

View File

@ -7,7 +7,7 @@
<el-button type="primary" icon="el-icon-plus" @click="utaskCreate" <el-button type="primary" icon="el-icon-plus" @click="utaskCreate"
v-auth="'utask.create'">新增任务</el-button> v-auth="'utask.create'">新增任务</el-button>
<el-button type="primary" @click="utaskDepuse" v-loading="isLoading" <el-button type="primary" @click="utaskDepuse" v-loading="isLoading"
v-auth="'utask.assgin'">任务分解</el-button> v-auth="'utask.schedue'">任务分解</el-button>
<el-button type="primary" @click="utaskAssgin" v-loading="isLoading" <el-button type="primary" @click="utaskAssgin" v-loading="isLoading"
v-auth="'utask.assgin'">任务下达</el-button> v-auth="'utask.assgin'">任务下达</el-button>
</div> </div>
@ -81,11 +81,11 @@
查看 查看
</el-button> </el-button>
<el-button link type="primary" @click.stop="table_edit(scope.row)" <el-button link type="primary" @click.stop="table_edit(scope.row)"
v-if="scope.row.state == 10"> v-if="scope.row.state==10" v-auth="'utask.update'">
编辑 编辑
</el-button> </el-button>
<el-popconfirm title="确定删除吗?" @confirm.stop="table_del(scope.row)" <el-popconfirm title="确定删除吗?" @confirm.stop="table_del(scope.row)"
v-if="scope.row.state == 10 || scope.row.state == 14"> v-if="scope.row.state==10||scope.row.state==14" v-auth="'utask.delete'">
<template #reference> <template #reference>
<el-button link type="danger">删除</el-button> <el-button link type="danger">删除</el-button>
</template> </template>

View File

@ -68,11 +68,11 @@
查看 查看
</el-button> </el-button>
<el-button link type="primary" @click.stop="table_edit(scope.row)" <el-button link type="primary" @click.stop="table_edit(scope.row)"
v-if="scope.row.state == 10"> v-if="scope.row.state == 10" v-auth="'utask.update'">
编辑 编辑
</el-button> </el-button>
<el-popconfirm title="确定删除吗?" @confirm.stop="table_del(scope.row)" <el-popconfirm title="确定删除吗?" @confirm.stop="table_del(scope.row)"
v-if="scope.row.state == 10 || scope.row.state == 14"> v-if="scope.row.state == 10 || scope.row.state == 14" v-auth="'utask.delete'">
<template #reference> <template #reference>
<el-button link type="danger">删除</el-button> <el-button link type="danger">删除</el-button>
</template> </template>

View File

@ -2,7 +2,7 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <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="'ptest.create'">新增</el-button>
<!-- <el-button type="primary" icon="el-icon-top" @click="importInspect">上传</el-button> --> <!-- <el-button type="primary" icon="el-icon-top" @click="importInspect">上传</el-button> -->
</div> </div>
<div class="right-panel"> <div class="right-panel">
@ -90,7 +90,7 @@
<template #default="scope"> <template #default="scope">
<el-link type="primary" @click="table_show(scope.row)">查看</el-link> <el-link type="primary" @click="table_show(scope.row)">查看</el-link>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-link type="danger" @click="table_del(scope.row)">删除</el-link> <el-link type="danger" @click="table_del(scope.row)" v-auth="'ptest.delete'">删除</el-link>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>

View File

@ -2,7 +2,7 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <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="'ftest.create'">新增</el-button>
<el-button type="primary" icon="el-icon-download" @click="exportExcel">导出</el-button> <el-button type="primary" icon="el-icon-download" @click="exportExcel">导出</el-button>
</div> </div>
<div class="right-panel"> <div class="right-panel">
@ -61,10 +61,10 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="100"> <el-table-column label="操作" fixed="right" align="center" width="100">
<template #default="scope"> <template #default="scope">
<el-link type="primary" @click="table_edit(scope.row)">编辑 <el-link type="primary" @click="table_edit(scope.row)" v-auth="'ftest.update'">编辑
</el-link> </el-link>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-link type="danger" @click="table_del(scope.row)">删除 <el-link type="danger" @click="table_del(scope.row)" v-auth="'ftest.delete'">删除
</el-link> </el-link>
</template> </template>
</el-table-column> </el-table-column>

View File

@ -91,7 +91,7 @@
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="addMlog" <el-button type="primary" icon="el-icon-plus" @click="addMlog"
v-if="currentMtask && currentMtask.state == 20">新增</el-button> v-if="currentMtask && currentMtask.state == 20" v-auth="'mlog.create'">新增</el-button>
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">

View File

@ -28,7 +28,7 @@
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="addMlog" <el-button type="primary" icon="el-icon-plus" @click="addMlog"
v-if="currentMtask && currentMtask.state == 20">新增</el-button> v-if="currentMtask && currentMtask.state == 20" v-auth="'mlog.create'">新增</el-button>
</div> </div>
</el-header> </el-header>
<el-main style="padding: 0;"> <el-main style="padding: 0;">

View File

@ -84,7 +84,7 @@
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="addMlog" <el-button type="primary" icon="el-icon-plus" @click="addMlog"
v-if="currentMtask && currentMtask.state == 20">新增</el-button> v-if="currentMtask && currentMtask.state == 20" v-auth="'mlog.create'">新增</el-button>
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">

View File

@ -4,12 +4,12 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <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="'mlog.create'">新增</el-button>
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">
<scTable ref="table" :apiObj="apiObj" row-key="id" stripe :params="params"> <scTable ref="table" :apiObj="apiObj" row-key="id" stripe :params="params">
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50"/>
<el-table-column label="配料日期" prop="handle_date"> <el-table-column label="配料日期" prop="handle_date">
</el-table-column> </el-table-column>
<el-table-column label="产物" prop="material" show-overflow-tooltip> <el-table-column label="产物" prop="material" show-overflow-tooltip>

View File

@ -4,7 +4,7 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <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="'mlog.create'">新增</el-button>
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">
@ -56,7 +56,7 @@
<span style="font-size: 14px">交接记录</span> <span style="font-size: 14px">交接记录</span>
</div> </div>
<div class="right-panel"> <div class="right-panel">
<el-button type="primary" @click="addHandover">新增</el-button> <el-button type="primary" @click="addHandover" v-auth="'handover.create'">新增</el-button>
</div> </div>
</el-header> </el-header>
<el-main> <el-main>