|
@@ -19,6 +19,25 @@
|
|
|
<el-input v-model="form.name" autocomplete="off" placeholder="输入用户名称"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="用户类型" label-width="100px" prop="name">
|
|
|
+ <el-select
|
|
|
+ style="width: 100%"
|
|
|
+ size="small"
|
|
|
+ v-model="form.usertype"
|
|
|
+ placeholder="请选择"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in sys_options"
|
|
|
+ :label="item.remarks"
|
|
|
+ :value="item.value"
|
|
|
+ :key="item.rowindex"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="授权角色" label-width="100px" prop="roleids">
|
|
|
<!-- <el-input v-model="form.sex" autocomplete="off" placeholder="输入性别"></el-input> -->
|
|
@@ -44,7 +63,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
+import {mapGetters} from 'vuex'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
@@ -72,10 +91,16 @@ export default {
|
|
|
options:[]
|
|
|
}
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ ...mapGetters({
|
|
|
+ sys_options:'sys_options'
|
|
|
+ })
|
|
|
+ },
|
|
|
methods:{
|
|
|
onShow () {
|
|
|
this.drawer = true
|
|
|
this.rolelist()
|
|
|
+ this.usertype()
|
|
|
},
|
|
|
|
|
|
async rolelist () {
|
|
@@ -122,7 +147,13 @@ export default {
|
|
|
},
|
|
|
onClose () {
|
|
|
this.$refs['form'].resetFields()
|
|
|
+ },
|
|
|
+ usertype () {
|
|
|
+ this.$store.dispatch('optiontypeselect','usertype')
|
|
|
}
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|