...
|
...
|
@@ -43,8 +43,8 @@ import { ref, getCurrentInstance, ComponentPublicInstance } from 'vue' |
|
|
import { onShow, onLoad } from '@dcloudio/uni-app'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { useSelectDataStore } from '../../store/selectData'
|
|
|
import { getUserInfo, updateChange_userinfo, getDepartment } from '../../api'
|
|
|
import { sUserInfoType, ChangeUserInfoType, IndexListType } from '../../types'
|
|
|
import { getUserInfo, updateChange_userinfo, getDepartment,getIndex } from '../../api'
|
|
|
import { sUserInfoType, ChangeUserInfoType, IndexListType,IndexType } from '../../types'
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as { proxy: ComponentPublicInstance }
|
|
|
|
...
|
...
|
@@ -126,11 +126,20 @@ const confirmEditUserInfoHandler = async () => { |
|
|
proxy.$h.timeCallBack('修改成功')
|
|
|
}
|
|
|
|
|
|
const getIndexDataHandler = async () => {
|
|
|
const { result }: { result: IndexType } = await getIndex()
|
|
|
|
|
|
if(![20,'20'].includes(result.examineState)) mineinfo.value[5].url = ''
|
|
|
|
|
|
// authState.value = Number(result.examineState)
|
|
|
}
|
|
|
|
|
|
onLoad(() => {
|
|
|
getInfoHandler()
|
|
|
})
|
|
|
|
|
|
onShow(() => {
|
|
|
getIndexDataHandler()
|
|
|
if (SelectDepartmentList.value.length > 0) {
|
|
|
mineinfo.value[5].text = SelectDepartmentList.value.map((_: { id: string; name: string }) => _.name).join()
|
|
|
|
...
|
...
|
|