|
@@ -2,7 +2,7 @@
|
|
<div class="home-container">
|
|
<div class="home-container">
|
|
<dv-border-box1 ref="borderRef" style="width: 100%; height: 100%; margin: 0 auto">
|
|
<dv-border-box1 ref="borderRef" style="width: 100%; height: 100%; margin: 0 auto">
|
|
<div class="table-box">
|
|
<div class="table-box">
|
|
- <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listTaskApi" :tool-button="false">
|
|
|
|
|
|
+ <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listITaskNewApi" :tool-button="false">
|
|
<template #tableHeader="">
|
|
<template #tableHeader="">
|
|
<!-- <el-button type="primary" v-auth="['system:user:add']" :icon="CirclePlus" @click="createTask()"> 创建任务 </el-button>-->
|
|
<!-- <el-button type="primary" v-auth="['system:user:add']" :icon="CirclePlus" @click="createTask()"> 创建任务 </el-button>-->
|
|
<el-button type="primary" v-auth="['system:user:add']" :icon="CirclePlus" @click="createTaskNew()"> 创建任务 </el-button>
|
|
<el-button type="primary" v-auth="['system:user:add']" :icon="CirclePlus" @click="createTaskNew()"> 创建任务 </el-button>
|
|
@@ -10,7 +10,7 @@
|
|
<!-- 表格操作 -->
|
|
<!-- 表格操作 -->
|
|
<template #operation="scope">
|
|
<template #operation="scope">
|
|
<el-button type="primary" link icon="View" v-auth="['task:task:query']" @click="viewDetails(scope.row)"> 查看详情 </el-button>
|
|
<el-button type="primary" link icon="View" v-auth="['task:task:query']" @click="viewDetails(scope.row)"> 查看详情 </el-button>
|
|
- <el-button type="primary" link :icon="View" @click="openDialog(3, '任务查看', scope.row)">查看</el-button>
|
|
|
|
|
|
+<!-- <el-button type="primary" link :icon="View" @click="openDialog(3, '任务查看', scope.row)">查看</el-button>-->
|
|
</template>
|
|
</template>
|
|
</ProTable>
|
|
</ProTable>
|
|
<!-- <ProTable
|
|
<!-- <ProTable
|
|
@@ -43,7 +43,8 @@ import { useRouter } from 'vue-router'
|
|
import { ColumnProps, ProTableInstance } from '@/components/ProTable/interface'
|
|
import { ColumnProps, ProTableInstance } from '@/components/ProTable/interface'
|
|
import { addUserApi, updateUserApi, deptTreeSelectApi } from '@/api/modules/system/user'
|
|
import { addUserApi, updateUserApi, deptTreeSelectApi } from '@/api/modules/system/user'
|
|
// import { getTaskApi } from '@/api/modules/taais/task'
|
|
// import { getTaskApi } from '@/api/modules/taais/task'
|
|
-import { listTaskApi, getTaskApi } from '@/api/modules/task/task'
|
|
|
|
|
|
+// import { listTaskApi, getTaskApi } from '@/api/modules/task/task'
|
|
|
|
+import { listITaskNewApi, getITaskNewApi } from '@/api/modules/task/task'
|
|
import { getDictsApi } from '@/api/modules/system/dictData'
|
|
import { getDictsApi } from '@/api/modules/system/dictData'
|
|
// import taskDataList from '@/assets/mock/taskData.json'
|
|
// import taskDataList from '@/assets/mock/taskData.json'
|
|
// import { getDictsApi } from '@/api/modules/system/dictData'
|
|
// import { getDictsApi } from '@/api/modules/system/dictData'
|
|
@@ -66,13 +67,15 @@ const getTreeFilter = async () => {
|
|
}
|
|
}
|
|
// 查看详情
|
|
// 查看详情
|
|
const viewDetails = row => {
|
|
const viewDetails = row => {
|
|
|
|
+ console.log(row)
|
|
router.push({ path: `/task/subtask/`, query: { id: row.id } })
|
|
router.push({ path: `/task/subtask/`, query: { id: row.id } })
|
|
}
|
|
}
|
|
// 批量添加用户
|
|
// 批量添加用户
|
|
const formDialogRef = ref<InstanceType<typeof FormDialog> | null>(null)
|
|
const formDialogRef = ref<InstanceType<typeof FormDialog> | null>(null)
|
|
// 打开弹框的功能
|
|
// 打开弹框的功能
|
|
const openDialog = async (type: number, title: string, row?: any) => {
|
|
const openDialog = async (type: number, title: string, row?: any) => {
|
|
- let res = getTaskApi(row?.taskId || null)
|
|
|
|
|
|
+ console.log(row)
|
|
|
|
+ let res = getITaskNewApi(row?.id || null)
|
|
// 表单项配置
|
|
// 表单项配置
|
|
const fieldList: Form.FieldItem[] = [
|
|
const fieldList: Form.FieldItem[] = [
|
|
{
|
|
{
|