Commit a7e207e9 by 李伟康

commit

1 parent bea85c4c
// const url = 'http://192.168.2.42:8064/rop-scrm-entmicro/router' // const url = 'http://192.168.2.42:8064/rop-scrm-entmicro/router'
// const url = window.$fetchConfig ? window.$fetchConfig.tagUrl + '/rop-scrm-entmicro/router' : 'http://oin7.branch.glsx.com.cn/rop-scrm-entmicro/router' // const url = window.$fetchConfig ? window.$fetchConfig.tagUrl + '/rop-scrm-entmicro/router' : 'http://oin7.branch.glsx.com.cn/rop-scrm-entmicro/router'
console.log(url)
export default { export default {
/**获取打标签的客户列表 */ /**获取打标签的客户列表 */
getcustomerList(data = {}) { getcustomerList(data = {}) {
......
...@@ -67,30 +67,32 @@ import { Notify } from 'vant' ...@@ -67,30 +67,32 @@ import { Notify } from 'vant'
import { entmicroApi } from '@/api' import { entmicroApi } from '@/api'
export default { export default {
name: '', name: '',
data() { data () {
return { return {
showPopup: false, showPopup: false,
codeNameOrStaffName: '', codeNameOrStaffName: '',
list: [], list: [],
currentItem: {}, currentItem: {},
flag: false flag: false,
tabIndex: 0
} }
}, },
mounted() { mounted () {
this.getList(0) this.getList()
}, },
methods: { methods: {
change(e) { change (e) {
this.flag = false this.flag = false
this.list = [] this.list = []
this.getList(e) this.tabIndex = e
this.getList()
}, },
getList(index) { getList () {
let { codeNameOrStaffName } = this let { codeNameOrStaffName, tabIndex } = this
let obj = {} let obj = {}
if (codeNameOrStaffName) obj.codeNameOrStaffName = codeNameOrStaffName if (codeNameOrStaffName) obj.codeNameOrStaffName = codeNameOrStaffName
this.showLoading() this.showLoading()
let target = ['getAllEntmicroChannelCodeList', 'getEntmicroChannelCodeList'][index] let target = ['getAllEntmicroChannelCodeList', 'getEntmicroChannelCodeList'][tabIndex]
entmicroApi[target](obj).then(({ code, data, message }) => { entmicroApi[target](obj).then(({ code, data, message }) => {
this.hideLoading() this.hideLoading()
if (code == '0') { if (code == '0') {
...@@ -117,7 +119,7 @@ export default { ...@@ -117,7 +119,7 @@ export default {
this.flag = true this.flag = true
}) })
}, },
previewImage(list, startPosition) { previewImage (list, startPosition) {
let images = [] let images = []
list.map(e => images.push(e.autoUrl)) list.map(e => images.push(e.autoUrl))
this.$router.push({ this.$router.push({
...@@ -128,17 +130,17 @@ export default { ...@@ -128,17 +130,17 @@ export default {
} }
}) })
}, },
share(e) { share (e) {
this.showPopup = true this.showPopup = true
this.currentItem = e this.currentItem = e
}, },
search(e) { search (e) {
console.log(e) console.log(e)
this.codeNameOrStaffName = e this.codeNameOrStaffName = e
this.flag = false this.flag = false
this.getList() this.getList()
}, },
onReachBottom() { onReachBottom () {
console.log('触底') console.log('触底')
this.$refs.scrollView.loading = false this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true this.$refs.scrollView.finished = true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!