flat: 全职和零工的的岗位页面,选择企业名称改为手动输入

This commit is contained in:
史典卓
2025-06-23 15:48:10 +08:00
parent 1b8eb2291d
commit ec51dfbb3a
9 changed files with 151 additions and 127 deletions

View File

@@ -7,7 +7,7 @@
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<link rel="stylesheet" href="<%= BASE_URL %>cdn/element-ui/2.12.0/theme-chalk/index.css">

View File

@@ -28,7 +28,7 @@ import i18n from './lang' // Internationalization
import axios from './router/axios';
import router from './router/router';
import store from './store';
import {loadStyle} from './util/util';
import {loadStyle, staticPath} from './util/util';
import event from './event';
Vue.use(router);
@@ -60,6 +60,7 @@ function sleep(time) {
return new Promise((resolve) => setTimeout(resolve, time))
}
Vue.prototype.staticPath = staticPath
Vue.prototype.$api = {sleep}
Vue.config.productionTip = false;

View File

@@ -6,7 +6,7 @@
<transition-group name="fade">
<template v-if="!keyCollapse">
<span class="avue-logo_title" style=" display: flex !important; align-items: center !important;" key="1">
<img height="42px" width="200px" src="/svg/logo_dark2.png" alt/>
<img height="42px" width="200px" :src="staticPath('logo_dark2.png', 'svg')" alt/>
</span>
</template>
</transition-group>
@@ -16,6 +16,7 @@
<script>
import {mapGetters, mapState} from "vuex";
console.log(process.env.BASE_URL)
export default {
name: "logo",
data() {

View File

@@ -44,6 +44,10 @@ axios.interceptors.request.use(config => {
if (config.method === 'post' && meta.isSerialize === true) {
config.data = serialize(config.data);
}
// 馆陶替换url
if (config.url.startsWith('/api')) {
config.url = config.url.replace(/^\/api/, '/api/gt');
}
return config
}, error => {
return Promise.reject(error)

View File

@@ -18,7 +18,7 @@ Vue.use(VueRouter);
export const createRouter = () =>
new VueRouter({
mode: 'history',
base: '/gt/manage/',
base: '/hl/manage/',
// https://router.vquejs.org/zh/guide/advanced/scroll-behavior.html#%E5%BC%82%E6%AD%A5%E6%BB%9A%E5%8A%A8
// 这个方法 是控制滚动条
// 如果 retuen falsy || {} ,则不发生滚动

View File

@@ -5,7 +5,9 @@ import {validatenull} from './validate'
//表单序列化
export const serialize = data => {
let list = [];
Object.keys(data).forEach(ele => {list.push(`${ele}=${data[ele]}`)})
Object.keys(data).forEach(ele => {
list.push(`${ele}=${data[ele]}`)
})
return list.join('&');
};
export const getObjType = obj => {
@@ -111,6 +113,7 @@ export const listenfullscreen = (callback) => {
function listen() {
callback()
}
document.addEventListener('fullscreenchange', function () {
listen();
});
@@ -315,7 +318,9 @@ export const openWindow =
export const exportFunc =
(title, data, fileName) => {
const aoa = [title]
data.forEach(item => {aoa.push(item)})
data.forEach(item => {
aoa.push(item)
})
const sheet = XLSX.utils.aoa_to_sheet(aoa)
const book = XLSX.utils.book_new()
XLSX.utils.book_append_sheet(book, sheet, 'sheet1')
@@ -396,6 +401,7 @@ export const nameDesensitization = (name) => {
str = str.substring(0, 1) + new Array(str.length).join('*')
return str;
}
export function debounce(fn, delay) {
let timer = null
return function () {
@@ -407,3 +413,9 @@ export function debounce(fn, delay) {
}, delay)
}
}
export function staticPath(path = '', folder = '') {
const base = process.env.BASE_URL || '/';
const prefix = folder ? `${folder}/` : '';
return `${base}${prefix}${path}`.replace(/\/\/+/g, '/');
}

View File

@@ -636,13 +636,13 @@ export default {
trigger: "blur",
},
],
formslot: true,
// formslot: true,
span: 12,
},
{
label: "单位信用代码",
prop: "missionCompanyScale",
disabled: true,
// disabled: true,
// rules: [
// {
// required: true,
@@ -655,7 +655,7 @@ export default {
{
label: "所属行业",
prop: "missionCompanyIndustry",
disabled: true,
// disabled: true,
// rules: [
// {
// required: true,
@@ -674,7 +674,7 @@ export default {
{
label: "单位性质",
prop: "missionCompanyNature",
disabled: true,
// disabled: true,
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature",
props: {

View File

@@ -763,13 +763,13 @@ export default {
trigger: "blur",
},
],
formslot: true,
// formslot: true,
span: 12,
},
{
label: "单位信用代码",
prop: "jobCompanyScale",
disabled: true,
// disabled: true,
// rules: [
// {
// required: true,
@@ -782,7 +782,7 @@ export default {
{
label: "所属行业",
prop: "jobCompanyIndustry",
disabled: true,
// disabled: true,
// rules: [
// {
// required: true,
@@ -790,13 +790,19 @@ export default {
// trigger: "blur",
// },
// ],
type: "select",
dicData: this.tradeData,
props: {
label: "name",
value: "name",
},
span: 12,
},
{
prop: "jobCompanyNature",
label: "单位性质",
type: 'select',
disabled: true,
// disabled: true,
dicUrl: "/api/jobslink-api/system/dict-biz/dictionary?code=company_nature",
props: {
label: "dictValue",

View File

@@ -1,6 +1,6 @@
module.exports = {
//路径前缀
publicPath: '/gt/manage/',
publicPath: '/hl/manage/',
outputDir: "manage",
lintOnSave: true,
productionSourceMap: false,