![]()
@@ -175,35 +175,16 @@ export default {
// 表单提交
dataFormSubmitHandle() {
this.$refs["dataForm"].validate((valid, messageObj) => {
+ console.log(valid, messageObj);
if (!valid) {
app.util.validateRule(messageObj);
+ return;
}
this.startLoading();
- // const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/customerstaff/customerlist'
const url = "/epmetuser/customerstaff/customerlist";
const params = {
- phone: this.dataForm.phone,
+ phone: encryptedData(this.pubKey, this.dataForm.phone),
};
- // this.$http
- // .post(url, params).then(({ data })=> {
- // console.log('res--comll', data)
- // if (data.data.length === 0) {
- // //没有客户,提示无法登录
- // this.$message.error('账号不存在')
- // this.endLoading()
- // } else if (data.data.length === 1) {
- // this.selectCustomer(data.data[0])
- // } else {
- // this.endLoading()
- // this.diaVisible = true
- // this.$nextTick(() => {
- // this.tableData = data.data
- // })
- // }
- // }).catch((err) => {
- // this.endLoading()
- // this.$message.error(err)
- // })
window.app.ajax.post(
url,
params,
@@ -261,6 +242,7 @@ export default {
this.dataForm.customerId = row.customerId;
let param = {};
Object.assign(param, this.dataForm);
+ param.phone = encryptedData(this.pubKey, this.dataForm.phone);
param.password = encryptedData(this.pubKey, this.dataForm.password);
this.$http
.post(url, param)