zouyu
2025-03-18 bc44c8e3c9d85691ce3fa73ef1300a6fae46e365
src/views/performance/manHour/work-time-config.vue
@@ -54,18 +54,16 @@
        type="primary"
        style="position: absolute; right: 50px"
        @click="openAdd()"
         v-hasPermi="['performance:manHour:workTimeConfig:add']"
        >新 增</el-button
      >
    </div>
    <div class="table">
      <!-- <ValueTable ref="ValueTable0"
                  :url="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" :upUrl="$api.auxiliaryWorkingHours.upAuxiliaryWorkingHours"
                  :delUrl="$api.auxiliaryWorkingHours.deleteAuxiliaryWorkingHours" :componentData="componentData" :key="upIndex" /> -->
      <lims-table
        :tableData="tableData"
        :column="column"
        :tableLoading="tableLoading"
        :height="'calc(100vh - 270px)'"
        :height="tableHeight"
        :page="page"
        @pagination="pagination"
      ></lims-table>
@@ -172,6 +170,8 @@
} from "../../../api/business/manHour";
import { getYearAndMonthAndDays } from "../../../utils/date";
import auth from "@/plugins/auth.js";
import { getDicts } from "@/api/system/dict/data";
import { number } from "echarts";
export default {
@@ -180,6 +180,7 @@
  },
  data() {
    return {
      tableHeight: "",
      rules: {
        number: [{ required: true, message: "请输入编号", trigger: "blur" }],
        auxiliaryProject: [
@@ -273,12 +274,18 @@
              clickFun: (row) => {
                this.openAdd(row);
              },
              showHide: (row) => {
                return auth.hasPermi("performance:manHour:workTimeConfig:edit");
              },
            },
            {
              name: "删除",
              type: "text",
              clickFun: (row) => {
                this.del(row);
              },
              showHide: (row) => {
                return auth.hasPermi("performance:manHour:workTimeConfig:del");
              },
            },
          ],
@@ -302,7 +309,9 @@
      addPower: true,
    };
  },
  created() {},
  created() {
    this.getTableHeight();
  },
  mounted() {
    this.entityCopy = this.HaveJson(this.entity);
    this.obtainItemParameterList();
@@ -310,6 +319,9 @@
    this.getData();
  },
  methods: {
    getTableHeight() {
      this.tableHeight = window.innerHeight -50 -46 - 63 - 80 - 41 -30 -30 -32 + '';
    },
    getData() {
      this.tableLoading = true;
      this.page.total = 0;