任务详情

This commit is contained in:
zmj 2023-12-23 13:38:11 +08:00
parent d3d0f5d7fd
commit e67c693c01
3 changed files with 19 additions and 4 deletions

View File

@ -1,6 +1,6 @@
NODE_ENV = 'development' NODE_ENV = 'development'
# VITE_APP_BASE_URL = 'http://192.168.1.11:8000' # VITE_APP_BASE_URL = 'http://192.168.1.162:8000'
# #
VITE_APP_BASE_URL = 'https://ceshi-worker-task.lihaink.cn' VITE_APP_BASE_URL = 'https://ceshi-worker-task.lihaink.cn'

View File

@ -31,3 +31,9 @@ export function apiTaskDetails(params: any) {
export function getDayTaskList(params: any) { export function getDayTaskList(params: any) {
return request.get({ url: '/task_scheduling_plan.task_scheduling_plan/getDayTaskList', params }) return request.get({ url: '/task_scheduling_plan.task_scheduling_plan/getDayTaskList', params })
} }
//任务日程-详情
export function taskProgress(params: any) {
return request.get({ url: '/adminapi/task/taskProgress', params })
}

View File

@ -14,7 +14,7 @@
<div style="margin-top: 1vh;" class="tit">任务进度 <div style="margin-top: 1vh;" class="tit">任务进度
<el-progress :text-inside="true" color="#67C23A" :stroke-width="20" :percentage="70" /> <el-progress :text-inside="true" color="#67C23A" :stroke-width="20" :percentage="70" />
</div> </div>
<!-- <div v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</div> <!-- <div v-for="o in 4" :key="o" class="text item">{{ 'List item ' + o }}</div>
<template #footer>Footer content</template> --> <template #footer>Footer content</template> -->
@ -48,6 +48,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from 'vue' import { ref } from 'vue'
import {taskProgress} from "@/api/task"
const dialogVisible = ref(false) const dialogVisible = ref(false)
@ -55,6 +56,13 @@ const dialogVisible = ref(false)
const openDeatl = (row) => { const openDeatl = (row) => {
console.log(row) console.log(row)
dialogVisible.value = true dialogVisible.value = true
taskProgress({
task_id:4
}).then(res=>{
console.log(res)
})
} }
defineExpose({ defineExpose({
@ -86,7 +94,8 @@ defineExpose({
.box-card { .box-card {
width: 100%; width: 100%;
} }
.tit{
.tit {
font-weight: bold; font-weight: bold;
} }
</style> </style>