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