| | |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | |
| | | <el-form-item label="家庭名称" prop="roleKey"> |
| | | <el-form-item label="家庭名称" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.roleKey" |
| | | v-model="queryParams.name" |
| | | placeholder="请输入权限字符" |
| | | clearable |
| | | style="width: 240px" |
| | |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="roleList" :row-key="getRowId" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <!-- <el-table-column type="selection" width="55" align="center" /> --> |
| | | |
| | | <el-table-column fixed label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="100"/> |
| | | <el-table-column label="家庭名称" prop="name" sortable :show-overflow-tooltip="true" width="150" /> |
| | |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | <!-- <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | | >删除</el-button> --> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-input v-model="form.name" placeholder="请输入家庭名称" @blur="chongf()"/> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="本家成员" prop="fid"> |
| | | <el-select v-model="form.fid" :disabled="ts" placeholder="请选择" @change="handleChange"> |
| | | <el-option |
| | | v-for="item in fatherInfo" |
| | | :key="item.id" |
| | | :label="item.label" |
| | | :value="item.id" |
| | | ></el-option> |
| | | </el-select> |
| | | |
| | | </el-form-item> |
| | | |
| | | |
| | | |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | roleName: undefined, |
| | | roleKey: undefined, |
| | | status: undefined |
| | | name: undefined, |
| | | clanId: undefined |
| | | }, |
| | | personInfos:[], |
| | | personInfos1:[], |
| | |
| | | id: undefined, |
| | | name: undefined, |
| | | mid: undefined, |
| | | fid: undefined |
| | | fid: undefined, |
| | | clanId: undefined |
| | | }, |
| | | defaultProps: { |
| | | children: "children", |
| | |
| | | methods: { |
| | | chongf(){ |
| | | //alert(2) |
| | | let clanId = this.$store.state.user.clanId |
| | | if(this.form.name!=""){ |
| | | findByFname(this.form.name).then(response => { |
| | | findByFname(this.form.name, clanId).then(response => { |
| | | console.log(response.data) |
| | | // alert(response.data!=null) |
| | | if(response.data!=null) |
| | |
| | | |
| | | }, |
| | | getAllUser(){ |
| | | getAllInfo().then(response=>{ |
| | | let clanId = this.$store.state.user.clanId |
| | | |
| | | getAllInfo(clanId).then(response=>{ |
| | | let fams = response.data |
| | | let _this = this; |
| | | console.log(fams) |
| | |
| | | /** 查询角色列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listFamily().then(response => { |
| | | this.roleList = response.data; |
| | | // this.total = response.total; |
| | | let clanId = this.$store.state.user.clanId |
| | | // alert(clanId) |
| | | //alert(clanId) |
| | | this.queryParams.clanId = clanId; |
| | | listFamily(this.queryParams).then(response => { |
| | | console.log(response) |
| | | this.roleList = response.data.data; |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | } |
| | | ); |
| | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.ts = false; |
| | | this.ts = false; |
| | | // this.getMenuTreeselect(); |
| | | this.open = true; |
| | | this.title = "添加家庭号"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | |
| | | this.reset(); |
| | | // alert(row.fid) |
| | | this.ts = true |
| | | // this.ts = true |
| | | this.$set(this.form, "fid", row.fid); |
| | | this.$set(this.form, "id", row.id); |
| | | this.$set(this.form, "name", row.name); |
| | |
| | | /** 提交按钮 */ |
| | | submitForm: function() { |
| | | let _this = this |
| | | let clanId = this.$store.state.user.clanId |
| | | this.form.clanId = clanId |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | // alert(this.form.id) |