diff --git a/.env.development b/.env.development index db68361..ad5724a 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ ENV = 'development' # 若依管理系统/开发环境 -# VUE_APP_BASE_API = 'http://121.36.65.171:9527' -VUE_APP_BASE_API = 'http://172.119.51.195:8080' +VUE_APP_BASE_API = 'http://121.36.65.171:9527' +#VUE_APP_BASE_API = 'http://172.119.51.195:8080' # 路由懒加载 diff --git a/src/api/company/campanyVerify.js b/src/api/company/campanyVerify.js new file mode 100644 index 0000000..5472dde --- /dev/null +++ b/src/api/company/campanyVerify.js @@ -0,0 +1,30 @@ +import request from '@/utils/request' + +// 获取需要审核企业列表 +export function getAuditEnterpriseList(query) { + return request({ + url: '/system/enterpriseManager/getAuditEnterpriseList', + method: 'post', + data: query + }) +} + + +// 企业通过审核 +export function passAuditEnterprise(query) { + return request({ + url: '/system/enterpriseManager/auditEnterprise', + method: 'post', + data:query + }) +} + +// 驳回企业审核 +export function turnDownEnterprise(query) { + return request({ + url: '/system/enterpriseManager/turnDownEnterprise', + method: 'post', + data:query + }) + } + diff --git a/src/api/login.js b/src/api/login.js index 869cd9f..772b0c4 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -37,4 +37,63 @@ export function getCodeImg() { url: '/captchaImage', method: 'get' }) -} \ No newline at end of file +} + +// 发送注册用短信验证码 +export function sendRegeditCode(params) { + return request({ + url: '/system/user/sendRegeditCode', + method: 'post', + data:params + }) +} + +// 发送忘记密码用短信验证码 +export function sendModifyPasswordCode(param) { + return request({ + url: '/system/user/sendModifyPasswordCode', + method: 'post', + data:param + }) +} + + +// 注册用户 +export function registerUser(param) { + return request({ + url: '/system/user/regeditUser', + method: 'post', + data:param + }) +} + + + + +// 通过账号获取用户信息 +export function getUserByUserName(param) { + return request({ + url: '/system/user/getUserByUserName', + method: 'post', + data:param + }) +} + +// 校验忘记密码验证码 +export function validModifyPasswordCode(param) { + return request({ + url: '/system/user/validModifyPasswordCode', + method: 'post', + data:param + }) +} + +// 忘记密码-修改密码 +export function forgetPassword(param) { + return request({ + url: '/system/user/forgetPassword', + method: 'post', + data:param + }) +} + diff --git a/src/api/system/certification.js b/src/api/system/certification.js index a8bf9be..15a5391 100644 --- a/src/api/system/certification.js +++ b/src/api/system/certification.js @@ -50,4 +50,34 @@ export function exportCertification(query) { method: 'get', params: query }) -} \ No newline at end of file +} + + + +// 查询自己的认证信息 +export function getEnterpriseCertificationInfoByLogin() { + return request({ + url: '/system/certification/getEnterpriseCertificationInfoByLogin', + method: 'get' + }) +} +// 企业工商认证 +export function certificationEnterprise(data) { + return request({ + url: '/system/enterpriseManager/certificationEnterprise', + method: 'post', + // data: data + }) +} + +// 企业工业互联网认证 +export function industrialInternetCertification(data) { + return request({ + url: '/system/enterpriseManager/industrialInternetCertification', + method: 'post', + // data: data + }) +} + + + diff --git a/src/api/system/enterpriseManager.js b/src/api/system/enterpriseManager.js index 12a677b..a0a49a3 100644 --- a/src/api/system/enterpriseManager.js +++ b/src/api/system/enterpriseManager.js @@ -50,4 +50,27 @@ export function exportEnterpriseManager(query) { method: 'get', params: query }) -} \ No newline at end of file +} + + + +// 根据登陆账户获取企业详细信息 +export function getEnterPriseInfoByLogin() { + return request({ + url: '/system/enterpriseManager/getEnterPriseInfoByLogin', + method: 'get', + // params: query + }) +} + +// 根据父节点id获取子节点 +export function getAreaByParentId(params) { + return request({ + url: '/system/area/getAreaByParentId', + method: 'post', + data: params + }) +} + + + diff --git a/src/assets/logo/logo.png b/src/assets/logo/logo.png index e263760..d656b88 100644 Binary files a/src/assets/logo/logo.png and b/src/assets/logo/logo.png differ diff --git a/src/router/index.js b/src/router/index.js index bdf2228..b03ea6d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -111,6 +111,14 @@ export const constantRoutes = [ name: 'manager', meta: { title: '企业信息', icon: 'list', noCache: true } }, + //系统级-企业审核 + { + path: 'campanyVerify', + component: (resolve) => require(['@/views/company/campanyVerify'], resolve), + name: 'campanyVerify', + meta: { title: '企业审核', icon: 'list', noCache: true } + }, + //企业级-企业信息 { path: 'companyInfo', @@ -128,35 +136,35 @@ export const constantRoutes = [ ] }, - { - path: '/product', - component: Layout, - meta: { title: '产品服务', icon: 'dashboard', noCache: true, affix: true }, - children: [ - // 企业级-企业查询 - { - path: 'Packag', - component: (resolve) => require(['@/views/product/productPackag'], resolve), - name: 'Packag', - meta: { title: '产品包装', icon: 'search', noCache: true } - }, - //系统级-预包装管理 - { - path: 'prepackaging', - component: (resolve) => require(['@/views/product/prepackaging'], resolve), - name: 'prepackaging', - meta: { title: '预包装管理', icon: 'search', noCache: true } - }, - //系统级-标准文件管理 - { - path: 'fileManger', - component: (resolve) => require(['@/views/product/flieManager'], resolve), - name: 'fileManger', - meta: { title: '标准文件管理', icon: 'search', noCache: true } - }, + // { + // path: '/product', + // component: Layout, + // meta: { title: '产品服务', icon: 'dashboard', noCache: true, affix: true }, + // children: [ + // // 企业级-企业查询 + // { + // path: 'Packag', + // component: (resolve) => require(['@/views/product/productPackag'], resolve), + // name: 'Packag', + // meta: { title: '产品包装', icon: 'search', noCache: true } + // }, + // //系统级-预包装管理 + // { + // path: 'prepackaging', + // component: (resolve) => require(['@/views/product/prepackaging'], resolve), + // name: 'prepackaging', + // meta: { title: '预包装管理', icon: 'search', noCache: true } + // }, + // //系统级-标准文件管理 + // { + // path: 'fileManger', + // component: (resolve) => require(['@/views/product/flieManager'], resolve), + // name: 'fileManger', + // meta: { title: '标准文件管理', icon: 'search', noCache: true } + // }, - ] - }, + // ] + // }, { path: '/user', component: Layout, diff --git a/src/views/company/authentication.vue b/src/views/company/authentication.vue index eb2327a..b226eca 100644 --- a/src/views/company/authentication.vue +++ b/src/views/company/authentication.vue @@ -1,24 +1,42 @@ \ No newline at end of file diff --git a/src/views/company/campanyVerify.vue b/src/views/company/campanyVerify.vue new file mode 100644 index 0000000..8c454c4 --- /dev/null +++ b/src/views/company/campanyVerify.vue @@ -0,0 +1,217 @@ + + + + diff --git a/src/views/company/companyInfo copy.vue b/src/views/company/companyInfo copy.vue new file mode 100644 index 0000000..3595641 --- /dev/null +++ b/src/views/company/companyInfo copy.vue @@ -0,0 +1,194 @@ + + + + diff --git a/src/views/company/companyInfo.vue b/src/views/company/companyInfo.vue index 3595641..e407992 100644 --- a/src/views/company/companyInfo.vue +++ b/src/views/company/companyInfo.vue @@ -1,194 +1,567 @@ diff --git a/src/views/company/manager.vue b/src/views/company/manager.vue index ceb0ea9..87c181a 100644 --- a/src/views/company/manager.vue +++ b/src/views/company/manager.vue @@ -27,9 +27,8 @@ - - - + + @@ -193,7 +192,7 @@ export default { /** 修改按钮操作 */ handleUpdate(row) { this.reset(); - const enterpriseid = row.enterpriseid + const enterpriseid = row.enterpriseId getEnterpriseManager(enterpriseid).then(response => { this.form = response.data; this.open = true; diff --git a/src/views/company/search.vue b/src/views/company/search.vue index 24e6910..9288bcc 100644 --- a/src/views/company/search.vue +++ b/src/views/company/search.vue @@ -21,7 +21,6 @@ 重置 确定 -
企业类型: @@ -396,6 +395,8 @@ export default { } .advanced-search { position: absolute; + z-index: 999; + background: #fff; left: 50%; transform: translateX(-50%); margin-top: 20px; diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 8b1742f..186c2ee 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -84,12 +84,12 @@ export default { this.echartsData = { "enterpriseRegeditCount": res.data.enterpriseRegeditCount, - "userRegeditCount": res.data.userRegeditCount, - "onlineUserCount": res.data.onlineUserCount + "unreviewedEnterpriseCount": res.data.unreviewedEnterpriseCount, + "auditedEnterpriseCount": res.data.auditedEnterpriseCount } this.setEcharts(this.echarts_1,this.echartsData.enterpriseRegeditCount,'注册企业') - this.setEcharts(this.echarts_2,this.echartsData.userRegeditCount,'注册用户') - this.setEcharts(this.echarts_3,this.echartsData.onlineUserCount,'在线用户') + this.setEcharts(this.echarts_2,this.echartsData.unreviewedEnterpriseCount,'待审核企业数') + this.setEcharts(this.echarts_3,this.echartsData.auditedEnterpriseCount,'已审核企业数') }) }, jumpRouter(name){ @@ -105,7 +105,7 @@ export default { var option = { title: { text: title, - left:'38%', + left:'center', top:'40px', textStyle: { fontWeight: 'normal', diff --git a/src/views/home/index2.vue b/src/views/home/index2.vue index 92931b8..f617baf 100644 --- a/src/views/home/index2.vue +++ b/src/views/home/index2.vue @@ -14,14 +14,31 @@
- + +
- +
{{companyInfo.enterpriseName}}
{{companyInfo.userName}}
{{companyInfo.phonenumber}}
-
{{companyInfo.loginDate.split('T')[0]}}
+
{{companyInfo.loginDate}}
+
+ + + + + + + + + + + + + 下载企业名片 + +
@@ -57,8 +74,12 @@ import {getDay} from "@/utils/index" // import echarts from "echarts"; import { list} from "@/api/monitor/operlog"; import {getIndexInfo} from "@/api/home/index" +import vueQr from 'vue-qr' export default { name:'home', + components: { + vueQr + }, data() { return { day:getDay(), @@ -70,7 +91,15 @@ export default { pageNum: 1, pageSize: 8 }, - companyInfo:{} + companyInfo:{}, + enterpriseUrl:'', + // 表单参数 + form: { + isItPublic:'0' + }, + imageUrl:"", + companyID:'', + qrTest:"", } }, mounted() { @@ -89,14 +118,30 @@ export default { this.tableData = response.rows; }); getIndexInfo().then(res =>{ - console.log(res); this.companyInfo = res.data if(this.companyInfo.loginDate) { let times = this.companyInfo.loginDate.split("T")[0] + ' ' + this.companyInfo.loginDate.split("T")[1].split(".")[0] this.companyInfo.loginDate = times } + this.enterpriseUrl = this.companyInfo.enterpriseUrl || require("@/assets/images/profile.jpg") + this.companyID = this.companyInfo.enterpriseId + if(this.companyInfo.enterpriseUrl) { + this.imageUrl = require(this.companyInfo.enterpriseUrl) + } + this.changeIsPublic() }) }, + downloadImg () { + const iconUrl = this.$refs.Qrcode.$el.src + let a = document.createElement('a') + let event = new MouseEvent('click') + a.download = '二维码' + a.href = iconUrl + a.dispatchEvent(event) + }, + changeIsPublic(val){ + this.qrTest = this.companyID+'&' + this.form.isItPublic + }, jumpRouter(name){ this.$router.push({name:name}) }, diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 9e92d24..9580c41 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -1,7 +1,8 @@ @@ -157,6 +158,11 @@ export default { height: 100%; background-image: url("../../assets/images/login-background.jpg"); background-size: cover; + .logo-pic { + top: 50px; + left: 20%; + position: absolute; + } } .title { margin: 0px auto 30px auto; diff --git a/src/views/login/register.vue b/src/views/login/register.vue index c3ab168..a2254ec 100644 --- a/src/views/login/register.vue +++ b/src/views/login/register.vue @@ -3,22 +3,9 @@
供应商·企业注册
- - - - -
-

注册企业请使用真实有效的企业信息与用户信息, - 系统平台会对注册企业进行信息认证,只有认证通过的企业才可以使用本平台。

- + @@ -46,61 +33,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- {{backBtn[stepActive-1]}} - {{nextBtn[stepActive-1]}} + 返回 + 注册
@@ -108,7 +46,7 @@ @@ -432,7 +257,7 @@ export default { position: relative; margin: 50px 0; width: 800px; - height: 500px; + height: 530px; border-radius: 20px; box-shadow: 0 0 10px 1px #a5a5a5; padding: 30px; diff --git a/src/views/login/retrievePassword.vue b/src/views/login/retrievePassword.vue index e207c9a..466d9e9 100644 --- a/src/views/login/retrievePassword.vue +++ b/src/views/login/retrievePassword.vue @@ -98,10 +98,10 @@