Browse Source

2022-09-01 修改标识组件

zhuliu 3 years ago
parent
commit
47019bb29e
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/views/function/index.vue
  2. 2 1
      src/views/role/index.vue

+ 1 - 1
src/views/function/index.vue

@@ -69,7 +69,7 @@
           <el-input v-model="ruleForm.name" placeholder="请输入功能名称"></el-input>
         </el-form-item>
         <el-form-item label="功能标识" prop="sign">
-          <el-input v-model="ruleForm.sign" placeholder="请输入功能标识"></el-input>
+          <el-input type="textarea" v-model="ruleForm.sign" placeholder="请输入功能标识"></el-input>
         </el-form-item>
         <el-form-item label="功能描述" prop="describe">
           <el-input v-model="ruleForm.describe" placeholder="请输入" type="textarea" maxlength="100" show-word-limit></el-input>

+ 2 - 1
src/views/role/index.vue

@@ -327,6 +327,7 @@ export default {
         //   var a =this.ruleForm.function[i].join(',')
         //   this.ruleForm.functions.push(a)
         // }
+        console.log(this.ruleForm)
           this.btnLoading = true
           if (this.ruleForm.id) {
             this.$api.editRole(this.ruleForm).then(response => {
@@ -338,7 +339,7 @@ export default {
               this.btnLoading = false
             })
           } else {
-            console.log(this.ruleForm)
+            
 
             this.$api.addRole(this.ruleForm).then(response => {
               this.$message.success('新增成功')