cyl/dev
zsk 3 years ago
parent a893a078ce
commit 87e4180ccf

@ -3,7 +3,9 @@
<!-- 面包屑 --> <!-- 面包屑 -->
<a-breadcrumb class="w"> <a-breadcrumb class="w">
<a-breadcrumb-item href=""> <a-breadcrumb-item href="">
<router-link to="/main"><a-icon type="home" /></router-link> <router-link to="/main">
<a-icon type="home" />
</router-link>
</a-breadcrumb-item> </a-breadcrumb-item>
<a-breadcrumb-item href=""> <a-breadcrumb-item href="">
<a @click="toList"> <a @click="toList">
@ -172,7 +174,6 @@
> >
</div> </div>
</a-form-model-item> </a-form-model-item>
<a-form-model-item <a-form-model-item
class="time-input" class="time-input"
ref="interviewTime" ref="interviewTime"
@ -199,8 +200,8 @@
></i ></i
></a-input> ></a-input>
</a-form-model-item> </a-form-model-item>
<a-form-model-item <a-form-model-item
style="margin-top: 12px"
class="time-input" class="time-input"
ref="receptionTime" ref="receptionTime"
label="接待时间" label="接待时间"
@ -243,8 +244,8 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="4" class="idCardUpload" <a-col :span="4" class="idCardUpload">
><a-upload <a-upload
:customRequest="customRequestFun" :customRequest="customRequestFun"
list-type="picture-card" list-type="picture-card"
:file-list="fileList" :file-list="fileList"
@ -302,8 +303,8 @@
class="iconfont icon-guanbi" class="iconfont icon-guanbi"
v-if="fileList.length !== 0 && !loading" v-if="fileList.length !== 0 && !loading"
@click="fileList = []" @click="fileList = []"
></i ></i>
></a-col> </a-col>
</a-row> </a-row>
<a-row class="specialbox"> <a-row class="specialbox">
<a-col :span="12"> <a-col :span="12">
@ -394,7 +395,6 @@
:max-length="11" :max-length="11"
/> />
</a-form-model-item> </a-form-model-item>
<a-form-model-item <a-form-model-item
ref="peoplecard" ref="peoplecard"
label="家庭住址" label="家庭住址"
@ -404,7 +404,6 @@
> >
<a-input v-model="form.address" placeholder="请输入家庭住址" /> <a-input v-model="form.address" placeholder="请输入家庭住址" />
</a-form-model-item> </a-form-model-item>
<!-- <a-form-model-item ref="username" label="模式" prop="username"> <!-- <a-form-model-item ref="username" label="模式" prop="username">
<a-select v-model="form.pattern" placeholder="请选择民族"> <a-select v-model="form.pattern" placeholder="请选择民族">
<a-select-option :value="apply.id">{{ apply.id }}</a-select-option> <a-select-option :value="apply.id">{{ apply.id }}</a-select-option>
@ -425,8 +424,28 @@
><span v-else @click="toFold(2)"></span> ><span v-else @click="toFold(2)"></span>
</div> </div>
</a-form-model-item> </a-form-model-item>
<a-form-model-item
ref="peoplecard"
label="附件"
prop="peoplecard"
:wrapperCol="{ span: 18 }"
:labelCol="{ span: 4 }"
>
<a-upload
:customRequest="customRequestFun2"
multiple
list-type="picture"
:default-file-list="fileList2"
class="upload-list-inline"
@change="handleChange2"
@preview="handlePreview"
:beforeUpload="beforeUpload"
:data="dataObj"
>
<a-button> <a-icon type="upload" /> 上传 </a-button>
</a-upload>
</a-form-model-item>
</a-form-model> </a-form-model>
<div class="upline"> <div class="upline">
<div> <div>
<a-button <a-button
@ -467,7 +486,6 @@
</a-modal> </a-modal>
</div> </div>
</template> </template>
<script> <script>
import { nationlist } from "../../utils/datalist"; import { nationlist } from "../../utils/datalist";
// import recordbill from "@/components/FirstJob/components/recordbill.vue"; // import recordbill from "@/components/FirstJob/components/recordbill.vue";
@ -499,6 +517,24 @@ export default {
// //
data() { data() {
return { return {
fileList2: [
{
uid: "-1",
name: "xxx.png",
status: "done",
url: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
thumbUrl:
"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
},
{
uid: "-2",
name: "yyy.png",
status: "done",
url: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
thumbUrl:
"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
},
],
// facetimedate: "", // facetimedate: "",
previewVisible: false, previewVisible: false,
proxyStatus: "", // proxyStatus: "", //
@ -814,13 +850,10 @@ export default {
console.log(fileList); console.log(fileList);
console.log(fileList[0]); console.log(fileList[0]);
this.fileList = fileList; this.fileList = fileList;
},
// try { handleChange2({ fileList }) {
// const { data } = await getIdCardInfoApi(formData); console.log(fileList);
// console.log(data); this.fileList2 = fileList;
// } catch (error) {
// console.log(error);
// }
}, },
// getBase64(file) { // getBase64(file) {
// return new Promise((resolve, reject) => { // return new Promise((resolve, reject) => {
@ -971,6 +1004,61 @@ export default {
}, },
}); });
}, },
async customRequestFun2(file) {
console.dir(file.onSuccess);
let _self = this;
var formData = new FormData();
//formDataappend
formData.append("key", _self.dataObj.key); //oss
formData.append("OSSAccessKeyId", _self.dataObj.ossaccessKeyId); //accessKeyId
formData.append("policy", _self.dataObj.policy); //policy
formData.append("Signature", _self.dataObj.signature); //
formData.append("success_action_status", "200"); // 204
formData.append("file", file.file); //
console.log(formData);
let formData1 = new FormData();
console.log(file.file);
formData1.append("uploadFile", file.file); //
// try {
// const { data } = await getIdCardInfoApi(formData1);
// console.log(data);
// } catch (err) {
// console.log(err);
// }
file.onProgress();
$.ajax({
type: "post",
url: "/imgs/uploadImage",
data: formData,
contentType: false, // Content-Type
processData: false,
success: function (data) {
console.log(data);
file.onSuccess();
console.log(document.querySelector(".ant-upload-list-item-info"));
_self.uploadFileFlag = true;
console.log(data);
var img =
_self.dataObj.host +
"/" +
_self.dataObj.key.replace("${filename}", file.file.name);
_self.form.idCardImageUrl = img;
console.log(_self.form.idCardImageUrl);
},
fail: function (err) {
console.log(err);
},
});
},
async handlePreview(file) { async handlePreview(file) {
console.log(file); console.log(file);
if (!file.url && !file.preview) { if (!file.url && !file.preview) {
@ -1095,91 +1183,123 @@ export default {
}, },
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
/deep/ .upload-list-inline .ant-upload-list-item {
float: left;
width: 220px;
margin-right: 16px;
.ant-upload-animate-enter {
animation-name: uploadAnimateInlineIn;
}
.ant-upload-animate-leave {
animation-name: uploadAnimateInlineOut;
}
}
.recordBill-container { .recordBill-container {
// height: 100%; // height: 100%;
box-sizing: border-box; box-sizing: border-box;
.content { .content {
margin-top: 12px; margin-top: 12px;
padding: 30px 0 20px 300px; padding: 30px 0 20px 300px;
position: relative; position: relative;
background-color: #fff; background-color: #fff;
text-align: left; text-align: left;
.ant-form { .ant-form {
width: 640px; width: 640px;
} }
} }
.upline { .upline {
position: relative !important; position: relative !important;
box-shadow: none; box-shadow: none;
// transform: translateX(-10px); // transform: translateX(-10px);
margin-top: 12px; margin-top: 12px;
> div { > div {
margin-left: 107px; margin-left: 107px;
display: flex; display: flex;
justify-content: start; justify-content: start;
button { button {
border-radius: 0; border-radius: 0;
transition: none; transition: none;
} }
button:first-child { button:first-child {
&:hover { &:hover {
border-color: #ff4400 !important; border-color: #ff4400 !important;
color: #ff4400 !important; color: #ff4400 !important;
} }
} }
button:last-child { button:last-child {
&:hover { &:hover {
background-color: #ff7c1f !important; background-color: #ff7c1f !important;
border-color: #ff7c1f !important; border-color: #ff7c1f !important;
} }
} }
// button::after { // button::after {
// // display: none; // // display: none;
// } // }
} }
} }
} }
/deep/ .ant-radio-wrapper { /deep/ .ant-radio-wrapper {
margin-right: 16px; margin-right: 16px;
span:last-child { span:last-child {
padding: 0 2px; padding: 0 2px;
} }
} }
/deep/ .ant-radio { /deep/ .ant-radio {
border-color: #ddd; border-color: #ddd;
box-shadow: none; box-shadow: none;
&:after { &:after {
display: none; display: none;
} }
&:hover .ant-radio-inner { &:hover .ant-radio-inner {
border-color: #ff4400 !important; border-color: #ff4400 !important;
box-shadow: none; box-shadow: none;
} }
} }
/deep/ .ant-radio-checked { /deep/ .ant-radio-checked {
.ant-radio-input:focus { .ant-radio-input:focus {
box-shadow: none; box-shadow: none;
} }
.ant-radio-inner { .ant-radio-inner {
border-color: #ff4400; border-color: #ff4400;
box-shadow: none; box-shadow: none;
&::after { &::after {
background-color: #ff4400 !important; background-color: #ff4400 !important;
} }
} }
} }
.ant-col { .ant-col {
.ant-form-item { .ant-form-item {
margin-top: 0; margin-top: 0;
margin-bottom: 16px !important; margin-bottom: 16px !important;
} }
} }
.idCardUpload { .idCardUpload {
// //
position: relative; position: relative;
.icon-guanbi { .icon-guanbi {
position: absolute; position: absolute;
top: -3px; top: -3px;
@ -1194,18 +1314,22 @@ export default {
background-color: #999; background-color: #999;
color: #fff; color: #fff;
z-index: 99; z-index: 99;
&::before { &::before {
display: inline-block; display: inline-block;
transform: scale(0.6); transform: scale(0.6);
} }
} }
} }
.specialbox { .specialbox {
margin-top: -8px; margin-top: -8px;
} }
/deep/ .ant-upload-picture-card-wrapper { /deep/ .ant-upload-picture-card-wrapper {
width: 100px !important; width: 100px !important;
height: 40px !important; height: 40px !important;
// border: 1px solid #ddd !important; // border: 1px solid #ddd !important;
// box-sizing: border-box; // box-sizing: border-box;
.ant-upload.ant-upload-select-picture-card, .ant-upload.ant-upload-select-picture-card,
@ -1220,6 +1344,7 @@ export default {
border-color: #dddddd !important; border-color: #dddddd !important;
box-sizing: border-box; box-sizing: border-box;
border-radius: 0px; border-radius: 0px;
&:hover { &:hover {
border-color: #ff4400 !important; border-color: #ff4400 !important;
} }
@ -1227,19 +1352,23 @@ export default {
.ant-upload { .ant-upload {
padding: 0; padding: 0;
} }
.ant-upload-list-item-progress { .ant-upload-list-item-progress {
display: none; display: none;
} }
// .ant-upload-list-item-uploading { // .ant-upload-list-item-uploading {
// display: none; // display: none;
// } // }
.ant-upload-select { .ant-upload-select {
background-color: #f5f5f5 !important; background-color: #f5f5f5 !important;
} }
.ant-upload-text { .ant-upload-text {
font-size: 12px; font-size: 12px;
margin: 0 0 0 6px; margin: 0 0 0 6px;
} }
.ant-upload-list-item-uploading-text { .ant-upload-list-item-uploading-text {
// display: none; // display: none;
text-align: center !important; text-align: center !important;
@ -1249,19 +1378,23 @@ export default {
margin-top: 0; margin-top: 0;
// overflow: hidden; // overflow: hidden;
} }
.ant-upload-list-item-actions { .ant-upload-list-item-actions {
> i { > i {
display: none; display: none;
} }
> a { > a {
text-align: center; text-align: center;
} }
} }
} }
// .ant-upload-select { // .ant-upload-select {
// display: none !important; // display: none !important;
// } // }
} }
.uploading { .uploading {
position: absolute; position: absolute;
width: 98px !important; width: 98px !important;
@ -1270,9 +1403,11 @@ export default {
left: -49px; left: -49px;
background-color: #f5f5f5; background-color: #f5f5f5;
} }
/deep/ .ant-form-item { /deep/ .ant-form-item {
// margin-bottom: 0; // margin-bottom: 0;
margin-top: -8px; margin-top: -8px;
.ant-col-5 { .ant-col-5 {
width: 20%; width: 20%;
} }
@ -1284,11 +1419,13 @@ export default {
color: #333; color: #333;
} }
} }
.ant-input-affix-wrapper { .ant-input-affix-wrapper {
&:hover .ant-input { &:hover .ant-input {
border-color: #ddd; border-color: #ddd;
} }
} }
.radiobox { .radiobox {
height: 40px; height: 40px;
display: flex; display: flex;
@ -1299,17 +1436,21 @@ export default {
.pzbox { .pzbox {
// display: flex !important; // display: flex !important;
color: #666; color: #666;
span { span {
display: inline-block; display: inline-block;
&:first-child { &:first-child {
min-width: 50px; min-width: 50px;
} }
// &:last-child { // &:last-child {
// cursor: pointer; // cursor: pointer;
// margin-left: 10px; // margin-left: 10px;
// color: #ff4400; // color: #ff4400;
// } // }
} }
// &::before { // &::before {
// content: ""; // content: "";
// display: block; // display: block;
@ -1331,11 +1472,13 @@ export default {
// border: none; // border: none;
border: 1px solid #dddddd; border: 1px solid #dddddd;
box-shadow: none !important; box-shadow: none !important;
// background-color: #f6f6f6; // background-color: #f6f6f6;
&::placeholder { &::placeholder {
color: #cdcdcd; color: #cdcdcd;
} }
} }
.ant-select-selection__rendered, .ant-select-selection__rendered,
.ant-select-selection--single, .ant-select-selection--single,
.ant-select { .ant-select {
@ -1345,17 +1488,21 @@ export default {
// border: 1px solid #dddddd; // border: 1px solid #dddddd;
box-shadow: none !important; box-shadow: none !important;
border-color: #ddd; border-color: #ddd;
.ant-select-selection__placeholder { .ant-select-selection__placeholder {
line-height: 17px; line-height: 17px;
color: #cdcdcd; color: #cdcdcd;
} }
.ant-select-selection-selected-value { .ant-select-selection-selected-value {
line-height: 37px; line-height: 37px;
color: #666; color: #666;
} }
&:hover { &:hover {
border-color: #ddd; border-color: #ddd;
} }
// &:focus { // &:focus {
// border-color: #d9d9d9; // border-color: #d9d9d9;
// } // }
@ -1364,20 +1511,24 @@ export default {
// } // }
} }
} }
/deep/ .ant-modal-content { /deep/ .ant-modal-content {
.ant-modal-header { .ant-modal-header {
border-bottom: 1px solid transparent; border-bottom: 1px solid transparent;
padding-top: 14px; padding-top: 14px;
padding-bottom: 14px; padding-bottom: 14px;
} }
.ant-modal-body { .ant-modal-body {
padding: 24px; padding: 24px;
padding-top: 0; padding-top: 0;
img { img {
display: block; display: block;
width: 100%; width: 100%;
} }
} }
.ant-modal-close-x { .ant-modal-close-x {
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
@ -1387,10 +1538,13 @@ export default {
// } // }
} }
} }
/deep/ .policyContainer { /deep/ .policyContainer {
position: relative; position: relative;
.ant-form-item-children { .ant-form-item-children {
position: unset; position: unset;
.policy { .policy {
// position: relative; // position: relative;
padding: 0; padding: 0;
@ -1401,6 +1555,7 @@ export default {
overflow: hidden; overflow: hidden;
line-height: 2; line-height: 2;
} }
.openContral { .openContral {
position: absolute; position: absolute;
height: 20px; height: 20px;
@ -1408,6 +1563,7 @@ export default {
bottom: 0; bottom: 0;
right: 10px; right: 10px;
cursor: pointer; cursor: pointer;
&::after { &::after {
content: ""; content: "";
position: absolute; position: absolute;
@ -1417,6 +1573,7 @@ export default {
bottom: -10px; bottom: -10px;
left: -445px; left: -445px;
} }
&:hover { &:hover {
color: #ff4400; color: #ff4400;
} }
@ -1425,6 +1582,7 @@ export default {
// background-color: #ff4400; // background-color: #ff4400;
} }
// /deep/ .date-picker { // /deep/ .date-picker {
// .picker-content { // .picker-content {
// table { // table {
@ -1656,19 +1814,23 @@ export default {
// } // }
/deep/ .time-input { /deep/ .time-input {
margin-bottom: 16px; margin-bottom: 16px;
.ant-input { .ant-input {
font-size: 20px !important; font-size: 20px !important;
border-radius: 0px; border-radius: 0px;
-webkit-text-stroke-width: 0.5px; -webkit-text-stroke-width: 0.5px;
font-weight: 400; font-weight: 400;
&::placeholder { &::placeholder {
font-size: 14px; font-size: 14px;
-webkit-text-stroke-width: 0.1px; -webkit-text-stroke-width: 0.1px;
} }
} }
.ant-input-suffix { .ant-input-suffix {
right: 16px; right: 16px;
} }
.anticon-close-circle { .anticon-close-circle {
width: 24px; width: 24px;
height: 24px; height: 24px;
@ -1676,9 +1838,11 @@ export default {
margin-right: 8px; margin-right: 8px;
} }
} }
.ant-input { .ant-input {
border-radius: 0px; border-radius: 0px;
} }
/deep/ .pt1 .ant-input { /deep/ .pt1 .ant-input {
padding-top: 1px; padding-top: 1px;
} }

@ -12,39 +12,37 @@
@click="pagination.status = 10" @click="pagination.status = 10"
:class="{ townsmanactive: pagination.status === 10 }" :class="{ townsmanactive: pagination.status === 10 }"
> >
审核<span>{{ billNumber.num10 == 0 ? "" : billNumber.num10 }}</span> 审核<span>{{ billNumber.num10 == 0 ? "" : billNumber.num10 }}</span>
</li> </li>
<li <li
@click="pagination.status = 20" @click="pagination.status = 20"
:class="{ townsmanactive: pagination.status === 20 }" :class="{ townsmanactive: pagination.status === 20 }"
> >
面试<span>{{ billNumber.num20 == 0 ? "" : billNumber.num20 }}</span> 接待<span>{{ billNumber.num20 == 0 ? "" : billNumber.num20 }}</span>
</li> </li>
<li <li
@click="pagination.status = 25" @click="pagination.status = 25"
:class="{ townsmanactive: pagination.status === 25 }" :class="{ townsmanactive: pagination.status === 25 }"
> >
已接到<span>{{ billNumber.num25 == 0 ? "" : billNumber.num25 }}</span> 待面试<span>{{ billNumber.num25 == 0 ? "" : billNumber.num25 }}</span>
</li> </li>
<li <li
@click="pagination.status = 30" @click="pagination.status = 30"
:class="{ townsmanactive: pagination.status === 30 }" :class="{ townsmanactive: pagination.status === 30 }"
> >
面试通过<span>{{ 待入职<span>{{ billNumber.num30 == 0 ? "" : billNumber.num30 }}</span>
billNumber.num30 == 0 ? "" : billNumber.num30
}}</span>
</li> </li>
<li <li
@click="pagination.status = 40" @click="pagination.status = 40"
:class="{ townsmanactive: pagination.status === 40 }" :class="{ townsmanactive: pagination.status === 40 }"
> >
在职<span>{{ billNumber.num40 == 0 ? "" : billNumber.num40 }}</span> 在职<span>{{ billNumber.num40 == 0 ? "" : billNumber.num40 }}</span>
</li> </li>
<li <li
@click="pagination.status = 999" @click="pagination.status = 999"
:class="{ townsmanactive: pagination.status === 999 }" :class="{ townsmanactive: pagination.status === 999 }"
> >
报名结束<span>{{ 已完成<span>{{
billNumber.num999 == 0 ? "" : billNumber.num999 billNumber.num999 == 0 ? "" : billNumber.num999
}}</span> }}</span>
</li> </li>

@ -14,8 +14,8 @@ console.log(baseURL);
axios.defaults.withCredentials = true; //添加这行代码 axios.defaults.withCredentials = true; //添加这行代码
// console.log(axios); // console.log(axios);
const service = axios.create({ const service = axios.create({
// baseURL: "/api_prod", // url = base url + request url 测试 baseURL: "/api_prod", // url = base url + request url 测试
baseURL: baseURL, // baseURL: "/api", // url = base url + request url 正式 // baseURL: baseURL, // baseURL: "/api", // url = base url + request url 正式
withCredentials: true, // send cookies when cross-domain requests withCredentials: true, // send cookies when cross-domain requests
timeout: 60000, // request timeout timeout: 60000, // request timeout
crossDomain: true, crossDomain: true,

Loading…
Cancel
Save