|
|
|
@ -146,11 +146,13 @@
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="editLogin.platformUsername"
|
|
|
|
|
placeholder="请输入账号"
|
|
|
|
|
style="width: 75%"
|
|
|
|
|
style="width: 70%"
|
|
|
|
|
size="small"
|
|
|
|
|
@input="change()"
|
|
|
|
|
></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>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
@ -162,7 +164,7 @@
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="editLogin.platformPassword"
|
|
|
|
|
placeholder="请输入密码"
|
|
|
|
|
style="width: 75%"
|
|
|
|
|
style="width: 70%"
|
|
|
|
|
size="small"
|
|
|
|
|
type="password"
|
|
|
|
|
show-password
|
|
|
|
@ -265,9 +267,13 @@ import {
|
|
|
|
|
linkPlatform,
|
|
|
|
|
getLinkPlatformList,
|
|
|
|
|
unbindPlatform,
|
|
|
|
|
getTargetActions, getTargetInv, getTargetSubInv
|
|
|
|
|
getTargetActions,
|
|
|
|
|
getTargetInv,
|
|
|
|
|
getTargetSubInv,
|
|
|
|
|
testUserInfo
|
|
|
|
|
} from "../../api/auth/platform";
|
|
|
|
|
import {getBusTypeByUser} from "@/api/warehouse/BusRole";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
@ -375,7 +381,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
resetForm() {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs['editLogin'].resetFields();
|
|
|
|
|
this.$refs["editLogin"].clearValidate();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
@ -643,6 +648,7 @@ export default {
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "关联成功"
|
|
|
|
|
});
|
|
|
|
|
this.targetPlatformEdit = true;
|
|
|
|
|
this.cancelDialog();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
@ -668,7 +674,32 @@ export default {
|
|
|
|
|
this.getTargetActions();
|
|
|
|
|
},
|
|
|
|
|
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() {
|
|
|
|
|