|
@@ -176,7 +176,8 @@ export default {
|
|
|
curIndex: 1,
|
|
|
pageSize: 20,
|
|
|
sort: '+id',
|
|
|
- id: null
|
|
|
+ id: null,
|
|
|
+ redirect: ''
|
|
|
},
|
|
|
importanceOptions: [1, 2, 3],
|
|
|
envSelectDataType: '',
|
|
@@ -396,9 +397,10 @@ export default {
|
|
|
this.serviceData.method = rowList.method
|
|
|
this.serviceData.returnDataTypeStr = rowList.returnDataTypeStr
|
|
|
this.serviceData.mockUrl = rowList.mockUrl
|
|
|
- this.serviceData.redirect === response.data.redirect
|
|
|
- console.log(this.serviceData.redirect + 'aaa')
|
|
|
- if (this.serviceData.redirect === '1') { this.serviceData.requestForWard = true } else { this.serviceData.requestForWard = false }
|
|
|
+ this.serviceData.redirect = row.redirect
|
|
|
+ if (this.serviceData.redirect === 1) { this.serviceData.requestForWard = true } else { this.serviceData.requestForWard = false }
|
|
|
+ this.serviceData.actualUrl = row.actualUrl
|
|
|
+ this.showTrueUrl()
|
|
|
this.dialogStatus = 'update'
|
|
|
this.dialogFormVisible = true
|
|
|
this.showSubmitBtn = true
|
|
@@ -412,7 +414,7 @@ export default {
|
|
|
// 查看
|
|
|
handleCheck(row) {
|
|
|
this.shouldShow = true
|
|
|
- this.serviceData = row
|
|
|
+ // this.serviceData = row
|
|
|
// var queryData = { id: row.id }
|
|
|
// fetchServiceList(queryData).then(response => {
|
|
|
// var rowData = response.data.mockMethodList
|
|
@@ -430,8 +432,12 @@ export default {
|
|
|
this.dialogStatus = 'update'
|
|
|
this.dialogFormVisible = true
|
|
|
this.showSubmitBtn = false
|
|
|
+ // this.serviceData.redirect = 1
|
|
|
this.serviceData.redirect = row.redirect
|
|
|
- this.serviceData.requestForWard === 'true' ? this.serviceData.redirect === 1 : this.serviceData.redirect
|
|
|
+ if (this.serviceData.redirect === 1) { this.serviceData.requestForWard = true } else { this.serviceData.requestForWard = false }
|
|
|
+ this.serviceData.actualUrl = row.actualUrl
|
|
|
+ this.showTrueUrl()
|
|
|
+ // this.serviceData.requestForWard === 'true' ? this.serviceData.redirect === 1 : this.serviceData.redirect
|
|
|
// this.$nextTick(() => {
|
|
|
// this.$refs['serviceDataForms'].clearValidate()
|
|
|
// })
|
|
@@ -456,7 +462,9 @@ export default {
|
|
|
this.dialogFormVisible = true
|
|
|
this.showSubmitBtn = true
|
|
|
this.serviceData.redirect = row.redirect
|
|
|
- this.serviceData.requestForWard === 'true' ? this.serviceData.redirect === 1 : this.serviceData.redirect
|
|
|
+ if (this.serviceData.redirect === 1) { this.serviceData.requestForWard = true } else { this.serviceData.requestForWard = false }
|
|
|
+ this.serviceData.actualUrl = row.actualUrl
|
|
|
+ this.showTrueUrl()
|
|
|
// this.$nextTick(() => {
|
|
|
// this.$refs['serviceDataForms'].clearValidate()
|
|
|
// })
|