From f68fa3bc5fc0a286c88d82ee6eb95e8ad6be0d16 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期四, 27 六月 2024 15:21:55 +0800 Subject: [PATCH] qxtj --- src/views/team/reportresults/index.vue | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/views/team/reportresults/index.vue b/src/views/team/reportresults/index.vue index 030fe30..c01ecfb 100644 --- a/src/views/team/reportresults/index.vue +++ b/src/views/team/reportresults/index.vue @@ -97,6 +97,7 @@ icon="el-icon-search" size="mini" @click="handleQuery" + style="margin: 0 15px;" >鏌ヨ</el-button > <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" @@ -107,7 +108,7 @@ <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> - <el-button type="primary" size="mini" @click="tongji" + <el-button type="primary" size="mini" @click="tongji" style="margin: 0 15px;" >缁熻缁撴灉</el-button > </el-col> @@ -433,6 +434,11 @@ /** 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */ projectGetList().then((response) => { this.Treedata = response.data.list; + this.Treedata.forEach(item => { + if(item.proParentId == "0"){ + item.disabled = true + } + }) this.loading = false; }); }, @@ -483,8 +489,14 @@ }, // 鍥㈡鐥呯椤甸潰鏌ヨ浜哄憳鍒楄〃 getList() { - this.queryParams.beginTime = this.createTimeList[0]; + if(this.createTimeList){ + this.queryParams.beginTime = this.createTimeList[0]; this.queryParams.endTime = this.createTimeList[1]; + }else if(this.createTimeList == null){ + this.queryParams.beginTime = null; + this.queryParams.endTime = null; + } + getPeopleList(this.queryParams).then((res) => { this.tableData = res.data.voList; this.total = res.data.total; @@ -493,11 +505,11 @@ handleSizeChange(val) { this.queryParam.pageSize = val; - this.geticd(); + // this.geticd(); }, handleCurrentChange(val) { this.queryParam.page = val; - this.geticd(); + // this.geticd(); }, /** 鏌ヨ浣撴鍗曚綅淇℃伅缁存姢鍒楄〃 */ getcomp() { @@ -533,8 +545,8 @@ handleQuery() { this.queryParams.page = 1; this.getList(); - this.queryParam.page = 1; - this.geticd(); + // this.queryParam.page = 1; + // this.geticd(); }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { -- Gitblit v1.8.0