|
@@ -25,8 +25,10 @@ import { get, cloneDeep } from 'lodash-es'
|
|
// 接口
|
|
// 接口
|
|
import { DictDataStore } from '@/store/api/system/dictData'
|
|
import { DictDataStore } from '@/store/api/system/dictData'
|
|
import { DesignStore } from '@/store/api/platform/design'
|
|
import { DesignStore } from '@/store/api/platform/design'
|
|
|
|
+import { RoleStore } from '@/store/api/system/role'
|
|
const dictDataStore = DictDataStore()
|
|
const dictDataStore = DictDataStore()
|
|
const designStore = DesignStore()
|
|
const designStore = DesignStore()
|
|
|
|
+const roleStore = RoleStore()
|
|
// 组件
|
|
// 组件
|
|
import userCode from './parts/userCode.vue'
|
|
import userCode from './parts/userCode.vue'
|
|
// 路由
|
|
// 路由
|
|
@@ -52,8 +54,9 @@ const IndustryList = ref([])
|
|
const cardTypeList = ref([])
|
|
const cardTypeList = ref([])
|
|
const contributionList = ref([])
|
|
const contributionList = ref([])
|
|
const companyList = ref([])
|
|
const companyList = ref([])
|
|
|
|
+const roleList = ref([])
|
|
// 用户类型
|
|
// 用户类型
|
|
-const type = ref('0')
|
|
|
|
|
|
+// const type = ref('0')
|
|
// 用户协议
|
|
// 用户协议
|
|
const isAgree = ref(false)
|
|
const isAgree = ref(false)
|
|
// 请求
|
|
// 请求
|
|
@@ -70,6 +73,9 @@ const searchOther = async () => {
|
|
// 用户类型
|
|
// 用户类型
|
|
result = await dictDataStore.query({ code: 'userType', is_use: '0' })
|
|
result = await dictDataStore.query({ code: 'userType', is_use: '0' })
|
|
if ($checkRes(result)) typeList.value = result.data
|
|
if ($checkRes(result)) typeList.value = result.data
|
|
|
|
+ // 用户角色
|
|
|
|
+ result = await roleStore.query({ is_use: '0', is_admin_role: '0' })
|
|
|
|
+ if ($checkRes(result)) roleList.value = result.data
|
|
// // 专家领域
|
|
// // 专家领域
|
|
// result = await dictDataStore.query({ code: 'field', is_use: '0' })
|
|
// result = await dictDataStore.query({ code: 'field', is_use: '0' })
|
|
// if ($checkRes(result)) fieldList.value = result.data
|
|
// if ($checkRes(result)) fieldList.value = result.data
|
|
@@ -103,10 +109,10 @@ const searchOther = async () => {
|
|
// 城市
|
|
// 城市
|
|
getCity().then((response) => (cityList.value = response.address))
|
|
getCity().then((response) => (cityList.value = response.address))
|
|
}
|
|
}
|
|
-// 选择用户类型
|
|
|
|
-const toSelect = async (data) => {
|
|
|
|
- type.value = data
|
|
|
|
-}
|
|
|
|
|
|
+// // 选择用户类型
|
|
|
|
+// const toSelect = async (data) => {
|
|
|
|
+// type.value = data
|
|
|
|
+// }
|
|
// 去登录
|
|
// 去登录
|
|
const toLogin = () => {
|
|
const toLogin = () => {
|
|
router.push({ path: '/login' })
|
|
router.push({ path: '/login' })
|
|
@@ -136,6 +142,7 @@ provide('IndustryList', IndustryList)
|
|
provide('cardTypeList', cardTypeList)
|
|
provide('cardTypeList', cardTypeList)
|
|
provide('contributionList', contributionList)
|
|
provide('contributionList', contributionList)
|
|
provide('companyList', companyList)
|
|
provide('companyList', companyList)
|
|
|
|
+provide('roleList', roleList)
|
|
// 方法
|
|
// 方法
|
|
provide('toLogin', toLogin)
|
|
provide('toLogin', toLogin)
|
|
provide('toBack', toBack)
|
|
provide('toBack', toBack)
|