mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-26 15:07:04 +00:00
perf: 修改布局
This commit is contained in:
@@ -202,6 +202,7 @@ export default {
|
|||||||
.tree-table-content {
|
.tree-table-content {
|
||||||
.left {
|
.left {
|
||||||
background: #f3f3f3;
|
background: #f3f3f3;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
~ .right .is-show {
|
~ .right .is-show {
|
||||||
|
@@ -151,7 +151,7 @@ h4 {
|
|||||||
.help-block {
|
.help-block {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 5px;
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import GenericCreateUpdatePage from '@/layout/components/GenericCreateUpdatePage'
|
import GenericCreateUpdatePage from '@/layout/components/GenericCreateUpdatePage'
|
||||||
import AssetSelect from '@/components/Apps/AssetSelect'
|
import AssetSelect from '@/components/Apps/AssetSelect'
|
||||||
|
import { TextReadonly } from '@/components/Form/FormFields'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GatewayCreateUpdate',
|
name: 'GatewayCreateUpdate',
|
||||||
@@ -16,6 +17,7 @@ export default {
|
|||||||
initial: {},
|
initial: {},
|
||||||
fields: [
|
fields: [
|
||||||
[this.$t('Basic'), ['name', 'assets']],
|
[this.$t('Basic'), ['name', 'assets']],
|
||||||
|
[this.$t('Gateway'), ['gateways']],
|
||||||
[this.$t('Other'), ['comment']]
|
[this.$t('Other'), ['comment']]
|
||||||
],
|
],
|
||||||
fieldsMeta: {
|
fieldsMeta: {
|
||||||
@@ -32,6 +34,13 @@ export default {
|
|||||||
return row.platform?.name !== 'Gateway'
|
return row.platform?.name !== 'Gateway'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
gateways: {
|
||||||
|
component: TextReadonly,
|
||||||
|
el: {
|
||||||
|
text: this.$t('AddInDetailText'),
|
||||||
|
bolder: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: '/api/v1/assets/domains/'
|
url: '/api/v1/assets/domains/'
|
||||||
|
@@ -32,9 +32,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Dialog from '../../../components/Dialog'
|
import Dialog from '@/components/Dialog'
|
||||||
import AutoDataForm from '../../../components/Form/AutoDataForm'
|
import AutoDataForm from '@/components/Form/AutoDataForm'
|
||||||
import { DynamicInput } from '../../../components/Form/FormFields'
|
import { DynamicInput } from '@/components/Form/FormFields'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@@ -172,23 +172,30 @@ export default {
|
|||||||
.el-cascader {
|
.el-cascader {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
>>> .item-method.el-form-item {
|
.item-enable.el-form-item {
|
||||||
display: inline-block;
|
//margin-bottom: 1px;
|
||||||
width: 100%;
|
|
||||||
.el-form-item__content {
|
|
||||||
width: calc(75% - 50px);
|
|
||||||
}
|
}
|
||||||
.el-select {
|
|
||||||
width: 100%;
|
.item-method.el-form-item {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;;
|
||||||
|
.el-form-item__content {
|
||||||
|
width: calc(75% - 50px);
|
||||||
|
}
|
||||||
|
.el-select {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-params.el-form-item {
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
right: 18px;
|
||||||
|
margin-top: -10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
>>> .item-params.el-form-item {
|
|
||||||
display: inline-block;
|
|
||||||
position: absolute;
|
|
||||||
right: 18px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@@ -76,28 +76,34 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang='scss' scoped>
|
||||||
.platform-form >>> {
|
>>> {
|
||||||
.el-cascader {
|
.el-cascader {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
>>> .item-method.el-form-item {
|
.item-enable.el-form-item {
|
||||||
display: inline-block;
|
//margin-bottom: 1px;
|
||||||
width: 100%;
|
|
||||||
.el-form-item__content {
|
|
||||||
width: calc(75% - 50px);
|
|
||||||
}
|
}
|
||||||
.el-select {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
>>> .item-params.el-form-item {
|
.item-method.el-form-item {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
width: 100%;;
|
||||||
right: 18px;
|
.el-form-item__content {
|
||||||
|
width: calc(75% - 50px);
|
||||||
|
}
|
||||||
|
.el-select {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-params.el-form-item {
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
right: 18px;
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@@ -129,6 +129,7 @@ export const setAutomations = (vm) => {
|
|||||||
_.set(autoFieldsMeta, `${itemMethodKey}.hidden`, (formValue) => {
|
_.set(autoFieldsMeta, `${itemMethodKey}.hidden`, (formValue) => {
|
||||||
return !formValue[itemEnabledKey] || !formValue['ansible_enabled']
|
return !formValue[itemEnabledKey] || !formValue['ansible_enabled']
|
||||||
})
|
})
|
||||||
|
_.set(autoFieldsMeta, `${itemEnabledKey}.attrs.class`, 'item-enable')
|
||||||
// 设置 enableMethod className
|
// 设置 enableMethod className
|
||||||
_.set(autoFieldsMeta, `${itemMethodKey}.attrs.class`, 'item-method')
|
_.set(autoFieldsMeta, `${itemMethodKey}.attrs.class`, 'item-method')
|
||||||
// 设置 enableParams Hidden
|
// 设置 enableParams Hidden
|
||||||
|
@@ -119,7 +119,6 @@ export const assetFieldsMeta = (vm) => {
|
|||||||
},
|
},
|
||||||
labels: {
|
labels: {
|
||||||
name: 'labels',
|
name: 'labels',
|
||||||
label: vm.$t('Label'),
|
|
||||||
type: 'm2m',
|
type: 'm2m',
|
||||||
component: Select2,
|
component: Select2,
|
||||||
el: {
|
el: {
|
||||||
|
@@ -35,7 +35,7 @@ export default {
|
|||||||
permissions: {
|
permissions: {
|
||||||
component: TextReadonly,
|
component: TextReadonly,
|
||||||
el: {
|
el: {
|
||||||
text: this.$t('AddRolePermissions'),
|
text: this.$t('AddInDetailText'),
|
||||||
bolder: false
|
bolder: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user