Commit 5c338c14 authored by zhanglw's avatar zhanglw

个人中心

parent 09c7fdfb
...@@ -507,6 +507,27 @@ export const HttpReq = { ...@@ -507,6 +507,27 @@ export const HttpReq = {
method: 'get' method: 'get'
}) })
}, },
// 行业资讯查询
industryInformation: function(params) {
return request({
url: '/api/bsw/bigScreen/industryInformation?' + qs.stringify(params, { indices: false }),
method: 'get'
})
},
// 行业资讯查询-详情
findDetailIndustryInformationById: function(params) {
return request({
url: '/api/bsw/bigScreen/industryInformation/findDetailIndustryInformationById?' + qs.stringify(params, { indices: false }),
method: 'get'
})
},
// 个人中心-个人详情
personalCenterInfo: function(params) {
return request({
url: '/api/bsw/bigScreen/personalCenter?' + qs.stringify(params, { indices: false }),
method: 'get'
})
},
id: null id: null
} }
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="user-info-content"> <div class="user-info-content">
<div class="user-info-text" style="padding-top:5px">用户名:<span>{{ userObj.userName }}</span></div> <div class="user-info-text" style="padding-top:5px">用户名:<span>{{ userObj.userName }}</span></div>
<div class="user-info-text">企业名称:<span>{{ userObj.enterpriseName }}</span></div> <div class="user-info-text">企业名称:<span>{{ userObj.enterpriseName }}</span></div>
<div class="user-info-text">供应商状态:<span style="color: #0D8BF7">{{ userObj.status }}</span></div> <div class="user-info-text">供应商状态:<span style="color: #0D8BF7">{{ dict.label.custom_status[userObj.supplierStatus] }}</span></div>
<div class="line-btn"> <div class="line-btn">
<div class="user-info-btn touch" @click="$router.push({ path: '/console/userInfo' })">信息修改</div> <div class="user-info-btn touch" @click="$router.push({ path: '/console/userInfo' })">信息修改</div>
<div class="user-info-btn touch" @click="$refs.pass.dialog = true">密码修改</div> <div class="user-info-btn touch" @click="$refs.pass.dialog = true">密码修改</div>
...@@ -60,9 +60,11 @@ import { mapGetters } from 'vuex' ...@@ -60,9 +60,11 @@ import { mapGetters } from 'vuex'
import myUpload from 'vue-image-crop-upload' import myUpload from 'vue-image-crop-upload'
import updatePass from '../../system/user/center/updatePass' import updatePass from '../../system/user/center/updatePass'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { HttpReq } from '@/api/common'
export default { export default {
components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, userMenus, myUpload, updatePass }, components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, userMenus, myUpload, updatePass },
dicts: ['custom_status'],
data() { data() {
return { return {
Avatar: Avatar, Avatar: Avatar,
...@@ -75,9 +77,9 @@ export default { ...@@ -75,9 +77,9 @@ export default {
pageSize: 16, pageSize: 16,
total: 0, total: 0,
userObj: { userObj: {
userName: '546586856', userName: '',
enterpriseName: '企业名称:佛山英沃传感科技有限公司', enterpriseName: '',
status: '审核已通过' supplierStatus: '审核已通过'
}, },
uploadVisible: false, uploadVisible: false,
throttle: null, // 节流器 throttle: null, // 节流器
...@@ -93,7 +95,9 @@ export default { ...@@ -93,7 +95,9 @@ export default {
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
HttpReq.webClientApi.personalCenterInfo().then((res) => {
this.userObj = res.data
})
}) })
}, },
methods: { methods: {
......
...@@ -272,7 +272,16 @@ export default { ...@@ -272,7 +272,16 @@ export default {
submitForm() { submitForm() {
this.$refs.formViewRef.validate((valid, obj) => { this.$refs.formViewRef.validate((valid, obj) => {
if (valid) { if (valid) {
HttpReq.backstageApi.updateCustomerDetail(this.formData).then((res) => {
this.$notify({
title: res.msg,
type: 'success',
duration: 2500
})
if (res.code === 200) {
this.cancelView()
}
})
} else { } else {
this.$message({ this.$message({
message: '表单信息有误,请核对无误后提交!', message: '表单信息有误,请核对无误后提交!',
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="news-head"> <div class="news-head">
<h2>{{ dataObj.title }}</h2> <h2>{{ dataObj.title }}</h2>
<div class="news-info"> <div class="news-info">
<div>来源:{{ dataObj.msgSrc }}</div> <div>来源:{{ dataObj.source }}</div>
<div>发布时间:{{ dataObj.date }}</div> <div>发布时间:{{ dataObj.date }}</div>
</div> </div>
</div> </div>
...@@ -45,6 +45,7 @@ import languageSetting from '../components/languageSettingV2' ...@@ -45,6 +45,7 @@ import languageSetting from '../components/languageSettingV2'
import homeFooter from '../components/homeFooter' import homeFooter from '../components/homeFooter'
import inquiryView from '../components/inquiryView' import inquiryView from '../components/inquiryView'
import floatBtn from '../components/floatBtn' import floatBtn from '../components/floatBtn'
import { HttpReq } from '@/api/common'
export default { export default {
components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, floatBtn }, components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, floatBtn },
...@@ -65,10 +66,10 @@ export default { ...@@ -65,10 +66,10 @@ export default {
sort: false sort: false
}, },
dataObj: { dataObj: {
title: '工业传感器:夯实新基建工业创新基础', title: '',
content: '           与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首', content: '',
msgSrc: 'xxxx新闻网', source: '',
date: '2023-06-12' date: ''
}, },
throttle: null, // 节流器 throttle: null, // 节流器
throttleTime: 300 throttleTime: 300
...@@ -76,7 +77,7 @@ export default { ...@@ -76,7 +77,7 @@ export default {
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
console.log(this.$route.params) this.loadData()
}) })
}, },
methods: { methods: {
...@@ -111,7 +112,11 @@ export default { ...@@ -111,7 +112,11 @@ export default {
this.loadData() this.loadData()
}, },
loadData() { loadData() {
HttpReq.webClientApi.findDetailIndustryInformationById({
id: this.$route.params.id
}).then((res) => {
this.dataObj = res.data
})
}, },
goTop() { goTop() {
document.body.scrollTop = 0 document.body.scrollTop = 0
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment