master
parent
c8ca1bf0c1
commit
ffe2db7832
|
@ -7,6 +7,13 @@ export function findConnectorList(data) {
|
||||||
data:data
|
data:data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function findApiList(data) {
|
||||||
|
return request({
|
||||||
|
url: '/mart/connector/findApiList',
|
||||||
|
method: 'post',
|
||||||
|
data:data
|
||||||
|
})
|
||||||
|
}
|
||||||
export function addConnector(data) {
|
export function addConnector(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/mart/connector/addConnector',
|
url: '/mart/connector/addConnector',
|
||||||
|
|
|
@ -197,7 +197,7 @@
|
||||||
<script>
|
<script>
|
||||||
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||||
//例如:import 《组件名称》 from '《组件路径》,
|
//例如:import 《组件名称》 from '《组件路径》,
|
||||||
import {findConnectorList} from "@/api/port/port";
|
import {findApiList} from "@/api/port/port";
|
||||||
import index from "vuex";
|
import index from "vuex";
|
||||||
import {phonePlace} from "@/api/port/port";
|
import {phonePlace} from "@/api/port/port";
|
||||||
import {getIpPlace} from "@/api/port/port";
|
import {getIpPlace} from "@/api/port/port";
|
||||||
|
@ -431,8 +431,8 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
findConnectorList(){
|
findApiList(){
|
||||||
findConnectorList(this.form).then((res)=>{
|
findApiList(this.form).then((res)=>{
|
||||||
this.connectorList=res.data;
|
this.connectorList=res.data;
|
||||||
console.log(res.data);
|
console.log(res.data);
|
||||||
})
|
})
|
||||||
|
@ -441,7 +441,7 @@ export default {
|
||||||
//生命周期 - 创建完成(可以访问当前this实例)",
|
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||||
created() {
|
created() {
|
||||||
this.fetchUserBalance();
|
this.fetchUserBalance();
|
||||||
this.findConnectorList();
|
this.findApiList();
|
||||||
},
|
},
|
||||||
//生命周期 - 挂载完成(可以访问DOM元素)",
|
//生命周期 - 挂载完成(可以访问DOM元素)",
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
Loading…
Reference in New Issue