|
|
@ -31,28 +31,32 @@ |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleDetailAdd">新增 |
|
|
|
@click="handleDetailAdd" |
|
|
|
|
|
|
|
v-if="permission.inspectiontasks_add">新增 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleAction">启动 |
|
|
|
@click="handleAction" |
|
|
|
|
|
|
|
v-if="permission.inspectiontasks_action">启动 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleStop">停止 |
|
|
|
@click="handleStop" |
|
|
|
|
|
|
|
v-if="permission.inspectiontasks_stop">停止 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
plain |
|
|
|
plain |
|
|
|
@click="handleExport()">导出 |
|
|
|
@click="handleExport()" |
|
|
|
|
|
|
|
v-if="permission.inspectiontasks_export">导出 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<el-button @click="handleDetailSearch(row,index)" type="text">详情</el-button> |
|
|
|
<el-button @click="handleDetailSearch(row,index)" type="text" v-if="permission.inspectiontasks_view">详情</el-button> |
|
|
|
<el-button @click="resultAdd(row)" type="text">上传巡检结果</el-button> |
|
|
|
<el-button @click="resultAdd(row)" type="text" v-if="permission.inspectiontasks_uploadRes">上传巡检结果</el-button> |
|
|
|
<el-button @click="rowDel(row)" type="text">删除</el-button> |
|
|
|
<el-button @click="rowDel(row)" type="text" v-if="permission.inspectiontasks_delete">删除</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
<el-dialog title="上传处理结果" |
|
|
|
<el-dialog title="上传处理结果" |
|
|
|