Commit c52f070d by 匡雅琴

fixed

1 parent 40beaf23
...@@ -13,8 +13,9 @@ ...@@ -13,8 +13,9 @@
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"jsxBracketSameLine": true, "jsxBracketSameLine": true,
"files.insertFinalNewline": true, "files.insertFinalNewline": true,
"prettier.ignorePath": ".prettierignore",
"useTabs": false, "useTabs": false,
"eslintIntegration": true, "eslintIntegration": false,
"overrides": [ "overrides": [
{ {
"files": ".prettierrc", "files": ".prettierrc",
......
module.exports = { module.exports = {
presets: ["@vue/cli-plugin-babel/preset"]
};
\ No newline at end of file \ No newline at end of file
presets: ['@vue/cli-plugin-babel/preset']
}
...@@ -18,7 +18,7 @@ export default { ...@@ -18,7 +18,7 @@ export default {
} }
}, },
created() { created() {
document.onkeydown = function () { document.onkeydown = function() {
var evt = window.event || arguments[0] var evt = window.event || arguments[0]
if (evt && evt.keyCode == 13) { if (evt && evt.keyCode == 13) {
if (typeof evt.cancelBubble != 'undefined') evt.cancelBubble = true if (typeof evt.cancelBubble != 'undefined') evt.cancelBubble = true
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
this.myMessage = this.message this.myMessage = this.message
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.parent-child-communication { .parent-child-communication {
...@@ -49,4 +49,4 @@ export default { ...@@ -49,4 +49,4 @@ export default {
overflow-y: auto; overflow-y: auto;
height: 100%; height: 100%;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -6,186 +6,186 @@ ...@@ -6,186 +6,186 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http,http_tag } from '@/main' import { http, http_tag } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop' let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const getListApi = params => { const getListApi = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage' params.method = 'entmicro.api.staff.listFollowerStaffByPage'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getFollower = params => { const getFollower = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage' params.method = 'entmicro.api.staff.listFollowerStaffByPage'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const querylabeltree = params => { const querylabeltree = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree' params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
params.sessionId = session params.sessionId = session
return http_tag({ return http_tag({
url: '/rop-scrm-datahub/router', url: 'http://ismv.branch.glsx.com.cn/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const deleteChannelCodeBill = params => { const deleteChannelCodeBill = params => {
params.method = 'entmicro.api.code.deleteChannelCodeBill' params.method = 'entmicro.api.code.deleteChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getSubCodeChannelCodeBill = params => { const getSubCodeChannelCodeBill = params => {
params.method = 'entmicro.api.code.getSubCodeChannelCodeBill' params.method = 'entmicro.api.code.getSubCodeChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const saveChannelCodeBill = params => { const saveChannelCodeBill = params => {
params.method = 'entmicro.api.code.saveChannelCodeBill' params.method = 'entmicro.api.code.saveChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const updateChannelCodeBill = params => { const updateChannelCodeBill = params => {
params.method = 'entmicro.api.code.updateChannelCodeBill' params.method = 'entmicro.api.code.updateChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const listChannelCodeBill = params => { const listChannelCodeBill = params => {
params.method = 'entmicro.api.code.listChannelCodeBill' params.method = 'entmicro.api.code.listChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const deleteChannelCode = params => { const deleteChannelCode = params => {
params.method = 'entmicro.api.code.deleteChannelCode' params.method = 'entmicro.api.code.deleteChannelCode'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const detailChannelCode = params => { const detailChannelCode = params => {
params.method = 'entmicro.api.code.detailChannelCode' params.method = 'entmicro.api.code.detailChannelCode'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const listChannelCodeByPage = params => { const listChannelCodeByPage = params => {
params.method = 'entmicro.api.code.listChannelCodeByPage' params.method = 'entmicro.api.code.listChannelCodeByPage'
params.sessionId = session params.sessionId = session
console.log(http) console.log(http)
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const saveChannelCode = params => { const saveChannelCode = params => {
params.method = 'entmicro.api.code.saveChannelCode' params.method = 'entmicro.api.code.saveChannelCode'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const updateChannelCode = params => { const updateChannelCode = params => {
params.method = 'entmicro.api.code.updateChannelCode' params.method = 'entmicro.api.code.updateChannelCode'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getCustomer = params => { const getCustomer = params => {
params.method = 'entmicro.api.customer.code.page' params.method = 'entmicro.api.customer.code.page'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getChannelCodeStaffList = params => { const getChannelCodeStaffList = params => {
params.method = 'entmicro.api.code.getChannelCodeStaffList' params.method = 'entmicro.api.code.getChannelCodeStaffList'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getStatus = params => { const getStatus = params => {
params.method = 'scrm.api.work.wechat.access.status' params.method = 'scrm.api.work.wechat.access.status'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-wechat/router', url: '/rop-scrm-wechat/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
export default { export default {
getStatus,
getListApi,
getFollower,
querylabeltree,
saveChannelCodeBill,
getSubCodeChannelCodeBill,
deleteChannelCodeBill,
updateChannelCode,
saveChannelCode,
listChannelCodeByPage,
detailChannelCode,
deleteChannelCode,
updateChannelCodeBill,
listChannelCodeBill,
getCustomer,
getChannelCodeStaffList
}
\ No newline at end of file \ No newline at end of file
getStatus,
getListApi,
getFollower,
querylabeltree,
saveChannelCodeBill,
getSubCodeChannelCodeBill,
deleteChannelCodeBill,
updateChannelCode,
saveChannelCode,
listChannelCodeByPage,
detailChannelCode,
deleteChannelCode,
updateChannelCodeBill,
listChannelCodeBill,
getCustomer,
getChannelCodeStaffList
}
...@@ -8,15 +8,15 @@ ...@@ -8,15 +8,15 @@
*/ */
import { http_common } from '@/main' import { http_common } from '@/main'
const pictureUpload = params => { const pictureUpload = params => {
params.method = "glsx.accounts.biz.common.pictureUpload" params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({ return http_common({
url: '/router?method=glsx.accounts.biz.common.pictureUpload', url: '/router?method=glsx.accounts.biz.common.pictureUpload',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
noSignAttr: ['file'] noSignAttr: ['file']
}) })
} }
export default { export default {
pictureUpload
}
\ No newline at end of file \ No newline at end of file
pictureUpload
}
...@@ -9,185 +9,185 @@ ...@@ -9,185 +9,185 @@
import { http } from '@/main' import { http } from '@/main'
let session = 'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop' let session = 'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop'
const getCoupon = params => { const getCoupon = params => {
params.method = 'scrm.api.boutiquecoupon.coupon.page' params.method = 'scrm.api.boutiquecoupon.coupon.page'
return http({ return http({
url: '/rop-scrm-boutiquecoupon/router', url: '/rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getMerchant = params => { const getMerchant = params => {
params.method = 'scrm.api.coupon.list.merchant' params.method = 'scrm.api.coupon.list.merchant'
return http({ return http({
url: 'rop-scrm-coupon/router', url: 'rop-scrm-coupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getCard = params => { const getCard = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid' params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const merchantOpen = params => { const merchantOpen = params => {
params.method = 'scrm.api.equity.service.merchant.config.get' params.method = 'scrm.api.equity.service.merchant.config.get'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const merchant = params => { const merchant = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid' params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getPackage = params => { const getPackage = params => {
params.method = 'scrm.api.equity.package.info.list.with.page' params.method = 'scrm.api.equity.package.info.list.with.page'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getActivity = params => { const getActivity = params => {
params.method = 'scrm.api.shopmall.activity.page' params.method = 'scrm.api.shopmall.activity.page'
return http({ return http({
url: 'rop-scrm-shopmall/router', url: 'rop-scrm-shopmall/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const findAllByPage = params => { const findAllByPage = params => {
params.method = 'entmicro.api.dracIm.findAllByPage' params.method = 'entmicro.api.dracIm.findAllByPage'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const exportAdd = params => { const exportAdd = params => {
params.method = 'entmicro.api.dracIm.exportAdd' params.method = 'entmicro.api.dracIm.exportAdd'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const exportUpdate = params => { const exportUpdate = params => {
params.method = 'entmicro.api.dracIm.exportUpdate' params.method = 'entmicro.api.dracIm.exportUpdate'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const findById = params => { const findById = params => {
params.method = 'entmicro.api.dracIm.findById' params.method = 'entmicro.api.dracIm.findById'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const dracImMessage = params => { const dracImMessage = params => {
params.method = 'entmicro.api.dracImMessage.findAllByCondition' params.method = 'entmicro.api.dracImMessage.findAllByCondition'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const listChannelCodeBill = params => { const listChannelCodeBill = params => {
params.method = 'entmicro.api.code.listChannelCodeBill' params.method = 'entmicro.api.code.listChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const addConfig = params => { const addConfig = params => {
params.method = 'entmicro.api.dracImConfig.addConfig' params.method = 'entmicro.api.dracImConfig.addConfig'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const findConfig = params => { const findConfig = params => {
params.method = 'entmicro.api.dracImConfig.findConfig' params.method = 'entmicro.api.dracImConfig.findConfig'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const updateConfig = params => { const updateConfig = params => {
params.method = 'entmicro.api.dracImConfig.updateConfig' params.method = 'entmicro.api.dracImConfig.updateConfig'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const customerPage = params => { const customerPage = params => {
params.method = 'entmicro.api.dracIm.customer.search.page' params.method = 'entmicro.api.dracIm.customer.search.page'
params.sessionId = session params.sessionId = session
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
export default { export default {
getCoupon,
getMerchant,
merchantOpen,
merchant,
getCard,
getPackage,
getActivity,
listChannelCodeBill,
findAllByPage,
dracImMessage,
exportAdd,
exportUpdate,
findById,
updateConfig,
findConfig,
addConfig,
customerPage
}
\ No newline at end of file \ No newline at end of file
getCoupon,
getMerchant,
merchantOpen,
merchant,
getCard,
getPackage,
getActivity,
listChannelCodeBill,
findAllByPage,
dracImMessage,
exportAdd,
exportUpdate,
findById,
updateConfig,
findConfig,
addConfig,
customerPage
}
...@@ -9,123 +9,123 @@ ...@@ -9,123 +9,123 @@
import { http } from '@/main' import { http } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop' let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const codeDefault = params => { const codeDefault = params => {
params.method = 'entmicro.api.drac.statistic.code.default' params.method = 'entmicro.api.drac.statistic.code.default'
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const listStaff = params => { const listStaff = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.list.staff' params.method = 'entmicro.api.drac.statistic.code.detail.list.staff'
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const listTime = params => { const listTime = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.list.time' params.method = 'entmicro.api.drac.statistic.code.detail.list.time'
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const detailTotal = params => { const detailTotal = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.total' params.method = 'entmicro.api.drac.statistic.code.detail.total'
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const codeSearch = params => { const codeSearch = params => {
params.method = 'entmicro.api.drac.statistic.code.search' params.method = 'entmicro.api.drac.statistic.code.search'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const codeTrend = params => { const codeTrend = params => {
params.method = 'entmicro.api.drac.statistic.code.trend' params.method = 'entmicro.api.drac.statistic.code.trend'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const dayTrend = params => { const dayTrend = params => {
params.method = 'entmicro.api.drac.statistic.day.trend' params.method = 'entmicro.api.drac.statistic.day.trend'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const overview = params => { const overview = params => {
params.method = 'entmicro.api.drac.statistic.overview' params.method = 'entmicro.api.drac.statistic.overview'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const findMessageStatic = params => { const findMessageStatic = params => {
params.method = 'entmicro.api.dracIm.findMessageStatic' params.method = 'entmicro.api.dracIm.findMessageStatic'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const viewChart = params => { const viewChart = params => {
params.method = 'entmicro.api.drac.statistic.getCustomerStatisticCodeTrend' params.method = 'entmicro.api.drac.statistic.getCustomerStatisticCodeTrend'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const findAllMessageByPage = params => { const findAllMessageByPage = params => {
params.method = 'entmicro.api.dracIm.findAllMessageByPage' params.method = 'entmicro.api.dracIm.findAllMessageByPage'
params.sessionId = session params.sessionId = session
return http({ return http({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
export default { export default {
codeDefault,
listStaff,
listTime,
detailTotal,
codeSearch,
codeTrend,
dayTrend,
overview,
viewChart,
findMessageStatic,
findAllMessageByPage
}
\ No newline at end of file \ No newline at end of file
codeDefault,
listStaff,
listTime,
detailTotal,
codeSearch,
codeTrend,
dayTrend,
overview,
viewChart,
findMessageStatic,
findAllMessageByPage
}
...@@ -183,4 +183,7 @@ img { ...@@ -183,4 +183,7 @@ img {
.el-message .el-icon-info { .el-message .el-icon-info {
color: #5850ff; color: #5850ff;
font-size: 16px; font-size: 16px;
}
.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
box-shadow: none!important;
} }
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<el-radio-group class="tag-group" v-model="item.tagChecked" v-show="item.checked"> <el-radio-group class="tag-group" v-model="item.tagChecked" v-show="item.checked">
<div v-for="(itm, idx) in item.labelList" :key="idx" class="radio-tag"> <div v-for="(itm, idx) in item.labelList" :key="idx" class="radio-tag">
<el-tooltip effect="dark" placement="top" :disabled="itm.name.length < 8"> <el-tooltip effect="dark" placement="top" :disabled="itm.name.length < 8">
<el-radio class="radio-text" :label="itm">{{ itm.name }}</el-radio> <el-radio :disabled="isLabelType(item.labelType)" class="radio-text" :label="itm">{{ itm.name }}</el-radio>
<!-- <el-radio :label="itm">{{ itm.name.length > 4 ? itm.name.slice(0, 3) + '...' : itm.name }}</el-radio> --> <!-- <el-radio :label="itm">{{ itm.name.length > 4 ? itm.name.slice(0, 3) + '...' : itm.name }}</el-radio> -->
<div slot="content">{{ itm.name }}</div> <div slot="content">{{ itm.name }}</div>
</el-tooltip> </el-tooltip>
...@@ -94,9 +94,14 @@ export default { ...@@ -94,9 +94,14 @@ export default {
labelTreeRets: { labelTreeRets: {
handler() { handler() {
this.selectNum = 0 this.selectNum = 0
this.labelType = []
this.labelTreeRets.forEach(item => { this.labelTreeRets.forEach(item => {
if (item.tagChecked) { if (item.tagChecked) {
this.selectNum++ this.selectNum++
if (!this.labelType.includes(item.labelType)) {
this.labelType.push(item.labelType)
}
console.log(this.labelType)
} }
}) })
}, },
...@@ -104,6 +109,9 @@ export default { ...@@ -104,6 +109,9 @@ export default {
} }
}, },
methods: { methods: {
isLabelType(label) {
return this.labelType.length > 0 && !this.labelType.includes(label)
},
jumpUrl() { jumpUrl() {
util.openUrl(location.origin + '/custom/tagsManage/index') util.openUrl(location.origin + '/custom/tagsManage/index')
this.dialogVisible = false this.dialogVisible = false
...@@ -157,6 +165,7 @@ export default { ...@@ -157,6 +165,7 @@ export default {
}) })
} else { } else {
const labelTreeRets = utils.deepClone(this.labelTreeRets) const labelTreeRets = utils.deepClone(this.labelTreeRets)
console.log(labelTreeRets)
this.labelTreeRets = res.labelTreeRets.map(item => { this.labelTreeRets = res.labelTreeRets.map(item => {
return { return {
labelType: item.labelType, labelType: item.labelType,
...@@ -168,10 +177,11 @@ export default { ...@@ -168,10 +177,11 @@ export default {
checkAll: false checkAll: false
} }
}) })
console.log(labelTreeRets)
labelTreeRets.forEach(item => { labelTreeRets.forEach(item => {
this.labelTreeRets.forEach(tag => { this.labelTreeRets.forEach(tag => {
if (item.labelGroup.id == tag.labelGroup.id) { if (item.labelGroup.id == tag.labelGroup.id) {
let labelId = item.labelList[0].id let labelId = item.tagChecked ? item.tagChecked.id : ''
let index = tag.labelList.findIndex(iem => iem.id == labelId) let index = tag.labelList.findIndex(iem => iem.id == labelId)
tag.tagChecked = tag.labelList[index] tag.tagChecked = tag.labelList[index]
} }
...@@ -210,7 +220,7 @@ export default { ...@@ -210,7 +220,7 @@ export default {
this.heightBox = clientHeight - 0.15 * clientHeight - 350 this.heightBox = clientHeight - 0.15 * clientHeight - 350
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// ::v-deep .el-tag{ // ::v-deep .el-tag{
// color: red !important; // color: red !important;
...@@ -336,4 +346,4 @@ export default { ...@@ -336,4 +346,4 @@ export default {
.tag-selected-box { .tag-selected-box {
min-height: 200px; min-height: 200px;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -18,7 +18,7 @@ module.exports = { ...@@ -18,7 +18,7 @@ module.exports = {
code_message_map: {} code_message_map: {}
}, },
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', baseURL: 'http://scrm.dev.glsx.com.cn',
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -18,6 +18,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -18,6 +18,8 @@ export const fetchConfig = function(isEnv = true) {
return Promise.resolve(cfg) return Promise.resolve(cfg)
} }
return new Http({request: { timeout: 100000}}).get(' https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config') return new Http({request: { timeout: 100000}}).get(' https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({request: { timeout: 100000}}).get(' http://192.168.3.171:7300/mock/618a32851072f92988f05a17/drainage/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -16,8 +16,7 @@ import { start } from '@/setup' ...@@ -16,8 +16,7 @@ import { start } from '@/setup'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
start() start()
export { bootstrap, mount, unmount } export { bootstrap, mount, unmount } from '@/setup'
from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params) export const http_common = params => Vue.prototype.$http_common(params)
export const http_tag = params => Vue.prototype.$http_tag(params)
\ No newline at end of file \ No newline at end of file
export const http_tag = params => Vue.prototype.$http_tag(params)
...@@ -17,7 +17,7 @@ let routes = [] ...@@ -17,7 +17,7 @@ let routes = []
let router = null let router = null
let instance = null let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) { export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, request_common, sign_common, request_tag } = await fetchConfig(true) const { response, request, sign, secret, request_common, sign_common, request_tag } = await fetchConfig(false)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
......
...@@ -265,7 +265,7 @@ export default { ...@@ -265,7 +265,7 @@ export default {
this.listChannelCodeByPage() this.listChannelCodeByPage()
} }
} }
</script> </script>
<style> <style>
.el-popover { .el-popover {
max-width: 800px; max-width: 800px;
...@@ -415,4 +415,4 @@ export default { ...@@ -415,4 +415,4 @@ export default {
// top: 7px; // top: 7px;
// } // }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -19,7 +19,11 @@ ...@@ -19,7 +19,11 @@
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
筛选标签 筛选标签
</el-button> </el-button>
<span class="tag-count">已选标签共关联<span>0</span>个客户</span> <span class="tag-count">
已选标签共关联
<span>{{ contactNum }}</span>
个客户
</span>
<div class="el-input-tag input-tag-wrapper" v-if="labeling.length > 0"> <div class="el-input-tag input-tag-wrapper" v-if="labeling.length > 0">
<template v-for="(item, index) in labeling"> <template v-for="(item, index) in labeling">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTypeTag(item, idx, index)"> <el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTypeTag(item, idx, index)">
...@@ -262,6 +266,7 @@ export default { ...@@ -262,6 +266,7 @@ export default {
}, },
data() { data() {
return { return {
contactNum: 0,
selectType: 1, selectType: 1,
loading: false, loading: false,
welcomeInfo: [], welcomeInfo: [],
...@@ -351,6 +356,26 @@ export default { ...@@ -351,6 +356,26 @@ export default {
}, },
deep: true deep: true
}, },
labeling: {
handler: function () {
if (this.labeling.length == 0) {
this.contactNum = 0
this.filterTagging = []
return
}
this.filterTagging = this.labeling.map(item => {
return {
groupId: item.labelGroup.id,
groupName: item.labelGroup.name,
groupType: item.labelType,
labelId: item.labelList[0].id,
labelName: item.labelList[0].name
}
})
this.handleSaveImport()
},
deep: true
},
dracImFollowStaffResponses: { dracImFollowStaffResponses: {
handler() { handler() {
this.saveStatus = true this.saveStatus = true
...@@ -478,35 +503,33 @@ export default { ...@@ -478,35 +503,33 @@ export default {
}, },
handleSaveImport() { handleSaveImport() {
this.loading = true this.loading = true
let params let params = {
let config exportUrl: this.exportUrl,
if (this.editId) { imType: 2,
config = 'exportUpdate' filterTagging: JSON.stringify(this.filterTagging)
params = {
imType: 2,
id: this.editId,
exportUrl: this.exportUrl
}
} else {
config = 'exportAdd'
params = {
exportUrl: this.exportUrl,
imType: 2
}
} }
this.$apis.marketing[config](params).then(res => { this.$apis.marketing.exportAdd(params).then(res => {
console.log(res)
if (res) { if (res) {
this.ExportDracImResponse = res if (this.selectType == 1) {
this.importStatus = true this.contactNum = res.totalCount
} else {
this.ExportDracImResponse = res
this.importStatus = true
}
} }
this.loading = false this.loading = false
}) })
}, },
handleSave() { handleSave() {
if (this.selectType == 1 && this.labeling.length == 0) { if (this.selectType == 1 && this.labeling.length == 0) {
this.$message.error('请选择客户标签') this.$message.error('请选择客户标签')
return return
} }
if (this.selectType == 1 && this.contactNum == 0) {
this.$message.error('智能营销客户为空')
return
}
if (this.selectType == 2 && !this.exportUrl) { if (this.selectType == 2 && !this.exportUrl) {
this.$message.error('请上传客户信息') this.$message.error('请上传客户信息')
return return
...@@ -528,59 +551,49 @@ export default { ...@@ -528,59 +551,49 @@ export default {
} }
let templateId = this.messageItem.id let templateId = this.messageItem.id
const content = this.addForm.content const content = this.addForm.content
let params
let config let tagging = this.tagging.map(item => {
if (this.editId) { let tagIds = item.labelList.map(tag => {
config = 'exportUpdate' return tag.id
params = {
imType: 2,
id: this.editId,
exportUrl: this.exportUrl
}
} else {
let tagging = this.tagging.map(item => {
let tagIds = item.labelList.map(tag => {
return tag.id
})
let name = item.labelList.map(tag => {
return tag.name
})
return {
groupId: item.labelGroup.id,
tagIds: tagIds.join(','),
name: name.join(','),
labelType: item.labelGroup.name
}
}) })
config = 'exportAdd' let name = item.labelList.map(tag => {
params = { return tag.name
autoWelcome: this.autoWelcome ? 1 : 0,
imName: this.imName,
imType: 2,
tagging: JSON.stringify(tagging),
exportUrl: this.exportUrl,
dracImFollowStaffRequestList: this.dracImFollowStaffResponses,
dracImMessageConfigRequest: {
startTime,
endTime,
templateId,
content
}
}
const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList
const attachmentList = previewList.map(item => {
if (item.attType == 1) {
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
}
return item
}) })
params.welcomeInfo = attachmentList return {
groupId: item.labelGroup.id,
tagIds: tagIds.join(','),
name: name.join(','),
labelType: item.labelGroup.name
}
})
let params = {
autoWelcome: this.autoWelcome ? 1 : 0,
imName: this.imName,
imType: 2,
tagging: JSON.stringify(tagging),
filterTagging: JSON.stringify(this.filterTagging),
exportUrl: this.exportUrl,
dracImFollowStaffRequestList: this.dracImFollowStaffResponses,
dracImMessageConfigRequest: {
startTime,
endTime,
templateId,
content
}
} }
const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList
const attachmentList = previewList.map(item => {
if (item.attType == 1) {
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
}
return item
})
params.welcomeInfo = attachmentList
this.loading = true this.loading = true
this.$apis.marketing[config](params).then(res => { this.$apis.marketing.exportAdd(params).then(res => {
this.loading = false this.loading = false
if (res) { if (res) {
this.$router.push('/market/index') this.$router.push('/market/index')
...@@ -907,7 +920,7 @@ export default { ...@@ -907,7 +920,7 @@ export default {
color: #666666; color: #666666;
margin-left: 10px; margin-left: 10px;
span { span {
color: #5850FF; color: #5850ff;
} }
} }
.upload-file-panel { .upload-file-panel {
......
...@@ -6,7 +6,7 @@ const resolve = dir => path.join(__dirname, dir) ...@@ -6,7 +6,7 @@ const resolve = dir => path.join(__dirname, dir)
const CDN_DOMAIN = 'https://img02.glsx.com.cn/' const CDN_DOMAIN = 'https://img02.glsx.com.cn/'
const cdn = { const cdn = {
css: [ css: [
`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css` // `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
], ],
js: [ js: [
`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!