| | |
| | | type="primary" |
| | | icon="delete">批量删除 |
| | | </a-button> |
| | | <a-button @click="handleSecret" type="primary" icon="frown" v-if="selectionRows.length===1&&selectionRows[0].title==='kitty'">查询</a-button> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | |
| | | |
| | | <permission-modal ref="modalForm" @ok="modalFormOk"></permission-modal> |
| | | <permission-data-rule-list ref="PermissionDataRuleList" @ok="modalFormOk"></permission-data-rule-list> |
| | | <secret-model ref="secret"></secret-model> |
| | | |
| | | </a-card> |
| | | </template> |
| | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import PermissionDataRuleList from './PermissionDataRuleList' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import SecretModel from './modules/SecretModel.vue' |
| | | |
| | | const columns = [ |
| | | { |
| | |
| | | components: { |
| | | PermissionDataRuleList, |
| | | PermissionModal, |
| | | JEllipsis |
| | | JEllipsis, |
| | | SecretModel |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }) |
| | | } |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.selectionRows = selectionRows; |
| | | }, |
| | | // 根据已展开的行查询数据(用于保存后刷新时异步加载子级的数据) |
| | | loadDataByExpandedRows(dataList) { |
| | | if (this.expandedRowKeys.length > 0) { |
| | |
| | | handleExpandedRowsChange(expandedRows) { |
| | | this.expandedRowKeys = expandedRows |
| | | }, |
| | | handleSecret(){ |
| | | this.$refs.secret.title='秘密' |
| | | this.$refs.secret.add(); |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |