WXL (wul)
5 天以前 17efc8b0fb7d3fa66eb8e22f32b81e3e14bcd7f6
src/views/sfstatistics/percentage/satisfaction.vue
@@ -61,7 +61,7 @@
                </el-select>
              </el-form-item>
              <el-form-item label="统计题目" prop="userName">
              <el-form-item label="服务类型" prop="userName">
                <el-select
                  v-model="queryParams.serviceType"
                  multiple
@@ -224,9 +224,7 @@
              >
                <template slot-scope="scope">
                  <span class="button-zx"
                      >{{
                        (Number(scope.row.joyTotal) * 100).toFixed(2)
                      }}%</span
                    >{{ (Number(scope.row.joyTotal) * 100).toFixed(2) }}%</span
                    >
                </template>
              </el-table-column>
@@ -250,13 +248,13 @@
              </el-table-column>
            </el-table>
            <!-- <pagination
            <pagination
              v-show="total > 0"
              :total="total"
              :page.sync="queryParams.pageNum"
              :limit.sync="queryParams.pageSize"
              @pagination="getList"
            /> -->
            />
          </el-col>
        </el-row>
      </div>
@@ -549,8 +547,8 @@
} from "@/api/system/label";
import store from "@/store";
import {
  getSfStatisticsJoydetails,
  getSfStatisticsJoy,
  getSfStatisticsJoyInfo,
  selectTimelyRate,
} from "@/api/system/user";
@@ -752,6 +750,7 @@
    getList() {
      // 处理查询参数
      const params = {
        configKey: "joyCount",
        ...this.queryParams,
        // 如果选择了"全部",则传所有病区/科室代码
        leavehospitaldistrictcodes:
@@ -768,7 +767,7 @@
      delete params.deptcodes.all;
      getSfStatisticsJoy(params).then((response) => {
        console.log(response);
        // this.total = response.total;
        this.total = response.total;
        this.userList = response.data;
      });
    },
@@ -887,7 +886,25 @@
    // 调起详情
    getinfo(row) {
      this.topicVisible = true;
      // 处理查询参数
      const params = {
        configKey: "joyCount",
        ...this.queryParams,
      };
      if (this.queryParams.statisticaltype == 1) {
        params.leavehospitaldistrictcodes = [row.leavehospitaldistrictcode];
      } else {
        params.deptcodes = [row.deptcode];
      }
      // 移除可能存在的"all"值
      delete params.leavehospitaldistrictcodes.all;
      delete params.deptcodes.all;
      getSfStatisticsJoyInfo(params).then((response) => {
        console.log(response);
        this.total = response.total;
        this.userList = response.data;
      });
    },
    // 添加/修改标签
    Maintenancetag() {