|
@@ -367,13 +367,9 @@ export default {
|
|
this.listLoading = true
|
|
this.listLoading = true
|
|
this.listQuery.methodId = parseInt(this.$route.path.split('/')[3])
|
|
this.listQuery.methodId = parseInt(this.$route.path.split('/')[3])
|
|
fetchServiceList(this.listQuery).then(response => {
|
|
fetchServiceList(this.listQuery).then(response => {
|
|
- console.log(this.listQuery)
|
|
|
|
this.list = response.data.mockMethodList
|
|
this.list = response.data.mockMethodList
|
|
this.total = response.data.total
|
|
this.total = response.data.total
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
- // setTimeout(() => {
|
|
|
|
- // this.listLoading = false
|
|
|
|
- // }, 1.5 * 1000)
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
explain() {
|
|
explain() {
|
|
@@ -471,14 +467,6 @@ export default {
|
|
consumerSel.display_name = sel.customizeName
|
|
consumerSel.display_name = sel.customizeName
|
|
this.consumerSelections.push(consumerSel)
|
|
this.consumerSelections.push(consumerSel)
|
|
}
|
|
}
|
|
- // console.log(this.serviceData.consumerIds)
|
|
|
|
- // for (var op of this.consumerSelections) {
|
|
|
|
- // if (op.key in this.serviceData.consumerIds) {
|
|
|
|
- // this.consumerSelected.push(op)
|
|
|
|
- // // this.consumerSelected = op.display_name
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // console.log(this.consumerSelected)
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
dialogOpenInit() {
|
|
dialogOpenInit() {
|
|
@@ -497,9 +485,7 @@ export default {
|
|
id: row.id,
|
|
id: row.id,
|
|
methodStatus: status
|
|
methodStatus: status
|
|
}
|
|
}
|
|
- // console.log(statusData)
|
|
|
|
changeStatus(statusData).then(response => {
|
|
changeStatus(statusData).then(response => {
|
|
- // console.log(response)
|
|
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
row.methodStatus = status
|
|
row.methodStatus = status
|
|
this.$message({
|
|
this.$message({
|
|
@@ -606,23 +592,16 @@ export default {
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
var queryData = { id: row.id }
|
|
var queryData = { id: row.id }
|
|
fetchServiceById(queryData).then(response => {
|
|
fetchServiceById(queryData).then(response => {
|
|
- // console.log(response)
|
|
|
|
var rowData = response.data.mockMethodList
|
|
var rowData = response.data.mockMethodList
|
|
- // this.serviceData.timestamp = new Date(this.temp.timestamp)
|
|
|
|
- // console.log(this.serviceData)
|
|
|
|
- // console.log(row_data[0])
|
|
|
|
this.serviceData = Object.assign({}, rowData[0])
|
|
this.serviceData = Object.assign({}, rowData[0])
|
|
this.serviceDataExt.id = row.id
|
|
this.serviceDataExt.id = row.id
|
|
this.serviceDataExt.bizLine = row.bizLine
|
|
this.serviceDataExt.bizLine = row.bizLine
|
|
this.serviceDataExt.bizModuleId = row.bizModuleId
|
|
this.serviceDataExt.bizModuleId = row.bizModuleId
|
|
- // console.log(this.serviceData.consumerIds.split('[')[1].split(']')[0].split(','))
|
|
|
|
if (this.serviceData.consumerIds === '[]') {
|
|
if (this.serviceData.consumerIds === '[]') {
|
|
this.serviceData.consumerIds = []
|
|
this.serviceData.consumerIds = []
|
|
} else {
|
|
} else {
|
|
this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
|
|
this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
|
|
}
|
|
}
|
|
- // console.log(this.serviceData)
|
|
|
|
- // this.serviceData.timestamp = new Date(this.temp.timestamp)
|
|
|
|
this.dialogStatus = 'update'
|
|
this.dialogStatus = 'update'
|
|
this.dialogFormVisible = true
|
|
this.dialogFormVisible = true
|
|
this.showSubmitBtn = true
|
|
this.showSubmitBtn = true
|
|
@@ -634,23 +613,16 @@ export default {
|
|
handleCheck(row) {
|
|
handleCheck(row) {
|
|
var queryData = { id: row.id }
|
|
var queryData = { id: row.id }
|
|
fetchServiceById(queryData).then(response => {
|
|
fetchServiceById(queryData).then(response => {
|
|
- // console.log(response)
|
|
|
|
var rowData = response.data.mockMethodList
|
|
var rowData = response.data.mockMethodList
|
|
- // this.serviceData.timestamp = new Date(this.temp.timestamp)
|
|
|
|
- // console.log(this.serviceData)
|
|
|
|
- // console.log(row_data[0])
|
|
|
|
this.serviceData = Object.assign({}, rowData[0])
|
|
this.serviceData = Object.assign({}, rowData[0])
|
|
this.serviceDataExt.id = row.id
|
|
this.serviceDataExt.id = row.id
|
|
this.serviceDataExt.bizLine = row.bizLine
|
|
this.serviceDataExt.bizLine = row.bizLine
|
|
this.serviceDataExt.bizModuleId = row.bizModuleId
|
|
this.serviceDataExt.bizModuleId = row.bizModuleId
|
|
- // console.log(this.serviceData.consumerIds.split('[')[1].split(']')[0].split(','))
|
|
|
|
if (this.serviceData.consumerIds === '[]') {
|
|
if (this.serviceData.consumerIds === '[]') {
|
|
this.serviceData.consumerIds = []
|
|
this.serviceData.consumerIds = []
|
|
} else {
|
|
} else {
|
|
this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
|
|
this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
|
|
}
|
|
}
|
|
- // console.log(this.serviceData)
|
|
|
|
- // this.serviceData.timestamp = new Date(this.temp.timestamp)
|
|
|
|
this.dialogStatus = 'update'
|
|
this.dialogStatus = 'update'
|
|
this.dialogFormVisible = true
|
|
this.dialogFormVisible = true
|
|
this.showSubmitBtn = false
|
|
this.showSubmitBtn = false
|
|
@@ -662,23 +634,16 @@ export default {
|
|
handleCopy(row) {
|
|
handleCopy(row) {
|
|
var queryData = { id: row.id }
|
|
var queryData = { id: row.id }
|
|
fetchServiceById(queryData).then(response => {
|
|
fetchServiceById(queryData).then(response => {
|
|
- // console.log(response)
|
|
|
|
var rowData = response.data.mockMethodList
|
|
var rowData = response.data.mockMethodList
|
|
- // this.serviceData.timestamp = new Date(this.temp.timestamp)
|
|
|
|
- // console.log(this.serviceData)
|
|
|
|
- // console.log(row_data[0])
|
|
|
|
this.serviceData = Object.assign({}, rowData[0])
|
|
this.serviceData = Object.assign({}, rowData[0])
|
|
this.serviceDataExt.id = row.id
|
|
this.serviceDataExt.id = row.id
|
|
this.serviceDataExt.bizLine = row.bizLine
|
|
this.serviceDataExt.bizLine = row.bizLine
|
|
this.serviceDataExt.bizModuleId = row.bizModuleId
|
|
this.serviceDataExt.bizModuleId = row.bizModuleId
|
|
- // console.log(this.serviceData.consumerIds.split('[')[1].split(']')[0].split(','))
|
|
|
|
if (this.serviceData.consumerIds === '[]') {
|
|
if (this.serviceData.consumerIds === '[]') {
|
|
this.serviceData.consumerIds = []
|
|
this.serviceData.consumerIds = []
|
|
} else {
|
|
} else {
|
|
this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
|
|
this.serviceData.consumerIds = this.serviceData.consumerIds.split('[')[1].split(']')[0].split(',').map(value => { return parseInt(value) })
|
|
}
|
|
}
|
|
- // console.log(this.serviceData)
|
|
|
|
- // this.serviceData.timestamp = new Date(this.temp.timestamp)
|
|
|
|
this.dialogStatus = 'create'
|
|
this.dialogStatus = 'create'
|
|
this.dialogFormVisible = true
|
|
this.dialogFormVisible = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -695,7 +660,6 @@ export default {
|
|
bizModuleId: this.serviceDataExt.bizModuleId,
|
|
bizModuleId: this.serviceDataExt.bizModuleId,
|
|
customName: this.serviceData.customName,
|
|
customName: this.serviceData.customName,
|
|
interfaceName: this.serviceData.interfaceName,
|
|
interfaceName: this.serviceData.interfaceName,
|
|
- // protocol: this.serviceData.protocol,
|
|
|
|
serviceVersion: this.serviceData.serviceVersion,
|
|
serviceVersion: this.serviceData.serviceVersion,
|
|
envChannel: this.serviceData.envChannel,
|
|
envChannel: this.serviceData.envChannel,
|
|
envId: this.serviceData.envId,
|
|
envId: this.serviceData.envId,
|
|
@@ -707,7 +671,6 @@ export default {
|
|
remark: this.serviceData.remark,
|
|
remark: this.serviceData.remark,
|
|
updator: this.userNames
|
|
updator: this.userNames
|
|
}
|
|
}
|
|
- // console.log(tempData)
|
|
|
|
updateService(tempData).then(response => {
|
|
updateService(tempData).then(response => {
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
this.dialogFormVisible = false
|
|
this.dialogFormVisible = false
|