|
@@ -79,12 +79,16 @@ import useVW, { usePX } from '@/hooks/useVW'
|
|
import useFetch from '@/hooks/useFetch'
|
|
import useFetch from '@/hooks/useFetch'
|
|
import useTableCheck from '@/hooks/useTableCheck'
|
|
import useTableCheck from '@/hooks/useTableCheck'
|
|
import RightKeyMenu from './RightKeyMenu.vue'
|
|
import RightKeyMenu from './RightKeyMenu.vue'
|
|
-
|
|
|
|
|
|
+import useMainStore from '@/store/main'
|
|
import type { EChartsOption } from 'echarts'
|
|
import type { EChartsOption } from 'echarts'
|
|
import type { ExtractApiResponse, ExtractApiParams } from '@/api/api'
|
|
import type { ExtractApiResponse, ExtractApiParams } from '@/api/api'
|
|
import type { EpTableColumn } from 'global-type'
|
|
import type { EpTableColumn } from 'global-type'
|
|
import type { PopoverInstance } from 'element-plus'
|
|
import type { PopoverInstance } from 'element-plus'
|
|
-
|
|
|
|
|
|
+const mainStore = useMainStore()
|
|
|
|
+const isChief = computed(() => {
|
|
|
|
+ const arr = ['CHIEF', 'SECTION_LEADER', 'EXPERT']
|
|
|
|
+ return arr.indexOf(mainStore.myUserInfo?.role || '') > -1
|
|
|
|
+})
|
|
const rightKeyMenu = ref(null)
|
|
const rightKeyMenu = ref(null)
|
|
const rightClick = () => {
|
|
const rightClick = () => {
|
|
visable.value = false
|
|
visable.value = false
|
|
@@ -127,10 +131,16 @@ const columns = computed(() => {
|
|
minWidth: 90,
|
|
minWidth: 90,
|
|
formatter(row: any) {
|
|
formatter(row: any) {
|
|
let r = unref(props.result) || []
|
|
let r = unref(props.result) || []
|
|
|
|
+ console.log('rrrrr:', r)
|
|
const { markingGroupNumber } = row
|
|
const { markingGroupNumber } = row
|
|
let compareTarget = r.find((item: any) => item.markingGroupNumber == markingGroupNumber)
|
|
let compareTarget = r.find((item: any) => item.markingGroupNumber == markingGroupNumber)
|
|
|
|
+ let allTarget = r.find((item: any) => item.markingGroupNumber == 0)
|
|
if (compareTarget && markingGroupNumber) {
|
|
if (compareTarget && markingGroupNumber) {
|
|
- return row.xyRelate < compareTarget.xyRelate ? <span style="color:red">{row.xyRelate}</span> : row.xyRelate
|
|
|
|
|
|
+ return row.xyRelate < compareTarget.xyRelate || (isChief.value && row.xyRelate < allTarget.xyRelate) ? (
|
|
|
|
+ <span style="color:red">{row.xyRelate}</span>
|
|
|
|
+ ) : (
|
|
|
|
+ row.xyRelate
|
|
|
|
+ )
|
|
} else {
|
|
} else {
|
|
return row.xyRelate
|
|
return row.xyRelate
|
|
}
|
|
}
|
|
@@ -257,7 +267,7 @@ const myDbClick = (row: any) => {
|
|
if (currentView.value && !!currentView.value.markingGroupNumber) {
|
|
if (currentView.value && !!currentView.value.markingGroupNumber) {
|
|
push({
|
|
push({
|
|
name: 'AnalysisPersonnelStatisticsMarker',
|
|
name: 'AnalysisPersonnelStatisticsMarker',
|
|
- query: { markerId: currentView.value.markerId, markerName: currentView.value.markerName },
|
|
|
|
|
|
+ query: { markerId: currentView.value.markerId, markerName: currentView.value.markerName, source: '人员数据统计' },
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|