|
|
|
@ -38,8 +38,8 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button v-if="!authSearch" type="primary" @click="getDataList()">查询</el-button> |
|
|
|
<el-button v-if="!authSave" type="primary" @click="addModal()">新增</el-button> |
|
|
|
<el-button v-if="authSearch" type="primary" @click="getDataList()">查询</el-button> |
|
|
|
<el-button v-if="authSave" type="primary" @click="addModal()">新增</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" icon="el-icon-upload" @click="qcUpload()">导入</el-button> |
|
|
|
@ -88,8 +88,8 @@ |
|
|
|
width="160" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a v-if="!authUpdate" type="text" size="small" @click="updateModal(scope.row)">编辑</a> |
|
|
|
<a v-if="!authDelete" type="text" size="small" @click="deleteModal(scope.row)">删除</a> |
|
|
|
<a v-if="authUpdate" type="text" size="small" @click="updateModal(scope.row)">编辑</a> |
|
|
|
<a v-if="authDelete" type="text" size="small" @click="deleteModal(scope.row)">删除</a> |
|
|
|
<a type="text" size="small" @click="itemObjectModal(scope.row)">采集设备配置</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -976,7 +976,7 @@ |
|
|
|
this.inspectionTypeSearch() |
|
|
|
// 动态列 |
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table',1) |
|
|
|
if (!this.authSearch) { |
|
|
|
if (this.authSearch) { |
|
|
|
// 获取数据列表 |
|
|
|
this.getDataList() |
|
|
|
} |
|
|
|
@ -1597,10 +1597,10 @@ |
|
|
|
let updateFlag = this.isAuth(this.menuId+":update") |
|
|
|
let deleteFlag = this.isAuth(this.menuId+":delete") |
|
|
|
//处理页面的权限数据 |
|
|
|
this.authSearch = !searchFlag |
|
|
|
this.authSave = !saveFlag |
|
|
|
this.authUpdate = !updateFlag |
|
|
|
this.authDelete = !deleteFlag |
|
|
|
this.authSearch = searchFlag |
|
|
|
this.authSave = saveFlag |
|
|
|
this.authUpdate = updateFlag |
|
|
|
this.authDelete = deleteFlag |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
|