mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 18:49:19 +00:00
Merge branch 'pam' of github.com:jumpserver/lina into pam
This commit is contained in:
@@ -168,7 +168,11 @@ export default {
|
|||||||
* @param {All} options.value 表单数据
|
* @param {All} options.value 表单数据
|
||||||
*/
|
*/
|
||||||
updateValue({ id, value }) {
|
updateValue({ id, value }) {
|
||||||
|
if (!value) return
|
||||||
this.value = { ...this.value, [id]: value }
|
this.value = { ...this.value, [id]: value }
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.elForm.validateField(id)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @return {object} key is item's id, value is item's value
|
* @return {object} key is item's id, value is item's value
|
||||||
|
@@ -49,6 +49,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('Tasks'),
|
title: this.$t('Tasks'),
|
||||||
body: {
|
body: {
|
||||||
|
route: { name: 'AccountChangeSecret' },
|
||||||
count: this.data.total_count_change_secrets
|
count: this.data.total_count_change_secrets
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -71,6 +72,7 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('Total'),
|
title: this.$t('Total'),
|
||||||
body: {
|
body: {
|
||||||
|
route: { name: 'AccountChangeSecretExecutionList' },
|
||||||
count: this.data.total_count_change_secret_executions
|
count: this.data.total_count_change_secret_executions
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@@ -29,7 +29,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
category: 'all',
|
category: 'all',
|
||||||
url: `/api/v1/assets/assets/?domain=${this.$route.params.id}&is_gateway=0`,
|
url: `/api/v1/assets/assets/?domain=${this.object.id}&is_gateway=0`,
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
columns: ['name', 'address', 'platform', 'actions'],
|
columns: ['name', 'address', 'platform', 'actions'],
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
|
@@ -39,7 +39,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: `/api/v1/assets/gateways/?domain=${this.$route.params.id}`,
|
url: `/api/v1/assets/gateways/?domain=${this.object.id}`,
|
||||||
columnsExclude: [
|
columnsExclude: [
|
||||||
'info', 'spec_info', 'auto_config'
|
'info', 'spec_info', 'auto_config'
|
||||||
],
|
],
|
||||||
|
@@ -41,6 +41,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
const vm = this
|
||||||
return {
|
return {
|
||||||
formConfig: {
|
formConfig: {
|
||||||
getUrl: () => {
|
getUrl: () => {
|
||||||
@@ -53,7 +54,7 @@ export default {
|
|||||||
createSuccessMsg: this.$t('AddSuccessMsg'),
|
createSuccessMsg: this.$t('AddSuccessMsg'),
|
||||||
updateSuccessNextRoute: {
|
updateSuccessNextRoute: {
|
||||||
name: 'ZoneDetail',
|
name: 'ZoneDetail',
|
||||||
params: { id: this.$route.params.id }
|
params: { id: this.object.id }
|
||||||
},
|
},
|
||||||
fields: ['gateways'],
|
fields: ['gateways'],
|
||||||
fieldsMeta: {
|
fieldsMeta: {
|
||||||
@@ -73,7 +74,7 @@ export default {
|
|||||||
cleanFormValue(values) {
|
cleanFormValue(values) {
|
||||||
const data = []
|
const data = []
|
||||||
values.gateways.forEach(item => {
|
values.gateways.forEach(item => {
|
||||||
const d = { id: item.pk, domain: this.$route.params.id }
|
const d = { id: item.pk, domain: vm.object.id }
|
||||||
data.push(d)
|
data.push(d)
|
||||||
})
|
})
|
||||||
return data
|
return data
|
||||||
|
@@ -25,8 +25,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config: {
|
config: {
|
||||||
title: this.$t('TaskDistribution'),
|
title: this.$t('TaskSummary'),
|
||||||
tip: this.$t('TaskDistribution')
|
tip: this.$t('TaskSummary')
|
||||||
},
|
},
|
||||||
counter: {
|
counter: {
|
||||||
total_count_change_secret_automation: 0,
|
total_count_change_secret_automation: 0,
|
||||||
@@ -61,7 +61,7 @@ export default {
|
|||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: this.$t('TaskDistribution'),
|
name: this.$t('TaskSummary'),
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
top: '10%',
|
top: '10%',
|
||||||
radius: ['45%', '60%'],
|
radius: ['45%', '60%'],
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="total-section">
|
<div class="total-section">
|
||||||
<div class="total-title">Total accounts</div>
|
<div class="total-title">{{ $t('TotalAccounts') }}</div>
|
||||||
<div class="total-account"> {{ config.total }} </div>
|
<div class="total-account"> {{ config.total }} </div>
|
||||||
<div class="week-add">
|
<div class="week-add">
|
||||||
<div class="week-add-title"> {{ $t('WeekAdd') }} </div>
|
<div class="week-add-title"> {{ $t('WeekAdd') }} </div>
|
||||||
|
Reference in New Issue
Block a user