|
@ -11,6 +11,12 @@ |
|
|
<el-form-item label="端口值"> |
|
|
<el-form-item label="端口值"> |
|
|
<el-input v-model="config.system.addr"></el-input> |
|
|
<el-input v-model="config.system.addr"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="数据库类型"> |
|
|
|
|
|
<el-select v-model="config.system.dbType"> |
|
|
|
|
|
<el-option value="sqlite"></el-option> |
|
|
|
|
|
<el-option value="mysql"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
<h2>jwt签名</h2> |
|
|
<h2>jwt签名</h2> |
|
|
<el-form-item label="jwt签名"> |
|
|
<el-form-item label="jwt签名"> |
|
|
<el-input v-model="config.jwt.signingKey"></el-input> |
|
|
<el-input v-model="config.jwt.signingKey"></el-input> |
|
@ -19,28 +25,42 @@ |
|
|
<el-form-item label="模型地址"> |
|
|
<el-form-item label="模型地址"> |
|
|
<el-input v-model="config.casbin.modelPath"></el-input> |
|
|
<el-input v-model="config.casbin.modelPath"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<h2>mysql admin数据库配置</h2> |
|
|
|
|
|
<el-form-item label="username"> |
|
|
|
|
|
<el-input v-model="config.mysql.username"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="password"> |
|
|
|
|
|
<el-input v-model="config.mysql.password"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="path"> |
|
|
|
|
|
<el-input v-model="config.mysql.path"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="dbname"> |
|
|
|
|
|
<el-input v-model="config.mysql.dbname"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="maxIdleConns"> |
|
|
|
|
|
<el-input v-model.number="config.mysql.maxIdleConns"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="maxOpenConns"> |
|
|
|
|
|
<el-input v-model.number="config.mysql.maxOpenConns"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="logMode"> |
|
|
|
|
|
<el-checkbox v-model="config.log.logMode"></el-checkbox> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<template v-show="config.system.dbType == 'mysql'"> |
|
|
|
|
|
<h2>mysql admin数据库配置</h2> |
|
|
|
|
|
<el-form-item label="username"> |
|
|
|
|
|
<el-input v-model="config.mysql.username"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="password"> |
|
|
|
|
|
<el-input v-model="config.mysql.password"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="path"> |
|
|
|
|
|
<el-input v-model="config.mysql.path"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="dbname"> |
|
|
|
|
|
<el-input v-model="config.mysql.dbname"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="maxIdleConns"> |
|
|
|
|
|
<el-input v-model.number="config.mysql.maxIdleConns"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="maxOpenConns"> |
|
|
|
|
|
<el-input v-model.number="config.mysql.maxOpenConns"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="logMode"> |
|
|
|
|
|
<el-checkbox v-model="config.log.logMode"></el-checkbox> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-show="config.system.dbType == 'sqlite'"> |
|
|
|
|
|
<h2>sqlite admin数据库配置</h2> |
|
|
|
|
|
<el-form-item label="path"> |
|
|
|
|
|
<el-input v-model="config.sqlite.path"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="config"> |
|
|
|
|
|
<el-input v-model="config.sqlite.config"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="logMode"> |
|
|
|
|
|
<el-checkbox v-model="config.sqlite.logMode"></el-checkbox> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</template> |
|
|
<h2>Redis admin数据库配置</h2> |
|
|
<h2>Redis admin数据库配置</h2> |
|
|
<el-form-item label="addr"> |
|
|
<el-form-item label="addr"> |
|
|
<el-input v-model="config.redis.addr"></el-input> |
|
|
<el-input v-model="config.redis.addr"></el-input> |
|
@ -104,6 +124,7 @@ export default { |
|
|
jwt: {}, |
|
|
jwt: {}, |
|
|
casbin: {}, |
|
|
casbin: {}, |
|
|
mysql: {}, |
|
|
mysql: {}, |
|
|
|
|
|
sqlite: {}, |
|
|
redis: {}, |
|
|
redis: {}, |
|
|
qiniu: {}, |
|
|
qiniu: {}, |
|
|
captcha:{}, |
|
|
captcha:{}, |
|
|