11
heimawl
2023-08-18 2aecb223c25bda27aed109d9677fa421be2c0f91
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="待执行/总数"
          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
          width="120"
          :show-overflow-tooltip="true"
        />
        <el-table-column
          label="审核时间"
          label="创建人"
          align="center"
          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="最近修改"
          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
@@ -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";
@@ -581,8 +579,9 @@
    /** 查询门诊随访列表 */
    getList() {
      this.loading = true;
      listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then(
      listsvr_prj(this.addDateRange(this.topqueryParams, this.dateRange)).then(
        (response) => {
          console.log(response);
          this.userList = response.rows;
          this.total = response.total;
          this.loading = false;
@@ -700,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 },
      });
    },
    /** 重置密码按钮操作 */