|
|
@ -12,17 +12,8 @@ export default { |
|
|
|
name: "InspectionItems", |
|
|
|
data() { |
|
|
|
return { |
|
|
|
searchTaskName: "", |
|
|
|
searchManageName: "", |
|
|
|
showAddDialog: false, |
|
|
|
canEdit: true, |
|
|
|
paramsData: { |
|
|
|
name: "", |
|
|
|
type: null, |
|
|
|
dikeName: "", |
|
|
|
selectLevel: "", |
|
|
|
selectType: "", |
|
|
|
}, |
|
|
|
tableData: [], // 检查列表 |
|
|
|
pageData: { |
|
|
|
pageNum: 1, // 当前页 |
|
|
@ -39,8 +30,8 @@ export default { |
|
|
|
itemList: [], |
|
|
|
}, |
|
|
|
formSearch: { |
|
|
|
name: "", |
|
|
|
deptName: "", |
|
|
|
nickName: "", |
|
|
|
department: "", |
|
|
|
itemList: [], |
|
|
|
}, |
|
|
|
}; |
|
|
@ -137,8 +128,6 @@ export default { |
|
|
|
timeView: { |
|
|
|
timeField: "create_time", |
|
|
|
}, |
|
|
|
name: this.searchTaskName || null, |
|
|
|
engineeringManagementUnit: this.searchManageName || null, |
|
|
|
}, |
|
|
|
params: { |
|
|
|
orderBy: "create_time", |
|
|
@ -153,12 +142,6 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 重置搜索 |
|
|
|
resetSearch() { |
|
|
|
this.searchTaskName = null; |
|
|
|
this.searchManageName = null; |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
// 删除 |
|
|
|
handleDel(row) { |
|
|
|
this.$confirm("是否删除该条数据?", "提示", { |
|
|
@ -211,11 +194,7 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getDicts("embankment_type").then((response) => { |
|
|
|
this.dikeTypeList = response.data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
created() {}, |
|
|
|
mounted() { |
|
|
|
// 获取列表数据 |
|
|
|
this.getTableData(); |
|
|
@ -248,10 +227,18 @@ export default { |
|
|
|
<el-button type="text" size="small" @click="handleCheck(scope.row)" |
|
|
|
>查看</el-button |
|
|
|
> |
|
|
|
<el-button v-hasPermi="['df:run:jc:group:edit']" type="text" size="small" @click="handleEdit(scope.row)" |
|
|
|
<el-button |
|
|
|
v-hasPermi="['df:run:jc:group:edit']" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="handleEdit(scope.row)" |
|
|
|
>编辑</el-button |
|
|
|
> |
|
|
|
<el-button v-hasPermi="['df:run:jc:group:delete']" type="text" size="small" @click="handleDel(scope.row)" |
|
|
|
<el-button |
|
|
|
v-hasPermi="['df:run:jc:group:delete']" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="handleDel(scope.row)" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|