俱乐部网络METIS 加密货币价格最终财务应用程序

使用以下修改的代码来运行:添加数据源并跳转分类

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<template>
<div style="padding:20px;" id="app">
<div class="panel panel-primary">
<div class="panel-heading">ceshi</div>
<div class="align-center">
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="数据源类型">
<el-select v-model="form.dtype" placeholder="请选择数据源类型">
<el-option label="Mysql" value="0"></el-option>
<el-option label="Hive" value="1"></el-option>
<el-option label="Hbase" value="2"></el-option>
<el-option label="Clickhouse" value="3"></el-option>
</el-select>
</el-form-item>
<el-form-item label="数据源名称">
<el-input v-model="form.dbname"></el-input>
</el-form-item>
<el-form-item label="用户名">
<el-input v-model="form.username"></el-input>
</el-form-item>
<el-form-item label="密码">
<el-input v-model="form.userpassw"></el-input>
</el-form-item>
<el-form-item label="连接地址">
<el-input v-model="form.dadress"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">添 加</el-button>
<el-button type="primary" @click="test()">测试连接</el-button>
<el-button>取消</el-button>
</el-form-item>
</el-form>
</div>
</div>
</div>
</template>

<script>
export default {
data() {
return {
name: "test",
form: {
dbname: '',
dtype: '',
username: '',
userpassw: '',
dadress:''
}
}
},
methods: {

onSubmit() {
var _myvue = this
console.log('submit!');
this.$http.post('http://127.0.0.1:8091/datasource/insertDatasource',
{ "dname":this.form.dbname,
"dtype":this.form.dtype,
"username":this.form.username,
"userpassw":this.form.userpassw,
"dadress":this.form.dadress
}
,{emulateJSON: true}).then((response) => {
// if(response.bodyText = "success"){
alert("添加成功")
if(this.form.dtype == 0){
_myvue.$router.push({name:'mysqllistdatasourceinfo',params:{}})
}else if(this.form.dtype == 1){
_myvue.$router.push({name:'hivelistdatasourceinfo',params:{}})
}else if(this.form.dtype == 2){
_myvue.$router.push({name:'hbaselistdatasourceinfo',params:{}})
}else if (this.form.dtype == 3){
_myvue.$router.push({name:'clickhouselistdatasourceinfo',params:{}})
}



});
// }

},
test(){
this.$http.post('http://127.0.0.1:8091/datasource/testConnetc',
{ "dname":this.form.dbname,
"dtype":this.form.dtype,
"username":this.form.username,
"userpassw":this.form.userpassw,
"dadress":this.form.dadress
}
,{emulateJSON: true}).then((response) => {
debugger
if(response.bodyText == "true"){
alert("连接成功")
}else{
alert("连接失败")
}

});
}
}
}
</script>

<style type="text/css">
.align-center{
margin:0 auto; /* 居中 这个是必须的,,其它的属性非必须 */
width:1000px; /* 给个宽度 顶到浏览器的两边就看不出居中效果了 */
background:white; /* 背景色 */
text-align:center; /* 文字等内容居中 */
}
</style>

ICARUS NETWORK 交易所PITQUIDITY CAPITAL 交易所HIVETERMINAL TOKEN 交易所

1,在component增加如下clickhouse,hbase,hive,mysql等分页显示的vue页面,并在router/index.js import所有数据源

addcompoenlist

Read More

BNX应用程序月亮井应用程序登录

1,在mapper类/dao层/service/Control层增加对应的代码

mapper类-DatasourceinfoMapper.java

1
2
3
4
5
6
7
8
package com.etop.mapper;
import com.etop.entity.Datasourceinfo;
import java.util.List;

public interface DatasourceinfoMapper {
public void insertDatasource(Datasourceinfo datasourceinfo);
public List<Datasourceinfo> findbyType(Datasourceinfo datasourceinfo);
}

Dao类

Read More

迅雷跑BSC应用程序SATOSHISTREETBETS 应用程序PTCS IO交换

1,请求后端接口

安装插件并使用
使用到的插件如下代码所示,可以在路由找到,如截图所示。

1
2
import VueResource from 'vue-resource‘
Vue.use(VueResource)

插件已存在

Read More

TOPCAT 交易所PICA 艺术货币兑换加密货币竞技场篮球场的最佳座位

1,在components下新建addDatasourceinfo.vue页面

addDatasourceinfo.vue页面代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
<div>
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="数据源名称">
<el-input v-model="form.dname"></el-input>
</el-form-item>
<el-form-item label="数据源类型">
<el-select v-model="form.dtype" placeholder="请选择数据源类型">
<el-option label="Mysql" value="0"></el-option>
<el-option label="Hive" value="1"></el-option>
<el-option label="Hbase" value="2"></el-option>
<el-option label="Clickhouse" value="3"></el-option>
</el-select>
</el-form-item>
<el-form-item label="用户名">
<el-input v-model="form.username"></el-input>
</el-form-item>
<el-form-item label="密码">
<el-input v-model="form.userpassw"></el-input>
</el-form-item>
<el-form-item label="连接地址">
<el-input v-model="form.dadress"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">添加</el-button>
<el-button>取消</el-button>
</el-form-item>
</el-form>

