Commit d141d036 authored by tanjuanjuan's avatar tanjuanjuan

修改

parent 9155b9ff
...@@ -146,9 +146,9 @@ ...@@ -146,9 +146,9 @@
const flag3 = ref(true) const flag3 = ref(true)
const flag4 = ref(true) const flag4 = ref(true)
//const pInfo = ref(store.state.pInfo||null) //const pInfo = ref(store.state.pInfo||null)
const xing = ref(null) // const xing = ref(null)
const ch = ref(null) // const ch = ref(null)
const YandM = ref(null) //const YandM = ref(null)
const toggleFlag1 = () => { const toggleFlag1 = () => {
flag1.value = !flag1.value flag1.value = !flag1.value
} }
...@@ -232,18 +232,18 @@ ...@@ -232,18 +232,18 @@
}, },
}); });
watch(pInfo.value.spname,(n,o)=>{
})
onMounted(() => { onMounted(() => {
xing.value = computed(() => { const xing = computed(() => {
return pInfo.value?.spname.slice(0, 1).replace(/^["']|["']$/g, '') return pInfo.value?.spname.slice(0, 1).replace(/^["']|["']$/g, '')
}) })
ch.value = computed(() => { const ch = computed(() => {
return pInfo.value?.sex == '女' ? '女士' : '先生'; return pInfo.value?.sex == '女' ? '女士' : '先生';
// if (pInfo.value) {
// return pInfo.value.sex == '女' ? '女士' : '先生'
// }
}) })
YandM.value = computed(() => { const YandM= computed(() => {
if (pInfo.value) { if (pInfo.value) {
let year = String(pInfo.value.zghjny).slice(0, 4) let year = String(pInfo.value.zghjny).slice(0, 4)
let month = String(pInfo.value.zghjny).slice(4, 6) let month = String(pInfo.value.zghjny).slice(4, 6)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment