zdl 1 anno fa
parent
commit
a3156f90d3
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 3 2
      src/views/system/group/index.vue
  2. 1 0
      src/views/user/group/index.vue

+ 3 - 2
src/views/system/group/index.vue

@@ -30,8 +30,8 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button @click="dialogVisible=false">取 消</el-button>
-        <el-button v-if="act === 1" type="primary" @click="addSubmit">确 定</el-button>
-        <el-button v-else type="primary" @click="editSubmit">确 定</el-button>
+        <el-button v-if="act === 1" type="primary" @click="addSubmit">确 定1</el-button>
+        <el-button v-else type="primary" @click="editSubmit">确 定2</el-button>
       </span>
     </el-dialog>
     <el-row :gutter="10" class="mb8">
@@ -193,6 +193,7 @@ export default {
       }
     },
     handleAdd() {
+      this.act = 1
       this.resetForm()
       this.dialogVisible = true
       this.getRbac()

+ 1 - 0
src/views/user/group/index.vue

@@ -186,6 +186,7 @@ export default {
       })
     },
     resetForm() {
+      this.act = 1
       this.form = {
         name: null,
         desc: null,