From 1feaec98bb053adf988b696d8e9d72e083226d6c Mon Sep 17 00:00:00 2001
From: zhc077 <565291854>
Date: Tue, 20 Jun 2023 18:25:06 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86=20?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9=206.20?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/task/modules/TaskForm.vue | 67 +++++++++++++++++--
1 file changed, 63 insertions(+), 4 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue b/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue
index 74e4f49..cb4c724 100644
--- a/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue
+++ b/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue
@@ -23,7 +23,18 @@
-
+
+
+
+
@@ -89,18 +100,24 @@
-
+
+
+
-
+
+
+
-
+
+
+
@@ -221,6 +238,8 @@ export default {
// queryProjectById: "/projectx/projectx/queryById",
// queryTaskTypeById: "/taskType/taskType/queryById",
fillTaskName: "/task/task/fillTaskName",
+ list: "/task/task/list",
+
}
}
},
@@ -234,6 +253,17 @@ export default {
this.modelDefault = JSON.parse(JSON.stringify(this.model));
},
methods: {
+ handleCheckChange(data, checked, tree) {
+ if (checked) {
+ this.currentNodeData.id = data.id
+ this.$refs.treeList.setCheckedNodes([data.id])
+ }
+ },
+ changetree(data,lst)
+ {
+ if(lst,checkedKeys.lenght==0)
+ this.$refs.treeList.setCheckedNodes([data.id])
+ },
fillTaskName() {
let that = this;
let fillTaskName = "";
@@ -316,6 +346,35 @@ export default {
})
}
,
+ loadData2() {
+ // if (!this.url.list) {
+ // this.$message.error("请设置url.list属性!");
+ // return
+ // }
+ // //加载数据 若传入参数1则加载第一页的内容
+ // if (arg === 1) {
+ // this.ipagination.current = 1;
+ // }
+ // this.loadParameter();
+ // var params = this.getQueryParams();//查询条件
+ this.loading = true;
+ getAction(this.url.list, params).then((res) => {
+ if (res.success) {
+ //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
+ this.dataSource = res.result.records || res.result;
+ if (res.result.total) {
+ this.ipagination.total = res.result.total;
+ } else {
+ this.ipagination.total = 0;
+ }
+ //update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------
+ } else {
+ this.$message.warning(res.message)
+ }
+ }).finally(() => {
+ this.loading = false
+ })
+ },
}
}
\ No newline at end of file