中继服务字段补齐,修改中继服务连接配置,新增连通性测试

master
anthonyywj2 3 years ago
parent 02806afe41
commit addf41b073

@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>UDI管理系统数据同步</title><link rel=stylesheet href=https://unpkg.com/element-ui/lib/theme-chalk/index.css><link href=css/home.e41d2a8b.css rel=prefetch><link href=js/home.e4010a8f.js rel=prefetch><link href=css/app.78335485.css rel=preload as=style><link href=css/chunk-vendors.9b8ad7f5.css rel=preload as=style><link href=js/app.332ea8a4.js rel=preload as=script><link href=js/chunk-vendors.d817ae0e.js rel=preload as=script><link href=css/chunk-vendors.9b8ad7f5.css rel=stylesheet><link href=css/app.78335485.css rel=stylesheet></head><body><div id=app></div><script src=./tinymce4.7.5/tinymce.min.js></script><script src=./vue.runtime.min.js></script><script src=./vuex.min.js></script><script src=./vue-router.min.js></script><script src=./index.js></script>ga('create', 'UA-110990780-1', 'auto'); ga('send', 'pageview'); window.addEventListener('hashchange', function () { ga('set', 'page', window.location.href); ga('send', 'pageview'); });<script src=js/chunk-vendors.d817ae0e.js></script><script src=js/app.332ea8a4.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>UDI管理系统数据同步</title><link rel=stylesheet href=https://unpkg.com/element-ui/lib/theme-chalk/index.css><link href=css/home.e41d2a8b.css rel=prefetch><link href=js/home.e4010a8f.js rel=prefetch><link href=css/app.14ce5834.css rel=preload as=style><link href=css/chunk-vendors.9b8ad7f5.css rel=preload as=style><link href=js/app.d0b6c862.js rel=preload as=script><link href=js/chunk-vendors.d817ae0e.js rel=preload as=script><link href=css/chunk-vendors.9b8ad7f5.css rel=stylesheet><link href=css/app.14ce5834.css rel=stylesheet></head><body><div id=app></div><script src=./tinymce4.7.5/tinymce.min.js></script><script src=./vue.runtime.min.js></script><script src=./vuex.min.js></script><script src=./vue-router.min.js></script><script src=./index.js></script>ga('create', 'UA-110990780-1', 'auto'); ga('send', 'pageview'); window.addEventListener('hashchange', function () { ga('set', 'page', window.location.href); ga('send', 'pageview'); });<script src=js/chunk-vendors.d817ae0e.js></script><script src=js/app.d0b6c862.js></script></body></html>

@ -18,7 +18,6 @@ export function deleteUploadStatus(params) {
}
//下载任务接口
export function filterDownloadStatus(params) {
return axios({
@ -35,3 +34,12 @@ export function deleteDownloadStatus(params) {
params: params
})
}
export function connectUpper(params) {
return axios({
url: "/sps/sync/connect/test",
method: 'get',
params: params
})
}

@ -24,7 +24,10 @@
<el-form-item>
<el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="testConnect"></el-button>
</el-button-group>
</el-form-item>
</el-row>
@ -131,7 +134,7 @@
</template>
<script>
import {filterUploadStatus, deleteUploadStatus, updateConfig} from "../../api/sync/dataSyncStatus";
import {filterUploadStatus, deleteUploadStatus, updateConfig, connectUpper} from "../../api/sync/dataSyncStatus";
import store from "@/store";
export default {
@ -226,8 +229,26 @@ export default {
});
},
saveConfig() {
testConnect() {
let query = {};
connectUpper(query)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("连接成功!");
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
});
},
saveConfig() {
updateConfig(this.configQuery)
.then((response) => {
this.loading = false;
@ -239,7 +260,8 @@ export default {
.catch(() => {
this.loading = false;
});
},
}
,
cancelDialog(val) {
@ -350,7 +372,8 @@ export default {
2: "danger",
};
return statusMap[status];
},
}
,
detailDialog(id) {
this.syncVisible = true;
this.list.forEach(item => {
@ -362,8 +385,10 @@ export default {
},
mounted() {
},
components: {},
}
,
components: {}
,
created() {
this.headers = {
ADMIN_ID: store.getters.adminId,
@ -371,8 +396,10 @@ export default {
};
this.getList();
this.getConfig();
},
};
}
,
}
;
</script>
<style>
.itemTag {

Loading…
Cancel
Save