diff --git a/epmet-oper-web/public/index.html b/epmet-oper-web/public/index.html
index 6ca5268..4e072fb 100644
--- a/epmet-oper-web/public/index.html
+++ b/epmet-oper-web/public/index.html
@@ -29,7 +29,7 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
-
+
<% } %>
<% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %>
diff --git a/epmet-oper-web/src/views/modules/wx-mini/index-set.vue b/epmet-oper-web/src/views/modules/wx-mini/index-set.vue
index fb61805..213e405 100644
--- a/epmet-oper-web/src/views/modules/wx-mini/index-set.vue
+++ b/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: [
// {