修改三项制度库bug修复

1、权限规整
2、删除无用代码
5_7_地图同步
liujun 2024-02-28 17:28:14 +08:00
parent 314fdbe1fc
commit eb99a9f162
6 changed files with 36 additions and 38 deletions

View File

@ -111,25 +111,25 @@
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<el-col :span="24"> <el-col :span="24">
<el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button>
<el-button v-show="!row.LOCKTOOL && del" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row)"></el-button> <el-button v-show="!row.LOCKTOOL " type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row)"></el-button>
<el-button v-if="!row.LOCKTOOL" v-show="del" type="success" icon="el-icon-lock" size="mini" @click="handleLock(row,'1')"></el-button> <el-button v-if="!row.LOCKTOOL" type="success" icon="el-icon-lock" size="mini" @click="handleLock(row,'1')"></el-button>
<el-button v-if="row.LOCKTOOL" v-show="del" type="info" icon="el-icon-unlock" size="mini" @click="handleLock(row,'0')"></el-button> <el-button v-if="row.LOCKTOOL" type="info" icon="el-icon-unlock" size="mini" @click="handleLock(row,'0')"></el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<el-col :span="24"> <el-col :span="24">
<el-button v-show="del" type="info" icon="el-icon-view" size="mini" @click="getInformation(row)"></el-button> <el-button type="info" icon="el-icon-view" size="mini" @click="getInformation(row)"></el-button>
<el-button v-if="!row.ISTOPTIME" v-show="del" type="success" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'1')"></el-button> <el-button v-if="!row.ISTOPTIME" type="success" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'1')"></el-button>
<el-button v-if="row.ISTOPTIME" v-show="del" type="warning" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'2')"></el-button> <el-button v-if="row.ISTOPTIME" type="warning" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'2')"></el-button>
<el-button v-show="del" type="warning" icon="el-icon-printer" size="mini" @click="handleExport(row)"></el-button> <el-button type="warning" icon="el-icon-printer" size="mini" @click="handleExport(row)"></el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-button v-show="del && !row.LOCKTOOL" type="primary" icon="el-icon-view" size="mini" @click="openUpdateFile(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-view" size="mini" @click="openUpdateFile(row)"></el-button>
<el-button v-show="del" type="primary" icon="el-icon-printer" size="mini" @click="openUpdateLog(row)"></el-button> <el-button type="primary" icon="el-icon-printer" size="mini" @click="openUpdateLog(row)"></el-button>
<el-button v-if="row.STATUS === '0'" v-show="del" type="success" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'1')"></el-button> <el-button v-if="row.STATUS === '0'" type="success" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'1')"></el-button>
<el-button v-if="row.STATUS === '1'" v-show="del" type="warning" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'0')"></el-button> <el-button v-if="row.STATUS === '1'" type="warning" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'0')"></el-button>
</el-col> </el-col>
</el-row> </el-row>
</template> </template>

View File

@ -110,7 +110,7 @@
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-row> <el-row>
<el-col :span="14"> <el-col :span="14">
<el-button v-show="edit && !row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleCopy(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleCopy(row)"></el-button>
</el-col> </el-col>
<el-col :span="10"> <el-col :span="10">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="getInformation(row)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="getInformation(row)"></el-button>

View File

@ -110,26 +110,26 @@
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<el-col :span="24"> <el-col :span="24">
<el-button v-show="edit && !row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button>
<el-button v-show="del && !row.LOCKTOOL" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row)"></el-button>
<el-button v-if="!row.LOCKTOOL" v-show="del" type="success" icon="el-icon-lock" size="mini" @click="handleLock(row,'1')"></el-button> <el-button v-if="!row.LOCKTOOL" type="success" icon="el-icon-lock" size="mini" @click="handleLock(row,'1')"></el-button>
<el-button v-if="row.LOCKTOOL" v-show="del" type="info" icon="el-icon-unlock" size="mini" @click="handleLock(row,'0')"></el-button> <el-button v-if="row.LOCKTOOL" type="info" icon="el-icon-unlock" size="mini" @click="handleLock(row,'0')"></el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<el-col :span="24"> <el-col :span="24">
<el-button v-show="del" type="info" icon="el-icon-view" size="mini" @click="getInformation(row)"></el-button> <el-button type="info" icon="el-icon-view" size="mini" @click="getInformation(row)"></el-button>
<el-button v-if="!row.ISTOPTIME" v-show="del" type="success" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'1')"></el-button> <el-button v-if="!row.ISTOPTIME" type="success" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'1')"></el-button>
<el-button v-if="row.ISTOPTIME" v-show="del" type="warning" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'2')"></el-button> <el-button v-if="row.ISTOPTIME" type="warning" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'2')"></el-button>
<el-button v-show="del" type="warning" icon="el-icon-printer" size="mini" @click="handleExport(row)"></el-button> <el-button type="warning" icon="el-icon-printer" size="mini" @click="handleExport(row)"></el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-button v-show="del && !row.LOCKTOOL" type="primary" icon="el-icon-view" size="mini" @click="openUpdateFile(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-view" size="mini" @click="openUpdateFile(row)"></el-button>
<el-button v-show="del" type="primary" icon="el-icon-printer" size="mini" @click="openUpdateLog(row)"></el-button> <el-button type="primary" icon="el-icon-printer" size="mini" @click="openUpdateLog(row)"></el-button>
<el-button v-if="row.STATUS === '0'" v-show="del" type="success" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'1')"></el-button> <el-button v-if="row.STATUS === '0'" type="success" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'1')"></el-button>
<el-button v-if="row.STATUS === '1'" v-show="del" type="warning" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'0')"></el-button> <el-button v-if="row.STATUS === '1'" type="warning" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'0')"></el-button>
</el-col> </el-col>
</el-row> </el-row>
</template> </template>

