From 083ab1bb460992c18b2386add5f6443dcbedaad4 Mon Sep 17 00:00:00 2001
From: mkm <727897186@qq.com>
Date: Sat, 12 Aug 2023 11:16:13 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/task_scheduling/index.vue | 137 +++++++++++++++-------------
1 file changed, 76 insertions(+), 61 deletions(-)
diff --git a/src/views/task_scheduling/index.vue b/src/views/task_scheduling/index.vue
index bd881a7..512e2e9 100644
--- a/src/views/task_scheduling/index.vue
+++ b/src/views/task_scheduling/index.vue
@@ -1,40 +1,22 @@
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
查询
@@ -43,7 +25,11 @@
-
+
-
-
+
-
+
-
- {{row.status=="1"?"显示":"隐藏"}}
-
+
+ {{ row.status == '1' ? '开启' : '关闭' }}
+
-
+ 任务日程
+
+
+
@@ -94,7 +99,13 @@
-
+
@@ -105,13 +116,14 @@ import { apiTaskSchedulingLists, apiTaskSchedulingDelete } from '@/api/task_sche
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'
-import { dictDataLists } from "@/api/setting/dict";
-const datalist=ref([])
+import { dictDataLists } from '@/api/setting/dict'
+import { getRoutePath } from '@/router'
+
+const datalist = ref([])
const editRef = shallowRef>()
// 是否显示编辑框
const showEdit = ref(false)
-
// 查询条件
const queryParams = reactive({
create_user_id: '',
@@ -121,12 +133,10 @@ const queryParams = reactive({
status: ''
})
-const statusdata=reactive(
- [
- {value:"1",label:'显示'},
- {value:"0",label:"隐藏"},
- ]
-)
+const statusdata = reactive([
+ { value: '1', label: '显示' },
+ { value: '0', label: '隐藏' }
+])
// 选中数据
const selectData = ref([])
@@ -160,6 +170,13 @@ const handleEdit = async (data: any) => {
editRef.value?.setFormData(data)
}
+// 任务日程
+const handleCalendar = async (data: any) => {
+ showEdit.value = true
+ await nextTick()
+ editRef.value?.open('edit')
+ editRef.value?.setFormData(data)
+}
// 删除
const handleDelete = async (id: number | any[]) => {
await feedback.confirm('确定要删除?')
@@ -167,20 +184,18 @@ const handleDelete = async (id: number | any[]) => {
getLists()
}
dictDataLists({ type_id: 10 }).then((res) => {
- datalist.value = res.lists;
-});
+ datalist.value = res.lists
+})
getLists()
-