|
@@ -72,6 +72,7 @@ function saveBtn(){
|
|
|
|
|
|
|
|
// 新增
|
|
// 新增
|
|
|
function htAdd(){
|
|
function htAdd(){
|
|
|
|
|
+
|
|
|
let arr = [];
|
|
let arr = [];
|
|
|
if (!formData.realName) {
|
|
if (!formData.realName) {
|
|
|
arr.push('姓名');
|
|
arr.push('姓名');
|
|
@@ -87,6 +88,10 @@ function htAdd(){
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '新增中...',
|
|
|
|
|
+ mask: true
|
|
|
|
|
+ });
|
|
|
const opt = {
|
|
const opt = {
|
|
|
realName: formData.realName,
|
|
realName: formData.realName,
|
|
|
userName: formData.userName,
|
|
userName: formData.userName,
|
|
@@ -101,6 +106,8 @@ function htAdd(){
|
|
|
})
|
|
})
|
|
|
goUpPage();
|
|
goUpPage();
|
|
|
}
|
|
}
|
|
|
|
|
+ }).finally(()=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -136,7 +143,10 @@ function htEditor(){
|
|
|
})
|
|
})
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '更新中...',
|
|
|
|
|
+ mask: true
|
|
|
|
|
+ });
|
|
|
const opt = {
|
|
const opt = {
|
|
|
userId: formData.userId,
|
|
userId: formData.userId,
|
|
|
realName: formData.realName,
|
|
realName: formData.realName,
|
|
@@ -145,7 +155,6 @@ function htEditor(){
|
|
|
idcard: formData.idcard,
|
|
idcard: formData.idcard,
|
|
|
jutidizhi: formData.jutidizhi,
|
|
jutidizhi: formData.jutidizhi,
|
|
|
}
|
|
}
|
|
|
- console.log('opt',opt);
|
|
|
|
|
khApi.getKehuUpdate(opt).then(res => {
|
|
khApi.getKehuUpdate(opt).then(res => {
|
|
|
if (res.data) {
|
|
if (res.data) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -153,6 +162,8 @@ function htEditor(){
|
|
|
})
|
|
})
|
|
|
goUpPage();
|
|
goUpPage();
|
|
|
}
|
|
}
|
|
|
|
|
+ }).finally(()=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|