| | |
| | | import * as supervisorApi from '/@/api/supervisorAdmin'; |
| | | import { updateSqlApi } from '/@/api/supervisorAdmin'; |
| | | import { useCompRef } from '/@/utils/types'; |
| | | import { SupervisorPublished } from '../types'; |
| | | |
| | | const props = defineProps(['supervisor']); |
| | | const emit = defineEmits(['backLastPage']); |
| | | const emit = defineEmits(['backLastPage', 'updatePublished']); |
| | | const log = console.log; |
| | | const jsonCode = ref(codeExample.jsonCode); |
| | | const dockCode = ref(codeExample.dockCode); |
| | |
| | | { |
| | | loading: false, |
| | | } |
| | | ); |
| | | ).then(() => { |
| | | emit('updatePublished', props.supervisor.id, SupervisorPublished.N); |
| | | }); |
| | | }; |
| | | |
| | | const sqlCodeChange = debounce((val) => { |
| | |
| | | rsTableRef.value.setCurrentRow(configList.value[0]); |
| | | // dockRowChange(configList.value[0]); |
| | | } |
| | | |
| | | |
| | | |
| | | if (checkRsUpdate(originConfig, configList.value)) { |
| | | // 自动更新Rs |