|
|
@@ -197,7 +197,8 @@
|
|
|
'active': activeTab === tab.id,
|
|
|
'link-tab': tab.isLink,
|
|
|
'info-tab': tab.isInfo
|
|
|
- }"
|
|
|
+ }"
|
|
|
+ v-show="tab.name=='肢体检测'?this.enable_posture_check: true "
|
|
|
@click="handleTabClick(tab)"
|
|
|
>
|
|
|
{{ tab.name }}
|
|
|
@@ -241,8 +242,8 @@
|
|
|
{{ getPsychologyRiskLevel=='低风险' ? '无异常' : '有异常' }}
|
|
|
</span>
|
|
|
</span>
|
|
|
- <span class="separator">/</span>
|
|
|
- <span class="detection-item">
|
|
|
+ <span class="separator" v-if="this.enable_posture_check">/</span>
|
|
|
+ <span class="detection-item" v-if="this.enable_posture_check">
|
|
|
肢体检测 <span class="status-normal" :style="userInfo.visual_analysis_done ? '':'color:#f56c6c;'"> {{ userInfo.visual_analysis_done ? '无异常' : '有异常' }}</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -450,7 +451,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div ref="body" class="body-detection-section">
|
|
|
+ <div ref="body" class="body-detection-section" v-if="this.enable_posture_check">
|
|
|
<div class="detection-section-header">
|
|
|
<div class="section-title">肢体检测</div>
|
|
|
<el-button
|
|
|
@@ -1220,6 +1221,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
emotionAnalysis: {},//情绪
|
|
|
+ enable_posture_check:false,//肢体检测
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
@@ -1252,6 +1254,8 @@ export default {
|
|
|
this.radarChartInstance = this.$refs.radarChart
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ this.init()
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
// 移除滚动监听
|
|
|
@@ -1352,6 +1356,23 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+/* 获取应用配置 this.$route.params.position*/
|
|
|
+ async init(){
|
|
|
+ const response = await fetch(
|
|
|
+ `${import.meta.env.VITE_API_URL}/api/system/job_config/position/detail/${this.$route.query.position}`
|
|
|
+ )
|
|
|
+ if (!response.ok) {
|
|
|
+ throw new Error('获取数据失败')
|
|
|
+ }
|
|
|
+
|
|
|
+ const data = await response.json()
|
|
|
+
|
|
|
+ if (data.code === 2000) {
|
|
|
+ const configData=data.data
|
|
|
+ this.enable_posture_check=configData.enable_posture_check
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
async reAnalyze() {
|
|
|
try {
|
|
|
// 先调用视频分析接口
|