|
|
|
|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
|
<title>注册</title>
|
|
|
<!-- bootstrap样式,地图插件使用 -->
|
|
|
<link rel="stylesheet" href="../../css/bootstrap.min.css" />
|
|
|
<link rel="stylesheet" href="../../layui/css/layui.css">
|
|
|
<!-- 样式 -->
|
|
|
<link rel="stylesheet" href="../../css/style.css" />
|
|
|
<!-- 主题(主要颜色设置) -->
|
|
|
<link rel="stylesheet" href="../../css/theme.css" />
|
|
|
<!-- 通用的css -->
|
|
|
<link rel="stylesheet" href="../../css/common.css" />
|
|
|
</head>
|
|
|
<style>
|
|
|
html::after {
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
|
right: 0;
|
|
|
left: 0;
|
|
|
bottom: 0;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
background-attachment: fixed;
|
|
|
background-size: cover;
|
|
|
background-position: center;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
#swiper {
|
|
|
overflow: hidden;
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
#swiper .layui-carousel-ind li {
|
|
|
width: 20px;
|
|
|
height: 12px;
|
|
|
border-width: 0;
|
|
|
border-style: solid;
|
|
|
border-color: rgba(0,0,0,.3);
|
|
|
border-radius: 20px;
|
|
|
background-color: rgba(225, 236, 237, 1);
|
|
|
box-shadow: 0 0 6px rgba(255,0,0,0);
|
|
|
}
|
|
|
#swiper .layui-carousel-ind li.layui-this {
|
|
|
width: 25px;
|
|
|
height: 12px;
|
|
|
border-width: 0;
|
|
|
border-style: solid;
|
|
|
border-color: rgba(0,0,0,.3);
|
|
|
border-radius: 20px;
|
|
|
background-color: rgba(0, 131, 199, 1);
|
|
|
box-shadow: 0 0 6px rgba(255,0,0,0);
|
|
|
}
|
|
|
|
|
|
button, button:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.data-add-container .add .layui-select-title .layui-unselect {
|
|
|
padding: 0 12px;
|
|
|
height: 40px;
|
|
|
font-size: 14px;
|
|
|
color: #333;
|
|
|
border-radius: 4px;
|
|
|
border-width: 1px;
|
|
|
border-style: solid;
|
|
|
border-color: rgba(136, 198, 229, 1);
|
|
|
background-color: #fff;
|
|
|
box-shadow: 0 0 0px rgba(255,0,0,.8);
|
|
|
text-align: left;
|
|
|
}
|
|
|
.data-add-container .add .layui-form-item {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.data-add-container .layui-form-pane .layui-form-item[pane] .layui-form-label {
|
|
|
margin: 0;
|
|
|
position: inherit;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
.data-add-container .add .layui-input-block {
|
|
|
margin: 0;
|
|
|
flex: 1;
|
|
|
}
|
|
|
.data-add-container .layui-form-pane .layui-form-item[pane] .layui-input-inline {
|
|
|
margin: 0;
|
|
|
flex: 1;
|
|
|
display: flex;
|
|
|
}
|
|
|
</style>
|
|
|
<body style="background: #EEEEEE; ">
|
|
|
|
|
|
|
|
|
<div id="app">
|
|
|
|
|
|
<!--
|
|
|
<div class="layui-carousel" id="swiper">
|
|
|
<div carousel-item id="swiper-item">
|
|
|
<div v-for="(item,index) in swiperList" v-bind:key="index">
|
|
|
<img class="swiper-item" :src="item.img">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div> -->
|
|
|
<div class="layui-carousel" id="swiper" :style='{"boxShadow":"0 0 0px rgba(255,0,0,0)","margin":"0 auto","borderColor":"rgba(0,0,0,.3)","borderRadius":"0","borderWidth":"0","width":"100%","borderStyle":"solid"}'>
|
|
|
<div carousel-item id="swiper-item">
|
|
|
<div v-for="(item,index) in swiperList" :key="index">
|
|
|
<img style="width: 100%;height: 100%;object-fit:cover;" :src="item.img" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 轮播图 -->
|
|
|
|
|
|
<div class="data-add-container" :style='{"padding":"20px","boxShadow":"1px 1px 6px rgba(136, 198, 229, 1)","margin":"30px auto","borderColor":"rgba(255,0,0,.3)","backgroundColor":"#fff","borderRadius":"10px","borderWidth":"0","borderStyle":"solid"}'>
|
|
|
|
|
|
<form class="layui-form layui-form-pane add" lay-filter="myForm">
|
|
|
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">岗位编号:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.gangweibianhao" type="text" :readonly="ro.gangweibianhao" name="gangweibianhao" id="gangweibianhao" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">岗位名称:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.gangweimingcheng" type="text" :readonly="ro.gangweimingcheng" name="gangweimingcheng" id="gangweimingcheng" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">上班地址:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.shangbandizhi" type="text" :readonly="ro.shangbandizhi" name="shangbandizhi" id="shangbandizhi" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">学历要求:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.xueliyaoqiu" type="text" :readonly="ro.xueliyaoqiu" name="xueliyaoqiu" id="xueliyaoqiu" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">招聘人数:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.zhaopinrenshu" type="text" :readonly="ro.zhaopinrenshu" name="zhaopinrenshu" id="zhaopinrenshu" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">薪资待遇:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.xinzidaiyu" type="text" :readonly="ro.xinzidaiyu" name="xinzidaiyu" id="xinzidaiyu" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">工作年限:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.gongzuonianxian" type="text" :readonly="ro.gongzuonianxian" name="gongzuonianxian" id="gongzuonianxian" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">图片:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<div v-if="detail.tupian" style="display:inline-block;margin-right:10px;">
|
|
|
<img id="tupianImg" style="width: 100px;height: 100px;border-radius: 50%;border: 2px solid #EEEEEE;" :src="baseurl+detail.tupian">
|
|
|
<input type="hidden" :value="detail.tupian" id="tupian" name="tupian" />
|
|
|
</div>
|
|
|
<button v-if="!ro.tupian" :style='{"padding":"0 10px","boxShadow":"0 0 0px rgba(255,0,0,.5)","margin":"0 10px 0 0","borderColor":"#ccc","backgroundColor":"rgba(136, 198, 229, 1)","color":"#fff","borderRadius":"8px","borderWidth":"0","width":"auto","fontSize":"14px","borderStyle":"solid","height":"44px"}' type="button" class="layui-btn btn-theme" id="tupianUpload">
|
|
|
<i v-if="true" :style='{"color":"#fff","show":true,"fontSize":"14px"}' class="layui-icon"></i>上传图片
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">发布时间:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' type="text" name="fabushijian" id="fabushijian" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">公司账号:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.gongsizhanghao" type="text" :readonly="ro.gongsizhanghao" name="gongsizhanghao" id="gongsizhanghao" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">公司名称:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.gongsimingcheng" type="text" :readonly="ro.gongsimingcheng" name="gongsimingcheng" id="gongsimingcheng" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">公司领域:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.gongsilingyu" type="text" :readonly="ro.gongsilingyu" name="gongsilingyu" id="gongsilingyu" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">公司规模:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.gongsiguimo" type="text" :readonly="ro.gongsiguimo" name="gongsiguimo" id="gongsiguimo" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">公司类型:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input :style='{"padding":"0 12px","boxShadow":"0 0 0px rgba(255,0,0,.8)","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","fontSize":"14px","borderStyle":"solid","height":"40px"}' v-model="detail.gongsileixing" type="text" :readonly="ro.gongsileixing" name="gongsileixing" id="gongsileixing" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item" pane>
|
|
|
<label :style='{"width":"94px","padding":"0 12px 0 0","fontSize":"14px","color":"#333","textAlign":"right"}' class="layui-form-label">职位信息:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<textarea name="zhiweixinxi" id="zhiweixinxi">请输入职位信息</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div :style='{"padding":"10px","boxShadow":"0 0 6px rgba(136, 198, 229, 1)","margin":"0 0 10px 0","borderColor":"rgba(136, 198, 229, 1)","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"0 0 1px 0","borderStyle":"solid"}' class="layui-form-item">
|
|
|
<div class="layui-input-block" style="text-align: right;">
|
|
|
<button :style='{"padding":"0 10px","boxShadow":"0 0 0px rgba(255,0,0,.5)","margin":"0 10px","borderColor":"#ccc","backgroundColor":"rgba(136, 198, 229, 1)","color":"#fff","borderRadius":"8px","borderWidth":"0","width":"25%","fontSize":"14px","borderStyle":"solid","height":"44px"}' class="layui-btn btn-submit" lay-submit lay-filter="*">提交</button>
|
|
|
<button :style='{"padding":"0 10px","boxShadow":"0 0 0px rgba(255,0,0,.5)","margin":"0 10px","borderColor":"#ccc","backgroundColor":"rgba(136, 198, 229, 1)","color":"rgba(255, 255, 255, 1)","borderRadius":"8px","borderWidth":"0","width":"25%","fontSize":"14px","borderStyle":"solid","height":"44px"}' type="reset" class="layui-btn layui-btn-primary">重置</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script src="../../layui/layui.js"></script>
|
|
|
<script src="../../js/vue.js"></script>
|
|
|
<!-- 组件配置信息 -->
|
|
|
<script src="../../js/config.js"></script>
|
|
|
<!-- 扩展插件配置信息 -->
|
|
|
<script src="../../modules/config.js"></script>
|
|
|
<!-- 工具方法 -->
|
|
|
<script src="../../js/utils.js"></script>
|
|
|
<!-- 校验格式工具类 -->
|
|
|
<script src="../../js/validate.js"></script>
|
|
|
<!-- 地图 -->
|
|
|
<script type="text/javascript" src="../../js/jquery.js"></script>
|
|
|
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=ca04cee7ac952691aa67a131e6f0cee0"></script>
|
|
|
<script type="text/javascript" src="../../js/bootstrap.min.js"></script>
|
|
|
<script type="text/javascript" src="../../js/bootstrap.AMapPositionPicker.js"></script>
|
|
|
|
|
|
<script>
|
|
|
var jquery = $;
|
|
|
|
|
|
var vue = new Vue({
|
|
|
el: '#app',
|
|
|
data: {
|
|
|
// 轮播图
|
|
|
swiperList: [{
|
|
|
img: '../../img/banner.jpg'
|
|
|
}],
|
|
|
dataList: [],
|
|
|
baseurl:'',
|
|
|
ro:{
|
|
|
gangweibianhao : false,
|
|
|
gangweimingcheng : false,
|
|
|
shangbandizhi : false,
|
|
|
jingyanyaoqiu : false,
|
|
|
xueliyaoqiu : false,
|
|
|
zhaopinrenshu : false,
|
|
|
gangweifuli : false,
|
|
|
xinzidaiyu : false,
|
|
|
gongzuonianxian : false,
|
|
|
tupian : false,
|
|
|
fabushijian : false,
|
|
|
gongsizhanghao : false,
|
|
|
gongsimingcheng : false,
|
|
|
gongsilingyu : false,
|
|
|
gongsiguimo : false,
|
|
|
gongsileixing : false,
|
|
|
zhiweixinxi : false,
|
|
|
thumbsupnum : false,
|
|
|
crazilynum : false,
|
|
|
clicktime : false,
|
|
|
clicknum : false,
|
|
|
},
|
|
|
detail: {
|
|
|
gangweibianhao: '',
|
|
|
gangweimingcheng: '',
|
|
|
shangbandizhi: '',
|
|
|
jingyanyaoqiu: '',
|
|
|
xueliyaoqiu: '',
|
|
|
zhaopinrenshu: '',
|
|
|
gangweifuli: '',
|
|
|
xinzidaiyu: '',
|
|
|
gongzuonianxian: '',
|
|
|
tupian: '',
|
|
|
fabushijian: '',
|
|
|
gongsizhanghao: '',
|
|
|
gongsimingcheng: '',
|
|
|
gongsilingyu: '',
|
|
|
gongsiguimo: '',
|
|
|
gongsileixing: '',
|
|
|
zhiweixinxi: '',
|
|
|
thumbsupnum: '',
|
|
|
crazilynum: '',
|
|
|
clicktime: '',
|
|
|
clicknum: '',
|
|
|
},
|
|
|
centerMenu: centerMenu
|
|
|
},
|
|
|
updated: function() {
|
|
|
layui.form.render('select', 'myForm');
|
|
|
},
|
|
|
computed: {
|
|
|
},
|
|
|
methods: {
|
|
|
jump(url) {
|
|
|
jump(url)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
layui.use(['layer', 'element', 'carousel', 'http', 'jquery', 'form', 'upload', 'laydate','tinymce'], function() {
|
|
|
var layer = layui.layer;
|
|
|
var element = layui.element;
|
|
|
var carousel = layui.carousel;
|
|
|
var http = layui.http;
|
|
|
var jquery = layui.jquery;
|
|
|
var form = layui.form;
|
|
|
var upload = layui.upload;
|
|
|
var laydate = layui.laydate;
|
|
|
var tinymce = layui.tinymce;
|
|
|
vue.baseurl = http.baseurl;
|
|
|
|
|
|
// 获取轮播图 数据
|
|
|
http.request('config/list', 'get', {
|
|
|
page: 1,
|
|
|
limit: 5
|
|
|
}, function(res) {
|
|
|
if (res.data.list.length > 0) {
|
|
|
var swiperItemHtml = '';
|
|
|
for (let item of res.data.list) {
|
|
|
if (item.name.indexOf('picture') >= 0 && item.value && item.value != "" && item.value != null) {
|
|
|
swiperItemHtml +=
|
|
|
'<div>' +
|
|
|
'<img style="width: 100%;height: 100%;object-fit:cover;" class="swiper-item" src="' + http.baseurl+item.value + '">' +
|
|
|
'</div>';
|
|
|
}
|
|
|
}
|
|
|
jquery('#swiper-item').html(swiperItemHtml);
|
|
|
// 轮播图
|
|
|
vue.$nextTick(() => {
|
|
|
carousel.render({
|
|
|
elem: '#swiper',
|
|
|
width: '100%',
|
|
|
height: '420px',
|
|
|
arrow: 'hover',
|
|
|
anim: 'default',
|
|
|
autoplay: 'true',
|
|
|
interval: '3000',
|
|
|
indicator: 'inside'
|
|
|
});
|
|
|
|
|
|
})
|
|
|
// carousel.render({
|
|
|
// elem: '#swiper',
|
|
|
// width: swiper.width,height:swiper.height,
|
|
|
// arrow: swiper.arrow,
|
|
|
// anim: swiper.anim,
|
|
|
// interval: swiper.interval,
|
|
|
// indicator: "none"
|
|
|
// });
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// 上传图片
|
|
|
var tupianUpload = upload.render({
|
|
|
//绑定元素
|
|
|
elem: '#tupianUpload',
|
|
|
//上传接口
|
|
|
url: http.baseurl + 'file/upload',
|
|
|
// 请求头
|
|
|
headers: {
|
|
|
Token: localStorage.getItem('Token')
|
|
|
},
|
|
|
// 允许上传时校验的文件类型
|
|
|
accept: 'images',
|
|
|
before: function() {
|
|
|
//loading层
|
|
|
var index = layer.load(1, {
|
|
|
shade: [0.1, '#fff'] //0.1透明度的白色背景
|
|
|
});
|
|
|
},
|
|
|
// 上传成功
|
|
|
done: function(res) {
|
|
|
console.log(res);
|
|
|
layer.closeAll();
|
|
|
if (res.code == 0) {
|
|
|
layer.msg("上传成功", {
|
|
|
time: 2000,
|
|
|
icon: 6
|
|
|
})
|
|
|
var url = 'upload/' + res.file;
|
|
|
jquery('#tupian').val(url);
|
|
|
jquery('#tupianImg').attr('src', url)
|
|
|
vue.detail.tupian = url;
|
|
|
} else {
|
|
|
layer.msg(res.msg, {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
//请求异常回调
|
|
|
error: function() {
|
|
|
layer.closeAll();
|
|
|
layer.msg("请求接口异常", {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
jquery('#fabushijian').val(getCurDate());
|
|
|
laydate.render({
|
|
|
elem: '#fabushijian'
|
|
|
});
|
|
|
var edit = tinymce.render({
|
|
|
elem: "#zhiweixinxi",
|
|
|
height: 600,
|
|
|
images_upload_handler: function(blobInfo, succFun, failFun) {
|
|
|
var xhr, formData;
|
|
|
var file = blobInfo.blob(); //转化为易于理解的file对象
|
|
|
xhr = new XMLHttpRequest();
|
|
|
xhr.withCredentials = false;
|
|
|
xhr.open('POST', http.baseurl + 'file/upload');
|
|
|
xhr.setRequestHeader("Token", localStorage.getItem('Token')); //设置请求头
|
|
|
xhr.onload = function() {
|
|
|
var json;
|
|
|
if (xhr.status != 200) {
|
|
|
failFun('HTTP Error: ' + xhr.status);
|
|
|
return;
|
|
|
}
|
|
|
json = JSON.parse(xhr.responseText);
|
|
|
if (!json || typeof json.file != 'string') {
|
|
|
failFun('Invalid JSON: ' + xhr.responseText);
|
|
|
return;
|
|
|
}
|
|
|
succFun(http.baseurl + 'upload/' + json.file);
|
|
|
};
|
|
|
formData = new FormData();
|
|
|
formData.append('file', file, file.name); //此处与源文档不一样
|
|
|
xhr.send(formData);
|
|
|
}
|
|
|
}, (opt) => {
|
|
|
|
|
|
});
|
|
|
laydate.render({
|
|
|
elem: '#clicktime',
|
|
|
type: 'datetime'
|
|
|
});
|
|
|
|
|
|
// session独取
|
|
|
let table = localStorage.getItem("userTable");
|
|
|
http.request(`${table}/session`, 'get', {}, function(data) {
|
|
|
// 表单赋值
|
|
|
//form.val("myForm", data.data);
|
|
|
data = data.data
|
|
|
for (var key in data){
|
|
|
if(key=='gongsizhanghao'){
|
|
|
vue.detail[`gongsizhanghao`] = data[`${key}`]
|
|
|
vue.ro.gongsizhanghao = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(key=='gongsimingcheng'){
|
|
|
vue.detail[`gongsimingcheng`] = data[`${key}`]
|
|
|
vue.ro.gongsimingcheng = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(key=='gongsilingyu'){
|
|
|
vue.detail[`gongsilingyu`] = data[`${key}`]
|
|
|
vue.ro.gongsilingyu = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(key=='gongsiguimo'){
|
|
|
vue.detail[`gongsiguimo`] = data[`${key}`]
|
|
|
vue.ro.gongsiguimo = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(key=='gongsileixing'){
|
|
|
vue.detail[`gongsileixing`] = data[`${key}`]
|
|
|
vue.ro.gongsileixing = true;
|
|
|
continue;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// 跨表
|
|
|
if(http.getParam('corss')){
|
|
|
var obj = JSON.parse(localStorage.getItem('crossObj'));
|
|
|
for (var o in obj){
|
|
|
if(o=='gangweibianhao'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gangweibianhao = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='gangweimingcheng'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gangweimingcheng = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='shangbandizhi'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.shangbandizhi = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='jingyanyaoqiu'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.jingyanyaoqiu = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='xueliyaoqiu'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.xueliyaoqiu = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='zhaopinrenshu'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.zhaopinrenshu = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='gangweifuli'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gangweifuli = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='xinzidaiyu'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.xinzidaiyu = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='gongzuonianxian'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gongzuonianxian = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='tupian'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.tupian = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='fabushijian'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.fabushijian = true;
|
|
|
jquery('#fabushijian').val(obj[o]);
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='gongsizhanghao'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gongsizhanghao = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='gongsimingcheng'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gongsimingcheng = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='gongsilingyu'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gongsilingyu = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='gongsiguimo'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gongsiguimo = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='gongsileixing'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.gongsileixing = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='zhiweixinxi'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.zhiweixinxi = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='thumbsupnum'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.thumbsupnum = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='crazilynum'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.crazilynum = true;
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='clicktime'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.clicktime = true;
|
|
|
jquery('#clicktime').val(obj[o]);
|
|
|
continue;
|
|
|
}
|
|
|
if(o=='clicknum'){
|
|
|
vue.detail[o] = obj[o];
|
|
|
vue.ro.clicknum = true;
|
|
|
continue;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
// 提交
|
|
|
form.on('submit(*)', function(data) {
|
|
|
data = data.field;
|
|
|
|
|
|
// 数据校验
|
|
|
if(!data.gangweibianhao){
|
|
|
layer.msg('岗位编号不能为空', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!data.gangweimingcheng){
|
|
|
layer.msg('岗位名称不能为空', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!data.shangbandizhi){
|
|
|
layer.msg('上班地址不能为空', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!data.jingyanyaoqiu){
|
|
|
layer.msg('经验要求不能为空', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!data.xueliyaoqiu){
|
|
|
layer.msg('学历要求不能为空', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!data.zhaopinrenshu){
|
|
|
layer.msg('招聘人数不能为空', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!isIntNumer(data.zhaopinrenshu)){
|
|
|
layer.msg('招聘人数应输入整数', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!data.gongzuonianxian){
|
|
|
layer.msg('工作年限不能为空', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
var zhiweixinxi = tinymce.get('#zhiweixinxi').getContent()
|
|
|
data.zhiweixinxi = zhiweixinxi;
|
|
|
if(!isIntNumer(data.thumbsupnum)){
|
|
|
layer.msg('赞应输入整数', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!isIntNumer(data.crazilynum)){
|
|
|
layer.msg('踩应输入整数', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
if(!isIntNumer(data.clicknum)){
|
|
|
layer.msg('点击次数应输入整数', {
|
|
|
time: 2000,
|
|
|
icon: 5
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
// 跨表计算判断
|
|
|
|
|
|
// 比较大小
|
|
|
|
|
|
//更新跨表属性
|
|
|
var crossuserid;
|
|
|
var crossrefid;
|
|
|
var crossoptnum;
|
|
|
if(http.getParam('corss')){
|
|
|
var statusColumnName = localStorage.getItem('statusColumnName');
|
|
|
var statusColumnValue = localStorage.getItem('statusColumnValue');
|
|
|
if(statusColumnName!='') {
|
|
|
var obj = JSON.parse(localStorage.getItem('crossObj'));
|
|
|
if(!statusColumnName.startsWith("[")) {
|
|
|
for (var o in obj){
|
|
|
if(o==statusColumnName){
|
|
|
obj[o] = statusColumnValue;
|
|
|
}
|
|
|
}
|
|
|
var table = localStorage.getItem('crossTable');
|
|
|
http.requestJson(`${table}/update`,'post',obj,(res)=>{});
|
|
|
} else {
|
|
|
crossuserid=Number(localStorage.getItem('userid'));
|
|
|
crossrefid=obj['id'];
|
|
|
crossoptnum=localStorage.getItem('statusColumnName');
|
|
|
crossoptnum=crossoptnum.replace(/\[/,"").replace(/\]/,"");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if(crossrefid && crossuserid) {
|
|
|
data.crossuserid=crossuserid;
|
|
|
data.crossrefid=crossrefid;
|
|
|
http.request('zhaopinxinxi/list', 'get', {
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
crossuserid:crossuserid,
|
|
|
crossrefid:crossrefid,
|
|
|
}, function(res) {
|
|
|
if(res.data.total>=crossoptnum) {
|
|
|
layer.msg(localStorage.getItem('tips'), {
|
|
|
time: 2000,
|
|
|
icon: 6
|
|
|
})
|
|
|
return false;
|
|
|
} else {
|
|
|
// 跨表计算
|
|
|
// 提交数据
|
|
|
http.requestJson('zhaopinxinxi' + '/add', 'post', data, function(res) {
|
|
|
layer.msg('提交成功', {
|
|
|
time: 2000,
|
|
|
icon: 6
|
|
|
}, function() {
|
|
|
back();
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
// 跨表计算
|
|
|
// 提交数据
|
|
|
http.requestJson('zhaopinxinxi' + '/add', 'post', data, function(res) {
|
|
|
layer.msg('提交成功', {
|
|
|
time: 2000,
|
|
|
icon: 6
|
|
|
}, function() {
|
|
|
back();
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return false
|
|
|
});
|
|
|
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|