数据库文档重构,细节修改

This commit is contained in:
暮光:城中城
2019-07-04 23:39:55 +08:00
parent 6c1f4e123a
commit 67c6ffc877
10 changed files with 309 additions and 246 deletions

View File

@@ -5,14 +5,14 @@ var href = window.location.href;
var _fn = {
href: href,
// 本地启动时使用本地接口调试
HOST: 'http://local.zyplayer.com:8083/zyplayer-doc-manage',
HOST1: 'http://local.zyplayer.com:8083/zyplayer-doc-manage',
// HOST: 'http://local.zyplayer.com:8083/zyplayer-doc-manage',
// HOST1: 'http://local.zyplayer.com:8083/zyplayer-doc-manage',
// 也可以直接使用线上的服务调试
// HOST: 'http://doc.zyplayer.com/zyplayer-doc-manage',
// HOST1: 'http://doc.zyplayer.com/zyplayer-doc-manage',
// 打包时使用下面这两行,文件就放在根目录下,所以当前路劲就好
// HOST: './',
// HOST1: './',
HOST: './',
HOST1: './',
mixUrl: function (host, url) {
var p;

View File

@@ -23,6 +23,12 @@
</div>
<!--增加数据源弹窗-->
<el-dialog :inline="true" :title="newDatasource.id>0?'编辑数据源':'新增数据源'" :visible.sync="datasourceDialogVisible" width="600px">
<el-alert
title="重要提醒"
description="请录入正确可用的数据库连接账号密码信息否则初始化数据源失败将影响整个系统有可能需要重启服务才能解决"
type="warning" :closable="false"
show-icon style="margin-bottom: 10px;">
</el-alert>
<el-form label-width="120px">
<el-form-item label="驱动类">
<el-select v-model="newDatasource.driverClassName" placeholder="驱动类" style="width: 100%">
@@ -69,6 +75,7 @@
methods: {
addDatasource() {
this.datasourceDialogVisible = true;
this.newDatasource = {driverClassName: "", sourceUrl: "", sourceName: "", sourcePassword: ""};
},
editDatasource(row) {
this.newDatasource = row;
@@ -80,14 +87,11 @@
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
var datasourceList = [];
for (var i = 0; i < this.datasourceList.length; i++) {
if (this.datasourceList[i].id != row.id) {
datasourceList.push(this.datasourceList[i]);
}
}
this.datasourceList = datasourceList;
this.$message.success("删除成功");
row.yn = 0;
this.common.post(this.apilist1.manageUpdateDatasource, row, function (json) {
app.$message.success("删除成功");
app.getDatasourceList();
});
}).catch(()=>{});
},
saveDatasource() {