qinzhipeng_v 5 years ago
parent
commit
ec54f21406
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/mock/httprule.vue

+ 5 - 2
src/views/mock/httprule.vue

@@ -101,7 +101,7 @@
 
     <pagination v-show="total>0" :total="total" :page.sync="listQuery.curIndex" :limit.sync="listQuery.pageSize" @pagination="getList" />
 
-    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" width="65%" @open="returnMessageData">
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" width="65%" @open="isNotAnyRequest">
 
       <el-form ref="ruleForm" :rules="rulesCheck" :model="ruleForm" label-width="150px" style="width: 83%;">
         <el-row v-if="isNotAnyRequest" class="set-Width">
@@ -330,6 +330,8 @@ export default {
       })
     },
     returnMessageData() {
+      this.showguiz = true
+      this.isNotAnyRequest = false
       this.getFormatJsonStrFromStringRule1(this.ruleForm.returnMessage)
     },
     getFormatJsonStrFromStringRule: function(jsonStr) {
@@ -409,8 +411,9 @@ export default {
       this.dialogFormVisible = true
       this.showSubmit = true
       this.ruleForm = {}
+      this.isNotAnyRequest = false
+      this.showguiz = true
       this.$set(this.ruleForm, 'whenScript', 'any')
-      this.$set(this.ruleForm, 'expression1', 'any')
       this.$set(this.ruleForm, 'execSort', '1')
       this.$set(this.ruleForm, 'returnMessage', '')