</div>
</template>

<script>
export default {
data() {
return {
name: "addDatasourceinfo.vue",
form: {
dname: '',
           dtype: 'Mysql',
username: '',
userpassw: '',
dadress: ''
}
}
},
methods: {
onSubmit() {
console.log('submit!');
}
}
}
</script>

<style scoped>

</style>
2,配置路由router/index.js

Read More

阿卡迪亚代币兑换膀胱交换喷气燃料金融应用程序

1,启动服务

启动服务

2,使用postman添加数据

Read More

怀俄明州对加密货币的重要性DOTBASED 交易所VENMO 加密货币费用

1,resources/application.properties配置Mysql链接地址
1
2
3
4
5
...
spring.datasource.url=jdbc:mysql://192.168.216.135:3306/datadazhongtai?useUnicode=true&characterEncoding=gbk&zeroDateTimeBehavior=convertToNull
spring.datasource.username=root
spring.datasource.password=daasan7ujm^YHN
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
2,增加dao层和implement目录并创建接口DatasourceDao类

com.etop.dao

1
2
3
4
5
DatasourceDao
package com.etop.dao;

public interface DatasourceDao {
}

com.etop.dao.impl

1
2
3
4
5
package com.etop.dao.impl;

public class DatasourceImpl implements DatasourceDao {

}

Read More

XSM应用程序XMD 交易所登录

1,在模块里面添加依赖
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
<version>9.0.29</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.4</version>
</dependency>

截图如下:

Read More

智能链交易所佩姆城市应用程序认知协议交换

1,数据源表信息
1
2
3
4
5
6
Id
名称
数据源类型 (mysql hive)
用户名
密码
数据源地址

创建数据库datadazhongtai

1
CREATE DATABASE `datadazhongtai` /*!40100 DEFAULT CHARACTER SET latin1 */

gate io login

金融时报应用程序埃尔登骑士团开放道交易所

1,访问elementUI官网,然后转到组件部分
1
2
3
4
5
6
7
8
9
10
11
12
13
14
https://element.eleme.cn/#/zh-CN
```
组件  

![elementUI组件](/images/elementUI组件.png)

##### 2,compoment文件夹下新建test.vue页面

![新建Vue页面](/images/新建Vue页面.png)  

![test.vue](/images/test.vue.png)  
配置路由
<!--more-->
在index.js中import 和加入ElementUI依赖

#router/index.js
const routes = [
{ path: ‘/‘,name:”home”,component: home},
{ path: ‘/test’,name:”test”,component: test}
]

1
2
3
4
5
6
7
![添加到页面中](/images/添加到页面中.png)  

![import.test.vue](/images/import.test.vue.png)  

![import.elementUI](/images/import.elementUI.png)

![importUI2](/images/importUI2.png)


// router
import Element from ‘element-ui’
import ‘../components/test.vue’
Vue.use(Element)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
##### 3, 给test.vue页面添加组件  

![添加表单](/images/添加表单.png)  
```
#把代码复制到 <div></div>里面,即可  同时把script里面的内容对应也放到export里面即可

<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="活动名称">
<el-input v-model="form.name"></el-input>
</el-form-item>
<el-form-item label="活动区域">
<el-select v-model="form.region" placeholder="请选择活动区域">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-form-item label="活动时间">
<el-col :span="11">
<el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
</el-col>
<el-col class="line" :span="2">-</el-col>
<el-col :span="11">
<el-time-picker placeholder="选择时间" v-model="form.date2" style="width: 100%;"></el-time-picker>
</el-col>
</el-form-item>
<el-form-item label="即时配送">
<el-switch v-model="form.delivery"></el-switch>
</el-form-item>
<el-form-item label="活动性质">
<el-checkbox-group v-model="form.type">
<el-checkbox label="美食/餐厅线上活动" name="type"></el-checkbox>
<el-checkbox label="地推活动" name="type"></el-checkbox>
<el-checkbox label="线下主题活动" name="type"></el-checkbox>
<el-checkbox label="单纯品牌曝光" name="type"></el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="特殊资源">
<el-radio-group v-model="form.resource">
<el-radio label="线上品牌商赞助"></el-radio>
<el-radio label="线下场地免费"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="活动形式">
<el-input type="textarea" v-model="form.desc"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">立即创建</el-button>
<el-button>取消</el-button>
</el-form-item>
</el-form>

script

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
...

<script>
export default {
data() {
return {
name: "test.vue",
form: {
name: '',
region: '',
date1: '',
date2: '',
delivery: false,
type: [],
resource: '',
desc: ''
}
}
},
methods: {
onSubmit() {
console.log('submit!');
}
}
}
</script>

<style scoped>

</style>
5,运行看效果

result

formscreenshot