|
@@ -8,20 +8,26 @@ Page({
|
|
|
data: {
|
|
|
tips:true,
|
|
|
servanteditlist:[],
|
|
|
+ newSubTypeNo:''
|
|
|
},
|
|
|
onLoad(subtypeNo) {
|
|
|
this.loadpage(subtypeNo);
|
|
|
},
|
|
|
loadpage(subtypeNo){
|
|
|
+ console.log("subtypeNo=" + subtypeNo.subtypeNo);
|
|
|
let employRelationNo = app.globalData.employRelationNo;
|
|
|
let params = {employRelationNo:employRelationNo}
|
|
|
request.httpServiceGet(apiUrl.getEmployerSubjectWhenEdit, params).then(data => {
|
|
|
+ console.log("data=" + data)
|
|
|
if (data.length > 0) {
|
|
|
//加载全部的类别
|
|
|
let subjectList={};
|
|
|
for(let i=0;i<data.length;i++){
|
|
|
if(data[i].subtypeNo==subtypeNo.subtypeNo){
|
|
|
subjectList=data[i];
|
|
|
+ this.setData({
|
|
|
+ newSubTypeNo:data[i].subtypeNo
|
|
|
+ })
|
|
|
console.log(subjectList);
|
|
|
}
|
|
|
}
|
|
@@ -56,7 +62,8 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
//console.log(servantselectedlist);
|
|
|
- request.httpServicePost(apiUrl.updateEmployerLove,{employRelationNo:employRelationNo,subjectList:servantselectedlist,subjectType:"SN000001"}).then(data=>{
|
|
|
+ console.log("dddddddd" + this.data.newSubTypeNo);
|
|
|
+ request.httpServicePost(apiUrl.updateEmployerLove,{employRelationNo:employRelationNo,subjectList:servantselectedlist,subjectType:"SN000001",subtypeNo:this.data.newSubTypeNo}).then(data=>{
|
|
|
my.alert({
|
|
|
title: '提示',
|
|
|
content: '设置完成',
|