|
|
|
@ -1,36 +1,45 @@
|
|
|
|
|
<!-- 我的任务 -->
|
|
|
|
|
<!-- 任务管理 -->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="L-main" id="L-size-main">
|
|
|
|
|
<div class="content-search" id="L-header">
|
|
|
|
|
<div class="search-title">查询条件</div>
|
|
|
|
|
<el-form :inline="true" :model="formInline" size="small" class="demo-form-inline">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item label="任务编号:">
|
|
|
|
|
<el-input v-model="formInline.type" placeholder="请输入"></el-input>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="任务名称:">
|
|
|
|
|
<el-input v-model="formInline.taskName" placeholder="请输入"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-form-item label="任务名称:">
|
|
|
|
|
<el-input v-model="formInline.name" placeholder="请输入"></el-input>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="任务编号:">
|
|
|
|
|
<el-input v-model="formInline.taskId" placeholder="请输入"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="7">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="任务状态:">
|
|
|
|
|
<el-select v-model="formInline.status" placeholder="请选择">
|
|
|
|
|
<el-option label="item.label" value="item.value">
|
|
|
|
|
<el-select v-model="formInline.taskStatus" placeholder="请选择">
|
|
|
|
|
<el-option label="进行中" value="1">
|
|
|
|
|
</el-option>
|
|
|
|
|
<el-option label="正常完成" value="2">
|
|
|
|
|
</el-option>
|
|
|
|
|
<el-option label="超期完成" value="3">
|
|
|
|
|
</el-option>
|
|
|
|
|
<!-- <el-option
|
|
|
|
|
v-for="dict in dict.type.bms_approval_status"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value">
|
|
|
|
|
</el-option> -->
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="3" style="text-align: right;padding-right: 20px;">
|
|
|
|
|
<el-form-item class="unit-form">
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="任务完成时间:">
|
|
|
|
|
<el-date-picker v-model="formInline.time" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
type="datetimerange" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="请选择">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="16" style="text-align: right;padding-right: 20px;">
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button size="mini" @click="resetQuery('queryFrom')">重置</el-button>
|
|
|
|
|
<el-button size="mini" type="primary" @click="handleQuery('queryFrom')">查询</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -39,110 +48,158 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
</div>
|
|
|
|
|
<main>
|
|
|
|
|
<div class="search-title search-title-two">
|
|
|
|
|
<div class="search-title">
|
|
|
|
|
<span class="search-title-span">任务列表</span>
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport">导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">任务创建</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
<section>
|
|
|
|
|
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader" :row-class-name="tableRowClassName">
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center"/>
|
|
|
|
|
<el-table-column label="任务编号" key="number" width="200px" prop="number" align="center" />
|
|
|
|
|
<el-table-column label="任务名称" key="name" prop="name" align="center" />
|
|
|
|
|
<el-table-column label="任务下发时间" key="type" prop="type" align="center">
|
|
|
|
|
<el-table v-loading="loading" :data="tableData" :height="tabHeader" :max-height="tabHeader"
|
|
|
|
|
:row-class-name="tableRowClassName">
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" align="center" />
|
|
|
|
|
<el-table-column label="任务编号" key="taskId" width="200px" prop="taskId" align="center" />
|
|
|
|
|
<el-table-column label="任务名称" key="taskName" prop="taskName" align="center" />
|
|
|
|
|
<el-table-column label="任务下发时间" key="taskTime" prop="taskTime" align="center">
|
|
|
|
|
<!-- <template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.project_middle_type" :value="scope.row.projectMiddleType"/>
|
|
|
|
|
</template> -->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="任务期限" key="unit" prop="unit" align="center" />
|
|
|
|
|
<el-table-column label="任务状态" key="status" width="200px" prop="status" class-name="table-status" align="center">
|
|
|
|
|
<el-table-column label="任务期限" key="taskDeadline" prop="taskDeadline" align="center" />
|
|
|
|
|
<el-table-column label="任务完成时间" key="taskFinishTime" prop="taskFinishTime" align="center" />
|
|
|
|
|
<el-table-column label="任务状态" key="taskStatus" width="200px" prop="taskStatus" class-name="table-status"
|
|
|
|
|
align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.status === 0" style="color: #F58A0C;">
|
|
|
|
|
待审核
|
|
|
|
|
<span v-if="scope.row.status === 1" style="color: #F58A0C;">
|
|
|
|
|
进行中
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.status === 1" style="color: #F50C0C;">
|
|
|
|
|
审核驳回
|
|
|
|
|
<span v-if="scope.row.status === 2" style="color: #F50C0C;">
|
|
|
|
|
正常完成
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.status === 2" style="color: #16B771;">
|
|
|
|
|
已完成
|
|
|
|
|
<span v-if="scope.row.status === 3" style="color: #16B771;">
|
|
|
|
|
超期完成
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.status === 4" style="color: #1485EF;">
|
|
|
|
|
正常完成
|
|
|
|
|
</span>
|
|
|
|
|
<span v-if="scope.row.status === 5" style="color: #1485EF;">
|
|
|
|
|
审核驳回
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" prop="userId" class-name="table-operation" align="center">
|
|
|
|
|
<el-table-column label="操作" prop="userId" width="180px" class-name="table-operation" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div style="display: flex;align-items: center;justify-content: center;">
|
|
|
|
|
<div v-if="scope.row.status == 2" style="display: flex;align-items: center;cursor: pointer;">
|
|
|
|
|
<div style="display: flex;align-items: center;cursor: pointer;">
|
|
|
|
|
<img src="@/assets/images/icon-ck@2x.png" alt="" style="width: 20px;margin-right: 5px;">
|
|
|
|
|
<span class="look-info" @click="goInfo(scope.row,3)" style="color: #1485EF;margin-right: 15px;">查看</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="scope.row.status == 0" style="display: flex;align-items: center;cursor: pointer;">
|
|
|
|
|
<img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 15px;margin-right: 5px;">
|
|
|
|
|
<span class="del-info" @click="goInfo(scope.row,1)" style="color: #1485EF;margin-right: 15px;">开始核查</span>
|
|
|
|
|
<span class="look-info" @click="goInfo(scope.row)"
|
|
|
|
|
style="color: #1485EF;margin-right: 15px;cursor: pointer;">查看</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="scope.row.status == 1" style="display: flex;align-items: center;cursor: pointer;">
|
|
|
|
|
<!-- v-if="scope.row.taskStatus == 1" -->
|
|
|
|
|
<div style="display: flex;align-items: center;cursor: pointer;">
|
|
|
|
|
<img src="@/assets/images/icon-shenhe@2x.png" alt="" style="width: 15px;margin-right: 5px;">
|
|
|
|
|
<span class="del-info" @click="goInfo(scope.row,2)" style="color: #1485EF;margin-right: 15px;">重新核查</span>
|
|
|
|
|
<span class="del-info" @click="delInfo(scope.row)"
|
|
|
|
|
style="color: #1485EF;margin-right: 15px;cursor: pointer;">开始核查</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</section>
|
|
|
|
|
<my-pagination
|
|
|
|
|
id="L-pagination"
|
|
|
|
|
:total="total"
|
|
|
|
|
:page="pagination.current"
|
|
|
|
|
:limit="pagination.size"
|
|
|
|
|
@pagination="getPagination"
|
|
|
|
|
:current-page.sync="pagination.current"
|
|
|
|
|
></my-pagination>
|
|
|
|
|
<my-pagination id="L-pagination" :total="total" :page="pagination.current" :limit="pagination.size"
|
|
|
|
|
@pagination="getPagination" :current-page.sync="pagination.current"></my-pagination>
|
|
|
|
|
</main>
|
|
|
|
|
<my-dialog title="新增任务" @close="importClose" ref="taskDialog" class="taskDialogBox" width="40%">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="18">
|
|
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
|
|
|
|
|
<el-form-item label="任务名称" prop="taskName">
|
|
|
|
|
<el-input v-model="ruleForm.taskName" placeholder="请输入单位名称"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="核查单位" prop="dwmc" class="select-box">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-select v-model="ruleForm.dwmc" placeholder="请选择活动区域" multiple collapse-tags>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col class="btn-box">
|
|
|
|
|
<el-button type="primary" @click="addliebiao"><i class="el-icon-s-unfold"></i></el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="任务期限" prop="taskDeadline">
|
|
|
|
|
<el-date-picker type="date" placeholder="选择日期" v-model="ruleForm.taskDeadline" style="width: 100%;"
|
|
|
|
|
value-format="yyyy-MM-dd"></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item class="newTask-form-item">
|
|
|
|
|
<el-button @click="resetForm('ruleForm')">取消</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitForm('ruleForm')">发布</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6"></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</my-dialog>
|
|
|
|
|
|
|
|
|
|
<div class="newTask-liebiao">
|
|
|
|
|
<my-dialog title="单位列表" ref="liebiaoDialog" class="taskDialogBox" width="80%">
|
|
|
|
|
<danweiList ref="danweiList" @adddanweilist="adddanweilist" @liebiaoClose="liebiaoClose"></danweiList>
|
|
|
|
|
</my-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import myPagination from "@/views/components/Pagination/index.vue"
|
|
|
|
|
// import myDialog from "@/views/components/myDialog/index.vue"
|
|
|
|
|
import myDialog from "@/views/components/myDialog/index.vue"
|
|
|
|
|
import danweiList from "@/views/system/user/danweiList.vue"
|
|
|
|
|
import { addassetTaskadd, getassetTask, getassetTaskid } from "@/api/renwuApi/index.js"
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
// dicts: ['jjh_project_type', 'bms_approval_status', "project_middle_type", "project_small_type", "project_categories"],
|
|
|
|
|
components:{myPagination},
|
|
|
|
|
components: { myPagination, myDialog, danweiList },
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
formInline:{
|
|
|
|
|
name:"",
|
|
|
|
|
type:"",
|
|
|
|
|
time:[],
|
|
|
|
|
number:"",
|
|
|
|
|
status:"",
|
|
|
|
|
formInline: {
|
|
|
|
|
name: "",
|
|
|
|
|
type: "",
|
|
|
|
|
time: [],
|
|
|
|
|
number: "",
|
|
|
|
|
status: "",
|
|
|
|
|
},
|
|
|
|
|
total:0,
|
|
|
|
|
pagination:{
|
|
|
|
|
current:1,
|
|
|
|
|
size:10,
|
|
|
|
|
total: 0,
|
|
|
|
|
pagination: {
|
|
|
|
|
current: 1,
|
|
|
|
|
size: 10,
|
|
|
|
|
},
|
|
|
|
|
tableData:[
|
|
|
|
|
{
|
|
|
|
|
number:20230001,
|
|
|
|
|
name:"XXX任务",
|
|
|
|
|
type:"2023-07-30 16:30:21",
|
|
|
|
|
unit:"2023-07-30",
|
|
|
|
|
status:0,
|
|
|
|
|
},{
|
|
|
|
|
number:20230001,
|
|
|
|
|
name:"XXX任务",
|
|
|
|
|
type:"2023-07-30 16:30:21",
|
|
|
|
|
unit:"2023-07-30",
|
|
|
|
|
status:1,
|
|
|
|
|
},{
|
|
|
|
|
number:20230001,
|
|
|
|
|
name:"XXX任务",
|
|
|
|
|
type:"2023-07-30 16:30:21",
|
|
|
|
|
unit:"2023-07-30",
|
|
|
|
|
status:2,
|
|
|
|
|
}
|
|
|
|
|
tableData: [
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
loading:false,
|
|
|
|
|
loading: false,
|
|
|
|
|
tabHeader: undefined,
|
|
|
|
|
ruleForm: {
|
|
|
|
|
taskName: "",
|
|
|
|
|
dwmc: [],
|
|
|
|
|
taskDeadline: "",
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
taskName: [
|
|
|
|
|
{ required: true, message: '请输入', trigger: 'blur' },
|
|
|
|
|
],
|
|
|
|
|
dwmc: [
|
|
|
|
|
{ required: true, message: '请选择', trigger: 'change' }
|
|
|
|
|
],
|
|
|
|
|
taskDeadline: [
|
|
|
|
|
{ required: true, message: '请选择日期', trigger: 'change' }
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
tabclicklist: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getInfo();
|
|
|
|
|
this.cancalDebounce();
|
|
|
|
|
window.addEventListener('resize', this.cancalDebounce);
|
|
|
|
@ -150,94 +207,161 @@ export default {
|
|
|
|
|
destroyed() {
|
|
|
|
|
window.removeEventListener('resize', this.cancalDebounce);
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
|
methods: {
|
|
|
|
|
// 关闭新增弹窗
|
|
|
|
|
resetForm() {
|
|
|
|
|
this.ruleForm = {
|
|
|
|
|
dwmc: [],
|
|
|
|
|
taskName: "",
|
|
|
|
|
taskDeadline: "",
|
|
|
|
|
}
|
|
|
|
|
this.$refs.taskDialog.close()
|
|
|
|
|
this.tabclicklist = []
|
|
|
|
|
},
|
|
|
|
|
submitForm(formName) {
|
|
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.ruleForm.dwmc = this.ruleForm.dwmc.join(",")
|
|
|
|
|
addassetTaskadd(this.ruleForm).then(res => {
|
|
|
|
|
this.resetForm()
|
|
|
|
|
this.getInfo();
|
|
|
|
|
})
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.ruleForm.dwmc = this.ruleForm.dwmc.split(",")
|
|
|
|
|
}, 0);
|
|
|
|
|
} else {
|
|
|
|
|
console.log('error submit!!');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
adddanweilist(val) {
|
|
|
|
|
if (val) {
|
|
|
|
|
let list = val
|
|
|
|
|
this.ruleForm.dwmc = []
|
|
|
|
|
list.forEach(element => {
|
|
|
|
|
this.ruleForm.dwmc.push(element.nickName)
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.ruleForm.dwmc = []
|
|
|
|
|
}
|
|
|
|
|
this.tabclicklist = val
|
|
|
|
|
},
|
|
|
|
|
// 获取列表
|
|
|
|
|
getInfo(){
|
|
|
|
|
// this.loading = true;
|
|
|
|
|
// jProject(this.pagination).then(res=>{
|
|
|
|
|
// this.loading = false;
|
|
|
|
|
// this.total = res.data.total;
|
|
|
|
|
// this.tableData = res.data.records;
|
|
|
|
|
// })
|
|
|
|
|
getInfo() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
getassetTask(this.pagination).then(res => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.total = res.data.total;
|
|
|
|
|
this.tableData = res.data.records;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 重置
|
|
|
|
|
resetQuery(){
|
|
|
|
|
resetQuery() {
|
|
|
|
|
this.formInline = {
|
|
|
|
|
name:"",
|
|
|
|
|
type:"",
|
|
|
|
|
time:[],
|
|
|
|
|
number:"",
|
|
|
|
|
status:"",
|
|
|
|
|
name: "",
|
|
|
|
|
type: "",
|
|
|
|
|
time: [],
|
|
|
|
|
number: "",
|
|
|
|
|
status: "",
|
|
|
|
|
}
|
|
|
|
|
this.pagination = {
|
|
|
|
|
current: 1,
|
|
|
|
|
size: 10,
|
|
|
|
|
}
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getInfo();
|
|
|
|
|
},
|
|
|
|
|
//打开列表
|
|
|
|
|
addliebiao() {
|
|
|
|
|
this.$refs.liebiaoDialog.open()
|
|
|
|
|
if (this.tabclicklist) {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.$refs.danweiList.dakai(this.tabclicklist)
|
|
|
|
|
}, 100);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
liebiaoClose() {
|
|
|
|
|
this.$refs.liebiaoDialog.close()
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 查询
|
|
|
|
|
handleQuery(){
|
|
|
|
|
handleQuery() {
|
|
|
|
|
this.pagination = {
|
|
|
|
|
current: 1,
|
|
|
|
|
size: 10
|
|
|
|
|
}
|
|
|
|
|
if(this.formInline.time.length > 0) {
|
|
|
|
|
this.formInline.startTime = this.formInline.time[0]
|
|
|
|
|
if (this.formInline.time.length > 0) {
|
|
|
|
|
this.formInline.begainTime = this.formInline.time[0]
|
|
|
|
|
this.formInline.endTime = this.formInline.time[1]
|
|
|
|
|
}
|
|
|
|
|
this.pagination = { ...this.pagination,...this.formInline };
|
|
|
|
|
this.getList();
|
|
|
|
|
this.pagination = { ...this.pagination, ...this.formInline };
|
|
|
|
|
this.getInfo();
|
|
|
|
|
},
|
|
|
|
|
// 页码获取
|
|
|
|
|
getPagination(pages){
|
|
|
|
|
getPagination(pages) {
|
|
|
|
|
this.pagination.current = pages.page;
|
|
|
|
|
this.pagination.size = pages.limit;
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getInfo();
|
|
|
|
|
},
|
|
|
|
|
// 导入
|
|
|
|
|
handleImport(){},
|
|
|
|
|
handleImport() { },
|
|
|
|
|
// 导出
|
|
|
|
|
handleExport(){},
|
|
|
|
|
// 新增资产
|
|
|
|
|
handleAdd(){
|
|
|
|
|
handleExport() { },
|
|
|
|
|
// 任务创建
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.$refs.taskDialog.open()
|
|
|
|
|
},
|
|
|
|
|
// 关闭弹框
|
|
|
|
|
importClose() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 查看详情
|
|
|
|
|
goInfo(row,id){
|
|
|
|
|
if(id == 1) {
|
|
|
|
|
this.$router.push({name: 'mytaskAudit',query: {
|
|
|
|
|
pageType: "inspect",
|
|
|
|
|
}})
|
|
|
|
|
} else if(id == 2) {
|
|
|
|
|
this.$router.push({name: 'mytaskAudit',query: {
|
|
|
|
|
pageType: "inspect",
|
|
|
|
|
}})
|
|
|
|
|
} else if(id == 3) {
|
|
|
|
|
this.$router.push({name: 'mytaskInfo',query: {
|
|
|
|
|
goInfo(row) {
|
|
|
|
|
getassetTaskid(row.id)
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'TaskInfo', query: {
|
|
|
|
|
pageType: "look",
|
|
|
|
|
id:row.id
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
delInfo() {
|
|
|
|
|
this.$router.push({
|
|
|
|
|
name: 'taskAudit', query: {
|
|
|
|
|
pageType: "info",
|
|
|
|
|
}})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 编辑
|
|
|
|
|
edit(){
|
|
|
|
|
edit() {
|
|
|
|
|
},
|
|
|
|
|
// 审核
|
|
|
|
|
|
|
|
|
|
// 修改table背景色
|
|
|
|
|
tableRowClassName({row, rowIndex}){
|
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
|
|
if (rowIndex % 2 !== 0) {
|
|
|
|
|
return 'evenNumber-row';
|
|
|
|
|
}
|
|
|
|
|
return '';
|
|
|
|
|
},
|
|
|
|
|
// 屏幕尺寸变化
|
|
|
|
|
cancalDebounce(){
|
|
|
|
|
cancalDebounce() {
|
|
|
|
|
const element = document.getElementById('L-size-main'); // 通过元素的 ID 获取元素
|
|
|
|
|
const header = document.getElementById('L-header'); // 通过元素的 ID 获取元素
|
|
|
|
|
const pagination = document.getElementById('L-pagination'); // 通过元素的 ID 获取元素
|
|
|
|
|
const elementHeight = element.offsetHeight;
|
|
|
|
|
const headerHeight = header.offsetHeight;
|
|
|
|
|
const paginationtHeight = pagination.offsetHeight;
|
|
|
|
|
this.tabHeader = elementHeight - headerHeight - paginationtHeight - 100;
|
|
|
|
|
this.tabHeader = elementHeight - headerHeight - paginationtHeight - 110;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.el-icon-s-unfold {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|