应用中心 脚本管理、数据源管理修改与开发

This commit is contained in:
hyt 2024-06-21 10:13:58 +08:00
parent ae4f646c13
commit f227e0fc4b
3 changed files with 88 additions and 79 deletions

View File

@ -22,6 +22,7 @@ const whiteList = [
'/systemInit', '/systemInit',
'/databaseLogin', '/databaseLogin',
'/apiLogs' '/apiLogs'
] ]
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {

View File

@ -50,6 +50,11 @@ export const constantRoutes = [{
component: () => import('@/views/login'), component: () => import('@/views/login'),
hidden: true hidden: true
}, },
{
path: '/test',
component: () => import('@/views/test'),
hidden: true
},
{ {
path: '/register', path: '/register',
component: () => import('@/views/register/index'), component: () => import('@/views/register/index'),

View File

@ -229,7 +229,7 @@ export default {
id: item.dbName, id: item.dbName,
label: item.remark, label: item.remark,
dbId: item.id, dbId: item.id,
mdmId:item.mdmId, mdmId: item.mdmId
}) })
}) })
@ -415,12 +415,15 @@ export default {
return return
} }
// "dbType":"2",// 1 2 // "dbType":"2",// 1 2
console.log(this.mainTableData.length && !form.id,'this.mainTableData.length && !form.id',form,this.mainTableData.length,) console.log(this.mainTableData.length && !form.id, 'this.mainTableData.length && !form.id', form, this.mainTableData.length)
if (this.mainTableData.length && form.id) { if (!form.id) {
if (this.mainTableData.length) {
this.$set(form, 'dbType', 2) this.$set(form, 'dbType', 2)
} else { } else {
this.$set(form, 'dbType', 1) this.$set(form, 'dbType', 1)
} }
}
//id //id
if (form.id) { if (form.id) {
this.openLoading('submit') this.openLoading('submit')