Commit 021dffe9 by cocomilk2012
parents 6099b3bd 4296a7bd
...@@ -56,3 +56,8 @@ outline: none; ...@@ -56,3 +56,8 @@ outline: none;
text-decoration: none; text-decoration: none;
-webkit-tap-highlight-color:rgba(255,255,255,0); -webkit-tap-highlight-color:rgba(255,255,255,0);
} }
.submit_btn{
position: absolute;
bottom: 0;
width: 100%;
}
\ No newline at end of file
...@@ -100,7 +100,8 @@ export default class cityList extends Vue { ...@@ -100,7 +100,8 @@ export default class cityList extends Vue {
} }
onConfirm(values: any) { onConfirm(values: any) {
console.log(values); console.log(values)
this.$emit('childCityList',values)
} }
} }
</script> </script>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<i>18821992017</i> <i>18821992017</i>
</div> </div>
<div class="header"> <div class="header">
<div class="header_name">哈撒剋</div> <div class="header_name">{{employee_name}}</div>
<div class="header_info">女|1888-01-01</div> <div class="header_info">{{employee_sex}}|{{employee_birthday}}</div>
</div> </div>
<work-info /> <work-info />
<person-info :isEdit="isEdit" /> <person-info :isEdit="isEdit" />
...@@ -53,7 +53,15 @@ import archiveQuestion from "./archives/archiveQuestion.vue"; ...@@ -53,7 +53,15 @@ import archiveQuestion from "./archives/archiveQuestion.vue";
} }
}) })
export default class archives extends Vue { export default class archives extends Vue {
private isEdit:any="123" private isEdit:any="123";
private employee_name:any="";
private employee_birthday:any="";
private employee_sex:any="";
created(){
this.employee_name=localStorage.getItem("name") as string;
this.employee_birthday=localStorage.getItem("birthday") as string;
this.employee_sex=localStorage.getItem("sex") as string;
}
} }
</script> </script>
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
@childEndDate="childEndDate" @childEndDate="childEndDate"
/> />
<van-field v-model="description" label="工作内容" placeholder="请填写工作内容(非必填)" /> <van-field v-model="description" label="工作内容" placeholder="请填写工作内容(非必填)" />
<div style="margin: 16px;"> <div class="submit_btn">
<van-button round block type="info" native-type="submit" @click="saveWorkInfo">保存</van-button> <van-button type="primary" block @click="saveWorkInfo">保存</van-button>
</div> </div>
</van-form> </van-form>
</div> </div>
...@@ -56,7 +56,6 @@ export default class eduExperience extends Vue { ...@@ -56,7 +56,6 @@ export default class eduExperience extends Vue {
private showStartDate: boolean = false; private showStartDate: boolean = false;
private showEndDate: boolean = false; private showEndDate: boolean = false;
//获取日期组件中的值 //获取日期组件中的值
childStartDate(item: any) { childStartDate(item: any) {
this.workStartDate = item; this.workStartDate = item;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</div> </div>
</div> </div>
<van-popup v-model="show" position="right" :style="{ height: '100%',width: '100%' }"> <van-popup v-model="show" position="right" :style="{ height: '100%',width: '90%' }">
<van-form> <van-form>
<van-field v-model="obj.contactMobile" label="手机号码" placeholder="请填写手机号码" /> <van-field v-model="obj.contactMobile" label="手机号码" placeholder="请填写手机号码" />
<van-field v-model="obj.contactTelephone" label="固定电话" placeholder="请填写固定电话" /> <van-field v-model="obj.contactTelephone" label="固定电话" placeholder="请填写固定电话" />
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
<van-field v-model="obj.contactPostcode" label="邮政编码" placeholder="请填写邮政编码" /> <van-field v-model="obj.contactPostcode" label="邮政编码" placeholder="请填写邮政编码" />
<van-field v-model="obj.contactCurrentResidence" label="户口所在地" placeholder="请填写户口所在地" /> <van-field v-model="obj.contactCurrentResidence" label="户口所在地" placeholder="请填写户口所在地" />
<van-field v-model="obj.infoRegisteredResidenceCity" label="现在居住地" placeholder="请填写现在居住地" /> <van-field v-model="obj.infoRegisteredResidenceCity" label="现在居住地" placeholder="请填写现在居住地" />
<div style="margin: 16px;"> <div class="submit_btn">
<van-button round block type="info" native-type="submit" @click="updateContactInfo">保存</van-button> <van-button type="primary" block @click="updateContactInfo">保存</van-button>
</div> </div>
</van-form> </van-form>
</van-popup> </van-popup>
...@@ -90,11 +90,14 @@ export default class contactInfo extends Vue { ...@@ -90,11 +90,14 @@ export default class contactInfo extends Vue {
contactTelephone: this.obj.contactTelephone, contactTelephone: this.obj.contactTelephone,
infoRegisteredResidenceCity: this.obj.infoRegisteredResidenceCity infoRegisteredResidenceCity: this.obj.infoRegisteredResidenceCity
}; };
if (!this.obj.contactMobile || !(/^1\d{10}$/.test(this.obj.contactMobile))) { if (!this.obj.contactMobile || !/^1\d{10}$/.test(this.obj.contactMobile)) {
Toast("请填写正确的手机号码"); Toast("请填写正确的手机号码");
return; return;
} }
if (!this.obj.contactTelephone || !(/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(this.obj.contactTelephone))) { if (
!this.obj.contactTelephone ||
!/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(this.obj.contactTelephone)
) {
Toast("请填写正确的固定电话"); Toast("请填写正确的固定电话");
return; return;
} }
...@@ -102,7 +105,10 @@ export default class contactInfo extends Vue { ...@@ -102,7 +105,10 @@ export default class contactInfo extends Vue {
Toast("请填写紧急联系电话"); Toast("请填写紧急联系电话");
return; return;
} }
if (!this.obj.contactPostcode || !(/^[0-9]\d{5}(?!\d)$/.test(this.obj.contactPostcode))) { if (
!this.obj.contactPostcode ||
!/^[0-9]\d{5}(?!\d)$/.test(this.obj.contactPostcode)
) {
Toast("请填写正确的邮政编码"); Toast("请填写正确的邮政编码");
return; return;
} }
...@@ -119,7 +125,7 @@ export default class contactInfo extends Vue { ...@@ -119,7 +125,7 @@ export default class contactInfo extends Vue {
if (res == true) { if (res == true) {
Toast.success("保存成功"); Toast.success("保存成功");
this.show = false; this.show = false;
}else{ } else {
Toast.success(res.message); Toast.success(res.message);
} }
}) })
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
@childStartDate="childStartDate" @childStartDate="childStartDate"
@childEndDate="childEndDate" @childEndDate="childEndDate"
/> />
<div style="margin: 16px;"> <div class="submit_btn">
<van-button round block type="info" native-type="submit" @click="addEduInfo">保存</van-button> <van-button type="primary" block @click="addEduInfo">保存</van-button>
</div> </div>
</van-form> </van-form>
</div> </div>
......
...@@ -25,11 +25,9 @@ ...@@ -25,11 +25,9 @@
@childStartDate="childStartDate" @childStartDate="childStartDate"
@childEndDate="childEndDate" @childEndDate="childEndDate"
/> />
<div style="margin: 16px;"> <div class="edu_button">
<van-button round block type="info" native-type="submit" @click="updateEduInfo">修改</van-button> <div @click="updateEduInfo">修改</div>
</div> <div @click="deleteEduInfo">删除</div>
<div style="margin: 16px;">
<van-button round block type="info" native-type="submit" @click="deleteEduInfo">删除</van-button>
</div> </div>
</van-form> </van-form>
</div> </div>
...@@ -101,11 +99,10 @@ export default class eduExperience extends Vue { ...@@ -101,11 +99,10 @@ export default class eduExperience extends Vue {
id: this.childItem.id, id: this.childItem.id,
major: this.childItem.major major: this.childItem.major
}; };
this.$server.EmployeeService.updateEduExperience(params) this.$server.EmployeeService.updateEduExperience(params).then(res => {
.then(res => {
Toast.success("修改成功"); Toast.success("修改成功");
this.$emit("popupShow"); this.$emit("popupShow");
}) });
} }
//删除 //删除
deleteEduInfo() { deleteEduInfo() {
...@@ -133,4 +130,48 @@ export default class eduExperience extends Vue { ...@@ -133,4 +130,48 @@ export default class eduExperience extends Vue {
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.edu_button {
display: flex;
position: absolute;
bottom: 0;
width: 100%;
height: 50px;
align-items: center;
&::before {
position: absolute;
box-sizing: border-box;
content: " ";
pointer-events: none;
right: 0;
bottom: 50px;
left: 0;
border-bottom: 0.02667rem solid #ebedf0;
-webkit-transform: scaleY(0.5);
-ms-transform: scaleY(0.5);
transform: scaleY(0.5);
}
div {
background: white;
width: 50%;
text-align: center;
font-size: 14px;
color: #666;
&:last-child {
color: #fc3e30;
&::before {
position: absolute;
box-sizing: border-box;
content: " ";
width: 1px;
height: 50px;
background: #ebedf0;
left: 50%;
top: 0;
-webkit-transform: scaleY(0.5);
-ms-transform: scaleY(0.5);
transform: scaleY(0.5);
}
}
}
}
</style> </style>
\ No newline at end of file
...@@ -52,11 +52,7 @@ ...@@ -52,11 +52,7 @@
@click="showBirthplace = true" @click="showBirthplace = true"
/> />
<van-popup v-model="showBirthplace" position="bottom"> <van-popup v-model="showBirthplace" position="bottom">
<van-area <city-list @childCityList="birthCity" />
:area-list="areaList"
@confirm="onConfirmBirthplace"
@cancel="showArea = false"
/>
</van-popup> </van-popup>
<!-- 民族 --> <!-- 民族 -->
<!-- <van-field <!-- <van-field
...@@ -74,8 +70,8 @@ ...@@ -74,8 +70,8 @@
@confirm="onConfirmNation" @confirm="onConfirmNation"
@cancel="showNation = false" @cancel="showNation = false"
/> />
</van-popup> --> </van-popup>-->
<popup-picker :label="label"/> <popup-picker :label="label" />
<!-- 政治面貌 --> <!-- 政治面貌 -->
<van-field <van-field
readonly readonly
...@@ -154,33 +150,29 @@ ...@@ -154,33 +150,29 @@
@click="showFile = true" @click="showFile = true"
/> />
<van-popup v-model="showFile" position="bottom"> <van-popup v-model="showFile" position="bottom">
<van-picker <city-list @childCityList="localCity" />
show-toolbar
:columns="columns.maternity"
@confirm="onConfirmFile"
@cancel="showFile = false"
/>
</van-popup> </van-popup>
<!-- 开始工作时间 --> <!-- 开始工作时间 -->
<!-- <van-field <van-field
readonly readonly
clickable clickable
:value="obj.infoWorkStartDate" :value="obj.infoWorkStartDate"
label="开始工作时间" label="开始工作时间"
placeholder="请选择" placeholder="请选择"
@click="showMaternity = true" @click="showWorkStartDate = true"
/> />
<van-popup v-model="showMaternity" position="bottom"> <van-popup v-model="showWorkStartDate" position="bottom">
<van-picker <van-datetime-picker
show-toolbar v-model="currentDate"
:columns="columns.maternity" type="date"
title="选择年月日"
@confirm="onConfirmWorkDate" @confirm="onConfirmWorkDate"
@cancel="showMaternity = false" @cancel="showWorkStartDate = false"
/> />
</van-popup> --> </van-popup>
</van-form> </van-form>
<div style="margin: 16px;"> <div class="submit_btn">
<van-button round block type="info" native-type="submit" @click="updatePersonInfo">保存</van-button> <van-button type="primary" block @click="updatePersonInfo">保存</van-button>
</div> </div>
</van-popup> </van-popup>
</div> </div>
...@@ -188,34 +180,46 @@ ...@@ -188,34 +180,46 @@
<script lang="ts"> <script lang="ts">
import Vue from "vue"; import Vue from "vue";
import { Icon, Button, Popup, Form, Picker, Field, Area, Toast } from "vant"; import {
import { Component,Prop } from "vue-property-decorator"; Icon,
import popupPicker from "@/components/common/popupPicker.vue" Button,
// import AreaList from "@/assets/js/area.js"; Popup,
Form,
Picker,
Field,
DatetimePicker,
Toast
} from "vant";
import { Component, Prop } from "vue-property-decorator";
import popupPicker from "@/components/common/popupPicker.vue";
import cityList from "@/components/common/cityList.vue";
import dateSelect from "@/components/common/dateSelect.vue";
import { formatDate } from "../../utils/public";
@Component({ @Component({
components: { components: {
[Button.name]: Button, [Button.name]: Button,
[Icon.name]: Icon, [Icon.name]: Icon,
[Popup.name]: Popup, [Popup.name]: Popup,
[Picker.name]: Picker, [Picker.name]: Picker,
[DatetimePicker.name]: DatetimePicker,
[Field.name]: Field, [Field.name]: Field,
// [Area.name]: Area,
[Form.name]: Form, [Form.name]: Form,
popupPicker popupPicker,
cityList
} }
}) })
export default class personInfo extends Vue { export default class personInfo extends Vue {
//获取父组件中的isEdit //获取父组件中的isEdit
@Prop({ @Prop({
type:String, type: String,
required:true, required: true,
default:'' default: ""
}) isEdit !:string })
isEdit!: string;
private obj: any = {}; private obj: any = {};
private show: boolean = false; private show: boolean = false;
private label: any = "民族"; private label: any = "民族";
// private areaList: object = AreaList;
private showBirthplace: boolean = false; private showBirthplace: boolean = false;
private showNation: boolean = false; private showNation: boolean = false;
private showPolitical: boolean = false; private showPolitical: boolean = false;
...@@ -224,7 +228,7 @@ export default class personInfo extends Vue { ...@@ -224,7 +228,7 @@ export default class personInfo extends Vue {
private showMaternity: boolean = false; private showMaternity: boolean = false;
private showFile: boolean = false; private showFile: boolean = false;
private showWorkStartDate: boolean = false; private showWorkStartDate: boolean = false;
private areaList: object = {}; private currentDate: Date = new Date();
private columns: any = { private columns: any = {
nation: ["汉族", "回族", "蒙古族"], nation: ["汉族", "回族", "蒙古族"],
political: ["群众", "共青团员", "预备党员", "中共党员", "其他"], political: ["群众", "共青团员", "预备党员", "中共党员", "其他"],
...@@ -249,19 +253,18 @@ export default class personInfo extends Vue { ...@@ -249,19 +253,18 @@ export default class personInfo extends Vue {
let params = { let params = {
edId: this.$route.query.ed_id edId: this.$route.query.ed_id
}; };
console.log("props="+this.$props.isEdit)
this.$server.EmployeeService.getPersonInfo(params) this.$server.EmployeeService.getPersonInfo(params)
.then(res => { .then(res => {
this.obj = res; this.obj = res;
console.log(res);
}) })
.catch(error => {});
} }
editInfo(): void { editInfo(): void {
this.show = true; this.show = true;
} }
//出生地 //出生地
onConfirmBirthplace(values: any) { birthCity(values: any) {
this.obj.infoBirthCity = values.map((item: any) => item.name).join("/"); this.obj.infoBirthCity = values.join("/");
this.showBirthplace = false; this.showBirthplace = false;
} }
//民族 //民族
...@@ -290,15 +293,16 @@ export default class personInfo extends Vue { ...@@ -290,15 +293,16 @@ export default class personInfo extends Vue {
this.showMaternity = false; this.showMaternity = false;
} }
//档案所在地 //档案所在地
onConfirmFile(value: any) { localCity(values: any) {
this.obj.infoFileLocation = value; this.obj.infoFileLocation = values.map((item: any) => item.name).join("/");
this.showFile = false; this.showFile = false;
} }
//开始工作时间 //开始工作时间
onConfirmWorkDate(value: any) { onConfirmWorkDate(value: any) {
this.obj.infoWorkStartDate = value; this.obj.infoWorkStartDate = formatDate(value, "yyyy-MM-dd");
this.showWorkStartDate = false; this.showWorkStartDate = false;
} }
updatePersonInfo() { updatePersonInfo() {
let params = { let params = {
id: this.$route.query.ed_id, id: this.$route.query.ed_id,
...@@ -321,6 +325,8 @@ export default class personInfo extends Vue { ...@@ -321,6 +325,8 @@ export default class personInfo extends Vue {
console.log(error); console.log(error);
}); });
} }
} }
</script> </script>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<label>{{obj.unitPreEmploymentStatus}}</label> <label>{{obj.unitPreEmploymentStatus}}</label>
</div> </div>
</div> </div>
<van-popup v-model="show" position="right" :style="{ height: '100%',width: '100%' }"> <van-popup v-model="show" position="right" :style="{ height: '100%',width: '90%' }">
<van-form> <van-form>
<!-- <van-field v-model="obj.infoRegisteredResidence" label="户口性质" placeholder="请选择户口性质" /> --> <!-- <van-field v-model="obj.infoRegisteredResidence" label="户口性质" placeholder="请选择户口性质" /> -->
<van-field <van-field
...@@ -93,15 +93,8 @@ ...@@ -93,15 +93,8 @@
placeholder="请选择" placeholder="请选择"
@click="showEmploymentStatus = true" @click="showEmploymentStatus = true"
/> />
<div class="submit_btn">
<div style="margin: 16px;"> <van-button type="primary" block @click="updateContactInfo_click">保存</van-button>
<van-button
round
block
type="info"
native-type="submit"
@click="updateContactInfo_click"
>保存</van-button>
</div> </div>
<!-- 户口性质 --> <!-- 户口性质 -->
...@@ -133,12 +126,7 @@ ...@@ -133,12 +126,7 @@
</van-popup> </van-popup>
<!-- 原社保缴纳省市 --> <!-- 原社保缴纳省市 -->
<van-popup v-model="showSocialCity" position="bottom"> <van-popup v-model="showSocialCity" position="bottom">
<van-picker <city-list @childCityList="socialCity" />
show-toolbar
:columns="columns.socialCity"
@confirm="onConfirmSocialCity"
@cancel="showSocialCity = false"
/>
</van-popup> </van-popup>
<!-- 与原单位关系 --> <!-- 与原单位关系 -->
<van-popup v-model="showRelationUnit" position="bottom"> <van-popup v-model="showRelationUnit" position="bottom">
...@@ -167,6 +155,7 @@ ...@@ -167,6 +155,7 @@
import Vue from "vue"; import Vue from "vue";
import { Button, Icon, Popup, Form, Picker, Field, Toast } from "vant"; import { Button, Icon, Popup, Form, Picker, Field, Toast } from "vant";
import { Component } from "vue-property-decorator"; import { Component } from "vue-property-decorator";
import cityList from "@/components/common/cityList.vue";
@Component({ @Component({
components: { components: {
...@@ -175,7 +164,8 @@ import { Component } from "vue-property-decorator"; ...@@ -175,7 +164,8 @@ import { Component } from "vue-property-decorator";
[Popup.name]: Popup, [Popup.name]: Popup,
[Form.name]: Form, [Form.name]: Form,
[Picker.name]: Picker, [Picker.name]: Picker,
[Field.name]: Field [Field.name]: Field,
cityList
} }
}) })
export default class socialInfo extends Vue { export default class socialInfo extends Vue {
...@@ -249,72 +239,13 @@ export default class socialInfo extends Vue { ...@@ -249,72 +239,13 @@ export default class socialInfo extends Vue {
this.showEmploymentStatus = false; this.showEmploymentStatus = false;
} }
private getCityList(): void {
this.$server.EmployeeService.getCityList({})
.then(res => {
// console.log("citylist", res);
this.city = res;
for (let i = 0; i < this.city.length; i++) {
if (this.city[i].parentId == 0) {
this.parents.push(this.city[i]);
}
if (this.city[i].parentId != 0) {
this.childrens.push(this.city[i]);
}
}
//没有父节点的数据
// console.log(this.parents);
//有父节点的数据
// console.log(this.childrens);
this.parents.forEach((parent:any) => {
this.childrens.forEach((children:any) =>{
if(parent.id==children.parentId){
// console.log(parent.name+parent.id+"++"+children.name+children.parentId)
}
})
});
// https://blog.csdn.net/MySunshine07/article/details/104960244?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1
// let fliterEvent = (parents:any, childrens:any) => {
// parents.forEach(parent => {
// childrens.forEach((current:any, index:any) => {
// if (current.parentId === parent.id) {
// let temp = JSON.parse(JSON.stringify(children));
// temp.splice(index, 1);
// fliterEvent([current], temp);
// typeof parent.children !== "undefined"
// ? parent.children.push(current)
// : (parent.children = [current]);
// }
// });
// });
// };
// function translator(parents, childrens) {
// fliterEvent(parents, childrens);
// return parents;
// }
})
.catch(error => {
console.log(error);
});
}
private getSocialInfo(): void { private getSocialInfo(): void {
let params = { let params = {
edId: this.$route.query.ed_id edId: this.$route.query.ed_id
}; };
this.$server.EmployeeService.getSocialInfo(params) this.$server.EmployeeService.getSocialInfo(params).then(res => {
.then(res => {
// console.log("res=" + JSON.stringify(res)+'社保信息');
this.obj = res; this.obj = res;
}) });
.catch(error => {});
} }
private getSalaryInfo(): void { private getSalaryInfo(): void {
...@@ -327,13 +258,9 @@ export default class socialInfo extends Vue { ...@@ -327,13 +258,9 @@ export default class socialInfo extends Vue {
}; };
console.log(params); console.log(params);
this.$server.EmployeeService.getSalaryInfo(params) this.$server.EmployeeService.getSalaryInfo(params).then(res => {
.then(res => {
// console.log("res=" + JSON.stringify(res)+'工资条');
this.obj = res; this.obj = res;
}) });
.catch(error => {});
} }
editInfo(): void { editInfo(): void {
...@@ -391,17 +318,21 @@ export default class socialInfo extends Vue { ...@@ -391,17 +318,21 @@ export default class socialInfo extends Vue {
console.log(error); console.log(error);
}); });
} }
socialCity(values: any) {
this.obj.unitPreSocialCity = values.join("/");
this.showSocialCity = false;
}
created() { created() {
this.getSalaryInfo(); this.getSalaryInfo();
this.getSocialInfo(); this.getSocialInfo();
this.getCityList();
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.content /deep/ .van-field__label{
width: 110px;
}
.content { .content {
margin-top: 10px; margin-top: 10px;
background: white; background: white;
......
...@@ -19,14 +19,13 @@ ...@@ -19,14 +19,13 @@
<label>{{obj.expertiseQualification}}</label> <label>{{obj.expertiseQualification}}</label>
</div> </div>
</div> </div>
<van-popup v-model="show" position="right" :style="{ height: '100%',width: '100%' }"> <van-popup v-model="show" position="right" :style="{ height: '100%',width: '90%' }">
<van-form> <van-form>
<van-field v-model="obj.expertiseTechnologySpecialty" label="技术特长" placeholder="请填写技术特长" /> <van-field v-model="obj.expertiseTechnologySpecialty" label="技术特长" placeholder="请填写技术特长" />
<van-field v-model="obj.expertiseTechnologyTitle" label="技术职称" placeholder="请填写技术职称" /> <van-field v-model="obj.expertiseTechnologyTitle" label="技术职称" placeholder="请填写技术职称" />
<van-field v-model="obj.expertiseQualification" label="资格证书" placeholder="请填写资格证书" /> <van-field v-model="obj.expertiseQualification" label="资格证书" placeholder="请填写资格证书" />
<div class="submit_btn">
<div style="margin: 16px;"> <van-button type="primary" block @click="updateContactInfo">保存</van-button>
<van-button round block type="info" native-type="submit" @click="updateContactInfo">保存</van-button>
</div> </div>
</van-form> </van-form>
</van-popup> </van-popup>
......
...@@ -11,11 +11,9 @@ ...@@ -11,11 +11,9 @@
@childEndDate="childEndDate" @childEndDate="childEndDate"
/> />
<van-field v-model="childItem.description" label="工作内容" placeholder="请填写工作内容(非必填)" /> <van-field v-model="childItem.description" label="工作内容" placeholder="请填写工作内容(非必填)" />
<div style="margin: 16px;"> <div class="work_button">
<van-button round block type="info" native-type="submit" @click="updateEduInfo">修改</van-button> <div @click="updateWorkInfo">修改</div>
</div> <div @click="deleteWorkInfo">删除</div>
<div style="margin: 16px;">
<van-button round block type="info" native-type="submit" @click="deleteEduInfo">删除</van-button>
</div> </div>
</van-form> </van-form>
</div> </div>
...@@ -70,7 +68,7 @@ export default class eduExperience extends Vue { ...@@ -70,7 +68,7 @@ export default class eduExperience extends Vue {
this.childItem.workEndDate = item; this.childItem.workEndDate = item;
} }
//修改 //修改
updateEduInfo() { updateWorkInfo() {
let params = { let params = {
description: this.childItem.description, description: this.childItem.description,
edId: this.childItem.id, edId: this.childItem.id,
...@@ -85,7 +83,7 @@ export default class eduExperience extends Vue { ...@@ -85,7 +83,7 @@ export default class eduExperience extends Vue {
}); });
} }
//删除 //删除
deleteEduInfo() { deleteWorkInfo() {
let params = { let params = {
edId: this.childItem.id edId: this.childItem.id
}; };
...@@ -102,4 +100,48 @@ export default class eduExperience extends Vue { ...@@ -102,4 +100,48 @@ export default class eduExperience extends Vue {
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.work_button {
display: flex;
position: absolute;
bottom: 0;
width: 100%;
height: 50px;
align-items: center;
&::before {
position: absolute;
box-sizing: border-box;
content: " ";
pointer-events: none;
right: 0;
bottom: 50px;
left: 0;
border-bottom: 0.02667rem solid #ebedf0;
-webkit-transform: scaleY(0.5);
-ms-transform: scaleY(0.5);
transform: scaleY(0.5);
}
div {
background: white;
width: 50%;
text-align: center;
font-size: 14px;
color: #666;
&:last-child {
color: #fc3e30;
&::before {
position: absolute;
box-sizing: border-box;
content: " ";
width: 1px;
height: 50px;
background: #ebedf0;
left: 50%;
top: 0;
-webkit-transform: scaleY(0.5);
-ms-transform: scaleY(0.5);
transform: scaleY(0.5);
}
}
}
}
</style> </style>
\ No newline at end of file
...@@ -23,14 +23,14 @@ ...@@ -23,14 +23,14 @@
<label>{{obj.bankNo}}</label> <label>{{obj.bankNo}}</label>
</div> </div>
</div> </div>
<van-popup v-model="show" position="right" :style="{ height: '100%',width: '100%' }"> <van-popup v-model="show" position="right" :style="{ height: '100%',width: '90%' }">
<van-form> <van-form>
<van-field v-model="obj.bankAccount" label="账户名称" placeholder="请填写账户名称" /> <van-field v-model="obj.bankAccount" label="账户名称" placeholder="请填写账户名称" />
<van-field v-model="obj.bankName" label="银行名称" placeholder="请填写银行名称" /> <van-field v-model="obj.bankName" label="银行名称" placeholder="请填写银行名称" />
<van-field v-model="obj.bankOpen" label="开户行" placeholder="请填写开户行" /> <van-field v-model="obj.bankOpen" label="开户行" placeholder="请填写开户行" />
<van-field v-model="obj.bankNo" label="银行卡号" placeholder="请填写银行卡号" /> <van-field v-model="obj.bankNo" label="银行卡号" placeholder="请填写银行卡号" />
<div style="margin: 16px;"> <div class="submit_btn">
<van-button round block type="info" native-type="submit" @click="updateCardInfo">保存</van-button> <van-button type="primary" block @click="updateCardInfo">保存</van-button>
</div> </div>
</van-form> </van-form>
</van-popup> </van-popup>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment