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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
117 additions
and
95 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 => {
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
{
checkTask
,
createTask
,
...
...
@@ -109,5 +120,6 @@ export default {
phoneStatusPage
,
phoneCheck
,
getTaskContent
,
updateTaskContent
updateTaskContent
,
verifyOpen
}
src/config/index.js
View file @
473ed14
...
...
@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors:
limi
n
* @LastEditTime: 202
1-09-07 14:38:52
* @LastEditors:
前端 qianduan01@didihu.com.c
n
* @LastEditTime: 202
2-12-22 14:29:51
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
...
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
// 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/618a32851072f92988f05a17/drainag
e/config')
// return new Http().get('https://oss-config.
dev.glsx.com.cn/mock/616d28231072f92988f059fb/hom
e/config')
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/views/home/components/cardConfig.vue
View file @
473ed14
<
template
>
<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-title"
>
道路救援卡
</div>
</div>
...
...
@@ -16,7 +16,7 @@
</div>
</div>
</div>
</div>
</div>
-->
<div
class=
"help-store-container"
>
<div
class=
"help-container"
>
<div
class=
"help-header scrm-p020"
>
...
...
@@ -58,7 +58,7 @@
<div
class=
"help-container"
>
<div
class=
"help-header scrm-p020"
>
<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
class=
"contact-tabel scrm-p20"
>
<GLTable
:hasPage=
"false"
ref=
"taskForm"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
...
...
@@ -184,15 +184,15 @@
</div>
<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-item
label=
"
号码备注
:"
prop=
"remark"
size=
"small"
class=
"form-w40"
>
<el-input
size=
"small"
v-model
.
trim=
"addForm.remark"
placeholder=
"请输入
号码备注
"
maxlength=
"6"
></el-input>
<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-form-item>
<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-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-form-item>
</el-form-item>
-->
</el-form>
</GLDialog>
<GLDialog
title=
"提示"
@
onOk=
"handleDelSure"
@
onCancel=
"dialogVisibleDel = false"
type=
"error"
content=
"是否删除?"
:visible
.
sync=
"dialogVisibleDel"
mode=
"small"
></GLDialog>
...
...
@@ -234,20 +234,20 @@ export default {
listName
:
'data'
,
tableColumns
:
[
{
label
:
'
号码备注
'
,
label
:
'
姓名
'
,
prop
:
'remark'
},
{
label
:
'联系电话'
,
prop
:
'contactInformation'
},
{
label
:
'同步到卡片'
,
prop
:
'isShow'
,
formatter
:
cellValue
=>
{
return
cellValue
.
isShow
==
0
?
'是'
:
'否'
}
},
//
{
//
label: '同步到卡片',
//
prop: 'isShow',
//
formatter: cellValue => {
//
return cellValue.isShow == 0 ? '是' : '否'
//
}
//
},
{
label
:
'操作'
,
prop
:
'optionBtns'
,
...
...
@@ -258,7 +258,7 @@ export default {
]
},
addRules
:
{
remark
:
[{
required
:
true
,
message
:
'请输入
号码备注
'
,
trigger
:
'blur'
}],
remark
:
[{
required
:
true
,
message
:
'请输入
姓名
'
,
trigger
:
'blur'
}],
contactInformation
:
[{
required
:
true
,
message
:
'请输入联系电话'
,
trigger
:
'blur'
}]
}
}
...
...
@@ -269,11 +269,11 @@ export default {
},
listContact
()
{
this
.
$apis
.
helpCard
.
listContact
({}).
then
(
res
=>
{
this
.
tableData
=
res
this
.
tableData
=
res
||
[]
this
.
loading
=
false
this
.
$nextTick
(()
=>
{
this
.
createImage
()
})
//
this.$nextTick(() => {
//
this.createImage()
//
})
})
},
cardConfigChecked
(
val
)
{
...
...
src/views/home/components/config/marketConfig.vue
View file @
473ed14
...
...
@@ -42,7 +42,7 @@
</
template
>
<
script
>
import
selectEmp
from
'@/components/selectEmp'
import
selectEmp
from
'@/components/selectEmp
/emp.vue
'
export
default
{
name
:
'marketConfig'
,
components
:
{
...
...
src/views/home/index.vue
View file @
473ed14
...
...
@@ -67,7 +67,8 @@
进站续保
</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>
...
...
@@ -83,10 +84,20 @@ export default {
},
data
()
{
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
>
...
...
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
packageName
=
require
(
'./package.json'
).
name
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
...
...
@@ -5,75 +13,66 @@ const publicPath = node_env ? `/child/${packageName}/` : '/'
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
CDN_DOMAIN
=
'https://img02.glsx.com.cn/'
const
cdn
=
{
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`
]
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`
]
}
module
.
exports
=
{
outputDir
:
`../dist/
${
packageName
}
`
,
publicPath
,
assetsDir
:
'static'
,
productionSourceMap
:
false
,
configureWebpack
:
{
resolve
:
{
alias
:
{
'@'
:
resolve
(
'src'
),
assets
:
resolve
(
'src/assets'
),
views
:
resolve
(
'src/views'
),
components
:
resolve
(
'src/components'
)
}
},
output
:
{
library
:
`
${
packageName
}
-[name]`
,
libraryTarget
:
'umd'
,
// 把微应用打包成 umd 库格式
jsonpFunction
:
`webpackJsonp_
${
packageName
}
`
},
externals
:
{
'vue'
:
'Vue'
,
'element-ui'
:
'ELEMENT'
,
'vue-router'
:
'VueRouter'
,
'vuex'
:
'Vuex'
,
'axios'
:
'axios'
,
'echarts'
:
'echarts'
}
outputDir
:
`dist`
,
publicPath
,
assetsDir
:
'static'
,
productionSourceMap
:
false
,
configureWebpack
:
{
resolve
:
{
alias
:
{
'@'
:
resolve
(
'src'
),
assets
:
resolve
(
'src/assets'
),
views
:
resolve
(
'src/views'
),
components
:
resolve
(
'src/components'
)
}
},
devServer
:
{
hot
:
true
,
disableHostCheck
:
true
,
host
:
process
.
env
.
VUE_APP_HOST
,
port
:
process
.
env
.
VUE_APP_PORT
,
headers
:
{
'Access-Control-Allow-Origin'
:
'*'
// 主应用获取子应用时跨域响应头
}
output
:
{
library
:
`
${
packageName
}
-[name]`
,
libraryTarget
:
'umd'
,
// 把微应用打包成 umd 库格式
jsonpFunction
:
`webpackJsonp_
${
packageName
}
`
},
chainWebpack
:
config
=>
{
config
.
plugin
(
'html'
)
.
tap
(
args
=>
{
// args[0].minify.removeComments = false;
args
[
0
].
cdn
=
cdn
return
args
})
config
.
plugins
.
delete
(
'preload'
)
// TODO: need test
config
.
plugins
.
delete
(
'prefetch'
)
// TODO: need test
config
.
module
.
rule
(
'fonts'
)
.
test
(
/.
(
ttf|otf|eot|woff|woff2
)
$/
)
.
use
(
'url-loader'
)
.
loader
(
'url-loader'
)
.
tap
(
options
=>
{
options
=
{
// limit: 10000,
name
:
'/static/fonts/[name].[ext]'
}
return
options
})
.
end
()
externals
:
{
vue
:
'Vue'
,
'element-ui'
:
'ELEMENT'
,
'vue-router'
:
'VueRouter'
,
vuex
:
'Vuex'
,
axios
:
'axios'
,
echarts
:
'echarts'
}
},
devServer
:
{
hot
:
true
,
disableHostCheck
:
true
,
host
:
process
.
env
.
VUE_APP_HOST
,
port
:
process
.
env
.
VUE_APP_PORT
,
headers
:
{
'Access-Control-Allow-Origin'
:
'*'
// 主应用获取子应用时跨域响应头
}
}
\ No newline at end of file
},
chainWebpack
:
config
=>
{
config
.
plugin
(
'html'
).
tap
(
args
=>
{
// args[0].minify.removeComments = false;
args
[
0
].
cdn
=
cdn
return
args
})
config
.
plugins
.
delete
(
'preload'
)
// TODO: need test
config
.
plugins
.
delete
(
'prefetch'
)
// TODO: need test
config
.
module
.
rule
(
'fonts'
)
.
test
(
/.
(
ttf|otf|eot|woff|woff2
)
$/
)
.
use
(
'url-loader'
)
.
loader
(
'url-loader'
)
.
tap
(
options
=>
{
options
=
{
// limit: 10000,
name
:
'/static/fonts/[name].[ext]'
}
return
options
})
.
end
()
}
}
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