Compare commits
10 Commits
b5fd1f2a9d
...
f9a87143aa
Author | SHA1 | Date |
---|---|---|
lyc | f9a87143aa | |
zhengdegang | 17ef183741 | |
zdg | d5833f6f03 | |
zdg | c93eeeb308 | |
zhengdegang | 0d48111e50 | |
zdg | ca57e72e9c | |
zhengdegang | 928a1401db | |
zdg | e0d3a6da6a | |
zdg | 1a9b426ec3 | |
lyc | d4cfedf883 |
|
@ -169,7 +169,7 @@ const handleNodeClick = (data, node) => {
|
|||
}
|
||||
else {
|
||||
// 否则 点击的为二级节点 parentNode 为它的父级节点
|
||||
nodeData.parentNode = parentNode
|
||||
nodeData.parentNode = toRaw(parentNode)
|
||||
}
|
||||
|
||||
let curData = {
|
||||
|
|
|
@ -61,7 +61,7 @@ function stateSyncWatch(storeName, newState) {
|
|||
// console.log('state-change-diffData', diffData)
|
||||
try {
|
||||
for(const key in diffData) {
|
||||
const value = diffData[key]
|
||||
const value = diffData[key] || null
|
||||
const newValue = {} // 重新组装pinia需要的数据 {a:{b:1}} 这种
|
||||
const keyArr = key.split('.') || []
|
||||
keyArr.reduce((o,c,i)=>{o[c] = i === keyArr.length-1 ? value : {};return o[c]}, newValue)
|
||||
|
@ -172,6 +172,8 @@ const getObjValue = (obj, key) => {
|
|||
const findDifferences = (obj1, obj2) => {
|
||||
const differences = {};
|
||||
function compareObjects(o1, o2, path = '') {
|
||||
if (o1 == null) return
|
||||
if (o2 == null) return
|
||||
for (const key in o1) {
|
||||
if (o1.hasOwnProperty(key)) {
|
||||
const newPath = path ? `${path}.${key}` : key;
|
||||
|
|
|
@ -86,7 +86,7 @@ import useUserStore from '@/store/modules/user'
|
|||
import { ElMessage } from 'element-plus'
|
||||
import { getCurrentTime, getAfterMinutes } from '@/utils/date'
|
||||
|
||||
const emit = defineEmits(['addSuccess'])
|
||||
const emit = defineEmits(['addSuccess','close'])
|
||||
const props = defineProps({
|
||||
bookId: {
|
||||
type: Number,
|
||||
|
@ -217,6 +217,8 @@ const closeDialog = () => {
|
|||
ruleFormDialog.value.resetFields()
|
||||
centerDialogVisible.value = false
|
||||
form.name = props.currentNode.label
|
||||
emit('close')
|
||||
|
||||
}
|
||||
const classList = ref([])
|
||||
onMounted(() => {
|
||||
|
|
|
@ -158,6 +158,7 @@
|
|||
:current-node="currentNode"
|
||||
:book-id="uploadData.textbookId"
|
||||
@add-success="initReserv"
|
||||
@close="closeChange"
|
||||
></reserv>
|
||||
<!-- 上课配置 -->
|
||||
<class-start ref="calssRef" @close="closeChange"/>
|
||||
|
@ -319,6 +320,7 @@ export default {
|
|||
this.activeClass = item
|
||||
},
|
||||
closeChange() { // 上课弹窗被关闭-触发
|
||||
console.log('关闭上课弹窗')
|
||||
this.activeClass = null
|
||||
sessionStore.delete('activeClass')
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue