This commit is contained in:
caoqianming 2021-04-28 16:58:44 +08:00
parent 52c1ed13d9
commit 52f7b2436e
4 changed files with 19 additions and 12 deletions

View File

@ -26,7 +26,7 @@
</div> </div>
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<el-button type="primary" icon="el-icon-plus" @click="handleCreate" <el-button type="primary" icon="el-icon-plus" @click="handleCreate"
>创建报送任务</el-button >创建巡查任务</el-button
> >
</div> </div>
</el-card> </el-card>

View File

@ -1,6 +1,8 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card style="float:left;width: 25%;"> <el-row :gutter="6">
<el-col :span="8">
<el-card>
<el-button type="primary" icon="el-icon-plus" @click="handleAddinspectTables" <el-button type="primary" icon="el-icon-plus" @click="handleAddinspectTables"
>创建模板</el-button >创建模板</el-button
> >
@ -26,7 +28,6 @@
<el-table-column <el-table-column
align="center" align="center"
label="操作" label="操作"
width="200px"
fixed="right" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@ -48,7 +49,9 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-card>
<el-card style="float:right;width: 75%;"> </el-col>
<el-col :span="16">
<el-card >
<el-button type="primary" icon="el-icon-plus" @click="handleAddinspectTable" <el-button type="primary" icon="el-icon-plus" @click="handleAddinspectTable"
>新增</el-button >新增</el-button
> >
@ -109,6 +112,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-card> </el-card>
</el-col>
</el-row>
<el-dialog <el-dialog
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
:title="dialogType === 'edit' ? '编辑资料' : '新增资料'" :title="dialogType === 'edit' ? '编辑资料' : '新增资料'"
@ -275,7 +282,6 @@ export default {
this.listLoading = false; this.listLoading = false;
}); });
}, },
recorclickRow(row) { recorclickRow(row) {
this.template=row.id; this.template=row.id;

View File

@ -96,12 +96,12 @@
fixed="right" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <!-- <el-button
type="primary" type="primary"
size="small" size="small"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleEdit(scope)" @click="handleEdit(scope)"
/> /> -->
<el-button <el-button
type="danger" type="danger"
size="small" size="small"

View File

@ -9,14 +9,13 @@
stripe stripe
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@row-click="recorclickRow"
> >
<el-table-column <el-table-column
label="组织名称" label="组织名称"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-link type="primary" {{ scope.row.dept__name }}
@click="recorclickRow(scope)"> {{ scope.row.dept__name }}</el-link>
</template> </template>
@ -244,9 +243,11 @@ export default {
}, },
recorclickRow(scope) { recorclickRow(row) {
this.listLoading2 = true; this.listLoading2 = true;
this.listQuery = {pageoff:true, subtask: this.id, dept:scope.row.dept} this.listQuery = {pageoff:true, subtask: this.id, dept:row.dept}
this.getinspectrecordlist(); this.getinspectrecordlist();
}, },