|
@@ -44,29 +44,9 @@
|
|
|
<el-scrollbar height="100%">
|
|
<el-scrollbar height="100%">
|
|
|
<div v-if="currentRow?.name == ''" class="details_title">请在左侧列表中选择算法</div>
|
|
<div v-if="currentRow?.name == ''" class="details_title">请在左侧列表中选择算法</div>
|
|
|
<div v-else class="details_title">{{ currentRow?.name }}检测算法展示</div>
|
|
<div v-else class="details_title">{{ currentRow?.name }}检测算法展示</div>
|
|
|
- <div class="textbox">
|
|
|
|
|
- <div class="item_title">算法描述:</div>
|
|
|
|
|
- <div class="item_details"
|
|
|
|
|
- >飞鸟检测算法用于检测生产现场是否有飞鸟出没,实时报警,安全生产。"据台湾中时新闻网11日报道,台湾防务部门称,解放军山东舰航母编队11日沿所谓“海峡中线”以西,由北向南穿越台湾海峡。台军声称“绵密掌握海空域动态”,检派适切兵力“监控应处”云云。",</div
|
|
|
|
|
- >
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="textbox">
|
|
|
|
|
- <div class="item_title"> 精确率:</div>
|
|
|
|
|
- <div class="item_details">90%</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="textbox">
|
|
|
|
|
- <div class="item_title"> 找回率:</div>
|
|
|
|
|
- <div class="item_details">90%</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="textbox">
|
|
|
|
|
- <div class="item_title">适用场景:</div>
|
|
|
|
|
- <div class="item_details">室外作业、开阔作业场景。</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="textbox">
|
|
|
|
|
- <div class="item_title">电子围栏:</div>
|
|
|
|
|
- <div class="item_details"
|
|
|
|
|
- >建议做全局检测,可选择性按需设置电子围栏。从战略高度和长远角度擘画新时代中越关系蓝图,推动中越关系确立新定位、迈入新阶段。我先后会见了赴华访问或出席会议的国家主席武文赏、政府总理范明政、越共中央书记处常务书记张氏梅同志</div
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <div v-for="item in arrRemark" :key="item" class="textbox">
|
|
|
|
|
+ <div class="item_title">{{ item }}</div>
|
|
|
|
|
+ <!-- <div class="item_details">{{ currentRow?.remark }}</div> -->
|
|
|
</div>
|
|
</div>
|
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
|
</div>
|
|
</div>
|
|
@@ -78,7 +58,7 @@
|
|
|
<div class="right_bottom">
|
|
<div class="right_bottom">
|
|
|
<div class="details_title" style="margin-bottom: 16px">报警推送编辑</div>
|
|
<div class="details_title" style="margin-bottom: 16px">报警推送编辑</div>
|
|
|
<el-form :model="alarmConfig" size="default" :rules="rules" ref="ruleFormRef">
|
|
<el-form :model="alarmConfig" size="default" :rules="rules" ref="ruleFormRef">
|
|
|
- <el-form-item label="语句编辑:" prop="pushLinkPrompt">
|
|
|
|
|
|
|
+ <el-form-item label="语句编辑:" prop="pushStatement">
|
|
|
<div class="pushStatement">
|
|
<div class="pushStatement">
|
|
|
<div class="remark">时间:(示例:2023.10.23 10:55:28)</div>
|
|
<div class="remark">时间:(示例:2023.10.23 10:55:28)</div>
|
|
|
<div class="remark">地点:(示例:C919总装车间150A工位)</div>
|
|
<div class="remark">地点:(示例:C919总装车间150A工位)</div>
|
|
@@ -90,7 +70,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
- <el-form-item label="链接提示:" prop="pushStatement">
|
|
|
|
|
|
|
+ <el-form-item label="链接提示:" prop="pushLinkPrompt">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="alarmConfig.pushLinkPrompt"
|
|
v-model="alarmConfig.pushLinkPrompt"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
@@ -98,7 +78,9 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="onSubmit">保 存</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" :loading="isSending" @click="onSubmit"
|
|
|
|
|
+ >保 存</el-button
|
|
|
|
|
+ >
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|
|
@@ -122,6 +104,7 @@
|
|
|
algoList,
|
|
algoList,
|
|
|
getAlgoDatas,
|
|
getAlgoDatas,
|
|
|
page,
|
|
page,
|
|
|
|
|
+ pageSize,
|
|
|
keyWord,
|
|
keyWord,
|
|
|
searchAlgoDatas,
|
|
searchAlgoDatas,
|
|
|
algoId,
|
|
algoId,
|
|
@@ -132,6 +115,7 @@
|
|
|
//将后端拉到的数据存到algoListUse数组中进行使用
|
|
//将后端拉到的数据存到algoListUse数组中进行使用
|
|
|
//刷新时从后端拉一次算法数组
|
|
//刷新时从后端拉一次算法数组
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
|
|
+ pageSize.value = 12;
|
|
|
getAlgoDatas();
|
|
getAlgoDatas();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -168,9 +152,13 @@
|
|
|
pushStatement: string;
|
|
pushStatement: string;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ const arrRemark = ref<string[]>([]);
|
|
|
|
|
+
|
|
|
const handleRowClick = (val: User | undefined) => {
|
|
const handleRowClick = (val: User | undefined) => {
|
|
|
- console.log('xxxxxxxxxx', currentRow.value);
|
|
|
|
|
|
|
+ // console.log('xxxxxxxxxx', currentRow.value);
|
|
|
currentRow.value = val;
|
|
currentRow.value = val;
|
|
|
|
|
+ arrRemark.value = currentRow.value.remark.split('\r\n');
|
|
|
|
|
+ // console.log('arrRemark', arrRemark.value);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const searchKey = ref('');
|
|
const searchKey = ref('');
|
|
@@ -191,17 +179,22 @@
|
|
|
|
|
|
|
|
const ruleFormRef = ref<FormInstance>();
|
|
const ruleFormRef = ref<FormInstance>();
|
|
|
|
|
|
|
|
|
|
+ const isSending = ref(false);
|
|
|
|
|
+
|
|
|
const onSubmit = async () => {
|
|
const onSubmit = async () => {
|
|
|
if (!ruleFormRef.value) console.log('error submit!');
|
|
if (!ruleFormRef.value) console.log('error submit!');
|
|
|
await ruleFormRef.value?.validate((valid, fields) => {
|
|
await ruleFormRef.value?.validate((valid, fields) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
|
+ isSending.value = true;
|
|
|
algoId.value = currentRow.value.id;
|
|
algoId.value = currentRow.value.id;
|
|
|
pushLinkPrompt.value = alarmConfig.value.pushLinkPrompt;
|
|
pushLinkPrompt.value = alarmConfig.value.pushLinkPrompt;
|
|
|
pushStatement.value = alarmConfig.value.pushStatement;
|
|
pushStatement.value = alarmConfig.value.pushStatement;
|
|
|
- console.log('algoId', algoId.value);
|
|
|
|
|
- console.log('pushStatement', pushStatement.value);
|
|
|
|
|
- console.log('pushLinkPrompt', pushLinkPrompt.value);
|
|
|
|
|
- modifyAlgoDatas();
|
|
|
|
|
|
|
+ // console.log('algoId', algoId.value);
|
|
|
|
|
+ // console.log('pushStatement', pushStatement.value);
|
|
|
|
|
+ // console.log('pushLinkPrompt', pushLinkPrompt.value);
|
|
|
|
|
+ modifyAlgoDatas().then(() => {
|
|
|
|
|
+ isSending.value = false;
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
console.log('error submit!', fields);
|
|
console.log('error submit!', fields);
|
|
|
}
|
|
}
|
|
@@ -274,7 +267,7 @@
|
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
|
.item_title {
|
|
.item_title {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- width: 20.2%;
|
|
|
|
|
|
|
+ width: 100%;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
color: rgba(0, 0, 0, 0.85);
|
|
color: rgba(0, 0, 0, 0.85);
|