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