From 32d69fcb07f2325d9b93ce1a8b3716eec73ae70f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 08 四月 2024 18:24:07 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/tasklist/index.vue | 114 ++++++++++++++++++++++++++++++++++++---------------------
1 files changed, 72 insertions(+), 42 deletions(-)
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 8d5cbf1..19d89c1 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
@@ -208,9 +212,17 @@
</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"
@@ -229,6 +241,7 @@
</el-table-column>
<el-table-column
label="浠诲姟璇︽儏"
+ fixed="right"
align="center"
width="200"
class-name="small-padding fixed-width"
@@ -332,7 +345,6 @@
<script>
import {
- listUser,
getUser,
delUser,
addUser,
@@ -340,13 +352,7 @@
resetUserPwd,
changeUserStatus,
} from "@/api/system/user";
-import {
- listsvr_prj,
- getsvr_task,
- addsvr_task,
- updatesvr_task,
- delsvr_task,
-} from "@/api/smartorpor/svr_task";
+import { getTasklist, getlibrarylist } from "@/api/AiCentre/index";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -398,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,
@@ -494,7 +527,7 @@
// 鏌ヨ鍙傛暟
topqueryParams: {
pageNum: 1,
- pageSize: 10,
+ pageSize: 1000,
userName: undefined,
tagid: undefined,
topic: undefined,
@@ -582,17 +615,14 @@
});
},
methods: {
- /** 鏌ヨ闂ㄨ瘖闅忚鍒楄〃 */
+ /** 鏌ヨ浠诲姟鍒楄〃 */
getList() {
- 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;
- }
- );
+ // this.loading = true;
+ getTasklist(this.topqueryParams).then((response) => {
+ this.userList = response.rows;
+ this.total = response.total;
+ this.loading = false;
+ });
},
// 鏌ョ湅闂ㄨ瘖闅忚璇︽儏
Referencequestion(row) {
@@ -691,24 +721,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) {
// const userId = row.userId || this.ids;
+ // this.$router.push({
+ // path: "/followvisit/tasklist/FollowupDetails/",
+ // query: { id: row.id },
+ // });
this.$router.push({
- path: "/followvisit/tasklist/FollowupDetails/",
- query: { id: row.id },
+ path: "/followvisit/particty",
+ query: { type: 2 },
});
},
/** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
--
Gitblit v1.9.3