Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 473ed145
authored
Dec 22, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
cd40e0c7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
67 additions
and
45 deletions
src/api/modules/aiCard.js
src/config/index.js
src/views/home/components/cardConfig.vue
src/views/home/components/config/marketConfig.vue
src/views/home/index.vue
vue.config.js
src/api/modules/aiCard.js
View file @
473ed14
...
@@ -100,6 +100,17 @@ const updateTaskContent = params => {
...
@@ -100,6 +100,17 @@ const updateTaskContent = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
// 更改外呼任务跟进人和欢迎语
const
verifyOpen
=
params
=>
{
params
.
method
=
'entmicro.api.system.accident.open.verify'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
export
default
{
checkTask
,
checkTask
,
createTask
,
createTask
,
...
@@ -109,5 +120,6 @@ export default {
...
@@ -109,5 +120,6 @@ export default {
phoneStatusPage
,
phoneStatusPage
,
phoneCheck
,
phoneCheck
,
getTaskContent
,
getTaskContent
,
updateTaskContent
updateTaskContent
,
verifyOpen
}
}
src/config/index.js
View file @
473ed14
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @version:
* @version:
* @Author: limin
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @Date: 2021-06-07 14:12:32
* @LastEditors:
limi
n
* @LastEditors:
前端 qianduan01@didihu.com.c
n
* @LastEditTime: 202
1-09-07 14:38:52
* @LastEditTime: 202
2-12-22 14:29:51
*/
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
// let request = require('@/http/request.js')
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config'
)
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config'
)
// return new Http().get('https://oss-config.
test.glsx.com.cn/mock/618a32851072f92988f05a17/drainag
e/config')
// return new Http().get('https://oss-config.
dev.glsx.com.cn/mock/616d28231072f92988f059fb/hom
e/config')
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/views/home/components/cardConfig.vue
View file @
473ed14
<
template
>
<
template
>
<div
class=
"help-main"
v-loading=
"loading"
>
<div
class=
"help-main"
v-loading=
"loading"
>
<div
class=
"help-container"
>
<
!--
<
div
class=
"help-container"
>
<div
class=
"help-header scrm-p020"
>
<div
class=
"help-header scrm-p020"
>
<div
class=
"help-header-title"
>
道路救援卡
</div>
<div
class=
"help-header-title"
>
道路救援卡
</div>
</div>
</div>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
-->
<div
class=
"help-store-container"
>
<div
class=
"help-store-container"
>
<div
class=
"help-container"
>
<div
class=
"help-container"
>
<div
class=
"help-header scrm-p020"
>
<div
class=
"help-header scrm-p020"
>
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<div
class=
"help-container"
>
<div
class=
"help-container"
>
<div
class=
"help-header scrm-p020"
>
<div
class=
"help-header scrm-p020"
>
<div
class=
"help-header-title"
>
联系方式
</div>
<div
class=
"help-header-title"
>
联系方式
</div>
<div
class=
"help-header-config"
@
click=
"handleAdd"
>
新增
</div>
<div
class=
"help-header-config"
@
click=
"handleAdd"
v-if=
"tableData.length == 0"
>
新增
</div>
</div>
</div>
<div
class=
"contact-tabel scrm-p20"
>
<div
class=
"contact-tabel scrm-p20"
>
<GLTable
:hasPage=
"false"
ref=
"taskForm"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
:hasPage=
"false"
ref=
"taskForm"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
...
@@ -184,15 +184,15 @@
...
@@ -184,15 +184,15 @@
</div>
</div>
<GLDialog
title=
"提示"
class=
"gl-form-min gl-form-page"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisible = false"
:visible
.
sync=
"dialogVisible"
>
<GLDialog
title=
"提示"
class=
"gl-form-min gl-form-page"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisible = false"
:visible
.
sync=
"dialogVisible"
>
<el-form
ref=
"addForm"
:model=
"addForm"
class=
"code-body-form"
label-width=
"120px"
:rules=
"addRules"
>
<el-form
ref=
"addForm"
:model=
"addForm"
class=
"code-body-form"
label-width=
"120px"
:rules=
"addRules"
>
<el-form-item
label=
"
号码备注
:"
prop=
"remark"
size=
"small"
class=
"form-w40"
>
<el-form-item
label=
"
姓名
:"
prop=
"remark"
size=
"small"
class=
"form-w40"
>
<el-input
size=
"small"
v-model
.
trim=
"addForm.remark"
placeholder=
"请输入
号码备注
"
maxlength=
"6"
></el-input>
<el-input
size=
"small"
v-model
.
trim=
"addForm.remark"
placeholder=
"请输入
姓名
"
maxlength=
"6"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"联系方式:"
prop=
"contactInformation"
size=
"small"
class=
"form-w40"
>
<el-form-item
label=
"联系方式:"
prop=
"contactInformation"
size=
"small"
class=
"form-w40"
>
<el-input
size=
"small"
v-model
.
trim=
"addForm.contactInformation"
placeholder=
"请输入联系方式"
maxlength=
"15"
></el-input>
<el-input
size=
"small"
v-model
.
trim=
"addForm.contactInformation"
placeholder=
"请输入联系方式"
maxlength=
"15"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"同步到卡片:"
prop=
"configName"
size=
"small"
class=
"form-w40"
>
<
!-- <
el-form-item label="同步到卡片:" prop="configName" size="small" class="form-w40">
<el-switch v-model="addForm.isShow" :active-value="0" :inactive-value="-1"></el-switch>
<el-switch v-model="addForm.isShow" :active-value="0" :inactive-value="-1"></el-switch>
</el-form-item>
</el-form-item>
-->
</el-form>
</el-form>
</GLDialog>
</GLDialog>
<GLDialog
title=
"提示"
@
onOk=
"handleDelSure"
@
onCancel=
"dialogVisibleDel = false"
type=
"error"
content=
"是否删除?"
:visible
.
sync=
"dialogVisibleDel"
mode=
"small"
></GLDialog>
<GLDialog
title=
"提示"
@
onOk=
"handleDelSure"
@
onCancel=
"dialogVisibleDel = false"
type=
"error"
content=
"是否删除?"
:visible
.
sync=
"dialogVisibleDel"
mode=
"small"
></GLDialog>
...
@@ -234,20 +234,20 @@ export default {
...
@@ -234,20 +234,20 @@ export default {
listName
:
'data'
,
listName
:
'data'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'
号码备注
'
,
label
:
'
姓名
'
,
prop
:
'remark'
prop
:
'remark'
},
},
{
{
label
:
'联系电话'
,
label
:
'联系电话'
,
prop
:
'contactInformation'
prop
:
'contactInformation'
},
},
{
//
{
label
:
'同步到卡片'
,
//
label: '同步到卡片',
prop
:
'isShow'
,
//
prop: 'isShow',
formatter
:
cellValue
=>
{
//
formatter: cellValue => {
return
cellValue
.
isShow
==
0
?
'是'
:
'否'
//
return cellValue.isShow == 0 ? '是' : '否'
}
//
}
},
//
},
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
'optionBtns'
,
prop
:
'optionBtns'
,
...
@@ -258,7 +258,7 @@ export default {
...
@@ -258,7 +258,7 @@ export default {
]
]
},
},
addRules
:
{
addRules
:
{
remark
:
[{
required
:
true
,
message
:
'请输入
号码备注
'
,
trigger
:
'blur'
}],
remark
:
[{
required
:
true
,
message
:
'请输入
姓名
'
,
trigger
:
'blur'
}],
contactInformation
:
[{
required
:
true
,
message
:
'请输入联系电话'
,
trigger
:
'blur'
}]
contactInformation
:
[{
required
:
true
,
message
:
'请输入联系电话'
,
trigger
:
'blur'
}]
}
}
}
}
...
@@ -269,11 +269,11 @@ export default {
...
@@ -269,11 +269,11 @@ export default {
},
},
listContact
()
{
listContact
()
{
this
.
$apis
.
helpCard
.
listContact
({}).
then
(
res
=>
{
this
.
$apis
.
helpCard
.
listContact
({}).
then
(
res
=>
{
this
.
tableData
=
res
this
.
tableData
=
res
||
[]
this
.
loading
=
false
this
.
loading
=
false
this
.
$nextTick
(()
=>
{
//
this.$nextTick(() => {
this
.
createImage
()
//
this.createImage()
})
//
})
})
})
},
},
cardConfigChecked
(
val
)
{
cardConfigChecked
(
val
)
{
...
...
src/views/home/components/config/marketConfig.vue
View file @
473ed14
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
selectEmp
from
'@/components/selectEmp'
import
selectEmp
from
'@/components/selectEmp
/emp.vue
'
export
default
{
export
default
{
name
:
'marketConfig'
,
name
:
'marketConfig'
,
components
:
{
components
:
{
...
...
src/views/home/index.vue
View file @
473ed14
...
@@ -67,7 +67,8 @@
...
@@ -67,7 +67,8 @@
进站续保
进站续保
</div>
</div>
</div>
</div>
<div
class=
"use-operation"
@
click=
"$router.push('/home/helpCard')"
>
立即使用
</div>
<div
class=
"use-operation"
@
click=
"$router.push('/home/helpCard')"
v-if=
"verifyOpenStatus"
>
立即使用
</div>
<div
class=
"use-operation"
v-else
>
尚未该订阅服务
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -83,10 +84,20 @@ export default {
...
@@ -83,10 +84,20 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'first'
activeName
:
'first'
,
verifyOpenStatus
:
false
}
}
},
},
methods
:
{}
mounted
()
{
this
.
verifyOpen
()
},
methods
:
{
verifyOpen
()
{
this
.
$apis
.
aiCard
.
verifyOpen
({}).
then
(
res
=>
{
this
.
verifyOpenStatus
=
res
&&
res
.
data
})
}
}
}
}
</
script
>
</
script
>
...
...
vue.config.js
View file @
473ed14
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-07-22 18:15:13
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-22 14:30:03
* @FilePath: \scrm-micro-home\vue.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
const
packageName
=
require
(
'./package.json'
).
name
const
packageName
=
require
(
'./package.json'
).
name
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
...
@@ -5,19 +13,11 @@ const publicPath = node_env ? `/child/${packageName}/` : '/'
...
@@ -5,19 +13,11 @@ const publicPath = node_env ? `/child/${packageName}/` : '/'
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
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
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
],
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
}
}
module
.
exports
=
{
module
.
exports
=
{
outputDir
:
`../dist/
${
packageName
}
`
,
outputDir
:
`dist
`
,
publicPath
,
publicPath
,
assetsDir
:
'static'
,
assetsDir
:
'static'
,
productionSourceMap
:
false
,
productionSourceMap
:
false
,
...
@@ -36,12 +36,12 @@ module.exports = {
...
@@ -36,12 +36,12 @@ module.exports = {
jsonpFunction
:
`webpackJsonp_
${
packageName
}
`
jsonpFunction
:
`webpackJsonp_
${
packageName
}
`
},
},
externals
:
{
externals
:
{
'vue'
:
'Vue'
,
vue
:
'Vue'
,
'element-ui'
:
'ELEMENT'
,
'element-ui'
:
'ELEMENT'
,
'vue-router'
:
'VueRouter'
,
'vue-router'
:
'VueRouter'
,
'vuex'
:
'Vuex'
,
vuex
:
'Vuex'
,
'axios'
:
'axios'
,
axios
:
'axios'
,
'echarts'
:
'echarts'
echarts
:
'echarts'
}
}
},
},
devServer
:
{
devServer
:
{
...
@@ -54,8 +54,7 @@ module.exports = {
...
@@ -54,8 +54,7 @@ module.exports = {
}
}
},
},
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
config
.
plugin
(
'html'
)
config
.
plugin
(
'html'
).
tap
(
args
=>
{
.
tap
(
args
=>
{
// args[0].minify.removeComments = false;
// args[0].minify.removeComments = false;
args
[
0
].
cdn
=
cdn
args
[
0
].
cdn
=
cdn
return
args
return
args
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment