WXL
2023-11-21 6d3e75d248256fe9860beb91161265af3b39e982
src/views/followvisit/tasklist/index.vue
@@ -139,78 +139,68 @@
        @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="序号" align="center" key="id" prop="id" />
        <el-table-column
          label="任务名称"
          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="待执行/总数"
        <!-- <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="执行状态"
          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="审核时间"
          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="最近修改"
          sortable
          align="center"
          prop="update_time"
          width="160"
        >
          <template slot-scope="scope">
            <span
              >{{ scope.row.update_by }}
              {{ parseTime(scope.row.update_time) }}</span
            >
          </template>
        </el-table-column>
        <el-table-column
@@ -247,7 +237,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 +245,7 @@
              ><span class="button-bb"
                ><i class="el-icon-s-order"></i>报表</span
              ></el-button
            >
            > -->
            <el-button
              size="medium"
              type="text"
@@ -344,6 +334,14 @@
  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";
@@ -583,6 +581,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,8 +685,11 @@
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.addalteropen = true;
      this.$router.push({
        path: "/followvisit/tasklist/FollowupDetails/",
      });
      // this.reset();
      // this.addalteropen = true;
      // getUser().then((response) => {
      //   this.postOptions = response.posts;
      //   this.roleOptions = response.roles;
@@ -697,17 +699,10 @@
    },
    /** 修改按钮操作 */
    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 },
      });
    },
    /** 重置密码按钮操作 */