|
|
@@ -81,19 +81,19 @@
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="序号" type="index" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{(pageNum - 1) * pageSize + scope.$index + 1}}</span>
|
|
|
+ <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="任务名称" align="center" prop="taskName" />
|
|
|
<el-table-column label="开始时间" align="center" prop="planStartTime" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
+<!-- <template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.planStartTime, '{y}-{m}-{d}') }}</span>
|
|
|
- </template>
|
|
|
+ </template>-->
|
|
|
</el-table-column>
|
|
|
<el-table-column label="结束时间" align="center" prop="planEndTime" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
+<!-- <template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.planEndTime, '{y}-{m}-{d}') }}</span>
|
|
|
- </template>
|
|
|
+ </template>-->
|
|
|
</el-table-column>
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
|
<template slot-scope="scope">
|
|
|
@@ -104,14 +104,14 @@
|
|
|
<el-table-column label="调阅角色" align="center" prop="roleName" />
|
|
|
|
|
|
<el-table-column label="调阅开始时间" align="center" prop="startTime" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
+<!-- <template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}</span>
|
|
|
- </template>
|
|
|
+ </template>-->
|
|
|
</el-table-column>
|
|
|
<el-table-column label="调阅结束时间" align="center" prop="endTime" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
+<!-- <template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.endTime, '{y}-{m}-{d}') }}</span>
|
|
|
- </template>
|
|
|
+ </template>-->
|
|
|
</el-table-column>
|
|
|
<el-table-column label="调阅人" align="center" prop="retrievalUserName" />
|
|
|
<el-table-column label="异常数" align="center" prop="exceptionCount" />
|
|
|
@@ -120,14 +120,15 @@
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
- v-if="scope.row.status === '2'"
|
|
|
+ icon="el-icon-view"
|
|
|
+ @click="lookView(scope.row)"
|
|
|
+ v-if="scope.row.status == 2"
|
|
|
+ v-hasPermi="['core:task:query']"
|
|
|
>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
+ <dialog-info ref="infoDialog" @success="refresh(true)"></dialog-info>
|
|
|
<pagination
|
|
|
v-show="total>0"
|
|
|
:total="total"
|
|
|
@@ -143,9 +144,10 @@
|
|
|
<script>
|
|
|
import { listTask, getTask, delTask, addTask, updateTask,roleList } from "@/api/core/task";
|
|
|
import OrgTree from "@/components/orgTree";
|
|
|
+import DialogInfo from "./dialog.info";
|
|
|
import {listPlanRole} from "@/api/core/edu/plan";
|
|
|
export default {
|
|
|
- components: {OrgTree},
|
|
|
+ components: {OrgTree,DialogInfo},
|
|
|
name: "Task",
|
|
|
dicts: ['plan_cycle', 'retrieval_task_status'],
|
|
|
data() {
|
|
|
@@ -261,6 +263,7 @@ export default {
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1;
|
|
|
+ this.queryParams.dateRange = [];
|
|
|
this.getList();
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
@@ -281,48 +284,14 @@ export default {
|
|
|
this.title = "添加监控调阅任务";
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
- handleUpdate(row) {
|
|
|
- this.reset();
|
|
|
- const id = row.id || this.ids
|
|
|
- getTask(id).then(response => {
|
|
|
- this.form = response.data;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改监控调阅任务";
|
|
|
- });
|
|
|
- },
|
|
|
- /** 提交按钮 */
|
|
|
- submitForm() {
|
|
|
- this.$refs["form"].validate(valid => {
|
|
|
- if (valid) {
|
|
|
- if (this.form.id != null) {
|
|
|
- updateTask(this.form).then(response => {
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- } else {
|
|
|
- addTask(this.form).then(response => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- /** 删除按钮操作 */
|
|
|
- handleDelete(row) {
|
|
|
- const ids = row.id || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除监控调阅任务编号为"' + ids + '"的数据项?').then(function() {
|
|
|
- return delTask(ids);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
- }).catch(() => {});
|
|
|
+ lookView(row) {
|
|
|
+ this.$refs["infoDialog"].show(row.id,{});
|
|
|
+
|
|
|
},
|
|
|
+
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
- this.download('core/task/export', {
|
|
|
+ this.download('core/retrievalTask/export', {
|
|
|
...this.queryParams
|
|
|
}, `task_${new Date().getTime()}.xlsx`)
|
|
|
}
|