flat: 暂存
This commit is contained in:
@@ -10,11 +10,11 @@
|
|||||||
v-model="loginForm.username"
|
v-model="loginForm.username"
|
||||||
:auto-complete="off"
|
:auto-complete="off"
|
||||||
placeholder="请输入您的账号">
|
placeholder="请输入您的账号">
|
||||||
<i slot="prefix" class="icon-yonghu" />
|
<i slot="prefix" class="icon-yonghu"/>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="password">
|
<el-form-item prop="password">
|
||||||
<el-input size="small" style="margin-top: 20px; margin-bottom:10px;"
|
<el-input size="small" style="margin-top: 20px; margin-bottom:10px;"
|
||||||
type="password"
|
type="password"
|
||||||
@keyup.enter.native="handleLogin"
|
@keyup.enter.native="handleLogin"
|
||||||
v-model="loginForm.password"
|
v-model="loginForm.password"
|
||||||
@@ -23,26 +23,27 @@
|
|||||||
<i slot="prefix" class="icon-mima"/>
|
<i slot="prefix" class="icon-mima"/>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="this.website.captchaMode" prop="code">
|
<!-- <el-form-item v-if="this.website.captchaMode" prop="code">-->
|
||||||
<el-input size="small" style="margin-top: 20px; margin-bottom:10px;"
|
<!-- <el-input size="small" style="margin-top: 20px; margin-bottom:10px;"-->
|
||||||
@keyup.enter.native="handleLogin"
|
<!-- @keyup.enter.native="handleLogin"-->
|
||||||
v-model="loginForm.code"
|
<!-- v-model="loginForm.code"-->
|
||||||
auto-complete="off"
|
<!-- auto-complete="off"-->
|
||||||
placeholder="请输入图形验证码"
|
<!-- placeholder="请输入图形验证码"-->
|
||||||
class="code-input">
|
<!-- class="code-input">-->
|
||||||
<i slot="prefix" class="icon-yanzhengma"/>
|
<!-- <i slot="prefix" class="icon-yanzhengma"/>-->
|
||||||
</el-input>
|
<!-- </el-input>-->
|
||||||
<div class="login-code" >
|
<!-- <div class="login-code" >-->
|
||||||
<img :src="loginForm.image" class="login-code-img" @click="refreshCode" />
|
<!-- <img :src="loginForm.image" class="login-code-img" @click="refreshCode" />-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
<div>
|
<div>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click.native.prevent="handleLogin"
|
@click.native.prevent="handleLogin"
|
||||||
class="login-submit"
|
class="login-submit"
|
||||||
>{{$t('login.submit')}}</el-button>
|
>{{ $t('login.submit') }}
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -50,14 +51,18 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
import topLang from "@/page/index/top/top-lang";
|
import topLang from "@/page/index/top/top-lang";
|
||||||
// import { info } from "@/api/system/tenant";
|
// import { info } from "@/api/system/tenant";
|
||||||
import { getCaptcha } from "@/api/user";
|
import {getCaptcha} from "@/api/user";
|
||||||
|
|
||||||
if (/(\/login\?)(.*)/ig.test(location.href)) {
|
if (/(\/login\?)(.*)/ig.test(location.href)) {
|
||||||
const obj = {}
|
const obj = {}
|
||||||
const query = location.href.split('?')[1].replace(/\?/, '').split('&')
|
const query = location.href.split('?')[1].replace(/\?/, '').split('&')
|
||||||
query.forEach((item) => { const a = item.split('='); obj[a[0]] = a[1]})
|
query.forEach((item) => {
|
||||||
|
const a = item.split('=');
|
||||||
|
obj[a[0]] = a[1]
|
||||||
|
})
|
||||||
window.sessionStorage.setItem('query_session', JSON.stringify(obj))
|
window.sessionStorage.setItem('query_session', JSON.stringify(obj))
|
||||||
} else {
|
} else {
|
||||||
window.sessionStorage.removeItem('query_session')
|
window.sessionStorage.removeItem('query_session')
|
||||||
@@ -68,7 +73,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
topLang,
|
topLang,
|
||||||
},
|
},
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
loginForm: {
|
loginForm: {
|
||||||
//租户ID
|
//租户ID
|
||||||
@@ -86,15 +91,15 @@ export default {
|
|||||||
//预加载白色背景
|
//预加载白色背景
|
||||||
image: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
image: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
||||||
//工作站loginTpye值为2
|
//工作站loginTpye值为2
|
||||||
loginType:'Type-T'
|
loginType: 'Type-T'
|
||||||
},
|
},
|
||||||
loginRules: {
|
loginRules: {
|
||||||
username: [
|
username: [
|
||||||
{ required: true, message: "请输入用户名", trigger: "blur" }
|
{required: true, message: "请输入用户名", trigger: "blur"}
|
||||||
],
|
],
|
||||||
password: [
|
password: [
|
||||||
{ required: true, message: "请输入密码", trigger: "blur" },
|
{required: true, message: "请输入密码", trigger: "blur"},
|
||||||
{ min: 1, message: "密码长度最少为6位", trigger: "blur" }
|
{min: 1, message: "密码长度最少为6位", trigger: "blur"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
passwordType: "password",
|
passwordType: "password",
|
||||||
@@ -103,15 +108,13 @@ export default {
|
|||||||
ticket: ''
|
ticket: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {},
|
||||||
|
created() {
|
||||||
},
|
|
||||||
created () {
|
|
||||||
// this.getTenant();
|
// this.getTenant();
|
||||||
const { ticket } = JSON.parse(window.sessionStorage.getItem('query_session') || "{}")
|
const {ticket} = JSON.parse(window.sessionStorage.getItem('query_session') || "{}")
|
||||||
window.sessionStorage.removeItem('query_session')
|
window.sessionStorage.removeItem('query_session')
|
||||||
console.log(ticket)
|
console.log(ticket)
|
||||||
if(ticket) {
|
if (ticket) {
|
||||||
this.proLoading = true
|
this.proLoading = true
|
||||||
this.ticket = ticket
|
this.ticket = ticket
|
||||||
this.handleLogin()
|
this.handleLogin()
|
||||||
@@ -120,30 +123,30 @@ export default {
|
|||||||
this.refreshCode();
|
this.refreshCode();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted() {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["website", "tagWel"])
|
...mapGetters(["website", "tagWel"])
|
||||||
},
|
},
|
||||||
props: [],
|
props: [],
|
||||||
methods: {
|
methods: {
|
||||||
handelGoReg(){
|
handelGoReg() {
|
||||||
this.$router.push({ path: "/reg" });
|
this.$router.push({path: "/reg"});
|
||||||
},
|
},
|
||||||
refreshCode () {
|
refreshCode() {
|
||||||
getCaptcha().then(res => {
|
getCaptcha().then(res => {
|
||||||
const data = res.data;
|
const data = res.data;
|
||||||
this.loginForm.key = data.key;
|
this.loginForm.key = data.key;
|
||||||
this.loginForm.image = data.image;
|
this.loginForm.image = data.image;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
showPassword () {
|
showPassword() {
|
||||||
this.passwordType === ""
|
this.passwordType === ""
|
||||||
? (this.passwordType = "password")
|
? (this.passwordType = "password")
|
||||||
: (this.passwordType = "");
|
: (this.passwordType = "");
|
||||||
},
|
},
|
||||||
handleLogin () {
|
handleLogin() {
|
||||||
if(this.proLoading) {
|
if (this.proLoading) {
|
||||||
let params = {
|
let params = {
|
||||||
...this.loginForm,
|
...this.loginForm,
|
||||||
username: "admin",
|
username: "admin",
|
||||||
@@ -166,16 +169,16 @@ export default {
|
|||||||
spinner: "el-icon-loading"
|
spinner: "el-icon-loading"
|
||||||
});
|
});
|
||||||
let obj = this.loginForm
|
let obj = this.loginForm
|
||||||
if(params) {
|
if (params) {
|
||||||
obj = params
|
obj = params
|
||||||
}
|
}
|
||||||
this.$store.dispatch("LoginByUsername", obj).then(() => {
|
this.$store.dispatch("LoginByUsername", obj).then(() => {
|
||||||
this.$store.dispatch('jlHelpShow', false)
|
this.$store.dispatch('jlHelpShow', false)
|
||||||
this.$router.push({ path: this.tagWel.value });
|
this.$router.push({path: this.tagWel.value});
|
||||||
loading.close();
|
loading.close();
|
||||||
this.proLoading = false
|
this.proLoading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
if(obj.ticket) {
|
if (obj.ticket) {
|
||||||
return window.location.href = process.env.VUE_APP_LOGIN_ERROR
|
return window.location.href = process.env.VUE_APP_LOGIN_ERROR
|
||||||
}
|
}
|
||||||
this.proLoading = false
|
this.proLoading = false
|
||||||
@@ -201,7 +204,8 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "@/styles/login.scss";
|
@import "@/styles/login.scss";
|
||||||
.proLoading-box{
|
|
||||||
|
.proLoading-box {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
38
src/views/manage/mission/supplyDemand/index.vue
Normal file
38
src/views/manage/mission/supplyDemand/index.vue
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<basic-container>
|
||||||
|
12312
|
||||||
|
</basic-container>
|
||||||
|
<basic-container>
|
||||||
|
<avue-crud
|
||||||
|
:option="option"
|
||||||
|
:table-loading="loading"
|
||||||
|
:data="data"
|
||||||
|
ref="crud"
|
||||||
|
v-model="form"
|
||||||
|
></avue-crud>
|
||||||
|
</basic-container>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'supplyDemand',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loading: false,
|
||||||
|
data: [],
|
||||||
|
form: {},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
option() {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -1,17 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel"
|
<avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel"
|
||||||
@row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page"
|
@row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page"
|
||||||
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
|
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange"
|
||||||
|
@on-load="onLoad">
|
||||||
<!--自定义按钮-->
|
<!--自定义按钮-->
|
||||||
<template slot="menuLeft">
|
<template slot="menuLeft">
|
||||||
<save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')"
|
<save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')"
|
||||||
v-show="vaildData(permission.tenant_mission_add, false)">发布任务</save-button>
|
v-show="vaildData(permission.tenant_mission_add, false)">发布任务
|
||||||
|
</save-button>
|
||||||
<el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport"
|
<el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport"
|
||||||
v-show="vaildData(permission.tenant_mission_add, false)">批量导入</el-button>
|
v-show="vaildData(permission.tenant_mission_add, false)">批量导入
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot="wage"slot-scope="{ row }">
|
<template slot="wage" slot-scope="{ row }">
|
||||||
<div>{{row.wage}}{{wageUnitCategoryStateEnum[row.wageUnitCategory]}}</div>
|
<div>{{ row.wage }}{{ wageUnitCategoryStateEnum[row.wageUnitCategory] }}</div>
|
||||||
</template>
|
</template>
|
||||||
<!--/自定义按钮-->
|
<!--/自定义按钮-->
|
||||||
<!--自定义列-->
|
<!--自定义列-->
|
||||||
@@ -55,12 +58,16 @@
|
|||||||
<!-- <el-button type="text" size="mini" @click="recommend(row)">重点人群推送</el-button> -->
|
<!-- <el-button type="text" size="mini" @click="recommend(row)">重点人群推送</el-button> -->
|
||||||
<el-button type="text" size="mini" @click="employ(row, 1)">录用登记</el-button>
|
<el-button type="text" size="mini" @click="employ(row, 1)">录用登记</el-button>
|
||||||
<el-button icon="el-icon-view" :size="size" :type="type" @click.stop="rowView(row)"
|
<el-button icon="el-icon-view" :size="size" :type="type" @click.stop="rowView(row)"
|
||||||
v-show="vaildData(permission.tenant_mission_view, false)">查看</el-button>
|
v-show="vaildData(permission.tenant_mission_view, false)">查看
|
||||||
|
</el-button>
|
||||||
<!-- <save-button icon="el-icon-check" :size="size" :type="type" @click="rowCopy(row, 'copy')">复制</save-button> -->
|
<!-- <save-button icon="el-icon-check" :size="size" :type="type" @click="rowCopy(row, 'copy')">复制</save-button> -->
|
||||||
<el-button icon="el-icon-edit" :size="size" :type="type" @click="rowCopy(row, 'edit')"
|
<el-button icon="el-icon-edit" :size="size" :type="type" @click="rowCopy(row, 'edit')"
|
||||||
:disabled="row.signUpCount !== 0" v-show="vaildData(permission.tenant_mission_edit, false)">编辑</el-button>
|
:disabled="row.signUpCount !== 0" v-show="vaildData(permission.tenant_mission_edit, false)">编辑
|
||||||
<el-button v-if="row.reviewState !== 8" icon="el-icon-delete" :size="size" :type="type" @click="$refs.crud.rowDel(row)"
|
</el-button>
|
||||||
:disabled="row.signUpCount !== 0" v-show="vaildData(permission.tenant_mission_cancel, false)">取消</el-button>
|
<el-button v-if="row.reviewState !== 8" icon="el-icon-delete" :size="size" :type="type"
|
||||||
|
@click="$refs.crud.rowDel(row)"
|
||||||
|
:disabled="row.signUpCount !== 0" v-show="vaildData(permission.tenant_mission_cancel, false)">取消
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
<!--发布 复制 编辑dialog-->
|
<!--发布 复制 编辑dialog-->
|
||||||
@@ -81,8 +88,9 @@
|
|||||||
<!--/查看dialog-->
|
<!--/查看dialog-->
|
||||||
<!--批量导入-->
|
<!--批量导入-->
|
||||||
<el-dialog title="导入" append-to-body :visible.sync="excelBox" :close-on-click-modal="false" width="555px">
|
<el-dialog title="导入" append-to-body :visible.sync="excelBox" :close-on-click-modal="false" width="555px">
|
||||||
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter" :upload-before="beforeAvatarUpload"
|
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"
|
||||||
:upload-error="uploadError">
|
:upload-before="beforeAvatarUpload"
|
||||||
|
:upload-error="uploadError">
|
||||||
<template slot="excelTemplate">
|
<template slot="excelTemplate">
|
||||||
<el-button type="primary" @click="handleTemplate()" :loading="templateLoading">
|
<el-button type="primary" @click="handleTemplate()" :loading="templateLoading">
|
||||||
点击下载
|
点击下载
|
||||||
@@ -96,8 +104,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { upload } from "@/api/tenant/mission";
|
import {upload} from "@/api/tenant/mission";
|
||||||
import { getList, cancel, detail } from "@/api/tenant/mission";
|
import {getList, cancel, detail} from "@/api/tenant/mission";
|
||||||
import CopyMission from "../Dialog/CopyMission";
|
import CopyMission from "../Dialog/CopyMission";
|
||||||
import Employ from "../Dialog/Employ";
|
import Employ from "../Dialog/Employ";
|
||||||
import employmentNum from "../Dialog/EmployNumber";
|
import employmentNum from "../Dialog/EmployNumber";
|
||||||
@@ -106,13 +114,14 @@ import Contrast from "../Dialog/Contrast"
|
|||||||
import SkillSelect from "../Dialog/Skill";
|
import SkillSelect from "../Dialog/Skill";
|
||||||
import missionView from "./missionView.vue";
|
import missionView from "./missionView.vue";
|
||||||
import SelectMap from "@/components/map/selectLocation";
|
import SelectMap from "@/components/map/selectLocation";
|
||||||
import { isExcel } from "@/util/validate";
|
import {isExcel} from "@/util/validate";
|
||||||
import { excelAccept } from "@/common/accept";
|
import {excelAccept} from "@/common/accept";
|
||||||
import { mapGetters } from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
import { dateFormat } from "@/util/date";
|
import {dateFormat} from "@/util/date";
|
||||||
import { getTemplate } from "@/api/resource/template";
|
import {getTemplate} from "@/api/resource/template";
|
||||||
import saveButton from "./saveButton";
|
import saveButton from "./saveButton";
|
||||||
import {dataSourcesEnum, educationState, missionState, recruitStatus, wageUnitCategoryState} from "@/common/dic";
|
import {dataSourcesEnum, educationState, missionState, recruitStatus, wageUnitCategoryState} from "@/common/dic";
|
||||||
|
|
||||||
const wageUnitCategoryStateEnum = {}
|
const wageUnitCategoryStateEnum = {}
|
||||||
wageUnitCategoryState.map((item) => {
|
wageUnitCategoryState.map((item) => {
|
||||||
wageUnitCategoryStateEnum[item.value] = item.label
|
wageUnitCategoryStateEnum[item.value] = item.label
|
||||||
@@ -143,7 +152,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
wageUnitCategoryStateEnum,
|
wageUnitCategoryStateEnum,
|
||||||
excelBox: false,
|
excelBox: false,
|
||||||
excelForm: { isCovered: 1 },
|
excelForm: {isCovered: 1},
|
||||||
excelOption: {
|
excelOption: {
|
||||||
submitBtn: false,
|
submitBtn: false,
|
||||||
emptyBtn: false,
|
emptyBtn: false,
|
||||||
@@ -190,7 +199,8 @@ export default {
|
|||||||
missionNo: '',
|
missionNo: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() { },
|
created() {
|
||||||
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["permission"]),
|
...mapGetters(["permission"]),
|
||||||
@@ -228,7 +238,7 @@ export default {
|
|||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "任务名称",
|
label: "岗位名称",
|
||||||
prop: "missionTitle",
|
prop: "missionTitle",
|
||||||
display: false,
|
display: false,
|
||||||
fixed: true,
|
fixed: true,
|
||||||
@@ -260,14 +270,14 @@ export default {
|
|||||||
prop: "ageDesc",
|
prop: "ageDesc",
|
||||||
search: false,
|
search: false,
|
||||||
display: false,
|
display: false,
|
||||||
},{
|
}, {
|
||||||
label: "学历要求",
|
label: "学历要求",
|
||||||
prop: "education",
|
prop: "education",
|
||||||
type: "select",
|
type: "select",
|
||||||
dicData: educationState,
|
dicData: educationState,
|
||||||
search: false,
|
search: false,
|
||||||
display: false,
|
display: false,
|
||||||
},{
|
}, {
|
||||||
label: "经验要求",
|
label: "经验要求",
|
||||||
prop: "experienceDesc",
|
prop: "experienceDesc",
|
||||||
search: false,
|
search: false,
|
||||||
@@ -406,8 +416,8 @@ export default {
|
|||||||
const h = this.$createElement;
|
const h = this.$createElement;
|
||||||
this.$confirm(
|
this.$confirm(
|
||||||
h("div", null, [
|
h("div", null, [
|
||||||
h("p", { style: "font-size: 16px" }, "您确定要取消此任务吗? "),
|
h("p", {style: "font-size: 16px"}, "您确定要取消此任务吗? "),
|
||||||
h("p", { style: "color: red" }, "一旦取消则任务失效"),
|
h("p", {style: "color: red"}, "一旦取消则任务失效"),
|
||||||
]),
|
]),
|
||||||
{
|
{
|
||||||
type: "warning",
|
type: "warning",
|
||||||
@@ -499,13 +509,13 @@ export default {
|
|||||||
const arr = [];
|
const arr = [];
|
||||||
const data = res.data.data;
|
const data = res.data.data;
|
||||||
data.error &&
|
data.error &&
|
||||||
data.error.errorList.forEach((item) => {
|
data.error.errorList.forEach((item) => {
|
||||||
arr.push(`${item.name} ${item.remarks}`);
|
arr.push(`${item.name} ${item.remarks}`);
|
||||||
});
|
});
|
||||||
data.auth &&
|
data.auth &&
|
||||||
data.auth.authList.forEach((item) => {
|
data.auth.authList.forEach((item) => {
|
||||||
arr.push(`${item.name} ${item.remarks}`);
|
arr.push(`${item.name} ${item.remarks}`);
|
||||||
});
|
});
|
||||||
this.$refs.ied.show(arr);
|
this.$refs.ied.show(arr);
|
||||||
}
|
}
|
||||||
this.refreshChange();
|
this.refreshChange();
|
||||||
|
|||||||
@@ -3,10 +3,64 @@
|
|||||||
<!--搜索栏-->
|
<!--搜索栏-->
|
||||||
<el-form size="small" label-position="right" :inline="true" style="padding-left: 10px;padding-right: 10px;">
|
<el-form size="small" label-position="right" :inline="true" style="padding-left: 10px;padding-right: 10px;">
|
||||||
<el-row :span="24">
|
<el-row :span="24">
|
||||||
<el-form-item label="任务名称:">
|
<!-- <el-form-item label="任务名称:">-->
|
||||||
<el-input v-model="search.missionTitle" placeholder="任务名称" clearable></el-input>
|
<!-- <el-input v-model="search.missionTitle" placeholder="任务名称" clearable></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<el-form-item label="机构名称:">
|
||||||
|
<el-input
|
||||||
|
v-model="search.companyName"
|
||||||
|
placeholder="机构名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="任务编码:">
|
||||||
|
<el-input
|
||||||
|
v-model="search.missionNo"
|
||||||
|
placeholder="任务编码"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="地址:">
|
||||||
|
<el-input
|
||||||
|
v-model="search.address"
|
||||||
|
placeholder="北京-北京市-崇文区"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="零工岗位名称:">
|
||||||
|
<el-input
|
||||||
|
v-model="search.missionTitle"
|
||||||
|
placeholder="零工岗位名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="零工工种:">
|
||||||
|
<el-input
|
||||||
|
v-model="search.worktypeNames"
|
||||||
|
placeholder="零工工种"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="审核状态:">
|
||||||
|
<el-select v-model="search.reviewState">
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in recruitStatus"
|
||||||
|
:key="index"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="学历:">
|
||||||
|
<el-select v-model="search.education">
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in educationState"
|
||||||
|
:key="index"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- <el-form-item label="任务状态:">
|
<!-- <el-form-item label="任务状态:">
|
||||||
<el-select v-model="search.status" placeholder="任务状态" style="width:100%">
|
<el-select v-model="search.status" placeholder="任务状态" style="width:100%">
|
||||||
<el-option
|
<el-option
|
||||||
@@ -57,164 +111,162 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import WaitingMission from './Table/WaitingMission'
|
import WaitingMission from './Table/WaitingMission'
|
||||||
import OngoingMission from './Table/OngoingMission'
|
import OngoingMission from './Table/OngoingMission'
|
||||||
import FinishedMission from './Table/FinishedMission'
|
import FinishedMission from './Table/FinishedMission'
|
||||||
import ExpiredMission from './Table/ExpiredMission'
|
import ExpiredMission from './Table/ExpiredMission'
|
||||||
import { companyMissionState } from '@/common/dic'
|
import {companyMissionState, educationState, recruitStatus} from '@/common/dic'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
comments: {
|
comments: {},
|
||||||
|
name: "tenant_mission",
|
||||||
},
|
data() {
|
||||||
name: "tenant_mission",
|
return {
|
||||||
data() {
|
recruitStatus,
|
||||||
return {
|
educationState,
|
||||||
missionTypes: companyMissionState,
|
missionTypes: companyMissionState,
|
||||||
timeValue: "",
|
timeValue: "",
|
||||||
endDateRange: "",//报名截止日期筛选
|
endDateRange: "",//报名截止日期筛选
|
||||||
beginTimeValue:"",//开始时间筛选
|
beginTimeValue: "",//开始时间筛选
|
||||||
successTimeValue:"",//完成时间筛选
|
successTimeValue: "",//完成时间筛选
|
||||||
page: {
|
page: {
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
},
|
},
|
||||||
search: {
|
search: {
|
||||||
status: 1
|
status: 1
|
||||||
},
|
},
|
||||||
timeScreenTerm:[{
|
timeScreenTerm: [{
|
||||||
value: 2,
|
value: 2,
|
||||||
label: '任务开始日期',
|
label: '任务开始日期',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 3,
|
value: 3,
|
||||||
label: '任务结束日期',
|
label: '任务结束日期',
|
||||||
}, {
|
}, {
|
||||||
value: 1,
|
value: 1,
|
||||||
label: '报名截止日期',
|
label: '报名截止日期',
|
||||||
}],
|
}],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
WaitingMission,
|
||||||
|
OngoingMission,
|
||||||
|
FinishedMission,
|
||||||
|
ExpiredMission
|
||||||
|
},
|
||||||
|
computed: {},
|
||||||
|
watch: {},
|
||||||
|
methods: {
|
||||||
|
handleSearch() {
|
||||||
|
if (this.search.status === 1) {
|
||||||
|
this.$refs.waiting.onLoad(this.page, this.search);
|
||||||
|
} else if (this.search.status === 2) {
|
||||||
|
this.$refs.onging.onLoad(this.page, this.search);
|
||||||
|
} else if (this.search.status === 3) {
|
||||||
|
this.$refs.finished.onLoad(this.page, this.search);
|
||||||
|
} else if (this.search.status === 4) {
|
||||||
|
this.$refs.expired.onLoad(this.page, this.search);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
date() {
|
||||||
WaitingMission,
|
this.dateChange(this.timeValue)
|
||||||
OngoingMission,
|
|
||||||
FinishedMission,
|
|
||||||
ExpiredMission
|
|
||||||
},
|
},
|
||||||
computed: {
|
dateChange(val) {
|
||||||
},
|
// if (val) {
|
||||||
watch: {
|
// this.search.stime = val[0] + " 00:00:00";
|
||||||
},
|
// this.search.etime = val[1] + " 23:59:59";
|
||||||
methods: {
|
// } else {
|
||||||
handleSearch() {
|
// this.search.stime = '';
|
||||||
if (this.search.status === 1) {
|
// this.search.etime = '';
|
||||||
this.$refs.waiting.onLoad(this.page, this.search);
|
// }
|
||||||
} else if (this.search.status === 2) {
|
switch (this.search.state) {
|
||||||
this.$refs.onging.onLoad(this.page, this.search);
|
case 1:
|
||||||
} else if (this.search.status === 3) {
|
return this.endDateChange(val)
|
||||||
this.$refs.finished.onLoad(this.page, this.search);
|
case 2:
|
||||||
} else if (this.search.status === 4) {
|
return this.beginDateChange(val);
|
||||||
this.$refs.expired.onLoad(this.page, this.search);
|
case 3:
|
||||||
}
|
return this.successDateChange(val);
|
||||||
},
|
}
|
||||||
date () {
|
|
||||||
this.dateChange(this.timeValue)
|
|
||||||
},
|
|
||||||
dateChange(val) {
|
|
||||||
// if (val) {
|
|
||||||
// this.search.stime = val[0] + " 00:00:00";
|
|
||||||
// this.search.etime = val[1] + " 23:59:59";
|
|
||||||
// } else {
|
|
||||||
// this.search.stime = '';
|
|
||||||
// this.search.etime = '';
|
|
||||||
// }
|
|
||||||
switch (this.search.state) {
|
|
||||||
case 1:
|
|
||||||
return this.endDateChange(val)
|
|
||||||
case 2:
|
|
||||||
return this.beginDateChange(val);
|
|
||||||
case 3:
|
|
||||||
return this.successDateChange(val);
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
handleClear() {
|
handleClear() {
|
||||||
let curStatus = this.search.status;
|
let curStatus = this.search.status;
|
||||||
this.search = {
|
this.search = {
|
||||||
status: curStatus,
|
status: curStatus,
|
||||||
missionNo: '',
|
missionNo: '',
|
||||||
missionTitle: '',
|
missionTitle: '',
|
||||||
stime: '',
|
stime: '',
|
||||||
etime: '',
|
etime: '',
|
||||||
etimePubBeginTime: '',
|
etimePubBeginTime: '',
|
||||||
etimePubEndTime: '',
|
etimePubEndTime: '',
|
||||||
stimeBeginTime : '',
|
stimeBeginTime: '',
|
||||||
stimeEndTime : '',
|
stimeEndTime: '',
|
||||||
etimeBeninTime:'',
|
etimeBeninTime: '',
|
||||||
etimeEndTime:'',
|
etimeEndTime: '',
|
||||||
|
|
||||||
}
|
}
|
||||||
this.timeValue = '';
|
this.timeValue = '';
|
||||||
this.endDateRange = '';
|
this.endDateRange = '';
|
||||||
this.beginTimeValue="";
|
this.beginTimeValue = "";
|
||||||
this.successTimeValue="";
|
this.successTimeValue = "";
|
||||||
this.handleSearch()
|
this.handleSearch()
|
||||||
},
|
},
|
||||||
// 开始时间
|
// 开始时间
|
||||||
beginDateChange(val) {
|
beginDateChange(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.clearDateTime()
|
this.clearDateTime()
|
||||||
this.search.stimeBeginTime = val[0] + " 00:00:00";
|
this.search.stimeBeginTime = val[0] + " 00:00:00";
|
||||||
this.search.stimeEndTime = val[1] + " 23:59:59";
|
this.search.stimeEndTime = val[1] + " 23:59:59";
|
||||||
} else {
|
} else {
|
||||||
this.search.stimeBeginTime = '';
|
|
||||||
this.search.stimeEndTime = '';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 完成时间
|
|
||||||
successDateChange(val){
|
|
||||||
if (val) {
|
|
||||||
this.clearDateTime()
|
|
||||||
this.search.etimeBeninTime = val[0] + " 00:00:00";
|
|
||||||
this.search.etimeEndTime = val[1] + " 23:59:59";
|
|
||||||
} else {
|
|
||||||
this.search.etimeBeninTime = '';
|
|
||||||
this.search.etimeEndTime = '';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 报名截止时间
|
|
||||||
endDateChange(val){
|
|
||||||
if (val) {
|
|
||||||
this.clearDateTime()
|
|
||||||
this.search.etimePubBeginTime = val[0] + " 00:00:00";
|
|
||||||
this.search.etimePubEndTime = val[1] + " 23:59:59";
|
|
||||||
} else {
|
|
||||||
this.search.etimePubBeginTime = '';
|
|
||||||
this.search.etimePubEndTime = '';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 清楚多余时间参数
|
|
||||||
clearDateTime(){
|
|
||||||
this.search.etimePubBeginTime = '';
|
|
||||||
this.search.etimePubEndTime = '';
|
|
||||||
this.search.etimeBeninTime = '';
|
|
||||||
this.search.etimeEndTime = '';
|
|
||||||
this.search.stimeBeginTime = '';
|
this.search.stimeBeginTime = '';
|
||||||
this.search.stimeEndTime = '';
|
this.search.stimeEndTime = '';
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// 完成时间
|
||||||
|
successDateChange(val) {
|
||||||
|
if (val) {
|
||||||
|
this.clearDateTime()
|
||||||
|
this.search.etimeBeninTime = val[0] + " 00:00:00";
|
||||||
|
this.search.etimeEndTime = val[1] + " 23:59:59";
|
||||||
|
} else {
|
||||||
|
this.search.etimeBeninTime = '';
|
||||||
|
this.search.etimeEndTime = '';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 报名截止时间
|
||||||
|
endDateChange(val) {
|
||||||
|
if (val) {
|
||||||
|
this.clearDateTime()
|
||||||
|
this.search.etimePubBeginTime = val[0] + " 00:00:00";
|
||||||
|
this.search.etimePubEndTime = val[1] + " 23:59:59";
|
||||||
|
} else {
|
||||||
|
this.search.etimePubBeginTime = '';
|
||||||
|
this.search.etimePubEndTime = '';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 清楚多余时间参数
|
||||||
|
clearDateTime() {
|
||||||
|
this.search.etimePubBeginTime = '';
|
||||||
|
this.search.etimePubEndTime = '';
|
||||||
|
this.search.etimeBeninTime = '';
|
||||||
|
this.search.etimeEndTime = '';
|
||||||
|
this.search.stimeBeginTime = '';
|
||||||
|
this.search.stimeEndTime = '';
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.el-form-item {
|
.el-form-item {
|
||||||
margin-bottom: 18px !important;
|
margin-bottom: 18px !important;
|
||||||
margin-right: 10px !important;
|
margin-right: 10px !important;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.searchBtn {
|
.searchBtn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ module.exports = {
|
|||||||
port: 1888,
|
port: 1888,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: 'http://192.168.1.101:8200',
|
target: 'http://192.168.1.105:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
"^/api/jobslink-api": "/"
|
'^/api': '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/qq/map": {
|
"/qq/map": {
|
||||||
|
|||||||
Reference in New Issue
Block a user