|
|
@@ -18,8 +18,8 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="培训进度" prop="status">
|
|
|
- <el-select v-model="queryParams.status" placeholder="请选择培训进度" clearable>
|
|
|
+ <el-form-item label="任务进度" prop="status">
|
|
|
+ <el-select v-model="queryParams.status" placeholder="请选择任务进度" clearable>
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.edu_training_do_status"
|
|
|
:key="dict.value"
|
|
|
@@ -28,7 +28,7 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="任务时间段" prop="rangen">
|
|
|
+ <el-form-item label="任务时间" prop="rangen">
|
|
|
<el-date-picker
|
|
|
v-model="queryParams.range"
|
|
|
type="daterange"
|
|
|
@@ -50,13 +50,13 @@
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddTask">临时登记</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport">导出数据</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddTask"
|
|
|
- >新增
|
|
|
- </el-button>
|
|
|
+
|
|
|
</el-col>
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
|
|
@@ -88,29 +88,32 @@
|
|
|
size="small" v-loading="loading" :data="eduTaskList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column label="序号" align="center" width="70" prop="no"/>
|
|
|
<el-table-column label="培训主题" width="250" align="left" header-align="center" prop="title"/>
|
|
|
- <el-table-column label="培训机构" width="150" align="left" header-align="center" prop="orgName"/>
|
|
|
- <!-- <el-table-column label="开始时间" align="center" prop="startDate" width="180">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="截止时间" align="center" prop="endDate" width="180"></el-table-column> -->
|
|
|
- <el-table-column label="任务时间" align="center" width="300">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.startDate ? dayjs(scope.row.startDate).format("YYYY-MM-DD") + " ~ " + dayjs(scope.row.endDate).format("YYYY-MM-DD") : '' }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="培训机构" width="250" align="left" header-align="center" prop="orgName"/>
|
|
|
<el-table-column label="培训进度" align="center" prop="status" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.edu_training_do_status" :value="scope.row.status"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="培训时间" align="center" prop="trainingStartDateTime" width="300">
|
|
|
+ <!-- <el-table-column label="开始时间" align="center" prop="startDate" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="截止时间" align="center" prop="endDate" width="180"></el-table-column> -->
|
|
|
+ <el-table-column label="任务时间" align="center" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
{{
|
|
|
- scope.row.trainingStartDateTime
|
|
|
- ? (scope.row.trainingStartDateTime + " ~ " + scope.row.trainingEndDateTime) : ''
|
|
|
+ scope.row.startDate ? dayjs(scope.row.startDate).format("YYYY年MM月DD日") + " ~ " + dayjs(scope.row.endDate).format("YYYY年MM月DD日") : ''
|
|
|
}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
+ <!-- <el-table-column label="培训时间" align="center" prop="trainingStartDateTime" width="300">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ scope.row.trainingStartDateTime
|
|
|
+ ? (scope.row.trainingStartDateTime + " ~ " + scope.row.trainingEndDateTime) : ''
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>-->
|
|
|
+
|
|
|
<!-- <el-table-column label="培训角色" width="180" align="center" >
|
|
|
<template slot-scope="scope">
|
|
|
<template v-if="scope.row.taskRoleNameList ">
|
|
|
@@ -131,7 +134,7 @@
|
|
|
<el-table-column label="主持人" width="140" align="center" prop="hostName" />-->
|
|
|
|
|
|
|
|
|
- <el-table-column label="操作" fixed="right" width="160px" align="center"
|
|
|
+ <el-table-column label="操作" fixed="right"
|
|
|
class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
@@ -152,7 +155,11 @@
|
|
|
v-hasPermi="['core:eduTask:remove']"
|
|
|
>培训登记
|
|
|
</el-button>
|
|
|
- <el-button type="text" v-if="scope.row.pdfUrl" @click="onDown(scope.row.pdfUrl)"
|
|
|
+ <el-button
|
|
|
+ icon="el-icon-document-copy"
|
|
|
+ type="text"
|
|
|
+ v-if="scope.row.pdfUrl"
|
|
|
+ @click="onDown(scope.row.pdfUrl)"
|
|
|
>培训登记簿
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -274,10 +281,10 @@ export default {
|
|
|
this.clearQueryForm();
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
- clearQueryForm(){
|
|
|
- this.queryParams.title=null;
|
|
|
- this.queryParams.status=null;
|
|
|
- this.queryParams.range=[];
|
|
|
+ clearQueryForm() {
|
|
|
+ this.queryParams.title = null;
|
|
|
+ this.queryParams.status = null;
|
|
|
+ this.queryParams.range = [];
|
|
|
},
|
|
|
|
|
|
//单选框状态改变
|
|
|
@@ -347,12 +354,12 @@ export default {
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
- this.download('system/eduTask/export', {
|
|
|
+ this.download('core/eduTask/export', {
|
|
|
...this.queryParams
|
|
|
- }, `eduTask_${new Date().getTime()}.xlsx`)
|
|
|
+ }, this.$store.getters.orgShortName+`_培训任务_${new Date().getTime()}.xlsx`)
|
|
|
},
|
|
|
canPerform(row) {
|
|
|
- console.log("row.status",row.status)
|
|
|
+ console.log("row.status", row.status)
|
|
|
if (row.status != 0 && row.status != 4) return false;
|
|
|
let isCur = row.orgId == this.$store.getters.orgId;
|
|
|
let isOver = this.isNotOverOrUnStart(row);
|