From da407d5de7f1106d494cb8cb13317dded827ba39 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 27 三月 2024 11:19:22 +0800 Subject: [PATCH] 指标完成 --- src/views/followvisit/tasklist/index.vue | 78 +++++++++++++++++++++++++++++---------- 1 files changed, 58 insertions(+), 20 deletions(-) diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue index 870d48a..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,10 +149,11 @@ @selection-change="handleSelectionChange" > <el-table-column type="selection" width="50" align="center" /> - <el-table-column label="搴忓彿" align="center" key="id" prop="id" /> + <el-table-column label="搴忓彿" fixed align="center" key="id" prop="id" /> <el-table-column label="浠诲姟鍚嶇О" + fixed align="center" sortable key="name" @@ -160,13 +171,6 @@ align="center" key="nickName" prop="nickName" - /> - <el-table-column - label="鐘舵��" - align="center" - key="phonenumber" - prop="phonenumber" - width="120" /> <el-table-column @@ -207,9 +211,18 @@ <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" @@ -228,6 +241,7 @@ </el-table-column> <el-table-column label="浠诲姟璇︽儏" + fixed="right" align="center" width="200" class-name="small-padding fixed-width" @@ -339,13 +353,6 @@ resetUserPwd, changeUserStatus, } from "@/api/system/user"; -import { - listsvr_prj, - getsvr_task, - addsvr_task, - updatesvr_task, - delsvr_task, -} from "@/api/smartorpor/svr_task"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -397,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, @@ -690,8 +724,12 @@ }, /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { + // this.$router.push({ + // path: "/followvisit/tasklist/FollowupDetails/", + // }); this.$router.push({ - path: "/followvisit/tasklist/FollowupDetails/", + path: "/followvisit/particty", + query: { type: this.tasktopic }, }); }, /** 淇敼鎸夐挳鎿嶄綔 */ @@ -703,7 +741,7 @@ // }); this.$router.push({ path: "/followvisit/particty", - query: { type: 2, }, + query: { type: 2 }, }); }, /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */ -- Gitblit v1.9.3