Merge branch 'main' of http://gitea.xxhhcty.xyz:8080/zcdsj/factory_mp
This commit is contained in:
commit
ec16b88318
|
|
@ -90,6 +90,7 @@
|
||||||
|
|
||||||
const ticket_f = ref({});
|
const ticket_f = ref({});
|
||||||
const isOwn = ref(false);
|
const isOwn = ref(false);
|
||||||
|
onMounted(() => {
|
||||||
watch(
|
watch(
|
||||||
() => props.ticket_,
|
() => props.ticket_,
|
||||||
async (newVal) => {
|
async (newVal) => {
|
||||||
|
|
@ -99,10 +100,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ immediate: false }
|
{ immediate: false, deep: true }
|
||||||
)
|
)
|
||||||
onMounted(() => {
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const popup = ref(null);
|
const popup = ref(null);
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,17 @@ const props = defineProps({
|
||||||
const workflow = ref(null);
|
const workflow = ref(null);
|
||||||
const transitions = ref([]);
|
const transitions = ref([]);
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await getUser()
|
// setTimeout(()=>{init()}, 500)
|
||||||
setTimeout(()=>{init()}, 500)
|
await init();
|
||||||
|
watch(
|
||||||
|
() => props.ticket_,
|
||||||
|
async (newVal) => {
|
||||||
|
if (newVal && Object.keys(newVal).length > 0) {
|
||||||
|
await init();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ deep: true }
|
||||||
|
)
|
||||||
})
|
})
|
||||||
const actionShow = ref(false);
|
const actionShow = ref(false);
|
||||||
const suggestion = ref("")
|
const suggestion = ref("")
|
||||||
|
|
@ -66,10 +75,6 @@ const init = async () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const currentUser = ref(null);
|
|
||||||
const getUser = async() =>{
|
|
||||||
currentUser.value = uni.getStorageSync("userInfo").id
|
|
||||||
}
|
|
||||||
|
|
||||||
const isSaveing = ref(false);
|
const isSaveing = ref(false);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue