diff --git a/src/api/index.js b/src/api/index.js index 13d849b..b1320c6 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,11 +1,14 @@ import Setting from '@/setting' const host = Setting.apiBaseURL -let host1 = 'http://192.168.31.51:10010/' +let host1 = 'http://192.168.31.217:10010/' +// let host1 = 'http://124.71.79.122/' export default { logins: `users/users/user/login`, verification: `${host}users/users/user/captcha`, + sendPhoneOrEmailCode: `users/users/userAccount/sendPhoneOrEmailCode`, + queryProvince: `nakadai/nakadai/province/queryProvince`, queryCity: `nakadai/nakadai/city/queryCity`, querySchool: `nakadai/nakadai/school/querySchool`, @@ -20,11 +23,25 @@ export default { editCompetition: `competition/competition/management/editCompetition`, getCompetition: `competition/competition/management/getCompetition`, queryRegistrationByCondition: `competition/competition/registration/queryRegistrationByCondition`, + enterpriseCertificationDetails: `users/enterprise/certification/enterpriseCertificationDetails`, delCertification: `users/enterprise/certification/batchDeletion`, findCertification: `users/enterprise/certification/findById`, selectEnterpriseCertificationList: `users/enterprise/certification/selectEnterpriseCertificationList`, + informationAudit: `users/enterprise/certification/informationAudit`, + deletePlatformAuthenticationInformation: `users/users/autonym/deletePlatformAuthenticationInformation`, + updateCertification: `users/enterprise/certification/update`, + queryTeamInfo: `nakadai/kindergarten/platformTeamAccount/queryTeamInfo`, + updateTeamInfo: `nakadai/kindergarten/platformTeamAccount/updateTeamInfo`, + platformTeamAccountList: `nakadai/kindergarten/platformTeamAccount/platformTeamAccountList`, - queryUserInfoList: `${host1}users/users/userAccount/queryUserInfoList`, - viewUserDetails: `${host1}users/users/userAccount/viewUserDetails`, + queryUserInfoList: `users/users/userAccount/queryUserInfoList`, + viewUserDetails: `users/users/userAccount/viewUserDetails`, + updateAccountAllEnable: `users/users/userAccount/updateAccountAllEnable`, + updateTeamStatus: `nakadai/kindergarten/platformTeamAccount/updateTeamStatus`, + delUserAccounts: `users/users/userAccount/delUserAccounts`, + queryUserInfoByPhone: `nakadai/nakadai/partner-team/queryUserInfoByPhone`, + transferAdmin: `nakadai/nakadai/partnerAccount/transferAdmin`, + savePartnerAccount: `nakadai/nakadai/partnerAccount/savePartnerAccount`, + platformTeamAccountList: `nakadai/kindergarten/platformTeamAccount/platformTeamAccountList`, } \ No newline at end of file diff --git a/src/assets/images/house.png b/src/assets/images/house.png new file mode 100644 index 0000000..ac85480 Binary files /dev/null and b/src/assets/images/house.png differ diff --git a/src/assets/images/mini.jpg b/src/assets/images/mini.jpg new file mode 100644 index 0000000..5ed371d Binary files /dev/null and b/src/assets/images/mini.jpg differ diff --git a/src/const/user.js b/src/const/user.js index e5493b8..b561f86 100644 --- a/src/const/user.js +++ b/src/const/user.js @@ -30,15 +30,19 @@ export default { }, { id: 0, - name: '默认待审核' + name: '未提交' }, { id: 1, - name: '通过' + name: '待审核' }, { id: 2, - name: '驳回' + name: '已通过' + }, + { + id: 3, + name: '不通过' }, ], } diff --git a/src/libs/util.js b/src/libs/util.js index f9cd434..140b351 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -110,6 +110,11 @@ const util = { Message.closeAll(); return Message.error({ message, showClose: true, offset: (document.documentElement.clientHeight - 40) / 2, duration }); }, + // 判断是否是移动端 + isMobile() { + if(window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)) return true + return false + }, }; export default util; \ No newline at end of file diff --git a/src/pages/activity/manage/matchSignup.vue b/src/pages/activity/manage/matchSignup.vue index cca4d6c..a4e865c 100644 --- a/src/pages/activity/manage/matchSignup.vue +++ b/src/pages/activity/manage/matchSignup.vue @@ -1,38 +1,23 @@ @@ -15,6 +17,7 @@ import Setting from "@/setting"; import Basic from './basic' import Auth from './auth' +import Member from './member' import { mapState } from "vuex"; export default { data () { @@ -22,13 +25,15 @@ export default { active: 'tab1', tabs: { tab1: "基本信息", - tab2: "认证信息" + tab2: "认证信息", + tab3: "幼儿园成员", }, }; }, components: { Basic, - Auth + Auth, + Member }, computed: { ...mapState('auth', [ @@ -40,7 +45,7 @@ export default { }, methods: { // tab切换 - tabSwitch (i) { + tabChange (i) { this.active = i }, } diff --git a/src/pages/preschool/manage/member.vue b/src/pages/preschool/manage/member.vue new file mode 100644 index 0000000..06b5620 --- /dev/null +++ b/src/pages/preschool/manage/member.vue @@ -0,0 +1,196 @@ + + + + + \ No newline at end of file diff --git a/src/pages/supplier/audit/index.vue b/src/pages/supplier/audit/index.vue new file mode 100644 index 0000000..d01bfef --- /dev/null +++ b/src/pages/supplier/audit/index.vue @@ -0,0 +1,132 @@ + + + + + \ No newline at end of file diff --git a/src/pages/supplier/list/index.vue b/src/pages/supplier/list/index.vue index d372203..d06a2e9 100644 --- a/src/pages/supplier/list/index.vue +++ b/src/pages/supplier/list/index.vue @@ -11,8 +11,7 @@ @clear="clearprovince"> + :value="item.provinceName">
  • @@ -21,15 +20,13 @@ clearable placeholder="请选择城市" :disabled="form.provinces ? false : true" - @clear="clearcity" @change="initData"> + :value="item.cityName">
  • -
  • + @@ -48,17 +45,15 @@
    - - - - - - + + + + + +
    - 新增 批量删除 - 批量导出
    - - - - - - - - + align="center"> + + + align="center"> + + @@ -137,13 +129,13 @@ export default { name: 'baseform', data () { return { - userId: this.$route.query.userId, + openId: this.$route.query.openId, auditStatus: Const.auditStatus, platformSource: Const.platformSource, isDetail: this.$route.query.show === '1', // 是否是详情 form: { //个人信息 - userId: '', + openId: '', userName: '', //用户姓名 uniqueIdentification: '', //唯一识别码 idNumber: '', //证件号码 @@ -153,6 +145,7 @@ export default { rules: { userName: [{ required: true, message: '请输入用户姓名', trigger: 'blur' }] }, + userAccountList: [], platformList: [], //平台系统列表 }; }, @@ -166,17 +159,24 @@ export default { name: '查看用户信息' }, ]) - this.userId && this.getdata() + this.openId && this.getdata() }, methods: { getdata () { - this.$get(this.api.viewUserDetails, { userId: this.userId }).then(({ result }) => { + this.$get(this.api.viewUserDetails, { openId: this.openId }).then(({ result }) => { const info = result.hrUserInfo - info.phone = result.userAccount.phone + // info.phone = result.userAccount.phone // 如果有手机号,则把唯一标识显示成MD5加密后的手机号,截取前13位数(唯一标识默认是13位数) - if (info.phone) info.uniqueIdentification = md5(info.phone).slice(0, 13) + // if (info.phone) info.uniqueIdentification = md5(info.phone).slice(0, 13) this.form = info - this.platformList = result.enterpriseCertificationList + if (result.userAccountList) { + result.userAccountList.forEach(e => { + e.platformName = this.platformSource.find(n => n.id == e.platformId).name + }) + this.userAccountList = result.userAccountList + console.log(333, this.userAccountList) + } + this.platformList = result.organizationInfoList }).catch((res) => { }) }, goback () { @@ -184,24 +184,21 @@ export default { }, // 用户禁用启用 switchUser (val, row) { - this.$get(this.api.updateAccountEnable, { - id: row.accountId, - isEnable: val - }).then(res => { - this.$message.success(val ? '启用成功' : '禁用成功') + this.$post(`${this.api.updateTeamStatus}?teamId=${row.teamId}&isEnable=${val}`).then(res => { + this.$message.success(val ? '禁用成功' : '启用成功') }).catch(res => { row.isEnable = 0 }) }, show (row) { - this.$router.push(`/info?userId=${row.userId}&platformName=${row.platformName}`) + this.$router.push(`/info?openId=${row.openId}&platformName=${row.platformName}`) }, // 删除 del (row) { this.$confirm('确定要移除吗?', '提示', { type: 'warning' }).then(() => { - this.$post(this.api.delUserAccounts, [row.userId]).then(res => { + this.$post(this.api.delUserAccounts, [row.openId]).then(res => { this.$message.success('移除成功') this.getData() }).catch(res => { }) @@ -213,6 +210,10 @@ export default {