|
|
@ -304,40 +304,12 @@ const getMockFilterUrl = (url) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const envIsDev = process.env.VUE_APP_NODE_ENV === 'dev' |
|
|
|
|
|
|
|
export default { |
|
|
|
mixins: [mixinViewModule], |
|
|
|
data () { |
|
|
|
return { |
|
|
|
mixinViewModuleOptions: { |
|
|
|
getDataListURL: getMockFilterUrl('/oper/crm/customer/getvalidcustomerlist'), |
|
|
|
getDataListIsPage: false |
|
|
|
}, |
|
|
|
|
|
|
|
dataList: [ |
|
|
|
{ |
|
|
|
customerName: '青岛李沧区党委', |
|
|
|
customerId: '1' |
|
|
|
}, |
|
|
|
{ |
|
|
|
customerName: '青岛市北区党委', |
|
|
|
customerId: '2' |
|
|
|
} |
|
|
|
], |
|
|
|
|
|
|
|
// 步骤: 1列表选择 2首页配置 |
|
|
|
step: 1, |
|
|
|
|
|
|
|
wxIndex: { |
|
|
|
customerId: '', |
|
|
|
customerName: '', |
|
|
|
clientType: '' |
|
|
|
}, |
|
|
|
|
|
|
|
// 在预览中状态 |
|
|
|
isInPreview: false, |
|
|
|
|
|
|
|
// 可用列表 |
|
|
|
cptTypeList: [ |
|
|
|
const cptTypeListTestdata = !envIsDev ? [] : [ |
|
|
|
// 通用组件 |
|
|
|
{ |
|
|
|
functionId: '0', |
|
|
@ -496,7 +468,38 @@ export default { |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
] |
|
|
|
return { |
|
|
|
mixinViewModuleOptions: { |
|
|
|
getDataListURL: getMockFilterUrl('/oper/crm/customer/getvalidcustomerlist'), |
|
|
|
getDataListIsPage: false |
|
|
|
}, |
|
|
|
|
|
|
|
dataList: [ |
|
|
|
{ |
|
|
|
customerName: '青岛李沧区党委', |
|
|
|
customerId: '1' |
|
|
|
}, |
|
|
|
{ |
|
|
|
customerName: '青岛市北区党委', |
|
|
|
customerId: '2' |
|
|
|
} |
|
|
|
], |
|
|
|
|
|
|
|
// 步骤: 1列表选择 2首页配置 |
|
|
|
step: 1, |
|
|
|
|
|
|
|
wxIndex: { |
|
|
|
customerId: '', |
|
|
|
customerName: '', |
|
|
|
clientType: '' |
|
|
|
}, |
|
|
|
|
|
|
|
// 在预览中状态 |
|
|
|
isInPreview: false, |
|
|
|
|
|
|
|
// 可用列表 |
|
|
|
cptTypeList: cptTypeListTestdata, |
|
|
|
// 当前应用组件列表 |
|
|
|
cptList: [ |
|
|
|
// { |
|
|
|