Compare commits
13 Commits
Author | SHA1 | Date |
---|---|---|
|
f5332aaac7 | 9 months ago |
|
138df84205 | 9 months ago |
|
381c2a2d7f | 10 months ago |
|
4c626c7136 | 10 months ago |
|
0900103bf6 | 10 months ago |
|
d22275bffb | 10 months ago |
|
97b22aa010 | 10 months ago |
|
cfa759eea1 | 10 months ago |
|
8f083493e3 | 10 months ago |
|
b0d124a924 | 10 months ago |
|
8c1b3d5463 | 10 months ago |
|
b90f29af6a | 10 months ago |
|
ec9b89559c | 10 months ago |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 126 KiB |
After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 30 MiB After Width: | Height: | Size: 58 MiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 9.5 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1,10 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-08-14 17:19:37
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-08-20 15:32:48
|
||||
* @FilePath: \General-AI-Platform-Web-Client\src\components\Action\index.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
import isAction from "./src/isAction";
|
||||
export const IsAction = isAction;
|
@ -0,0 +1,16 @@
|
||||
.action_model_wrap {
|
||||
.el-dialog__header {
|
||||
display: none;
|
||||
}
|
||||
.el-dialog__body {
|
||||
padding: 40px 24px 14px;
|
||||
}
|
||||
.model_content_box {
|
||||
.icon_box {
|
||||
img {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-08-20 15:31:30
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-08-23 16:59:59
|
||||
* @FilePath: \General-AI-Platform-Web-Client\src\components\TableActionCard\isAction.tsx
|
||||
* @Description: 是否操作行为
|
||||
*/
|
||||
import { defineComponent, PropType } from "vue";
|
||||
import { ElDialog, ElButton } from "element-plus";
|
||||
import warnIcon from "@/assets/modelSetting/warn_icon.png";
|
||||
import "./isAction.scss";
|
||||
export default defineComponent({
|
||||
name: "IsDelete",
|
||||
props: {
|
||||
title: {
|
||||
type: String as PropType<string>,
|
||||
default: "提示"
|
||||
},
|
||||
message: {
|
||||
type: String as PropType<string>,
|
||||
default: "确定要操作吗?"
|
||||
},
|
||||
visible: {
|
||||
type: Boolean as PropType<boolean>
|
||||
// required: true
|
||||
}
|
||||
},
|
||||
emits: ["update:visible", "confirm"],
|
||||
setup(props, { emit }) {
|
||||
const { visible } = toRefs(props);
|
||||
const localVisible = ref<boolean>(visible.value);
|
||||
const handleConfirm = () => {
|
||||
emit("confirm");
|
||||
// visible.value = false;
|
||||
// emit("update:visible", false);
|
||||
};
|
||||
|
||||
const handleCancel = () => {
|
||||
// localVisible.value = false;
|
||||
emit("update:visible", false);
|
||||
};
|
||||
|
||||
const handleClose = () => {
|
||||
// localVisible.value = false;
|
||||
emit("update:visible", false);
|
||||
// done();
|
||||
};
|
||||
|
||||
watch(visible, newVal => {
|
||||
localVisible.value = newVal;
|
||||
});
|
||||
|
||||
return () => (
|
||||
<ElDialog
|
||||
className="action_model_wrap el-dialog"
|
||||
visible={localVisible.value}
|
||||
width="560px"
|
||||
before-close={handleClose}
|
||||
show-close={false}
|
||||
v-slots={{
|
||||
footer: () => (
|
||||
<>
|
||||
<ElButton onClick={handleCancel}>取消</ElButton>
|
||||
<ElButton type="primary" onClick={handleConfirm}>
|
||||
确认
|
||||
</ElButton>
|
||||
</>
|
||||
)
|
||||
}}
|
||||
>
|
||||
<div className="model_content_box">
|
||||
<div className="flex items-center pr-[12px] icon_box">
|
||||
<img src={warnIcon} />
|
||||
<span className="hf-1 pl-[12px]">{props.title}</span>
|
||||
</div>
|
||||
<div className="pl-[36px] pt-[14px]">
|
||||
<span className="pf-1" v-html={props.message}></span>
|
||||
</div>
|
||||
</div>
|
||||
</ElDialog>
|
||||
);
|
||||
}
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
import isDelete from "./src/isDelete";
|
||||
|
||||
export const IsDelete = isDelete;
|
@ -0,0 +1,69 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-02-22 13:38:04
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-08-14 15:56:12
|
||||
* @FilePath: \General-AI-Platform-Web-Client\src\components\TableActionCard\isDelete.tsx
|
||||
* @Description: 是否删除
|
||||
*/
|
||||
import { defineComponent, ref, PropType } from "vue";
|
||||
import { ElDialog, ElButton } from "element-plus";
|
||||
|
||||
export default defineComponent({
|
||||
name: "IsDelete",
|
||||
props: {
|
||||
title: {
|
||||
type: String as PropType<string>,
|
||||
default: "提示"
|
||||
},
|
||||
message: {
|
||||
type: String as PropType<string>,
|
||||
default: "确定要删除吗?"
|
||||
},
|
||||
modelValue: {
|
||||
type: Boolean as PropType<boolean>,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
emits: ["update:modelValue", "confirm"],
|
||||
setup(props, { emit }) {
|
||||
const visible = ref(props.modelValue);
|
||||
|
||||
const handleConfirm = () => {
|
||||
emit("confirm");
|
||||
visible.value = false;
|
||||
emit("update:modelValue", false);
|
||||
};
|
||||
|
||||
const handleCancel = () => {
|
||||
visible.value = false;
|
||||
emit("update:modelValue", false);
|
||||
};
|
||||
|
||||
const handleClose = (done: () => void) => {
|
||||
visible.value = false;
|
||||
done();
|
||||
};
|
||||
|
||||
return () => (
|
||||
<ElDialog
|
||||
title={props.title}
|
||||
modelValue={visible.value}
|
||||
width="30%"
|
||||
before-close={handleClose}
|
||||
v-slots={{
|
||||
footer: () => (
|
||||
<>
|
||||
<ElButton onClick={handleCancel}>取消</ElButton>
|
||||
<ElButton type="danger" onClick={handleConfirm}>
|
||||
删除
|
||||
</ElButton>
|
||||
</>
|
||||
)
|
||||
}}
|
||||
>
|
||||
<span>{props.message}</span>
|
||||
</ElDialog>
|
||||
);
|
||||
}
|
||||
});
|
@ -0,0 +1 @@
|
||||
export const workspaceIDConf = "workspace";
|
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* @Author: donghao donghao@supervision.ltd
|
||||
* @Date: 2024-08-14 14:42:09
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-08-14 14:43:30
|
||||
* @FilePath: \General-AI-Platform-Web-Client\src\utils\forApi.ts
|
||||
* @Description: 这是接口层和业务层的转换工具方法集
|
||||
*/
|
||||
/**
|
||||
* @判断接口数据是否成功返回
|
||||
* @param result 接口返回数据
|
||||
* @returns boolean
|
||||
*/
|
||||
export function isSuccessApi(result): boolean {
|
||||
if ([200].includes(result.status)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
@ -1,118 +0,0 @@
|
||||
/*
|
||||
* @Author: zhoux zhouxia@supervision.ltd
|
||||
* @Date: 2023-12-13 14:29:17
|
||||
* @LastEditors: donghao donghao@supervision.ltd
|
||||
* @LastEditTime: 2024-08-07 11:31:52
|
||||
* @FilePath: \vue-fabric-editor\src\hooks\useAddModels.ts
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
// import {watch00} from '@/assets/modelSettingJsons/watch01'
|
||||
|
||||
import watchError from "@/assets/modelSetting/watchError.svg";
|
||||
import watchOnline from "@/assets/modelSetting/watchOnline.svg";
|
||||
import watchOutline from "@/assets/modelSetting/watchOutline.svg";
|
||||
import watchWarn from "@/assets/modelSetting/watchWarn.svg";
|
||||
import watchErrorSelected from "@/assets/modelSetting/watchErrorSelected.svg";
|
||||
import watchOnlineSelected from "@/assets/modelSetting/watchOnlineSelected.svg";
|
||||
import watchOutlineSelected from "@/assets/modelSetting/watchOutlineSelected.svg";
|
||||
import watchWarnSelected from "@/assets/modelSetting/watchWarnSelected.svg";
|
||||
export interface materialItemI {
|
||||
value: string;
|
||||
name: string;
|
||||
tempUrl: string;
|
||||
src: string;
|
||||
color?: string;
|
||||
}
|
||||
const customObjectJson = {
|
||||
type: "group",
|
||||
objects: [
|
||||
{
|
||||
type: "rect",
|
||||
left: 100,
|
||||
top: 100,
|
||||
width: 100,
|
||||
height: 100,
|
||||
fill: "red"
|
||||
},
|
||||
{
|
||||
type: "circle",
|
||||
left: 200,
|
||||
top: 100,
|
||||
radius: 50,
|
||||
fill: "blue"
|
||||
},
|
||||
{
|
||||
type: "text",
|
||||
left: 150,
|
||||
top: 200,
|
||||
text: "Hello",
|
||||
fontSize: 24,
|
||||
fill: "white"
|
||||
}
|
||||
]
|
||||
};
|
||||
export const useWatchModels = () => {
|
||||
const locaWatchList: materialItemI[] = [
|
||||
{
|
||||
value: "watchError",
|
||||
name: "摄像头1",
|
||||
tempUrl: "",
|
||||
groupObject: customObjectJson,
|
||||
src: watchError,
|
||||
color: "#E80D0D"
|
||||
},
|
||||
{
|
||||
value: "watchOnline",
|
||||
name: "摄像头",
|
||||
tempUrl: "",
|
||||
src: watchOnline,
|
||||
color: "#52C41A"
|
||||
},
|
||||
{
|
||||
value: "watchOutline",
|
||||
name: "摄像头",
|
||||
tempUrl: "",
|
||||
src: watchOutline,
|
||||
color: "#CCCCCC"
|
||||
},
|
||||
{
|
||||
value: "watchWarn",
|
||||
name: "摄像头",
|
||||
tempUrl: "",
|
||||
src: watchWarn,
|
||||
color: "#FAAD14"
|
||||
},
|
||||
{
|
||||
value: "watchErrorSelected",
|
||||
name: "摄像头",
|
||||
tempUrl: "",
|
||||
src: watchErrorSelected,
|
||||
color: "#E80D0D"
|
||||
},
|
||||
{
|
||||
value: "watchOnlineSelected",
|
||||
name: "摄像头",
|
||||
tempUrl: "",
|
||||
src: watchOnlineSelected,
|
||||
color: "#52C41A"
|
||||
},
|
||||
{
|
||||
value: "watchOutlineSelected",
|
||||
name: "摄像头",
|
||||
tempUrl: "",
|
||||
src: watchOutlineSelected,
|
||||
color: "#CCCCCC"
|
||||
},
|
||||
{
|
||||
value: "watchWarnSelected",
|
||||
name: "摄像头",
|
||||
tempUrl: "",
|
||||
src: watchWarnSelected,
|
||||
color: "#FAAD14"
|
||||
}
|
||||
];
|
||||
|
||||
return {
|
||||
locaWatchList
|
||||
};
|
||||
};
|