1.添加医院客户校验接口

2.调整页面效果
master
x_z 3 years ago
parent 58a86cd8ec
commit 3a718e1014

@ -82,4 +82,10 @@ export function testPlatformConnection(query) {
}) })
} }
export function testUserInfo(data) {
return axios({
url: "/udims/platform/testUserInfo",
method: "post",
data: data
});
}

@ -146,11 +146,13 @@
<el-input <el-input
v-model="editLogin.platformUsername" v-model="editLogin.platformUsername"
placeholder="请输入账号" placeholder="请输入账号"
style="width: 75%" style="width: 70%"
size="small" size="small"
@input="change()" @input="change()"
></el-input> ></el-input>
<el-button type="primary" style="margin-left: 3px;" @click.native="testUserInfo">账号验证</el-button> <el-button type="primary" style="margin-left: 3px;" @click.native="testUserInfo">
账号验证
</el-button>
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
@ -162,7 +164,7 @@
<el-input <el-input
v-model="editLogin.platformPassword" v-model="editLogin.platformPassword"
placeholder="请输入密码" placeholder="请输入密码"
style="width: 75%" style="width: 70%"
size="small" size="small"
type="password" type="password"
show-password show-password
@ -265,9 +267,13 @@ import {
linkPlatform, linkPlatform,
getLinkPlatformList, getLinkPlatformList,
unbindPlatform, unbindPlatform,
getTargetActions, getTargetInv, getTargetSubInv getTargetActions,
getTargetInv,
getTargetSubInv,
testUserInfo
} from "../../api/auth/platform"; } from "../../api/auth/platform";
import {getBusTypeByUser} from "@/api/warehouse/BusRole"; import {getBusTypeByUser} from "@/api/warehouse/BusRole";
import {isBlank} from "@/utils/strUtil";
export default { export default {
data() { data() {
@ -375,7 +381,6 @@ export default {
}, },
resetForm() { resetForm() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['editLogin'].resetFields();
this.$refs["editLogin"].clearValidate(); this.$refs["editLogin"].clearValidate();
}); });
}, },
@ -643,6 +648,7 @@ export default {
type: "success", type: "success",
message: "关联成功" message: "关联成功"
}); });
this.targetPlatformEdit = true;
this.cancelDialog(); this.cancelDialog();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
@ -668,7 +674,32 @@ export default {
this.getTargetActions(); this.getTargetActions();
}, },
testUserInfo() { testUserInfo() {
if (isBlank(this.editLogin.platformId)) {
this.$message.error("请选择自助平台");
return;
}
if (isBlank(this.editLogin.platformUsername)) {
this.$message.error("请输入用户名");
return;
}
if (isBlank(this.editLogin.platformPassword)) {
this.$message.error("请输入密码");
return;
}
let data = {
platformId: this.editLogin.platformId,
username: this.editLogin.platformUsername,
password: this.editLogin.platformPassword
};
testUserInfo(data).then((res) => {
if (res.code === 20000) {
this.targetPlatformEdit = false;
this.$message.success("验证成功");
} else {
this.$message.error(res.message);
}
}).catch((error) => {
});
}, },
}, },
mounted() { mounted() {

Loading…
Cancel
Save