WXL
2024-06-02 628fd01beea81bac2f0299472d528860ae07cf3f
测试完成
已修改3个文件
45 ■■■■ 文件已修改
src/views/followvisit/tasklist/index.vue 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/particty.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/tasklist/index.vue
@@ -218,7 +218,7 @@
        >
          <template slot-scope="scope">
            <el-button
              v-if="scope.row.status != 1"
              v-if="scope.row.sendState == 1 || scope.row.sendState == 3"
              size="medium"
              type="text"
              @click="sponsor(scope.row)"
@@ -226,12 +226,25 @@
                ><i class="el-icon-s-promotion"></i>任务发起</span
              ></el-button
            >
            <el-button
              v-if="scope.row.sendState == 1 || scope.row.sendState == 3"
              size="medium"
              type="text"
              @click="immediateExecution(scope.row)"
              ><span class="button-lj"
                ><i class="el-icon-s-promotion"></i>立即执行</span
              ></el-button
            >
            <el-button size="medium" type="text" @click="newAdd(scope.row)"
              ><span class="button-xj"
                ><i class="el-icon-circle-plus-outline"></i>依照新增</span
              ></el-button
            >
            <el-button size="medium" type="text" @click="stop(scope.row)"
            <el-button
              v-if="scope.row.sendState == 2"
              size="medium"
              type="text"
              @click="stop(scope.row)"
              ><span class="button-zt"
                ><i class="el-icon-circle-plus-outline"></i>暂停任务</span
              ></el-button
@@ -716,13 +729,23 @@
    deletefn() {},
    // 任务发起
    sponsor(row) {
      console.log(row,'任务信息');
      console.log(row, "任务信息");
      if (row.sendState != 2) {
        this.TaskOperation.taskId = row.taskid;
        this.TaskOperation.sendState = 2;
        TaskTemplateSendExecution(this.TaskOperation).then((res) => {});
      }
    },
    immediateExecution(row) {
      console.log(row, "任务信息");
      if (row.sendState != 2) {
        this.TaskOperation.taskId = row.taskid;
        this.TaskOperation.sendState = 2;
        this.TaskOperation.sendType = 2;
        TaskTemplateSendExecution(this.TaskOperation).then((res) => {});
      }
    },
    // 依照新增
    newAdd(row) {
      TaskTemplateSendExecution().then((res) => {});
@@ -891,6 +914,12 @@
  border-radius: 1px;
  color: #ffffff;
}
.button-lj {
  background: #e9614f;
  padding: 5px;
  border-radius: 1px;
  color: #ffffff;
}
.button-xj {
  background: #815c94;
  padding: 5px;
src/views/patient/propaganda/particty.vue
@@ -1078,8 +1078,12 @@
      this.overallCase.forEach((item) => {
        this.allpids.push(item.patid);
      });
      this.patientqueryParams.pids = this.allpids;
      console.log(this.patientqueryParams.pids);
      if (this.allpids[0]) {
        this.patientqueryParams.pids = this.allpids;
        console.log(this.patientqueryParams.pids);
      } else {
        this.patientqueryParams.pids = null;
      }
      getTaskpatient(this.patientqueryParams).then((response) => {
        console.log(response);
vue.config.js
@@ -35,7 +35,7 @@
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        // target: `http://192.168.1.10:8089`,
        // target: `http://192.168.2.8:8089`,
        target:`http://localhost:8089`,
        // target: `http://www.hxsoft.com:8080`,
        changeOrigin: true,