Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
M
mo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abby Cin
mo
Commits
5cdd0397
Commit
5cdd0397
authored
Jun 01, 2020
by
abbycin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readme
parent
8ebfa65c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
33 deletions
+83
-33
README.md
README.md
+39
-0
manage-db.vue
frontend/src/components/manage-db.vue
+42
-30
manage-server.vue
frontend/src/components/manage-server.vue
+2
-3
No files found.
README.md
0 → 100644
View file @
5cdd0397
# 编译
```
npm install archiver
node build.js
```
如果一切正常会生成目录
`mo`
和压缩包
`mo.zip`
# 安装
解压
`mo.zip`
到合适的目录,并进入到这个目录
### Windows
Windows 10 需要管理员运行cmd
```
.\backend.exe -run install
```
即可安装为服务
### Linux
可能需要给
`backend`
可执行权限,切换到root
```
chmod +x backend
./backend -run install
```
即可安装为服务
----
其他命令行参数(backend -run arg), arg可选值如下
```
start
stop
restart
install
uninstall
```
\ No newline at end of file
frontend/src/components/manage-db.vue
View file @
5cdd0397
...
...
@@ -145,6 +145,10 @@ export default {
this
.
form
.
getFieldDecorator
(
v
,
{
initialValue
:
""
});
});
this
.
refresh
();
},
methods
:
{
refresh
()
{
request
(
"GET"
,
"/api/db"
,
...
...
@@ -164,7 +168,6 @@ export default {
}
);
},
methods
:
{
removeOne
(
index
)
{
this
.
modified
.
push
(
this
.
data
[
index
].
title
);
this
.
data
.
splice
(
index
,
1
);
...
...
@@ -264,9 +267,10 @@ export default {
if
(
ok
.
code
!==
0
)
{
throw
ok
.
msg
;
}
for
(
let
[
_
,
v
]
of
oldData
)
{
for
(
let
[
_
,
v
]
of
oldData
)
{
this
.
orgData
.
push
(
v
);
}
this
.
refresh
();
this
.
$message
.
info
(
"所以更改提交成功"
);
},
err
=>
{
...
...
@@ -275,7 +279,7 @@ export default {
);
},
resetChange
()
{
this
.
data
=
_
.
cloneDeep
(
this
.
orgData
);
this
.
refresh
(
);
this
.
searchText
=
""
;
this
.
$message
.
info
(
"所以更改已回退"
);
},
...
...
@@ -288,7 +292,7 @@ export default {
},
partition
(
dbname
)
{
if
(
dbname
===
null
||
dbname
.
length
===
0
)
{
if
(
dbname
===
null
||
dbname
.
length
===
0
)
{
this
.
$message
.
error
(
`数据库不能为空`
);
return
;
}
...
...
@@ -319,14 +323,22 @@ export default {
};
this
.
partitionIsRunning
=
true
;
url
=
`
${
getu
(
url
)}
/api/
${
dbname
}
/ikm6/system/runCreatePartitionTableTask`
;
request
(
"GET"
,
url
,
null
,
ok
=>
{
url
=
`
${
getu
(
url
)}
/api/
${
dbname
}
/ikm6/system/runCreatePartitionTableTask`
;
request
(
"GET"
,
url
,
null
,
ok
=>
{
this
.
partitionIsRunning
=
false
;
this
.
$message
.
info
(
`分表请求已提交,结果为:
${
ok
}
`
);
},
err
=>
{
},
err
=>
{
this
.
partitionIsRunning
=
false
;
this
.
$message
.
error
(
`分表创建出错,结果为:
${
err
}
`
);
});
}
);
}
}
};
...
...
frontend/src/components/manage-server.vue
View file @
5cdd0397
<
template
>
<a-form
:form=
"form"
@
submit=
"handleUpdate"
>
<a-form-item
v-bind=
"formItemLayout"
label=
"Server Root"
extra=
"绝对路径,例如 /opt/tophttpserver/1.1.9"
>
...
...
@@ -19,7 +18,7 @@
]"
/>
</a-form-item>
<a-form-item
v-bind=
"formItemLayout"
label=
"Service URL"
extra=
"检查tophttpserver是否可用,仅支持GET"
>
<a-form-item
label=
"Service URL"
extra=
"检查tophttpserver是否可用,仅支持GET"
>
<a-row
:gutter=
"24"
>
<a-col
:span=
"22"
>
<a-input
...
...
@@ -34,7 +33,7 @@
</a-col>
</a-row>
</a-form-item>
<a-form-item
v-bind=
"tailFormItemLayout"
>
<a-form-item
>
<a-button
:disabled=
"restart"
type=
"danger"
@
click=
"handleRestart"
>
重启 httpserver
</a-button>
<a-button
type=
"primary"
html-type=
"submit"
style=
"float: right"
>
更新配置
</a-button>
</a-form-item>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment