|
|
@@ -515,6 +515,9 @@
|
|
|
<el-input v-model="attributionform.password" placeholder="请输入密码"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="11" >
|
|
|
+ <el-button style="height: 34px;line-height: 10px; margin-left: 100px;" @click="checkLogin">检测登录</el-button>
|
|
|
+ </el-col>
|
|
|
</div>
|
|
|
<template v-if="attributionform.fields.length > 0">
|
|
|
<el-col :span="24">
|
|
|
@@ -4378,6 +4381,54 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ },
|
|
|
+ //检测python登录
|
|
|
+ checkLogin(){
|
|
|
+ if (this.operType == "ADD") {
|
|
|
+ let params = {
|
|
|
+ agreementId: this.agreementId,
|
|
|
+ agreement: this.agreement,
|
|
|
+ attribution: this.attributionform,
|
|
|
+ dept: this.dept,
|
|
|
+ };
|
|
|
+ this.$api.insCompany.checkLogin(params).then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ let upparams = {
|
|
|
+ agreementId: this.agreementId,
|
|
|
+ agreement: this.agreement,
|
|
|
+ attribution: this.attributionform,
|
|
|
+ dept: this.dept,
|
|
|
+ };
|
|
|
+ this.$api.insCompany
|
|
|
+ .checkLogin(upparams)
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
//分页条数
|
|
|
handleSizeChange(val) {
|