|
@@ -96,8 +96,13 @@ var fileRecorder = new Vue({
|
|
|
total: 0, // 总页数
|
|
|
list: [] // 返回的数据
|
|
|
},
|
|
|
+ kefu: {
|
|
|
+ qr: '',
|
|
|
+ name: ''
|
|
|
+ },
|
|
|
helpDialog: false,
|
|
|
- tipDialog: false
|
|
|
+ tipDialog: false,
|
|
|
+ kefuDialog: false,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -153,11 +158,29 @@ var fileRecorder = new Vue({
|
|
|
if (res && res.data) {
|
|
|
for (var key in res.data) {
|
|
|
_this.$set(_this.userPower, key, res.data[key])
|
|
|
+ _this.calcKefuInfo()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ calcKefuInfo: function () {
|
|
|
+ var customers = this.userPower.customers
|
|
|
+ if (!$.isArray(customers)) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var target;
|
|
|
+ for (var i = 0; i < customers.length; i++) {
|
|
|
+ if (customers[i].remark.indexOf('成功') > -1) {
|
|
|
+ target = customers[i]
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (target) {
|
|
|
+ this.kefu.qr = target.wxer
|
|
|
+ this.kefu.name = target.remark
|
|
|
+ }
|
|
|
+ },
|
|
|
cellClick (row, column, cell, event) {
|
|
|
console.log(row, column, cell, event)
|
|
|
if (column.label === '附件') {
|
|
@@ -317,6 +340,10 @@ var fileRecorder = new Vue({
|
|
|
// vm.showSuccess = true
|
|
|
})
|
|
|
},
|
|
|
+ // 显示专属客服弹窗
|
|
|
+ showZhuanShuKfDialog () {
|
|
|
+ this.kefuDialog = true
|
|
|
+ },
|
|
|
concatKf () {
|
|
|
if (goTemplateData.inIframe) {
|
|
|
window.$BRACE.$emit('open-customer')
|