Browse Source

后端联调开始3

dev
dai_siki 6 years ago
parent
commit
25b8a1be75
  1. 2
      epmet-oper-web/public/index.html
  2. 323
      epmet-oper-web/src/views/modules/wx-mini/index-set.vue

2
epmet-oper-web/public/index.html

@ -29,7 +29,7 @@
<!-- 开发环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script>window.SITE_CONFIG['apiURL'] = 'http://10.10.10.79:8080/api';</script>
<script>window.SITE_CONFIG['apiURL'] = 'http://10.10.10.77:8080/api';</script>
<% } %>
<!-- 集成测试环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %>

323
epmet-oper-web/src/views/modules/wx-mini/index-set.vue

@ -304,9 +304,171 @@ const getMockFilterUrl = (url) => {
}
}
const envIsDev = process.env.VUE_APP_NODE_ENV === 'dev'
export default {
mixins: [mixinViewModule],
data () {
const cptTypeListTestdata = !envIsDev ? [] : [
//
{
functionId: '0',
functionName: '通用组件',
functionType: 1, // 1 2
isUnfold: true,
componentList: [
{
componentId: '1',
componentName: '顶部标题',
componentFrontId: 'resi-titleList-home-gridNameTitle',
configuration: {
// content: ''
},
demoData: {
ico: '',
avatar: '',
title: '青岛市市北区大港路第二网格'
},
configurationDescription: '请配置具体内容'
},
{
componentId: '2',
componentName: '轮播图',
componentFrontId: 'resi-topList-voice-hotNewsSwiper',
configuration: {
// content: ''
},
demoData: {
pic: '',
title: '轮播图新闻标题'
},
configurationDescription: '请配置具体内容'
},
{
componentId: '3',
componentName: '消息通知',
componentFrontId: 'resi-floatingList-mine-newMessageButton',
configuration: {
// content: ''
},
demoData: {
ico: '',
text: '有新消息!'
},
configurationDescription: ''
}
]
},
//
{
functionId: '1',
functionName: '议事厅',
functionType: 2, // 1 2
isUnfold: false,
componentList: [
{
componentId: '5',
componentName: '功能菜单',
componentFrontId: 'resi-functionList-extend-moreFunctionIcons',
configuration: {
// bgc: '#eee'
},
demoData: {
list: [
{
ico: '',
text: '议事厅'
},
{
ico: '',
text: '社群'
},
{
ico: '',
text: '党建声音'
},
{
ico: '',
text: '更多功能'
}
]
},
configurationDescription: ''
},
{
componentId: '6',
componentName: '热门群',
componentFrontId: 'resi-functionList-group-recommendGroupSlider',
configuration: {
// bgc: '#fff'
},
demoData: {
list: [
{
ico: '',
no: '1',
avatar: '',
title: '群名称',
info1: '山东路45号-张三',
info2: '共240人',
info3: '党员11人'
},
{
ico: '',
no: '2',
avatar: '',
title: '群名称',
info1: '山东路45号-张三',
info2: '共240人',
info3: '党员11人'
},
{
ico: '',
no: '3',
avatar: '',
title: '群名称',
info1: '山东路45号-张三',
info2: '共240人',
info3: '党员11人'
}
]
},
configurationDescription: ''
},
{
componentId: '7',
componentName: '新闻列表',
componentFrontId: 'resi-functionList-hall-hotSubjectList',
configuration: {
// bgc: '#fff'
},
demoData: {
list: [
{
pic: '',
title: '我是新闻标题,我是新闻标题,我是新闻标题,我是新闻标题,我是新闻标题',
author: '大港路党支部',
date: '2020-01-02'
},
{
pic: '',
title: '我是新闻标题',
author: '大港路党支部',
date: '2020-01-02'
},
{
pic: '',
title: '我是新闻标题',
author: '大港路党支部',
date: '2020-01-02'
}
]
},
configurationDescription: ''
}
]
}
]
return {
mixinViewModuleOptions: {
getDataListURL: getMockFilterUrl('/oper/crm/customer/getvalidcustomerlist'),
@ -337,166 +499,7 @@ export default {
isInPreview: false,
//
cptTypeList: [
//
{
functionId: '0',
functionName: '通用组件',
functionType: 1, // 1 2
isUnfold: true,
componentList: [
{
componentId: '1',
componentName: '顶部标题',
componentFrontId: 'resi-titleList-home-gridNameTitle',
configuration: {
// content: ''
},
demoData: {
ico: '',
avatar: '',
title: '青岛市市北区大港路第二网格'
},
configurationDescription: '请配置具体内容'
},
{
componentId: '2',
componentName: '轮播图',
componentFrontId: 'resi-topList-voice-hotNewsSwiper',
configuration: {
// content: ''
},
demoData: {
pic: '',
title: '轮播图新闻标题'
},
configurationDescription: '请配置具体内容'
},
{
componentId: '3',
componentName: '消息通知',
componentFrontId: 'resi-floatingList-mine-newMessageButton',
configuration: {
// content: ''
},
demoData: {
ico: '',
text: '有新消息!'
},
configurationDescription: ''
}
]
},
//
{
functionId: '1',
functionName: '议事厅',
functionType: 2, // 1 2
isUnfold: false,
componentList: [
{
componentId: '5',
componentName: '功能菜单',
componentFrontId: 'resi-functionList-extend-moreFunctionIcons',
configuration: {
// bgc: '#eee'
},
demoData: {
list: [
{
ico: '',
text: '议事厅'
},
{
ico: '',
text: '社群'
},
{
ico: '',
text: '党建声音'
},
{
ico: '',
text: '更多功能'
}
]
},
configurationDescription: ''
},
{
componentId: '6',
componentName: '热门群',
componentFrontId: 'resi-functionList-group-recommendGroupSlider',
configuration: {
// bgc: '#fff'
},
demoData: {
list: [
{
ico: '',
no: '1',
avatar: '',
title: '群名称',
info1: '山东路45号-张三',
info2: '共240人',
info3: '党员11人'
},
{
ico: '',
no: '2',
avatar: '',
title: '群名称',
info1: '山东路45号-张三',
info2: '共240人',
info3: '党员11人'
},
{
ico: '',
no: '3',
avatar: '',
title: '群名称',
info1: '山东路45号-张三',
info2: '共240人',
info3: '党员11人'
}
]
},
configurationDescription: ''
},
{
componentId: '7',
componentName: '新闻列表',
componentFrontId: 'resi-functionList-hall-hotSubjectList',
configuration: {
// bgc: '#fff'
},
demoData: {
list: [
{
pic: '',
title: '我是新闻标题,我是新闻标题,我是新闻标题,我是新闻标题,我是新闻标题',
author: '大港路党支部',
date: '2020-01-02'
},
{
pic: '',
title: '我是新闻标题',
author: '大港路党支部',
date: '2020-01-02'
},
{
pic: '',
title: '我是新闻标题',
author: '大港路党支部',
date: '2020-01-02'
}
]
},
configurationDescription: ''
}
]
}
],
cptTypeList: cptTypeListTestdata,
//
cptList: [
// {

Loading…
Cancel
Save