mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-18 14:57:26 +00:00
perf: 修改模版平台参数无法设置 (#3402)
* perf: 修改模版平台参数无法设置 * perf: remove debug --------- Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
parent
cf7a77ce2e
commit
097817e02c
@ -112,7 +112,6 @@ export default {
|
|||||||
},
|
},
|
||||||
platforms: {
|
platforms: {
|
||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
console.log('Found platforms change, ', newVal.length)
|
|
||||||
this.onFieldChangeHandler()
|
this.onFieldChangeHandler()
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
@ -129,7 +128,6 @@ export default {
|
|||||||
this.remoteMeta = data.actions[this.config.method.toUpperCase()] || {}
|
this.remoteMeta = data.actions[this.config.method.toUpperCase()] || {}
|
||||||
},
|
},
|
||||||
async getFilterPlatforms() {
|
async getFilterPlatforms() {
|
||||||
console.log('this.Platforms', this.platforms)
|
|
||||||
return await this.$axios.post(
|
return await this.$axios.post(
|
||||||
'/api/v1/assets/platforms/filter-nodes-assets/',
|
'/api/v1/assets/platforms/filter-nodes-assets/',
|
||||||
{
|
{
|
||||||
|
@ -27,13 +27,6 @@ export default {
|
|||||||
fieldsMeta: {
|
fieldsMeta: {
|
||||||
...templateFieldsMeta(vm)
|
...templateFieldsMeta(vm)
|
||||||
},
|
},
|
||||||
afterGetFormValue(value) {
|
|
||||||
if (!value.platforms) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
vm.fieldsMeta['push_params'].el.platforms = value['platforms']
|
|
||||||
return value
|
|
||||||
},
|
|
||||||
cleanFormValue(value) {
|
cleanFormValue(value) {
|
||||||
Object.keys(value).forEach((item, index, arr) => {
|
Object.keys(value).forEach((item, index, arr) => {
|
||||||
if (['ssh_key', 'token', 'access_key', 'api_key'].includes(item)) {
|
if (['ssh_key', 'token', 'access_key', 'api_key'].includes(item)) {
|
||||||
|
@ -115,7 +115,7 @@ export const templateFieldsMeta = (vm) => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
change: ([event], updateForm) => {
|
input: ([event], updateForm) => {
|
||||||
platformIds.splice(0, platformIds.length)
|
platformIds.splice(0, platformIds.length)
|
||||||
platformIds.push(...event)
|
platformIds.push(...event)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user