| | |
| | | <div style="margin-left: 10px;display: flex"> |
| | | <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <el-button type="primary" icon="el-icon-setting" @click="settingButton">设置</el-button> |
| | | <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button>--> |
| | | <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button> |
| | | </div> |
| | | <el-divider /> |
| | | <div class="elTableDiv"> |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <i v-if="row.is_user==='Y'" class="el-icon-user-solid" @click="userClick(row)" /> |
| | | <i v-if="row.is_user==='N'" class="el-icon-user-solid" style="color: #E4E7ED" @click="userClick(row)" /> |
| | | <i v-if="row.is_user==='N'" class="el-icon-user-solid" style="color: rgb(180 ,181, 185)" @click="userClick(row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <i v-if="row.is_right==='Y'" class="el-icon-share" @click="rightClick(row)" /> |
| | | <i v-if="row.is_right==='N'" class="el-icon-share" style="color: #E4E7ED" @click="rightClick(row)" /> |
| | | <i v-if="row.is_right==='N'" class="el-icon-share" style="color: rgb(180 ,181, 185)" @click="rightClick(row)" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <!--导入组件--> |
| | | <import-picker ref="importPickerFunc" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/Pagination' |
| | | import ImportPicker from '@/components/ImportPicker' |
| | | import { |
| | | AddUpdateRole, |
| | | DeleteRole, RoleAssociationRight, |
| | |
| | | export default { |
| | | name: 'JSQD', |
| | | components: { |
| | | Pagination |
| | | Pagination, ImportPicker |
| | | }, |
| | | data() { |
| | | const validateName = (rule, value, callback) => { |
| | |
| | | } |
| | | } |
| | | } |
| | | // const validateTypeCode = (rule, value, callback) => { |
| | | // if (!value) { |
| | | // return callback(new Error('请选择上级')) |
| | | // } else { |
| | | // callback() |
| | | // } |
| | | // } |
| | | return { |
| | | isFullscreen: false, |
| | | mainHeight: 0, |
| | |
| | | value: 'code' |
| | | }, |
| | | PCTrue: false, // 是否展示 |
| | | APPTrue: false// 是否展示 |
| | | APPTrue: false, // 是否展示 |
| | | |
| | | title_value: '数据导入 / 角色清单', |
| | | code: '1', |
| | | shows: false |
| | | } |
| | | }, |
| | | watch: { |
| | | shows() { |
| | | if (!this.shows) { |
| | | this.getRoleSearch() |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.formSetting.order = order |
| | | this.formSetting.prop = prop |
| | | this.getRoleTypeSearch() |
| | | }, |
| | | |
| | | upload() { |
| | | |
| | | }, |
| | | // 查询 |
| | | search() { |
| | |
| | | this.dialogFormRight.rightAPPArrSelected = ['APP'] |
| | | } |
| | | } |
| | | }, |
| | | // 导入按钮 |
| | | upload() { |
| | | this.shows = true |
| | | this.$refs.importPickerFunc.newDataFunc() |
| | | }, |
| | | colos() { |
| | | this.shows = false |
| | | } |
| | | |
| | | } |