pengwei
2025-03-24 f90fbbc76d23340e4568dd4dadbab5f7f02a030f
ÏîÄ¿´úÂë/client/src/views/tts/BasicInformation/Basicinformation.vue
@@ -106,7 +106,7 @@
            ><el-icon style="margin-right: 0.2rem"> <Plus /> </el-icon
            >新建</el-button
          >
          <el-button
          <!-- <el-button
            size="small"
            style="width: 5.5rem; height: 2rem; font-size: 0.88rem"
            >批量导入</el-button
@@ -114,8 +114,9 @@
          <el-button
            size="small"
            style="width: 5.5rem; height: 2rem; font-size: 0.88rem"
            @click="printExcel"
            >批量导出</el-button
          >
          > -->
          <el-button
            @click="deleteAll"
            size="small"
@@ -127,6 +128,7 @@
      <div style="margin-top: 1rem; height: 100%">
        <!-- ä¿¡æ¯åˆ—表 -->
        <el-table
          empty-text="暂无数据"
          v-if="isactive == 1"
          :data="tableData"
          style="width: 100%"
@@ -161,6 +163,7 @@
        <!-- å·¥å…·åˆ—表 -->
        <el-table
          empty-text="暂无数据"
          v-if="isactive == 2"
          :data="toolList"
          style="width: 100%"
@@ -315,7 +318,6 @@
            <el-form-item prop="articleRemark">
              <template #label>
                <div style="display: flex; align-items: flex-end">
                  <span style="color: red; margin-right: 0.2rem">*</span>
                  <span
                    style="font-size: 0.88rem; color: black; font-weight: bold"
                    >备注</span
@@ -445,7 +447,6 @@
            <el-form-item prop="toolremark">
              <template #label>
                <div style="display: flex; align-items: flex-end">
                  <span style="color: red; margin-right: 0.2rem">*</span>
                  <span
                    style="font-size: 0.88rem; color: black; font-weight: bold"
                    >备注</span
@@ -496,6 +497,8 @@
  editToolData,
  deleteToolData,
  deleteBasicinformation,
  ExportApi,
  ExportTool,
} from "@/api/newapi/Basicinformation.js";
// åˆå§‹åŒ–数据
const obj = {
@@ -708,12 +711,44 @@
  }
};
const printExcel = () => {
  // æŸ¥è¯¢æ¡ä»¶
  const startTime = formatTime(queryForm.value.selectTime[0]);
  const endTime = formatTime(queryForm.value.selectTime[1]);
  const filter = [
    {
      name: queryForm.value.selectType,
      value: queryForm.value.selectInput,
      displayType: "like",
    },
    {
      name: "pustatus",
      value: queryForm.value.selectName,
      displayType: "String",
    },
    { name: "createDate", value: startTime, displayType: "ThanOrEqual" },
    { name: "createDate", value: endTime, displayType: "LessOrEqual" },
  ];
  if (isactive.value == 1) {
    ExportApi({
      ...pageQuery.value,
      filter,
    });
  }
  if (isactive.value == 2) {
    ExportTool({
      ...pageQuery.value,
      filter,
    });
  }
};
//分页请求参数
const pageQuery = ref({
  page: 1, //当前页面
  rows: 10, //每页显示条数
  order: "desc", //排序方式
  sort: "createDate", //排序字段
  sort: "", //排序字段
  wheres: "", //条件查询
});