This commit is contained in:
Captain.B 2020-03-20 11:13:35 +08:00
parent 6253ac17c6
commit 12453009ea
3 changed files with 7 additions and 6 deletions

View File

@ -84,7 +84,7 @@
let testId = to.path.split('/')[4]; // find testId
if (testId) {
this.$get('/testplan/get/' + testId, response => {
this.result = this.$get('/testplan/get/' + testId, response => {
if (response.data) {
this.testPlan = response.data;
}
@ -96,7 +96,7 @@
created() {
let testId = this.$route.path.split('/')[4];
if (testId) {
this.$get('/testplan/get/' + testId, response => {
this.result = this.$get('/testplan/get/' + testId, response => {
this.testPlan = response.data;
});
}

View File

@ -190,7 +190,8 @@
<div>{{$t('load_test.custom_http_code')}}</div>
</el-form-item>
<el-form-item>
<el-input size="mini" v-model="statusCodeStr" :placeholder="$t('load_test.separated_by_commas')" @input="checkStatusCode"></el-input>
<el-input size="mini" v-model="statusCodeStr" :placeholder="$t('load_test.separated_by_commas')"
@input="checkStatusCode"></el-input>
</el-form-item>
</el-form>
</el-col>
@ -218,7 +219,7 @@
},
watch: {
'$route'(to, from) {
if(from.name != 'createPerTest' || from.name != 'editPerTest'){
if (from.name !== 'createPerTest' && from.name !== 'editPerTest') {
return;
}
let testId = to.path.split('/')[4];

View File

@ -113,7 +113,7 @@
},
watch: {
'$route'(to, from) {
if(from.name != 'createPerTest' || from.name != 'editPerTest'){
if (from.name !== 'createPerTest' && from.name !== 'editPerTest') {
return;
}
let testId = to.path.split('/')[4];
@ -126,7 +126,7 @@
},
methods: {
getLoadConfig(testId) {
if(testId) {
if (testId) {
this.$get('/testplan/get-load-config/' + testId, (response) => {
if (response.data && response.data != "") {