Merge branch 'main' of http://123.132.248.154:10000/gitY/LinYeFangHuo
commit
d17ed1ffae
|
|
@ -12,7 +12,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue'
|
||||
import { onMounted, watch } from 'vue'
|
||||
import { eventHandlerHook } from '@/hooks/eventHandler.hook';
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore';
|
||||
|
||||
|
|
@ -26,18 +26,21 @@ const props = defineProps({
|
|||
})
|
||||
|
||||
const changeButton = (type) => {
|
||||
|
||||
props.chartConfig.option.selectButton = type
|
||||
|
||||
eventHandlerHook(
|
||||
chartEditStore.getComponentList,
|
||||
props.chartConfig.events.interactConfigEvents[type],
|
||||
'click',
|
||||
type,
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
watch(() => props.chartConfig.status.hide, (newVal) => {
|
||||
if(!newVal && props.chartConfig.option.selectButton){
|
||||
changeButton(props.chartConfig.option.selectButton)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
const { list, selectButton } = props.chartConfig.option
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -11,21 +11,8 @@ export const option = {
|
|||
textColor1: '#FFFFFF',
|
||||
textSize2: 12,
|
||||
textColor2: '#CBE6CD',
|
||||
clockInRecordList:[
|
||||
{
|
||||
Name: '孙宗元',
|
||||
CreateTime: '2025-03-25 10:32:00',
|
||||
Lng: '118.042384994261',
|
||||
Lat: '35.41264994152264'
|
||||
}
|
||||
],
|
||||
xunChaGuiJiList:[
|
||||
{
|
||||
name: '孙宗元',
|
||||
startTime: '2025-03-25 10:32:00',
|
||||
endTime: '2025-03-25 17:32:00'
|
||||
}
|
||||
]
|
||||
clockInRecordList:[],
|
||||
xunChaGuiJiList:[]
|
||||
}
|
||||
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
|
|
|
|||
Loading…
Reference in New Issue