|
|
@ -24,36 +24,39 @@ |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
icon="el-icon-delete" |
|
|
|
icon="el-icon-delete" |
|
|
|
plain |
|
|
|
plain |
|
|
|
v-if="permission.inspectionroute_delete" |
|
|
|
v-if="permission.inspectionobject_delete" |
|
|
|
@click="handleDelete">批量删除 |
|
|
|
@click="handleDelete">批量删除 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template slot="menuRight"> |
|
|
|
<template slot="menuRight"> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
v-if="permission.inspectionroute_add" |
|
|
|
v-if="permission.inspectionobject_add" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleDetailAdd">新增 |
|
|
|
@click="handleDetailAdd">新增 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
|
|
|
|
v-if="permission.inspectionobject_effect" |
|
|
|
@click="handleTakeEffect">生效 |
|
|
|
@click="handleTakeEffect">生效 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
|
|
|
|
v-if="permission.inspectionobject_lapse" |
|
|
|
@click="handleLapse">失效 |
|
|
|
@click="handleLapse">失效 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
|
|
|
|
v-if="permission.inspectionobject_export" |
|
|
|
@click="handleExport">导出 |
|
|
|
@click="handleExport">导出 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<el-button v-if="permission.inspectionroute_view" @click="handleDetailSearch(row,index)" type="text">查看</el-button> |
|
|
|
<el-button v-if="permission.inspectionobject_view" @click="handleDetailSearch(row,index)" type="text">查看</el-button> |
|
|
|
<el-button v-if="permission.inspectionroute_delete" @click="rowDel(row)" type="text">删除</el-button> |
|
|
|
<el-button v-if="permission.inspectionobject_delete" @click="rowDel(row)" type="text">删除</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
<el-dialog title="失效" |
|
|
|
<el-dialog title="失效" |
|
|
@ -232,7 +235,7 @@ |
|
|
|
...mapGetters(["permission"]), |
|
|
|
...mapGetters(["permission"]), |
|
|
|
permissionList() { |
|
|
|
permissionList() { |
|
|
|
// this.option.column = this.option.column.filter(v => { |
|
|
|
// this.option.column = this.option.column.filter(v => { |
|
|
|
// return this.permission['inspectionroute_col_' + v.prop] |
|
|
|
// return this.permission['inspectionobject_col_' + v.prop] |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
return { |
|
|
|
return { |
|
|
|
addBtn: false, |
|
|
|
addBtn: false, |
|
|
|