提交
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
# 页面标题
|
# 页面标题
|
||||||
VITE_APP_TITLE = 若依管理系统
|
VITE_APP_TITLE = 中科云
|
||||||
|
|
||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
VITE_APP_ENV = 'development'
|
VITE_APP_ENV = 'development'
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
# 页面标题
|
# 页面标题
|
||||||
VITE_APP_TITLE = 若依管理系统
|
VITE_APP_TITLE = 中科云
|
||||||
|
|
||||||
# 生产环境配置
|
# 生产环境配置
|
||||||
VITE_APP_ENV = 'production'
|
VITE_APP_ENV = 'production'
|
||||||
|
|
||||||
# 若依管理系统/生产环境
|
# 若依管理系统/生产环境
|
||||||
# VITE_APP_BASE_API = '/prod-api'
|
# VITE_APP_BASE_API = '/prod-api'
|
||||||
VITE_APP_BASE_API = 'http://120.26.107.74:1618'
|
#VITE_APP_BASE_API = 'http://120.26.107.74:1618'
|
||||||
#VITE_APP_BASE_API = '/api'
|
VITE_APP_BASE_API = '/api'
|
||||||
|
|
||||||
# 是否在打包时开启压缩,支持 gzip 和 brotli
|
# 是否在打包时开启压缩,支持 gzip 和 brotli
|
||||||
VITE_BUILD_COMPRESS = gzip
|
VITE_BUILD_COMPRESS = gzip
|
@ -1,5 +1,5 @@
|
|||||||
# 页面标题
|
# 页面标题
|
||||||
VITE_APP_TITLE = 若依管理系统
|
VITE_APP_TITLE = 中科云
|
||||||
|
|
||||||
# 生产环境配置
|
# 生产环境配置
|
||||||
VITE_APP_ENV = 'staging'
|
VITE_APP_ENV = 'staging'
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
<link rel="icon" href="/favicon.ico">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<title>若依管理系统</title>
|
<title>中科云</title>
|
||||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
|
@ -180,7 +180,8 @@ function listToString(list, separator) {
|
|||||||
separator = separator || ",";
|
separator = separator || ",";
|
||||||
for (let i in list) {
|
for (let i in list) {
|
||||||
if (undefined !== list[i].url && list[i].url.indexOf("blob:") !== 0) {
|
if (undefined !== list[i].url && list[i].url.indexOf("blob:") !== 0) {
|
||||||
strs += list[i].url.replace(baseUrl, "") + separator;
|
// strs += list[i].url.replace(baseUrl, "") + separator;
|
||||||
|
strs += list[i].url + separator;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return strs != "" ? strs.substr(0, strs.length - 1) : "";
|
return strs != "" ? strs.substr(0, strs.length - 1) : "";
|
||||||
|
BIN
src/static/login-left..png
Normal file
BIN
src/static/login-left..png
Normal file
Binary file not shown.
After Width: | Height: | Size: 467 KiB |
@ -160,6 +160,11 @@
|
|||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
<el-option
|
<el-option
|
||||||
|
value="硕士"
|
||||||
|
label="硕士"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
<el-option
|
||||||
value="本科"
|
value="本科"
|
||||||
label="本科"
|
label="本科"
|
||||||
>
|
>
|
||||||
@ -194,11 +199,11 @@
|
|||||||
|
|
||||||
<el-row v-if="formType == 1">
|
<el-row v-if="formType == 1">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="从业时间:" prop="workAt">
|
<el-form-item label="从业时间:" prop="workTime">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="modelValue.workAt"
|
v-model="modelValue.workTime"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="YYYY-MM-DD"
|
||||||
placeholder="选择日期"
|
placeholder="选择日期"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
@ -365,7 +370,7 @@ const data = reactive({
|
|||||||
major: [{ required: true, message: "请输入", trigger: "blur" }],
|
major: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
job: [{ required: true, message: "请输入", trigger: "blur" }],
|
job: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
title: [{ required: true, message: "请输入", trigger: "blur" }],
|
title: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
workAt: [
|
workTime: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "从业时间不能为空",
|
message: "从业时间不能为空",
|
||||||
@ -420,16 +425,15 @@ const validateForm = async () => {
|
|||||||
}
|
}
|
||||||
const cityFormValid = await cityFormRef.value.validateForm();
|
const cityFormValid = await cityFormRef.value.validateForm();
|
||||||
const fieldFormValid = await fieldFormRef.value.validateForm();
|
const fieldFormValid = await fieldFormRef.value.validateForm();
|
||||||
const keywordsFormValid = await keywordsFormRef.value.validateForm();
|
// const keywordsFormValid = await keywordsFormRef.value.validateForm();
|
||||||
if (formType.value == 1) {
|
if (formType.value == 1) {
|
||||||
//个人
|
//个人
|
||||||
const researchsFormValid = await researchsFormRef.value.validateForm(); // 研究方向验证
|
// const researchsFormValid = await researchsFormRef.value.validateForm(); //研究方向验证
|
||||||
return (
|
return (
|
||||||
formValid &&
|
formValid &&
|
||||||
cityFormValid &&
|
cityFormValid &&
|
||||||
fieldFormValid &&
|
fieldFormValid
|
||||||
keywordsFormValid &&
|
// researchsFormValid
|
||||||
researchsFormValid
|
|
||||||
);
|
);
|
||||||
} else if (formType.value == 2) {
|
} else if (formType.value == 2) {
|
||||||
//企业
|
//企业
|
||||||
@ -438,7 +442,7 @@ const validateForm = async () => {
|
|||||||
formValid &&
|
formValid &&
|
||||||
cityFormValid &&
|
cityFormValid &&
|
||||||
fieldFormValid &&
|
fieldFormValid &&
|
||||||
keywordsFormValid &&
|
// keywordsFormValid &&
|
||||||
directionsFormValid
|
directionsFormValid
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
>
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="所属领域:" required :show-message="false">
|
<el-form-item label="所属领域:" prop="industrys" :show-message="false">
|
||||||
<el-row type="flex" justify="space-between">
|
<el-row type="flex" justify="space-between">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item prop="industrys">
|
<el-form-item >
|
||||||
<el-select
|
<el-select
|
||||||
v-model="fields[0]"
|
v-model="fields[0]"
|
||||||
value-key="id"
|
value-key="id"
|
||||||
@ -94,7 +94,7 @@
|
|||||||
// import { industry } from "@/api/config";
|
// import { industry } from "@/api/config";
|
||||||
import { listSysIndustry } from "@/api/platform/industry";
|
import { listSysIndustry } from "@/api/platform/industry";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import { toRefs, watch } from "vue";
|
import { toRefs, watch ,reactive} from "vue";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: Object,
|
modelValue: Object,
|
||||||
@ -171,6 +171,8 @@ const getFieldNameById = (ids) => {
|
|||||||
// 所属领域添加按钮
|
// 所属领域添加按钮
|
||||||
const fieldAdd = () => {
|
const fieldAdd = () => {
|
||||||
if (!fields.value.length) return ElMessage.error("请选择领域类型");
|
if (!fields.value.length) return ElMessage.error("请选择领域类型");
|
||||||
|
// 移除校验
|
||||||
|
formRef.value.clearValidate()
|
||||||
industrysTags.value.push(fields.value);
|
industrysTags.value.push(fields.value);
|
||||||
modelValue.value.industrys.push(fields.value.join("-"));
|
modelValue.value.industrys.push(fields.value.join("-"));
|
||||||
fields.value = [];
|
fields.value = [];
|
||||||
|
@ -77,6 +77,9 @@ const dataVal = ref("");
|
|||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
const keyWordAdd = () => {
|
const keyWordAdd = () => {
|
||||||
if (!dataVal.value.length) return ElMessage.error(`请输入${title.value}`);
|
if (!dataVal.value.length) return ElMessage.error(`请输入${title.value}`);
|
||||||
|
if(!modelValue.value[fieldKey.value]){
|
||||||
|
modelValue.value[fieldKey.value]=[]
|
||||||
|
}
|
||||||
modelValue.value[fieldKey.value].push(dataVal.value);
|
modelValue.value[fieldKey.value].push(dataVal.value);
|
||||||
dataVal.value = "";
|
dataVal.value = "";
|
||||||
};
|
};
|
||||||
|
@ -48,6 +48,7 @@ const data = reactive({
|
|||||||
directions: [],
|
directions: [],
|
||||||
introduce: undefined,
|
introduce: undefined,
|
||||||
license: undefined,
|
license: undefined,
|
||||||
|
workTime:''
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const { form } = toRefs(data);
|
const { form } = toRefs(data);
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
>导入</el-button
|
>导入</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
plain
|
plain
|
||||||
@ -63,7 +63,7 @@
|
|||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
>导出</el-button
|
>导出</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
:showSearch.sync="showSearch"
|
:showSearch.sync="showSearch"
|
||||||
@queryTable="getList"
|
@queryTable="getList"
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="标签">
|
<el-form-item label="标签">
|
||||||
<template #default="{row}">
|
<template #default="{row}">
|
||||||
<el-input style="width: 89%;margin-right: 5px;" v-model="formData.tags" placeholder="多个标签(请用','分割)"></el-input><el-button type="primary" style="float: right;" @click="addTag">确认</el-button>
|
<el-input style="width: 88%;margin-right: 5px;" v-model="formData.tags" placeholder="多个标签(请用','分割)"></el-input><el-button type="primary" style="float: right;" @click="addTag">确认</el-button>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-tag type="" closable v-for="val in tags" @close="handleClose(val)">{{val}}</el-tag>
|
<el-tag type="" closable v-for="val in tags" @close="handleClose(val)">{{val}}</el-tag>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
|
<el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form">
|
||||||
<h3 class="title">若依后台管理系统</h3>
|
<el-row>
|
||||||
|
<el-col :span="12" class="_left">
|
||||||
|
<img src="../static/login-left..png" alt="">
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12" class="_right">
|
||||||
|
<h3 class="title">中科云</h3>
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="loginForm.username"
|
v-model="loginForm.username"
|
||||||
@ -56,6 +61,8 @@
|
|||||||
<router-link class="link-type" :to="'/register'">立即注册</router-link>
|
<router-link class="link-type" :to="'/register'">立即注册</router-link>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
<div class="el-login-footer">
|
<div class="el-login-footer">
|
||||||
@ -156,8 +163,10 @@ getCookie();
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-image: url("../assets/images/login-background.jpg");
|
background-color: #b1ccff;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
// background-image: url("../assets/images/login-background.jpg");
|
||||||
|
// background-size: cover;
|
||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
margin: 0px auto 30px auto;
|
margin: 0px auto 30px auto;
|
||||||
@ -168,8 +177,23 @@ getCookie();
|
|||||||
.login-form {
|
.login-form {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
width: 400px;
|
width: 1000px;
|
||||||
padding: 25px 25px 5px 25px;
|
._left {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-content: center;
|
||||||
|
height: 500px;
|
||||||
|
background: linear-gradient(0deg, #0054ff, #516af5);
|
||||||
|
img {
|
||||||
|
width: 495px;
|
||||||
|
height: 441px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
._right {
|
||||||
|
height: 100%;
|
||||||
|
padding: 120px 104px 5px 104px;
|
||||||
|
}
|
||||||
.el-input {
|
.el-input {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
input {
|
input {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="register">
|
<div class="register">
|
||||||
<el-form ref="registerRef" :model="registerForm" :rules="registerRules" class="register-form">
|
<el-form ref="registerRef" :model="registerForm" :rules="registerRules" class="register-form">
|
||||||
<h3 class="title">若依后台管理系统</h3>
|
<h3 class="title">中科云</h3>
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="registerForm.username"
|
v-model="registerForm.username"
|
||||||
|
Reference in New Issue
Block a user