Commit 5c338c14 authored by zhanglw's avatar zhanglw

个人中心

parent 09c7fdfb
......@@ -507,6 +507,27 @@ export const HttpReq = {
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
}
}
......
......@@ -23,7 +23,7 @@
<div class="user-info-content">
<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 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="user-info-btn touch" @click="$router.push({ path: '/console/userInfo' })">信息修改</div>
<div class="user-info-btn touch" @click="$refs.pass.dialog = true">密码修改</div>
......@@ -60,9 +60,11 @@ import { mapGetters } from 'vuex'
import myUpload from 'vue-image-crop-upload'
import updatePass from '../../system/user/center/updatePass'
import { getToken } from '@/utils/auth'
import { HttpReq } from '@/api/common'
export default {
components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, userMenus, myUpload, updatePass },
dicts: ['custom_status'],
data() {
return {
Avatar: Avatar,
......@@ -75,9 +77,9 @@ export default {
pageSize: 16,
total: 0,
userObj: {
userName: '546586856',
enterpriseName: '企业名称:佛山英沃传感科技有限公司',
status: '审核已通过'
userName: '',
enterpriseName: '',
supplierStatus: '审核已通过'
},
uploadVisible: false,
throttle: null, // 节流器
......@@ -93,7 +95,9 @@ export default {
},
mounted() {
this.$nextTick(() => {
HttpReq.webClientApi.personalCenterInfo().then((res) => {
this.userObj = res.data
})
})
},
methods: {
......
......@@ -272,7 +272,16 @@ export default {
submitForm() {
this.$refs.formViewRef.validate((valid, obj) => {
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 {
this.$message({
message: '表单信息有误,请核对无误后提交!',
......
......@@ -21,7 +21,7 @@
<div class="news-head">
<h2>{{ dataObj.title }}</h2>
<div class="news-info">
<div>来源:{{ dataObj.msgSrc }}</div>
<div>来源:{{ dataObj.source }}</div>
<div>发布时间:{{ dataObj.date }}</div>
</div>
</div>
......@@ -45,6 +45,7 @@ import languageSetting from '../components/languageSettingV2'
import homeFooter from '../components/homeFooter'
import inquiryView from '../components/inquiryView'
import floatBtn from '../components/floatBtn'
import { HttpReq } from '@/api/common'
export default {
components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, floatBtn },
......@@ -65,10 +66,10 @@ export default {
sort: false
},
dataObj: {
title: '工业传感器:夯实新基建工业创新基础',
content: '           与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首与当前快速发展的互联网一样,传感器的发展为其带来机遇与挑战。未来传感器的先进程度决定了机械制造、汽车、过程控制和制造领域的国际竞争力。美国则在上世纪80年代就成立了国际技术小组(BGT),从国家层面协调政府资源、企业和相关部门在传感器技术、功能材料等全方面开展工作,服务于美国工业制造、智能制造和军工领域。日本在上世纪末就已经将传感器技术列为本世纪十大技术之首',
msgSrc: 'xxxx新闻网',
date: '2023-06-12'
title: '',
content: '',
source: '',
date: ''
},
throttle: null, // 节流器
throttleTime: 300
......@@ -76,7 +77,7 @@ export default {
},
mounted() {
this.$nextTick(() => {
console.log(this.$route.params)
this.loadData()
})
},
methods: {
......@@ -111,7 +112,11 @@ export default {
this.loadData()
},
loadData() {
HttpReq.webClientApi.findDetailIndustryInformationById({
id: this.$route.params.id
}).then((res) => {
this.dataObj = res.data
})
},
goTop() {
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