Commit 7474b7db by lishengfu

update

parent 2136ab09
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</div> </div>
</div> </div>
<van-popup v-model="show" position="right" :style="{ height: '100%',width: '90%' }"> <van-popup v-model="show" position="right" :style="{ height: '100%',width: '100%' }">
<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="请填写固定电话" />
...@@ -118,6 +118,9 @@ export default class contactInfo extends Vue { ...@@ -118,6 +118,9 @@ export default class contactInfo extends Vue {
.then(res => { .then(res => {
if (res == true) { if (res == true) {
Toast.success("保存成功"); Toast.success("保存成功");
this.show = false;
}else{
Toast.success(res.message);
} }
}) })
.catch(error => { .catch(error => {
......
...@@ -48,7 +48,7 @@ export default class eduExperience extends Vue { ...@@ -48,7 +48,7 @@ export default class eduExperience extends Vue {
}; };
this.$server.EmployeeService.getEduExperience(params) this.$server.EmployeeService.getEduExperience(params)
.then(res => { .then(res => {
// console.log("res=" + JSON.stringify(res)); console.log("edu-res=" + JSON.stringify(res));
this.obj = res; this.obj = res;
}) })
.catch(error => {}); .catch(error => {});
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<label>{{obj.bankNo}}</label> <label>{{obj.bankNo}}</label>
</div> </div>
</div> </div>
<van-popup v-model="show" position="right" :style="{ height: '100%',width: '90%' }"> <van-popup v-model="show" position="right" :style="{ height: '100%',width: '100%' }">
<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="请填写银行名称" />
...@@ -78,7 +78,12 @@ export default class wageCardInfo extends Vue { ...@@ -78,7 +78,12 @@ export default class wageCardInfo extends Vue {
}; };
this.$server.EmployeeService.saveWageCardInfo(params) this.$server.EmployeeService.saveWageCardInfo(params)
.then(res => { .then(res => {
console.log(res); if(res==true){
Toast.success("保存成功");
this.show = false;
}else{
Toast.success(res.message);
}
}) })
.catch(error => { .catch(error => {
console.log(error); console.log(error);
......
...@@ -42,10 +42,7 @@ class Request { ...@@ -42,10 +42,7 @@ class Request {
*/ */
public put(url: string, params: any = {}, headers: any = {}) { public put(url: string, params: any = {}, headers: any = {}) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
resolve(http.put(`${url}?${GetCommonPms()}`, { resolve(http.put(`${url}?${GetCommonPms()}`, params, {headers: headers}));
params: params,
headers: headers
}));
}) })
} }
......
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