| | |
| | | <el-input v-model="role.name" placeholder="请填写栏目名称"></el-input> |
| | | </el-form-item> |
| | | <!-- 角色描述 --> |
| | | <el-form-item class="optionItem" label="角色描述:" prop="description"> |
| | | <el-form-item class="optionItem" label="栏目描述:" prop="description"> |
| | | <el-input type="textarea" :rows="5" maxlength="300" show-word-limit v-model="role.description" |
| | | placeholder="请输入描述内容200字以内"></el-input> |
| | | </el-form-item> |
| | |
| | | if (value) { |
| | | callback(); |
| | | } else { |
| | | // const rep = /^[\u4E00-\u9FA5]{2,4}$/; |
| | | // if (!rep.test(value)) { |
| | | // callback("请输入正确的用户姓名"); |
| | | // } |
| | | callback(); |
| | | } |
| | | }; |
| | |
| | | methods: { |
| | | handleUser() { |
| | | this.$refs['user'].validate((valid) => { |
| | | console.log(valid); |
| | | if (valid) { |
| | | const { role } = this; |
| | | console.log(role); |
| | | this.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/message_column/addColumn', |
| | |
| | | columnName: role.name, |
| | | createUser: 3, |
| | | description: role.description, |
| | | isShow: 0, |
| | | isShow: 1, |
| | | } |
| | | }) |
| | | .then(res=>{ |
| | |
| | | handleCancel(){ |
| | | this.$emit('closeDialog',{flag:false,index:0}); |
| | | } |
| | | // 获取创建用户信息 |
| | | // async getCreaterInfo(){ |
| | | // let id; |
| | | // const name = sessionStorage.getItem('name'); |
| | | // await this.$axios({ |
| | | // method:'get', |
| | | // url:'sccg/admin/info?name='+'name' |
| | | // }) |
| | | // .then(res=>{ |
| | | // console.log(res); |
| | | // if(res.code ===200){ |
| | | |
| | | // } |
| | | // }) |
| | | // } |
| | | }, |
| | | props: ['closeDialog'] |
| | | } |