添加角色控制
This commit is contained in:
parent
8a31a4e285
commit
0726f4a927
|
@ -547,12 +547,15 @@
|
||||||
:dataSource="meetingName"
|
:dataSource="meetingName"
|
||||||
:columns="meetingColumns"
|
:columns="meetingColumns"
|
||||||
:scroll="{ y: tableHeight }"
|
:scroll="{ y: tableHeight }"
|
||||||
rowKey="channelId"
|
rowKey="key"
|
||||||
:rowClassName="
|
:rowClassName="
|
||||||
(record, index) => (index % 2 === 1 ? 'table-striped' : null)
|
(record, index) => (index % 2 === 1 ? 'table-striped' : null)
|
||||||
"
|
"
|
||||||
:showSizeChanger="false"
|
:showSizeChanger="false"
|
||||||
:row-selection="rowSelection"
|
:row-selection="{
|
||||||
|
selectedRowKeys: meetingSelect,
|
||||||
|
onChange: meetingOnSelectChange,
|
||||||
|
}"
|
||||||
></a-table>
|
></a-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- 西海岸-无人机、单兵设备 -->
|
<!-- 西海岸-无人机、单兵设备 -->
|
||||||
|
@ -801,6 +804,9 @@
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { Form } from 'ant-design-vue'
|
import { Form } from 'ant-design-vue'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
import { useStore } from 'vuex'
|
||||||
|
const store = useStore()
|
||||||
|
const username = store.getters['user/username']
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
// 模糊查
|
// 模糊查
|
||||||
searchValue: { type: String, default: '' },
|
searchValue: { type: String, default: '' },
|
||||||
|
@ -841,30 +847,20 @@
|
||||||
], //显示所有按钮,
|
], //显示所有按钮,
|
||||||
})
|
})
|
||||||
const meetingSelect = ref([])
|
const meetingSelect = ref([])
|
||||||
const rowSelection = ref({
|
const meetingOnSelectChange = (selectedRowKeys) => {
|
||||||
checkStrictly: false,
|
|
||||||
onChange: (selectedRowKeys, selectedRows) => {
|
|
||||||
console.log(
|
console.log(
|
||||||
`selectedRowKeys: ${selectedRowKeys}`,
|
'selectedRowKeys changed: ',
|
||||||
'selectedRows: ',
|
selectedRowKeys,
|
||||||
selectedRows
|
meetingSelect.value
|
||||||
)
|
)
|
||||||
},
|
meetingSelect.value = selectedRowKeys
|
||||||
onSelect: (record, selected, selectedRows) => {
|
}
|
||||||
console.log(record, selected, selectedRows)
|
|
||||||
// if (selected) {
|
|
||||||
// selectedRows.push(record.key)
|
|
||||||
// } else {
|
|
||||||
// selectedRows.splice(selectedRows.indexOf(record.key), 1)
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
onSelectAll: (selected, selectedRows, changeRows) => {
|
|
||||||
console.log(selected, selectedRows, changeRows)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
const videoList = ref([])
|
const videoList = ref([])
|
||||||
const initMeeting = () => {
|
const initMeeting = () => {
|
||||||
initiateMeet('青岛市一网统揽项目组/一网统揽平台组/').then((res) => {
|
let str = ''
|
||||||
|
meetingSelect.value.map((val) => (str += val + '/'))
|
||||||
|
initiateMeet(str).then((res) => {
|
||||||
console.log('组会=========>', res)
|
console.log('组会=========>', res)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -1055,12 +1051,9 @@
|
||||||
title: '设施类型',
|
title: '设施类型',
|
||||||
content: isXiHaiAn
|
content: isXiHaiAn
|
||||||
? ['视频资源']
|
? ['视频资源']
|
||||||
: [
|
: username == 'admin'
|
||||||
'政务云资源',
|
? ['政务云资源', '视频资源', '城市云脑会客厅', '视频会议']
|
||||||
'视频资源' /**',感知资源' */,
|
: ['政务云资源', '视频资源', '城市云脑会客厅'],
|
||||||
'城市云脑会客厅',
|
|
||||||
'视频会议',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
let clickList = ref([]) //存储点击的tab
|
let clickList = ref([]) //存储点击的tab
|
||||||
|
|
Loading…
Reference in New Issue