Browse Source

后端联调开始3

dev
dai_siki 6 years ago
parent
commit
25b8a1be75
  1. 2
      epmet-oper-web/public/index.html
  2. 65
      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') { %>

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

@ -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: [
// {

Loading…
Cancel
Save