flat: 合并

This commit is contained in:
Apcallover
2024-04-29 21:40:01 +08:00
parent 8058a6a7e5
commit c9d06c0353
3 changed files with 49 additions and 37 deletions

View File

@@ -75,6 +75,9 @@ axios.interceptors.response.use(
Message({message: message, type: 'error'}); Message({message: message, type: 'error'});
return Promise.reject(err, res) return Promise.reject(err, res)
} }
if (res.data instanceof Blob) {
return res
}
return transformReplaceStr(res); return transformReplaceStr(res);
}, },
error => { error => {

View File

@@ -69,10 +69,12 @@
size="small" size="small"
icon="el-icon-search" icon="el-icon-search"
@click="searchChange1" @click="searchChange1"
> </el-button >
</el-button
> >
<el-button size="small" icon="el-icon-delete" @click="searchReset1" <el-button size="small" icon="el-icon-delete" @click="searchReset1"
> </el-button >
</el-button
> >
</div> </div>
</el-row> </el-row>
@@ -148,12 +150,14 @@
size="small" size="small"
@click.stop="handleCheck" @click.stop="handleCheck"
type="primary" type="primary"
>审核</el-button >审核
</el-button
> >
</template> </template>
<template slot="menuRight"> <template slot="menuRight">
<el-button size="small" :disabled="downloadButton" @click.stop="downRecords" type="primary" <el-button size="small" :disabled="downloadButton" @click.stop="downRecords" type="primary"
>导出</el-button >导出
</el-button
> >
</template> </template>
<template slot-scope="{ row }" slot="menu"> <template slot-scope="{ row }" slot="menu">
@@ -162,7 +166,8 @@
size="small" size="small"
@click.stop="rowView(row)" @click.stop="rowView(row)"
v-if="vaildData(permission.manage_mission_view, false)" v-if="vaildData(permission.manage_mission_view, false)"
>详情</el-button >详情
</el-button
> >
<!-- <el-button <!-- <el-button
type="text" type="text"
@@ -199,11 +204,13 @@ import zpView from "./zpView";
import {missionState, wageUnitCategoryState, recruitStatus, dataSourcesEnum, educationState} from "@/common/dic"; import {missionState, wageUnitCategoryState, recruitStatus, dataSourcesEnum, educationState} from "@/common/dic";
import {calcDate} from "@/util/date"; import {calcDate} from "@/util/date";
import {Message} from "element-ui"; import {Message} from "element-ui";
const wageUnitCategoryStateEnum = {} const wageUnitCategoryStateEnum = {}
wageUnitCategoryState.map((item) => { wageUnitCategoryState.map((item) => {
wageUnitCategoryStateEnum[item.value] = item.label wageUnitCategoryStateEnum[item.value] = item.label
}) })
import lodash from "lodash"; import lodash from "lodash";
const message = lodash.throttle( const message = lodash.throttle(
function (options) { function (options) {
Message(options); Message(options);
@@ -611,6 +618,7 @@ export default {
this.page.pageSize, this.page.pageSize,
this.query this.query
).then((response) => { ).then((response) => {
console.log('response', response)
const blob = window.URL.createObjectURL(new Blob([response.data], {type: response.headers['content-type']})); const blob = window.URL.createObjectURL(new Blob([response.data], {type: response.headers['content-type']}));
let fileName = decodeURI(response.headers['content-disposition'].split(';')[1].split('filename=')[1]) let fileName = decodeURI(response.headers['content-disposition'].split(';')[1].split('filename=')[1])
let a = document.createElement('a') let a = document.createElement('a')
@@ -630,6 +638,7 @@ export default {
.el-form-item { .el-form-item {
margin-right: 18px !important; margin-right: 18px !important;
} }
.searchBtn { .searchBtn {
display: inline-block; display: inline-block;
} }

View File

@@ -38,8 +38,8 @@ const classIsDeleted = {
1: '是', 1: '是',
} }
const classStatus = { const classStatus = {
0: '未发布', 0: '未处理',
1: '发布', 1: '已处理',
2: '关闭' 2: '关闭'
} }
const classEnumList = Object.keys(classEnum).map((item) => ({ const classEnumList = Object.keys(classEnum).map((item) => ({