基础设施-bug414

This commit is contained in:
851673013@qq.com 2022-07-01 18:20:43 +08:00
parent 46e5c6dbb6
commit 0d110a5af6
1 changed files with 25 additions and 21 deletions

View File

@ -118,6 +118,7 @@
import { getCategoryTreePage } from '@/api/personalCenter' import { getCategoryTreePage } from '@/api/personalCenter'
import { dataType } from 'element-plus/es/components/table-v2/src/common' import { dataType } from 'element-plus/es/components/table-v2/src/common'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { message } from 'ant-design-vue'
import { ref, reactive, onMounted } from 'vue' import { ref, reactive, onMounted } from 'vue'
import { import {
getCameraByParentId, getCameraByParentId,
@ -125,7 +126,6 @@
getCameraAllLabel, getCameraAllLabel,
} from '@/api/videoSurveillance' } from '@/api/videoSurveillance'
import { sgcInsert } from '@/api/home' import { sgcInsert } from '@/api/home'
import { message } from 'ant-design-vue'
import mybus from '@/myplugins/mybus' import mybus from '@/myplugins/mybus'
const router = useRouter() const router = useRouter()
const options = reactive({ const options = reactive({
@ -350,26 +350,30 @@
dept.deptName = infrastructure.deptName dept.deptName = infrastructure.deptName
} }
const apply = () => { const apply = () => {
console.log('一键申请', selectedList.value) if (selectedRowKeys.value.length != 0) {
let arr = [ console.log('一键申请', selectedList.value)
{ let arr = [
arr: [ {
{ arr: [
description: '', {
note1: JSON.stringify(selectedList.value), description: '',
resourceId: '1522550195055828996', note1: JSON.stringify(selectedList.value),
resourceName: '摄像头列表', resourceId: '1522550195055828996',
type: '基础设施', resourceName: '摄像头列表',
}, type: '基础设施',
], },
deptId: dept.deptId, ],
deptName: dept.deptName, deptId: dept.deptId,
}, deptName: dept.deptName,
] },
localStorage.setItem('applyList', JSON.stringify(arr)) ]
router.push({ localStorage.setItem('applyList', JSON.stringify(arr))
path: '/apply', router.push({
}) path: '/apply',
})
} else {
message.error('请选择需要申请的数据')
}
} }
// //
const addShopCar = () => { const addShopCar = () => {