WXL
2024-09-27 476569c60192a7ff3b2c291e7eb72f1c2c6b9aaa
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) {