Commit 29031758 authored by 白舜's avatar 白舜 🎱

feat(优化需求): 4.1.3 - 17

parent ffe774ec
...@@ -151,9 +151,7 @@ ...@@ -151,9 +151,7 @@
>取消</el-button >取消</el-button
> >
<el-button type="info" @click="testUrl"> <el-button type="info" @click="testUrl">
<bg-icon style="font-size: 12px; color: #fff; margin-right: 8px" icon="#bg-ic-checklist"></bg-icon> <bg-icon style="font-size: 12px; color: #fff; margin-right: 8px" icon="#bg-ic-checklist"></bg-icon>测试连接</el-button>
测试链接
</el-button>
<el-button type="primary" :disabled="!testSuccess" @click="postData">保存</el-button> <el-button type="primary" :disabled="!testSuccess" @click="postData">保存</el-button>
</div> </div>
</template> </template>
...@@ -306,7 +304,7 @@ const state = reactive({ ...@@ -306,7 +304,7 @@ const state = reactive({
nameWidth: 144, nameWidth: 144,
}, },
], ],
testSuccess: false, // 测试接结果 testSuccess: false, // 测试接结果
}); });
const getRoleRows = () => { const getRoleRows = () => {
let params = { ...state.filter }; let params = { ...state.filter };
...@@ -400,15 +398,15 @@ const testUrl = () => { ...@@ -400,15 +398,15 @@ const testUrl = () => {
}; };
axios.post(`/apaas/application/v5/platform/check`, params).then((res) => { axios.post(`/apaas/application/v5/platform/check`, params).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
ElMessage.success("链接测试通过!"); ElMessage.success("测试连接通过");
state.testSuccess = true; state.testSuccess = true;
} else { } else {
ElMessage.error(res.data.data); ElMessage.error("测试连接失败");
} }
}); });
} }
}); });
}; // 测试 }; // 测试
const postData = () => { const postData = () => {
let params = { let params = {
...state.formData, ...state.formData,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment