| | |
| | | //防抖 |
| | | import dayjs from "dayjs"; |
| | | |
| | | export function debounce(fn) { |
| | | console.log(1) |
| | | let t = null //只会执行一次 |
| | |
| | | } |
| | | 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'; |
| | | } |
| | | } |
| | |
| | | <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"> |
| | |
| | | } |
| | | chatList.value.push(chatMsg) |
| | | let chatGPT = { |
| | | headImg: headPortrait, |
| | | headImg: chatGPTHeadImg, |
| | | name: '小智', |
| | | time: new Date().toLocaleTimeString(), |
| | | msg: "", |
| | |
| | | uid: '1002' |
| | | }) |
| | | chatList.value.push({ |
| | | headImg: chatGPTHeadImg, |
| | | headImg: headPortrait, |
| | | name: '卧龙', |
| | | time: new Date().toLocaleTimeString(), |
| | | msg: route.query.keyWord, |
| | |
| | | <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" |
| | |
| | | import { ElMessageBox, ElMessage } from "element-plus"; |
| | | import dayjs from "dayjs"; |
| | | import FilesDia from "./filesDia.vue"; |
| | | import { getCurrentMonth } from "@/utils/util" |
| | | |
| | | // 表格多选框选中项 |
| | | const multipleList = ref([]); |
| | |
| | | listPage, |
| | | { |
| | | staffName: '', |
| | | season: getCurrentMonth(), |
| | | }, |
| | | [ |
| | | { |
| | |
| | | }, |
| | | ] |
| | | ); |
| | | |
| | | const jidu = ref([ |
| | | { |
| | | value: '1', |
| | | label: '第一季度' |
| | | }, |
| | | { |
| | | value: '2', |
| | | label: '第二季度' |
| | | }, |
| | | { |
| | | value: '3', |
| | | label: '第三季度' |
| | | }, |
| | | { |
| | | value: '4', |
| | | label: '第四季度' |
| | | } |
| | | ]) |
| | | |
| | | // 多选后做什么 |
| | | const handleSelectionChange = (selectionList) => { |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | proxy.download(`/lavorIssue/export`, {}, "劳保台账.xlsx"); |
| | | proxy.download(`/lavorIssue/exportCopy`, {season: filters.season}, "劳保台账.xlsx"); |
| | | }) |
| | | .catch(() => { |
| | | proxy.$modal.msg("已取消"); |