|
@@ -52,10 +52,9 @@ const K8sNamespaceModal = defineComponent({
|
|
if (props.statusRef === 0) {
|
|
if (props.statusRef === 0) {
|
|
variables.model.namespace = ''
|
|
variables.model.namespace = ''
|
|
variables.model.k8s = ''
|
|
variables.model.k8s = ''
|
|
- variables.model.tag = ''
|
|
|
|
variables.model.limitsCpu = ''
|
|
variables.model.limitsCpu = ''
|
|
variables.model.limitsMemory = ''
|
|
variables.model.limitsMemory = ''
|
|
- variables.model.owner = ''
|
|
|
|
|
|
+ variables.model.userId = ''
|
|
}
|
|
}
|
|
ctx.emit('cancelModal', props.showModalRef)
|
|
ctx.emit('cancelModal', props.showModalRef)
|
|
}
|
|
}
|
|
@@ -70,18 +69,16 @@ const K8sNamespaceModal = defineComponent({
|
|
if (props.statusRef === 0) {
|
|
if (props.statusRef === 0) {
|
|
variables.model.namespace = ''
|
|
variables.model.namespace = ''
|
|
variables.model.k8s = ''
|
|
variables.model.k8s = ''
|
|
- variables.model.tag = ''
|
|
|
|
variables.model.limitsCpu = ''
|
|
variables.model.limitsCpu = ''
|
|
variables.model.limitsMemory = ''
|
|
variables.model.limitsMemory = ''
|
|
- variables.model.owner = ''
|
|
|
|
|
|
+ variables.model.userId = ''
|
|
} else {
|
|
} else {
|
|
variables.model.id = props.row.id
|
|
variables.model.id = props.row.id
|
|
variables.model.namespace = props.row.namespace
|
|
variables.model.namespace = props.row.namespace
|
|
variables.model.k8s = props.row.k8s
|
|
variables.model.k8s = props.row.k8s
|
|
- variables.model.tag = props.row.tag
|
|
|
|
variables.model.limitsCpu = props.row.limitsCpu + ''
|
|
variables.model.limitsCpu = props.row.limitsCpu + ''
|
|
variables.model.limitsMemory = props.row.limitsMemory + ''
|
|
variables.model.limitsMemory = props.row.limitsMemory + ''
|
|
- variables.model.owner = props.row.owner
|
|
|
|
|
|
+ variables.model.userId = props.row.userId
|
|
}
|
|
}
|
|
}
|
|
}
|
|
)
|
|
)
|
|
@@ -92,10 +89,9 @@ const K8sNamespaceModal = defineComponent({
|
|
variables.model.id = props.row.id
|
|
variables.model.id = props.row.id
|
|
variables.model.namespace = props.row.namespace
|
|
variables.model.namespace = props.row.namespace
|
|
variables.model.k8s = props.row.k8s
|
|
variables.model.k8s = props.row.k8s
|
|
- variables.model.tag = props.row.tag
|
|
|
|
variables.model.limitsCpu = props.row.limitsCpu + ''
|
|
variables.model.limitsCpu = props.row.limitsCpu + ''
|
|
variables.model.limitsMemory = props.row.limitsMemory + ''
|
|
variables.model.limitsMemory = props.row.limitsMemory + ''
|
|
- variables.model.owner = props.row.owner
|
|
|
|
|
|
+ variables.model.userId = props.row.userId
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
@@ -131,6 +127,7 @@ const K8sNamespaceModal = defineComponent({
|
|
<NInput
|
|
<NInput
|
|
placeholder={t('security.k8s_namespace.k8s_namespace_tips')}
|
|
placeholder={t('security.k8s_namespace.k8s_namespace_tips')}
|
|
v-model={[this.model.namespace, 'value']}
|
|
v-model={[this.model.namespace, 'value']}
|
|
|
|
+ disabled={this.statusRef !== 0}
|
|
/>
|
|
/>
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem
|
|
<NFormItem
|
|
@@ -140,12 +137,7 @@ const K8sNamespaceModal = defineComponent({
|
|
<NInput
|
|
<NInput
|
|
placeholder={t('security.k8s_namespace.k8s_cluster_tips')}
|
|
placeholder={t('security.k8s_namespace.k8s_cluster_tips')}
|
|
v-model={[this.model.k8s, 'value']}
|
|
v-model={[this.model.k8s, 'value']}
|
|
- />
|
|
|
|
- </NFormItem>
|
|
|
|
- <NFormItem label={t('security.k8s_namespace.tag')} path='tag'>
|
|
|
|
- <NInput
|
|
|
|
- placeholder={t('security.k8s_namespace.tag_tips')}
|
|
|
|
- v-model={[this.model.tag, 'value']}
|
|
|
|
|
|
+ disabled={this.statusRef !== 0}
|
|
/>
|
|
/>
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem
|
|
<NFormItem
|
|
@@ -176,11 +168,12 @@ const K8sNamespaceModal = defineComponent({
|
|
</NFormItem>
|
|
</NFormItem>
|
|
<NFormItem
|
|
<NFormItem
|
|
label={t('security.k8s_namespace.owner')}
|
|
label={t('security.k8s_namespace.owner')}
|
|
- path='owner'
|
|
|
|
|
|
+ path='userId'
|
|
>
|
|
>
|
|
<NInput
|
|
<NInput
|
|
placeholder={t('security.k8s_namespace.owner_tips')}
|
|
placeholder={t('security.k8s_namespace.owner_tips')}
|
|
- v-model={[this.model.owner, 'value']}
|
|
|
|
|
|
+ v-model={[this.model.userId, 'value']}
|
|
|
|
+ disabled={this.statusRef !== 0}
|
|
/>
|
|
/>
|
|
</NFormItem>
|
|
</NFormItem>
|
|
</NForm>
|
|
</NForm>
|