|
@@ -122,6 +122,12 @@
|
|
|
|
|
|
|
|
|
|
<!-- 表格数据区域-->
|
|
<!-- 表格数据区域-->
|
|
|
|
+
|
|
|
|
+ <el-row :gutter="90" style="margin-right: 0px;">
|
|
|
|
+ <div style="display: flex;flex-direction: row;float: right;">
|
|
|
|
+ <el-button type="primary" size="small" plain @click="sampleDetail()">删除</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-row>
|
|
<el-table ref="multipleTable" :data="underTask" border stripe highlight-current-row
|
|
<el-table ref="multipleTable" :data="underTask" border stripe highlight-current-row
|
|
@selection-change="handleSelectionChange" style="width: 100%" :row-style="rowStyle"
|
|
@selection-change="handleSelectionChange" style="width: 100%" :row-style="rowStyle"
|
|
:cell-style="cellStyle">
|
|
:cell-style="cellStyle">
|
|
@@ -134,12 +140,12 @@
|
|
|
|
|
|
<el-table-column :key="table.label" v-for="table in tableHeader" :label="table.label"
|
|
<el-table-column :key="table.label" v-for="table in tableHeader" :label="table.label"
|
|
:prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
:prop="table.prop" align="center" :width="table.width" :fixed="table.fixed" />
|
|
- <el-table-column label="操作" align="center" fixed="right">
|
|
|
|
|
|
+ <!-- <el-table-column label="操作" align="center" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="success" size="small" plain @click="sampleDetail(scope.row.sample_id)">删除
|
|
<el-button type="success" size="small" plain @click="sampleDetail(scope.row.sample_id)">删除
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
</el-table>
|
|
</el-table>
|
|
<!-- 分页器区域-->
|
|
<!-- 分页器区域-->
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
@@ -152,10 +158,18 @@
|
|
<taskdetail :task_id="task_id"></taskdetail>
|
|
<taskdetail :task_id="task_id"></taskdetail>
|
|
<div class="footer">
|
|
<div class="footer">
|
|
<el-button type="success" size="mini" @click="release()">发布</el-button>
|
|
<el-button type="success" size="mini" @click="release()">发布</el-button>
|
|
- <el-button type="success" size="mini" @click="exportOverview">导出总览</el-button>
|
|
|
|
|
|
+ <el-button type="success" size="mini" @click="exportOverview()">导出总览</el-button>
|
|
<el-button type="success" size="mini" @click="next">返回</el-button>
|
|
<el-button type="success" size="mini" @click="next">返回</el-button>
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
+
|
|
|
|
+ <el-dialog title="生成监测报告" :visible.sync="dialogVisible2" width="50%">
|
|
|
|
+ <taskdetail :task_id="task_id"></taskdetail>
|
|
|
|
+ <div class="footer">
|
|
|
|
+ <el-button @click="dialogVisible2 = false">取 消</el-button>
|
|
|
|
+ <el-button type="success" size="mini" @click="exportOverviewpdf">导出总览pdf</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -399,7 +413,8 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 机构与地域---删除
|
|
// 机构与地域---删除
|
|
- async sampleDetail() {
|
|
|
|
|
|
+ async sampleDetail(id) {
|
|
|
|
+ console.log(id)
|
|
// 判断任务是否为该创建者创建
|
|
// 判断任务是否为该创建者创建
|
|
for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
if (rybh != this.multipleSelection[i].releaser) {
|
|
if (rybh != this.multipleSelection[i].releaser) {
|
|
@@ -418,7 +433,7 @@
|
|
console.log(this.multipleSelection[i])
|
|
console.log(this.multipleSelection[i])
|
|
this.delarr.push(this.multipleSelection[i].id);
|
|
this.delarr.push(this.multipleSelection[i].id);
|
|
}
|
|
}
|
|
- const result = await this.$http.post('', {
|
|
|
|
|
|
+ const result = await this.$http.post('delUnderTask', {
|
|
delarr: that.delarr,
|
|
delarr: that.delarr,
|
|
token: token
|
|
token: token
|
|
})
|
|
})
|
|
@@ -427,7 +442,7 @@
|
|
type: 'success',
|
|
type: 'success',
|
|
message: '删除成功!'
|
|
message: '删除成功!'
|
|
});
|
|
});
|
|
- that.gettaskList()
|
|
|
|
|
|
+ that.getUnderTask()
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -558,8 +573,13 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 导出总览
|
|
// 导出总览
|
|
- exportOverview() {
|
|
|
|
- htmlToPdf.downloadPDF(document.querySelector('#pdf'), '监测任务总览')
|
|
|
|
|
|
+ exportOverview() {
|
|
|
|
+ var that = this
|
|
|
|
+ that.dialogVisible2 = true
|
|
|
|
+ },
|
|
|
|
+ // 导出总览pdf
|
|
|
|
+ exportOverviewpdf() {
|
|
|
|
+ htmlToPdf.downloadPDF(document.querySelector('#pdf1'), '监测任务总览')
|
|
},
|
|
},
|
|
handleClick(tab, event) {
|
|
handleClick(tab, event) {
|
|
console.log(tab, event);
|
|
console.log(tab, event);
|
|
@@ -585,6 +605,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.readForm = res.data
|
|
this.readForm = res.data
|
|
|
|
+ console.log(this.readForm)
|
|
|
|
|
|
this.bindForm.endtime_cydsb = res.data.endtime_cydsb
|
|
this.bindForm.endtime_cydsb = res.data.endtime_cydsb
|
|
},
|
|
},
|