Commit 366ef055 authored by 胡占生's avatar 胡占生 🇨🇳

Merge branch 'developer' of http://git.censoft.com.cn/ai-yunshou/ai-yunshou-vue into developer

parents e1496a9c 8361d733
......@@ -340,7 +340,7 @@ const device = useIndex({
});
const aiAlgorithm = useIndex(
{
list: "/yunshou/aiAlgorithmConfig/list",
list: "/yunshou/userAlgorithm/list",
detail: "/yunshou/aiAlgorithmConfig/",
},
() => {},
......
......@@ -45,7 +45,7 @@
</el-dropdown-link>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item @click="areaManger.toAdd(data)"
<el-dropdown-item @click="areaMangerAddBefore(data)"
>新增子区域</el-dropdown-item
>
<el-dropdown-item @click="areaManger.toEdit(data)"
......@@ -184,11 +184,11 @@
/>
</template>
<el-dialog
title="新增区域"
title="区域管理"
v-model="areaManger.visible.value"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="50%"
width="40%"
top="30%"
>
<el-form ref="areaMangerRef" :model="areaManger.form" label-width="120px">
<el-form-item label="上级区域" prop="regionPath">
......@@ -198,6 +198,7 @@
:props="{ children: 'children', value: 'id', checkStrictly: true }"
placeholder="请选择上级区域"
clearable
style="width: 100%;"
/>
</el-form-item>
<el-form-item label="区域名称" prop="regionName">
......@@ -340,6 +341,12 @@ function createPoint() {
}
algorithmManage.toAdd();
}
/* 新增子区域 */
function areaMangerAddBefore(data){
areaManger.form.value.parents = [data.id];
console.log(data)
areaManger.toAdd(data)
}
function configProTime(data) {
aiAlarmPeriodTime.getList({ regionalLocationId: data.id });
algorithmManage.getDetail(data.id).then(({ data }) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment