This commit is contained in:
parent
b0a324f83e
commit
c9b7d35e72
|
|
@ -147,7 +147,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted, reactive } from 'vue'
|
||||||
import { useMemberStore, useCommonStore } from '@/stores'
|
import { useMemberStore, useCommonStore } from '@/stores'
|
||||||
import { useCommon } from '@/hooks/useCommon.js'
|
import { useCommon } from '@/hooks/useCommon.js'
|
||||||
import { getProcedureApi } from '@/services/common.js'
|
import { getProcedureApi } from '@/services/common.js'
|
||||||
|
|
@ -164,10 +164,9 @@ const { safeAreaInsets } = uni.getSystemInfoSync()
|
||||||
const projectShow = ref(false)
|
const projectShow = ref(false)
|
||||||
const majorShow = ref(false)
|
const majorShow = ref(false)
|
||||||
const procedureShow = ref(false)
|
const procedureShow = ref(false)
|
||||||
const projectList = ref([])
|
const projectList = reactive([])
|
||||||
const majorList = ref([])
|
const majorList = reactive([])
|
||||||
const procedureList = ref([])
|
const procedureList = ref([])
|
||||||
const searchFormRef = ref(null)
|
|
||||||
const memberStore = useMemberStore() // 用户信息
|
const memberStore = useMemberStore() // 用户信息
|
||||||
const commonStore = useCommonStore() // 公共信息
|
const commonStore = useCommonStore() // 公共信息
|
||||||
const userPermissions = ref(memberStore.userInfo.permissions || [])
|
const userPermissions = ref(memberStore.userInfo.permissions || [])
|
||||||
|
|
@ -226,8 +225,10 @@ if (userPermissions.value.length > 0) {
|
||||||
const rightPopupShow = ref(false)
|
const rightPopupShow = ref(false)
|
||||||
// 选择项目专业工序等
|
// 选择项目专业工序等
|
||||||
const onHandleSelect = async () => {
|
const onHandleSelect = async () => {
|
||||||
projectList.value.push(await getProjectList())
|
projectList = []
|
||||||
majorList.value.push(await getMajorList())
|
majorList = []
|
||||||
|
projectList.push(await getProjectList())
|
||||||
|
majorList.push(await getMajorList())
|
||||||
rightPopupShow.value = true
|
rightPopupShow.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue