Compare commits
No commits in common. "59c26054d9c0918ad22532e2c0fdf98d39f1437a" and "3e7268802e52f7257fff22cd3422d5e72f4421be" have entirely different histories.
59c26054d9
...
3e7268802e
|
|
@ -90,18 +90,19 @@
|
||||||
|
|
||||||
const ticket_f = ref({});
|
const ticket_f = ref({});
|
||||||
const isOwn = ref(false);
|
const isOwn = ref(false);
|
||||||
|
watch(
|
||||||
|
() => props.ticket_,
|
||||||
|
async (newVal) => {
|
||||||
|
if (newVal && Object.keys(newVal).length > 0) {
|
||||||
|
if(props.ticket_.create_by === uni.getStorageSync("userInfo").id){
|
||||||
|
isOwn.value = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ immediate: false }
|
||||||
|
)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
watch(
|
|
||||||
() => props.ticket_,
|
|
||||||
async (newVal) => {
|
|
||||||
if (newVal && Object.keys(newVal).length > 0) {
|
|
||||||
if(props.ticket_.create_by === uni.getStorageSync("userInfo").id){
|
|
||||||
isOwn.value = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ immediate: false, deep: true }
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const popup = ref(null);
|
const popup = ref(null);
|
||||||
|
|
|
||||||
|
|
@ -36,17 +36,8 @@ const props = defineProps({
|
||||||
const workflow = ref(null);
|
const workflow = ref(null);
|
||||||
const transitions = ref([]);
|
const transitions = ref([]);
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
// setTimeout(()=>{init()}, 500)
|
await getUser()
|
||||||
await init();
|
setTimeout(()=>{init()}, 500)
|
||||||
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("")
|
||||||
|
|
@ -75,6 +66,10 @@ 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