View File

@ -110,7 +110,7 @@
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<el-col :span="14"> <el-col :span="14">
<el-button v-show="edit && !row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleCopy(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleCopy(row)"></el-button>
</el-col> </el-col>
<el-col :span="10"> <el-col :span="10">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="getInformation(row)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="getInformation(row)"></el-button>

View File

@ -150,25 +150,24 @@
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<el-col :span="24"> <el-col :span="24">
<el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(row)"></el-button>
<!-- <el-button v-show="!row.LOCKTOOL" type="danger" icon="el-icon-delete" size="mini" @click="handleDelete(row)"></el-button>--> <el-button v-if="!row.LOCKTOOL" type="success" icon="el-icon-lock" size="mini" @click="handleLock(row,'1')"></el-button>
<el-button v-if="!row.LOCKTOOL" v-show="del" type="success" icon="el-icon-lock" size="mini" @click="handleLock(row,'1')"></el-button> <el-button v-if="row.LOCKTOOL" type="info" icon="el-icon-unlock" size="mini" @click="handleLock(row,'0')"></el-button>
<el-button v-if="row.LOCKTOOL" v-show="del" type="info" icon="el-icon-unlock" size="mini" @click="handleLock(row,'0')"></el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<el-col :span="24"> <el-col :span="24">
<el-button v-show="del" type="info" icon="el-icon-view" size="mini" @click="getInformation(row)"></el-button> <el-button type="info" icon="el-icon-view" size="mini" @click="getInformation(row)"></el-button>
<el-button v-if="!row.ISTOPTIME" v-show="del" type="success" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'1')"></el-button> <el-button v-if="!row.ISTOPTIME" type="success" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'1')"></el-button>
<el-button v-if="row.ISTOPTIME" v-show="del" type="warning" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'2')"></el-button> <el-button v-if="row.ISTOPTIME" type="warning" icon="el-icon-edit-outline" size="mini" @click="handleTop(row,'2')"></el-button>
<el-button v-show="del" type="warning" icon="el-icon-printer" size="mini" @click="handleExport(row)"></el-button> <el-button type="warning" icon="el-icon-printer" size="mini" @click="handleExport(row)"></el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-button v-show="del && !row.LOCKTOOL" type="primary" icon="el-icon-view" size="mini" @click="openUpdateFile(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-view" size="mini" @click="openUpdateFile(row)"></el-button>
<el-button v-show="del" type="primary" icon="el-icon-printer" size="mini" @click="openUpdateLog(row)"></el-button> <el-button type="primary" icon="el-icon-printer" size="mini" @click="openUpdateLog(row)"></el-button>
<el-button v-if="row.STATUS === '0'" v-show="del" type="success" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'1')"></el-button> <el-button v-if="row.STATUS === '0'" type="success" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'1')"></el-button>
<el-button v-if="row.STATUS === '1'" v-show="del" type="warning" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'0')"></el-button> <el-button v-if="row.STATUS === '1'" type="warning" icon="el-icon-edit-outline" size="mini" @click="setStatus(row,'0')"></el-button>
</el-col> </el-col>
</el-row> </el-row>
</template> </template>
@ -177,7 +176,6 @@
<div class="page-btn-group"> <div class="page-btn-group">
<div> <div>
<el-button v-show="add" 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="false" type="danger" icon="el-icon-delete" plain @click="batchDel"></el-button>-->
</div> </div>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" /> <pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div> </div>

View File

@ -111,7 +111,7 @@
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-row style="margin-bottom: 10px"> <el-row style="margin-bottom: 10px">
<el-col :span="14"> <el-col :span="14">
<el-button v-show="edit && !row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleCopy(row)"></el-button> <el-button v-show="!row.LOCKTOOL" type="primary" icon="el-icon-edit" size="mini" @click="handleCopy(row)"></el-button>
</el-col> </el-col>
<el-col :span="10"> <el-col :span="10">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="getInformation(row)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="getInformation(row)"></el-button>