mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +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: {
|
||||
handler(newVal) {
|
||||
console.log('Found platforms change, ', newVal.length)
|
||||
this.onFieldChangeHandler()
|
||||
},
|
||||
deep: true,
|
||||
@ -129,7 +128,6 @@ export default {
|
||||
this.remoteMeta = data.actions[this.config.method.toUpperCase()] || {}
|
||||
},
|
||||
async getFilterPlatforms() {
|
||||
console.log('this.Platforms', this.platforms)
|
||||
return await this.$axios.post(
|
||||
'/api/v1/assets/platforms/filter-nodes-assets/',
|
||||
{
|
||||
|
@ -27,13 +27,6 @@ export default {
|
||||
fieldsMeta: {
|
||||
...templateFieldsMeta(vm)
|
||||
},
|
||||
afterGetFormValue(value) {
|
||||
if (!value.platforms) {
|
||||
return
|
||||
}
|
||||
vm.fieldsMeta['push_params'].el.platforms = value['platforms']
|
||||
return value
|
||||
},
|
||||
cleanFormValue(value) {
|
||||
Object.keys(value).forEach((item, index, arr) => {
|
||||
if (['ssh_key', 'token', 'access_key', 'api_key'].includes(item)) {
|
||||
|
@ -115,7 +115,7 @@ export const templateFieldsMeta = (vm) => {
|
||||
}
|
||||
},
|
||||
on: {
|
||||
change: ([event], updateForm) => {
|
||||
input: ([event], updateForm) => {
|
||||
platformIds.splice(0, platformIds.length)
|
||||
platformIds.push(...event)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user