ceb802af0b9630b30c7f973f05da8d2ed9e9c16f..4088aee5374b2bcebf28e590d612ca72ad44197c
5 天以前 maven
yys
4088ae 对比 | 目录
5 天以前 maven
yys 修改字体
34dd82 对比 | 目录
5 天以前 maven
yys 优化导入导出
c15270 对比 | 目录
已修改3个文件
57 ■■■■■ 文件已修改
src/utils/util.js 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/chatHome/chatHomeIndex/MobileChat.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/lavorissue/ledger/index.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/util.js
@@ -1,4 +1,6 @@
//防抖
import dayjs from "dayjs";
export  function debounce(fn) {
    console.log(1)
    let t = null //只会执行一次
@@ -103,4 +105,17 @@
}
  export function filterArr(arr) {
      return arr.filter(item => item.flag !== false);
  }
  }
 export function getCurrentMonth () {
    let month = dayjs().month() + 1
    if (month <= 3) {
        return '1';
    } else if (month <= 6) {
        return '2';
    } else if (month <= 9) {
        return '3';
    } else if (month <= 12) {
        return '4';
    }
}
src/views/chatHome/chatHomeIndex/MobileChat.vue
@@ -14,7 +14,7 @@
                <span class="flash_cursor"></span>
              </template>
              <template v-else>
                <pre>{{ item.msg }}</pre>
                <pre style="font-family: none;">{{ item.msg }}</pre>
              </template>
            </div>
            <div class="chat-img" v-if="item.chatType == 1">
@@ -140,7 +140,7 @@
    }
    chatList.value.push(chatMsg)
    let chatGPT = {
      headImg: headPortrait,
      headImg: chatGPTHeadImg,
      name: '小智',
      time: new Date().toLocaleTimeString(),
      msg: "",
@@ -185,7 +185,7 @@
    uid: '1002'
  })
  chatList.value.push({
    headImg: chatGPTHeadImg,
    headImg: headPortrait,
    name: '卧龙',
    time: new Date().toLocaleTimeString(),
    msg: route.query.keyWord,
src/views/lavorissue/ledger/index.vue
@@ -1,6 +1,17 @@
<template>
  <div class="app-container">
    <el-form :model="filters" :inline="true">
      <el-form-item label="发放季度:" prop="season">
        <el-select
            style="width: 200px;"
            @change="handleQuery"
            v-model="filters.season"
            placeholder="请选择"
            :clearable="false"
        >
          <el-option :label="item.label" :value="item.value" v-for="(item,index) in jidu" :key="value" />
        </el-select>
      </el-form-item>
      <el-form-item label="员工名称:">
        <el-input
            v-model="filters.staffName"
@@ -68,6 +79,7 @@
import { ElMessageBox, ElMessage } from "element-plus";
import dayjs from "dayjs";
import FilesDia from "./filesDia.vue";
import { getCurrentMonth } from "@/utils/util"
// 表格多选框选中项
const multipleList = ref([]);
@@ -89,6 +101,7 @@
    listPage,
    {
      staffName: '',
      season: getCurrentMonth(),
    },
    [
      {
@@ -153,6 +166,25 @@
      },
    ]
);
const jidu = ref([
  {
    value: '1',
    label: '第一季度'
  },
  {
    value: '2',
    label: '第二季度'
  },
  {
    value: '3',
    label: '第三季度'
  },
  {
    value: '4',
    label: '第四季度'
  }
])
// 多选后做什么
const handleSelectionChange = (selectionList) => {
@@ -231,7 +263,7 @@
    type: "warning",
  })
      .then(() => {
        proxy.download(`/lavorIssue/export`, {}, "劳保台账.xlsx");
        proxy.download(`/lavorIssue/exportCopy`, {season: filters.season}, "劳保台账.xlsx");
      })
      .catch(() => {
        proxy.$modal.msg("已取消");