From ad70f145e8bea957b41043b4a1e37ce37cc5ed1e Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 16 一月 2024 18:39:24 +0800 Subject: [PATCH] 指标完成 --- src/views/followvisit/tasklist/index.vue | 167 +++++++++++++++++++++++++++++++++---------------------- 1 files changed, 99 insertions(+), 68 deletions(-) diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue index d6792bd..b5a18c6 100644 --- a/src/views/followvisit/tasklist/index.vue +++ b/src/views/followvisit/tasklist/index.vue @@ -77,13 +77,23 @@ <el-divider></el-divider> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> + <el-select v-model="tasktopic" placeholder="璇烽�夋嫨鏂板绫诲瀷"> + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-col> + <el-col :span="1.5"> <el-button type="primary" - plain icon="el-icon-plus" size="medium" @click="handleAdd" - v-hasPermi="['system:user:add']" + :disabled="!tasktopic" >鏂板</el-button > </el-col> @@ -139,82 +149,80 @@ @selection-change="handleSelectionChange" > <el-table-column type="selection" width="50" align="center" /> - <el-table-column - label="搴忓彿" - align="center" - key="userId" - prop="userId" - /> + <el-table-column label="搴忓彿" fixed align="center" key="id" prop="id" /> <el-table-column label="浠诲姟鍚嶇О" + fixed align="center" sortable - key="userName" - prop="userName" + key="name" + prop="name" :show-overflow-tooltip="true" /> <el-table-column - label="鏈嶅姟妯℃澘" + label="浠诲姟鎻忚堪" align="center" - key="types" - prop="types" + key="describe" + prop="describe" /> <el-table-column - label="鍒涘缓鏃ユ湡" + label="寰呮墽琛�/鎬讳换鍔�" align="center" key="nickName" prop="nickName" /> - <el-table-column - label="寰呮墽琛�/鎬绘暟" - align="center" - key="phonenumber" - prop="phonenumber" - width="120" - > - <template slot-scope="scope"> - <span style="margin-left: 10px" - >{{ scope.row.date }}/{{ scope.row.data }}</span - > - </template> - </el-table-column> - <el-table-column - label="鎵ц鐘舵��" - align="center" - key="topicnumber" - prop="topicnumber" - width="120" - :show-overflow-tooltip="true" - > - <template slot-scope="scope"> - <div>鎵ц瀹屾垚/鎵ц澶辫触</div> - </template> - </el-table-column> <el-table-column label="瀹℃牳浜�" align="center" - key="topicnumberaa" - prop="topicnumberaa" - sortable + key="create_by" + prop="create_by" width="120" :show-overflow-tooltip="true" /> - <el-table-column label="瀹℃牳鏃堕棿" sortable align="center" - prop="createTime" + prop="create_time" width="160" > <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> + <span>{{ parseTime(scope.row.create_time) }}</span> </template> </el-table-column> <el-table-column + label="鍒涘缓浜�" + align="center" + key="create_by" + prop="create_by" + width="120" + :show-overflow-tooltip="true" + /> + <el-table-column + label="鍒涘缓鏃堕棿" + sortable + align="center" + prop="create_time" + width="160" + > + <template slot-scope="scope"> + <span>{{ parseTime(scope.row.create_time) }}</span> + </template> + </el-table-column> + + <el-table-column + label="鐘舵��" + fixed="right" + align="center" + key="phonenumber" + prop="phonenumber" + width="120" + /> + <el-table-column label="鎿嶄綔" + fixed="right" align="center" width="120" class-name="small-padding fixed-width" @@ -233,6 +241,7 @@ </el-table-column> <el-table-column label="浠诲姟璇︽儏" + fixed="right" align="center" width="200" class-name="small-padding fixed-width" @@ -247,7 +256,7 @@ ><i class="el-icon-s-data"></i>璇︽儏</span ></el-button > - <el-button + <!-- <el-button size="medium" type="text" @click="handleUpdate(scope.row)" @@ -255,7 +264,7 @@ ><span class="button-bb" ><i class="el-icon-s-order"></i>鎶ヨ〃</span ></el-button - > + > --> <el-button size="medium" type="text" @@ -344,6 +353,7 @@ resetUserPwd, changeUserStatus, } from "@/api/system/user"; + import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -394,6 +404,33 @@ previewvalue: { username: "杩欎釜鍖荤敓瀵逛綘鎬庝箞鏍�", }, + taskoptions: [ + { + value: "1", + label: "瀹f暀鏈嶅姟", + }, + { + value: "2", + label: "闂ㄨ瘖闅忚", + }, + { + value: "3", + label: "鍑洪櫌闅忚", + }, + { + value: "4", + label: "澶嶈瘖鏈嶅姟", + }, + { + value: "5", + label: "浣撴閫氱煡", + }, + { + value: "6", + label: "闂嵎鏈嶅姟", + }, + ], + tasktopic: null, //鏂板绫诲瀷 value: [], list: [], loading: false, @@ -583,6 +620,7 @@ this.loading = true; listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( (response) => { + console.log(response); this.userList = response.rows; this.total = response.total; this.loading = false; @@ -686,31 +724,24 @@ }, /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { - this.$router.push({ - path: "/followvisit/tasklist/FollowupDetails/", - }); - // this.reset(); - // this.addalteropen = true; - // getUser().then((response) => { - // this.postOptions = response.posts; - // this.roleOptions = response.roles; - // this.title = "鏂板闂ㄨ瘖闅忚"; - // this.form.password = this.initPassword; + // this.$router.push({ + // path: "/followvisit/tasklist/FollowupDetails/", // }); + this.$router.push({ + path: "/followvisit/particty", + query: { type: this.tasktopic }, + }); }, /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { - this.reset(); - const userId = row.userId || this.ids; - getUser(userId).then((response) => { - this.form = response.data; - this.postOptions = response.posts; - this.roleOptions = response.roles; - this.$set(this.form, "postIds", response.postIds); - this.$set(this.form, "roleIds", response.roleIds); - this.addalteropen = true; - this.title = "淇敼鐢ㄦ埛"; - this.form.password = ""; + // const userId = row.userId || this.ids; + // this.$router.push({ + // path: "/followvisit/tasklist/FollowupDetails/", + // query: { id: row.id }, + // }); + this.$router.push({ + path: "/followvisit/particty", + query: { type: 2 }, }); }, /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */ -- Gitblit v1.9.3