|
|
@ -59,8 +59,8 @@
|
|
|
|
类型{{index+1}}
|
|
|
|
类型{{index+1}}
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
<i-col :span="20">
|
|
|
|
<i-col :span="20">
|
|
|
|
<i-input class="inputClass" type="text" v-model="item.value1" placeholder="参数名称"></i-input>
|
|
|
|
<i-input class="inputClass" type="text" v-model="item.name" placeholder="参数名称"></i-input>
|
|
|
|
<i-input class="inputClass" type="text" style="margin-left: 20px" v-model="item.value2" placeholder="默认值"></i-input>
|
|
|
|
<i-input class="inputClass" type="text" style="margin-left: 20px" v-model="item.defaultVal" placeholder="默认值"></i-input>
|
|
|
|
<Button style="margin-left: 20px" type="error" @click="delActivityInput(index)">删除</Button>
|
|
|
|
<Button style="margin-left: 20px" type="error" @click="delActivityInput(index)">删除</Button>
|
|
|
|
</i-col>
|
|
|
|
</i-col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
@ -125,8 +125,8 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
addActivityInput() {
|
|
|
|
addActivityInput() {
|
|
|
|
this.inputActivityList.push({
|
|
|
|
this.inputActivityList.push({
|
|
|
|
value1: '',
|
|
|
|
name: '',
|
|
|
|
value2: ''
|
|
|
|
defaultVal: ''
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
delActivityInput(index) {
|
|
|
|
delActivityInput(index) {
|
|
|
@ -152,10 +152,12 @@ export default {
|
|
|
|
that.formValidate.activityDsc = data.data.results.description
|
|
|
|
that.formValidate.activityDsc = data.data.results.description
|
|
|
|
that.formValidate.activityName = data.data.results.name
|
|
|
|
that.formValidate.activityName = data.data.results.name
|
|
|
|
that.formValidate.uri = data.data.results.uri
|
|
|
|
that.formValidate.uri = data.data.results.uri
|
|
|
|
|
|
|
|
that.formValidate.logo = data.data.results.logo || '';
|
|
|
|
data.data.results.params.forEach(item => {
|
|
|
|
data.data.results.params.forEach(item => {
|
|
|
|
that.inputActivityList.push({
|
|
|
|
that.inputActivityList.push({
|
|
|
|
value1: item.name,
|
|
|
|
id: item.id,
|
|
|
|
value2: item.description
|
|
|
|
name: item.name,
|
|
|
|
|
|
|
|
defaultVal: item.defaultVal
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -188,14 +190,14 @@ export default {
|
|
|
|
let param = []
|
|
|
|
let param = []
|
|
|
|
that.inputActivityList.forEach(element => {
|
|
|
|
that.inputActivityList.forEach(element => {
|
|
|
|
param.push({
|
|
|
|
param.push({
|
|
|
|
defaultVal: element.value1,
|
|
|
|
defaultVal: element.defaultVal,
|
|
|
|
description: that.formValidate.activityDsc,
|
|
|
|
description: element.name,
|
|
|
|
key: element.value2,
|
|
|
|
key: element.name,
|
|
|
|
name: 1,
|
|
|
|
name: element.name,
|
|
|
|
type: 2,
|
|
|
|
type: 2,
|
|
|
|
id: that.id
|
|
|
|
id: element.id,
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
});
|
|
|
|
// param = JSON.stringify(param)
|
|
|
|
// param = JSON.stringify(param)
|
|
|
|
let data = {
|
|
|
|
let data = {
|
|
|
|
appId: that.formValidate.appId,
|
|
|
|
appId: that.formValidate.appId,
|
|
|
|