From 476569c60192a7ff3b2c291e7eb72f1c2c6b9aaa Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 27 九月 2024 18:13:03 +0800
Subject: [PATCH] 测试完成
---
src/views/followvisit/tasklist/index.vue | 49 +++++++++++++++++++++++++++++++------------------
1 files changed, 31 insertions(+), 18 deletions(-)
diff --git a/src/views/followvisit/tasklist/index.vue b/src/views/followvisit/tasklist/index.vue
index 1f385ea..0d4f58b 100644
--- a/src/views/followvisit/tasklist/index.vue
+++ b/src/views/followvisit/tasklist/index.vue
@@ -23,7 +23,7 @@
@keyup.enter.native="handleQuery"
></el-input>
</el-form-item>
- <el-form-item label="鍒涘缓鏃堕棿">
+ <el-form-item label="鍒涘彂閫佹椂闂�">
<el-date-picker
v-model="dateRange"
style="width: 240px"
@@ -181,7 +181,7 @@
width="120"
>
<template slot-scope="scope">
- <span>{{ scope.row.longTask?'闀挎湡浠诲姟':'闈為暱鏈�' }}</span>
+ <span>{{ scope.row.longTask ? "闀挎湡浠诲姟" : "闈為暱鏈�" }}</span>
</template>
</el-table-column>
@@ -229,7 +229,10 @@
>
<template slot-scope="scope">
<el-button
- v-if="(scope.row.sendState == 1 || scope.row.sendState == 3)&&!scope.row.longTask"
+ v-if="
+ (scope.row.sendState == 1 || scope.row.sendState == 3) &&
+ !scope.row.longTask
+ "
size="medium"
type="text"
@click="sponsor(scope.row)"
@@ -242,7 +245,10 @@
><i class="el-icon-circle-plus-outline"></i>缁堟</span
></el-button
> -->
- <el-button size="medium" type="text" @click="handleUpdate(scope.row,1)"
+ <el-button
+ size="medium"
+ type="text"
+ @click="handleUpdate(scope.row, 1)"
><span class="button-xj"
><i class="el-icon-circle-plus-outline"></i>渚濈収鏂板</span
></el-button
@@ -394,7 +400,7 @@
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
- name: "User",
+ name: "Tasklist",
dicts: ["sys_normal_disable", "sys_user_sex", "task_status"],
components: { Treeselect },
data() {
@@ -427,7 +433,7 @@
postOptions: [],
// 瑙掕壊閫夐」
roleOptions: [],
- longTask:0,
+ longTask: 0,
taskform: {
showDate: [],
showTimeMorn: [],
@@ -449,13 +455,13 @@
previewvalue: {
username: "杩欎釜鍖荤敓瀵逛綘鎬庝箞鏍�",
},
- longtermlist:[
- {
- value: '1',
+ longtermlist: [
+ {
+ value: "1",
label: "闀挎湡浠诲姟",
},
{
- value: '0',
+ value: "0",
label: "鏅�氫换鍔�",
},
],
@@ -651,8 +657,11 @@
},
watch: {},
created() {
- this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(obj=>obj.deptCode);
- this.topqueryParams.leavehospitaldistrictcodes = store.getters.belongWards.map(obj=>obj.districtCode);
+ this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
+ (obj) => obj.deptCode
+ );
+ this.topqueryParams.leavehospitaldistrictcodes =
+ store.getters.belongWards.map((obj) => obj.districtCode);
this.tasktopic = this.$route.query.tasktopic
? this.$route.query.tasktopic
: this.tasktopic;
@@ -661,6 +670,9 @@
this.initPassword = response.msg;
});
// this.taskoptions = store.getters.Serviceauthority;
+ },
+ activated() {
+ this.getList();
},
// 鎼滅储
mounted() {
@@ -696,7 +708,9 @@
// this.taskoptions,
// this.tasktopic
// );
- getTasklist(this.addDateRange(this.topqueryParams, this.dateRange)).then(
+ this.topqueryParams.startOutHospTime = this.dateRange[0];
+ this.topqueryParams.endOutHospTime = this.dateRange[1];
+ getTasklist(this.topqueryParams).then(
(response) => {
this.userList = response.rows;
this.total = response.total;
@@ -810,7 +824,7 @@
}
},
/** 淇敼鎸夐挳鎿嶄綔 */
- handleUpdate(row,newadd) {
+ handleUpdate(row, newadd) {
if (this.topqueryParams.type == 1) {
this.$router.push({
path: "/followvisit/particty",
@@ -818,7 +832,7 @@
id: row.taskid,
type: this.topqueryParams.type,
serviceType: this.tasktopic,
- newadd:newadd,//鏄惁渚濈収鏂板缓
+ newadd: newadd, //鏄惁渚濈収鏂板缓
},
});
} else if (this.topqueryParams.type == 2) {
@@ -828,7 +842,7 @@
id: row.taskid,
type: this.topqueryParams.type,
serviceType: this.tasktopic,
- newadd:newadd,
+ newadd: newadd,
},
});
} else if (this.topqueryParams.type == 3) {
@@ -838,7 +852,7 @@
id: row.taskid,
type: this.topqueryParams.type,
serviceType: this.tasktopic,
- newadd:newadd,
+ newadd: newadd,
},
});
}
@@ -950,7 +964,6 @@
.catch(() => {});
}
},
-
// 鏆傚仠
stop(row) {
--
Gitblit v1.9.3