parent
566df47ce8
commit
41ea25f927
|
|
@ -273,7 +273,7 @@ export const saveDeviceMapping = (deviceId: string, data: any) => server.post(`/
|
||||||
/**
|
/**
|
||||||
*批量删除云端映射设备
|
*批量删除云端映射设备
|
||||||
*/
|
*/
|
||||||
export const deleteDeviceMapping = (deviceId: string, data:any) => server.post(`/edge/operations/${deviceId}/device-mapping-delete/invoke`, data)
|
export const deleteDeviceMapping = (deviceId: string, data:any) => server.post(`/edge/operations/${deviceId}/device-mapping-delete-by-deviceid/invoke`, data)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取产品列表
|
* 获取产品列表
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,9 @@ const queryLocalRecords = async (date: Dayjs) => {
|
||||||
deviceId.value,
|
deviceId.value,
|
||||||
channelId.value,
|
channelId.value,
|
||||||
params,
|
params,
|
||||||
);
|
).finally(()=>{
|
||||||
|
loading.value = false;
|
||||||
|
})
|
||||||
if (localResp.status === 200 && localResp.result.length) {
|
if (localResp.status === 200 && localResp.result.length) {
|
||||||
const serviceResp = await playBackApi.recordsInServer(
|
const serviceResp = await playBackApi.recordsInServer(
|
||||||
deviceId.value,
|
deviceId.value,
|
||||||
|
|
@ -247,10 +249,8 @@ const queryLocalRecords = async (date: Dayjs) => {
|
||||||
includeFiles: false,
|
includeFiles: false,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
loading.value = false;
|
|
||||||
let newList: recordsItemType[] = serviceResp.result;
|
let newList: recordsItemType[] = serviceResp.result;
|
||||||
// console.log(newList)
|
// console.log(newList)
|
||||||
|
|
||||||
if (serviceResp.status === 200 && serviceResp.result) {
|
if (serviceResp.status === 200 && serviceResp.result) {
|
||||||
// 判断是否已下载云端视频
|
// 判断是否已下载云端视频
|
||||||
newList = localResp.result.map((item: recordsItemType) => {
|
newList = localResp.result.map((item: recordsItemType) => {
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,7 @@
|
||||||
<PermissionButton
|
<PermissionButton
|
||||||
:hasPermission="`${rolePermission}:add`"
|
:hasPermission="`${rolePermission}:add`"
|
||||||
@click="form.clickAddItem('roleIdList', 'Role')"
|
@click="form.clickAddItem('roleIdList', 'Role')"
|
||||||
|
v-if="!admin"
|
||||||
>
|
>
|
||||||
<AIcon type="PlusOutlined" />
|
<AIcon type="PlusOutlined" />
|
||||||
</PermissionButton>
|
</PermissionButton>
|
||||||
|
|
@ -206,6 +207,15 @@ import { AxiosResponse } from 'axios';
|
||||||
import { passwordRegEx } from '@/utils/validate';
|
import { passwordRegEx } from '@/utils/validate';
|
||||||
import { filterSelectNode, onlyMessage } from '@/utils/comm';
|
import { filterSelectNode, onlyMessage } from '@/utils/comm';
|
||||||
import { uniqBy } from 'lodash-es';
|
import { uniqBy } from 'lodash-es';
|
||||||
|
import { useUserInfo } from '@/store/userInfo';
|
||||||
|
import { storeToRefs } from 'pinia';
|
||||||
|
|
||||||
|
const userInfoStore = useUserInfo()
|
||||||
|
const { userInfos } = storeToRefs(userInfoStore)
|
||||||
|
|
||||||
|
const admin = computed(() => {
|
||||||
|
return userInfos.value?.username === 'admin';
|
||||||
|
})
|
||||||
|
|
||||||
const deptPermission = 'system/Department';
|
const deptPermission = 'system/Department';
|
||||||
const rolePermission = 'system/Role';
|
const rolePermission = 'system/Role';
|
||||||
|
|
|
||||||
|
|
@ -96,9 +96,8 @@ export default defineConfig(({ mode}) => {
|
||||||
// target: 'http://192.168.32.244:8881',
|
// target: 'http://192.168.32.244:8881',
|
||||||
// target: 'http://192.168.32.163:8844', //张季本地
|
// target: 'http://192.168.32.163:8844', //张季本地
|
||||||
// target: 'http://120.77.179.54:8844', // 120测试
|
// target: 'http://120.77.179.54:8844', // 120测试
|
||||||
// target: 'http://192.168.33.46:8844', // 本地开发环境
|
target: 'http://192.168.33.46:8844', // 本地开发环境
|
||||||
// target: 'http://192.168.32.5:8848', // 刘本地
|
// target: 'http://192.168.32.5:8848', // 刘本地
|
||||||
target: 'http://192.168.32.187:8844', // 刘本地
|
|
||||||
ws: 'ws://192.168.33.46:8844',
|
ws: 'ws://192.168.33.46:8844',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, '')
|
rewrite: (path) => path.replace(/^\/api/, '')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue