| | |
| | | <TableLayout :permissions="['business:devicerole:query']"> |
| | | <!-- 搜索表单 --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="门禁组名称" prop="name"> |
| | | <el-form-item title="门禁组名称" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请输入门禁组名称" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <section> |
| | |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar"> |
| | | <li><el-button type="primary" @click="synchronousData">同步</el-button></li> |
| | | <li><el-button type="primary" v-permissions="['business:hksync:privilege']" @click="synchronousData">同步</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | :height="tableHeightNew" |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | |
| | | <span v-if="row.type === '2'">内部人员</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="memberNum" label="使用人数" min-width="100px"></el-table-column> |
| | | <el-table-column prop="isDefault" label="是否默认" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.isDefault === 0">是</span> |
| | |
| | | }).then(() => { |
| | | syncPrivilege({}) |
| | | .then(res => { |
| | | this.$message({ type: 'success', message: '同步成功' }) |
| | | this.$message({ type: 'success', message:res || '同步成功' }) |
| | | this.search() |
| | | }) |
| | | }).catch(() => { |