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