Browse Source

update code

master
guzhenfu 2 years ago
parent
commit
0559d1a68b
8 changed files with 52 additions and 25 deletions
  1. +1
    -1
      src/api/data.js
  2. +12
    -3
      src/config/index.js
  3. +2
    -2
      src/libs/api.request.js
  4. +1
    -1
      src/router/index.js
  5. +6
    -0
      src/view/main/main.vue
  6. +14
    -14
      src/view/overview.vue
  7. +15
    -4
      src/view/vip-service.vue
  8. +1
    -0
      vue.config.js

+ 1
- 1
src/api/data.js View File

@@ -888,7 +888,7 @@ export const getPositionRequest = () => {

export const getProcess = (p) => {
return axios.request({
url: 'api/form/open/api/process/next/flow/node?processDefinitionId=HuiYuanRuHuiLiuCheng',
url: 'api/form/open/api/process/next/flow/node?flowKey=HuiYuanRuHuiLiuCheng',
method: 'post',
data: p
})


+ 12
- 3
src/config/index.js View File

@@ -1,4 +1,13 @@
export default {
var path = require('path')

module.exports = {
// build: {
// index: path.resolve(__dirname, '../dist/index.html'),
// assetsRoot: path.resolve(__dirname, '../dist'),
// assetsSubDirectory: 'static',
// assetsPublicPath: '../',
// productionSourceMap: true
// },
/**
* @description token在Cookie中存储的天数,默认1天
*/
@@ -31,7 +40,7 @@ export default {
* @description api请求基础路径
*/
baseUrl: {
dev: 'http://183.162.252.100:9012',
pro: 'https://oss.console.ingenuity.top'
dev: 'http://47.100.188.195:7006',
pro: 'http://47.100.188.195:7006'
}
}

+ 2
- 2
src/libs/api.request.js View File

@@ -1,7 +1,7 @@
import HttpRequest from '@/libs/axios'
import config from '@/config'
// const baseUrl = process.env.NODE_ENV === 'development' ? config.baseUrl.dev : config.baseUrl.pro
const baseUrl = '/api'
const baseUrl = process.env.NODE_ENV === 'development' ? config.baseUrl.dev : config.baseUrl.pro
// const baseUrl = '/api'

const axios = new HttpRequest(baseUrl)
export default axios

+ 1
- 1
src/router/index.js View File

@@ -12,7 +12,7 @@ import config from '@/config'
Vue.use(Router)
const router = new Router({
routes,
mode: 'history'
mode: 'hash'
})
const LOGIN_PAGE_NAME = process.env.NODE_ENV === 'development' ? config.sso.dev : config.sso.pro



+ 6
- 0
src/view/main/main.vue View File

@@ -169,6 +169,12 @@ export default {
watch: {
'$route' (newRoute) {
console.log(newRoute)
this.menuLists.map((item, index) => {
if(newRoute.path.indexOf(item.path) > -1){
this.activeIndex = index+1
}
})
this.setBreadCrumb(newRoute)
}
},


+ 14
- 14
src/view/overview.vue View File

@@ -22,7 +22,7 @@
<el-card class="box-card" shadow="never" style="margin: 0 10px; position: relative;" :body-style="{ padding: '0px',height:'418px' }">
<img :src="imgObj.aboutImg"/>
<div class="img_info">
<span class="img_text">2021中国国际汽车电子高峰论坛将于11月25日在上海举行</span>
<span class="img_text">{{imgObj.title}}</span>
</div>
</el-card>
</el-col>
@@ -30,7 +30,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>新闻资讯</span>
<el-button style="float: right; padding: 3px 0;color: #fff;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/news" style="float: right; padding: 3px 0;color: #fff;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<div v-for="(item, index) in newsList" :key="index" class="text item">
{{index+1}}、{{item.title}}
@@ -44,7 +44,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>行业动态</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/trode" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<h2>{{hangDamic.title}}</h2>
<p v-html="hangDamic.content"></p>
@@ -55,7 +55,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>产业政策</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/policy" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<div class="list" v-for="(item, index) in chanList" :key="index">
<h2 style="display: flex; flex-direction: row">
@@ -74,7 +74,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>合作交流</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/exchange" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
</el-card>
<el-card class="box-card" shadow="never" v-for="(item, index) in hezuoList" :key="index"
@@ -88,7 +88,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>知识产权</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/km" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<!-- <h2>半导体产业的分工,芯片设计服务公司大有可为</h2>
<p>回顾历史,半导体产业模式在不断随着市场需求而变化。像一个帝国模式的演变,以1980年作为分界线,往前则是IDM(Integra</p>
@@ -105,7 +105,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>会员产品</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/member" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<!-- <h2>半导体产业的分工,芯片设计服务公司大有可为</h2>
<p>回顾历史,半导体产业模式在不断随着市场需求而变化。像一个帝国模式的演变,以1980年作为分界线,往前则是IDM(Integra</p>
@@ -126,7 +126,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>合作交流</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/exchange" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<div class="list" v-for="(item, index) in hezuoList" :key="index">
<h2 style="display: flex; flex-direction: row">
@@ -142,7 +142,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>企业认定</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/company" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<div class="list" v-for="(item, index) in qiyeList" :key="index">
<h2 style="display: flex; flex-direction: row">
@@ -162,7 +162,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>行业管理</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/trode" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<div class="list" v-for="(item, index) in hangyeList" :key="index">
<h2 style="display: flex; flex-direction: row">
@@ -178,7 +178,7 @@
<el-card class="box-card" shadow="never" :body-style="{ padding: '0px 20px' }">
<div slot="header">
<span><el-divider direction="vertical"></el-divider>人力资源</span>
<el-button style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</el-button>
<router-link to="/people" style="float: right; padding: 3px 0;color: #999999;font-size: 12px" type="text">更多&gt;&gt;</router-link>
</div>
<div class="list" v-for="(item, index) in renliList" :key="index">
<h2 style="display: flex; flex-direction: row">
@@ -284,13 +284,13 @@ export default {
// 产业政策
this.chanList = res.data.records.slice(0, 4)
this.chanList.map((ite) => {
ite.publishTime = this.$moment().format("MM-DD")
ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD")
})
}else if(weizhi == "E"){
// 合作交流
this.hezuoList = res.data.records.slice(0, 4)
this.hezuoList.map((ite) => {
ite.publishTime = this.$moment().format("MM-DD")
ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD")
})
}else if(weizhi == "F"){
// 知识产权
@@ -304,7 +304,7 @@ export default {
// 企业认定
this.qiyeList = res.data.records.slice(0, 4)
this.qiyeList.map((ite) => {
ite.publishTime = this.$moment().format("MM-DD")
ite.publishTime = this.$moment(Number(ite.publishTime)).format("MM-DD")
})
}else if(weizhi == "J"){
// 行业管理


+ 15
- 4
src/view/vip-service.vue View File

@@ -20,7 +20,7 @@ import { ChartBar } from '_c/charts';
<el-card shadow="never" style="margin: 0 10px;">
<div style="text-align: center">
<h2>上海市集成电路行业协会第五届理事会理事名单</h2>
<div style="margin: 10px"><span style="margin-right: 20px">作者:SICA</span><span>发布日期:2011年12月28日 星期三</span></div>
<div style="margin: 10px"><span style="margin-right: 20px">{{InfoObj.author}}</span><span>发布日期:{{InfoObj.publishTime}}</span></div>
</div>
<div style="">
<div style="display: inline-table;color: #999999;height:35px;line-height: 35px;" class="sort_info">(按姓氏笔画排列)</div>
@@ -72,7 +72,7 @@ import { ChartBar } from '_c/charts';


<el-col :span="20" v-if="activeIndex == 1">
<el-card class="article" shadow="never" style="border-radius: 8px" >
<el-card class="article" shadow="never" style="border-radius: 8px;margin: 0 10px;" >
<h2 class="title">上海市集成电路行业协会简介</h2>
<div class="info">作者:{{InfoObj.author}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布日期:{{InfoObj.publishTime}}</div>
<div class="content" v-html="InfoObj.content"></div>
@@ -788,12 +788,23 @@ export default {
let p = {...this.ruleForm}
let res = await getProcess(p)
if(res.code == 200){
console.log(JSON.stringify(res))
if(res.data.flowNodeVos){
this.sendProcess(res.data.flowNodeVos[0])
}
}
},

async sendProcess(){
async sendProcess(flowNodeVos){
let p = {}
p.flowKey = "HuiYuanRuHuiLiuCheng"
p.firstTask = true
p.flowDegree = {
"name" : "一般",
"value": "10"
},
p.modelCode = 'AffairsApproval',
p.smsNotify = '',
p.title = ''
let res = await sendProcess(p)
if(res.code == 200){
console.log(JSON.stringify(res))


+ 1
- 0
vue.config.js View File

@@ -14,6 +14,7 @@ const resolve = dir => {
const BASE_URL = process.env.NODE_ENV === 'production' ? '/' : '/'

module.exports = {
publicPath: './',
// Project deployment base
// By default we assume your app will be deployed at the root of a domain,
// e.g. https://www.my-app.com/


Loading…
Cancel
Save