|
|
@@ -451,8 +451,8 @@
|
|
|
<el-option
|
|
|
v-for="(item, index) in machineList"
|
|
|
:key="index"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
+ :label="item.value"
|
|
|
+ :value="item.label"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -889,11 +889,16 @@ export default {
|
|
|
onAddDeploy() {
|
|
|
const formData = new FormData()
|
|
|
formData.append('appId', this.addDeployForm.appId)
|
|
|
+ formData.append('machineId', this.addDeployForm.machineId)
|
|
|
+ formData.append('packType', this.addDeployForm.packType)
|
|
|
+ formData.append('startScript', this.addDeployForm.startScript)
|
|
|
addAppDeployConfig(formData).then(resp => {
|
|
|
this.$message.info(resp.msg)
|
|
|
this.getAppDeployConfigListWrapper(this.addDeployForm.appId)
|
|
|
}).catch(error => {
|
|
|
this.$message.error(error.message)
|
|
|
+ }).finally(() => {
|
|
|
+ this.showAddDeployConfigDialog = false
|
|
|
})
|
|
|
},
|
|
|
handleEditDeployConfig(index, row) {
|