Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
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 24a72c3b
authored
Dec 02, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
f1621972
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
127 additions
and
100 deletions
.eslintrc
src/config/index.js
src/main.js
src/setup/qiankun.js
src/views/businessCard/components/activityList.vue
src/views/businessCard/components/cardList.vue
src/views/businessCard/components/recordList.vue
src/views/businessCard/index.vue
vue.config.js
.eslintrc
View file @
24a72c3
...
...
@@ -6,12 +6,11 @@
"extends": ["plugin:vue/essential", "@vue/prettier"],
"rules": {
"no-console": "off",
"no-unused-vars":"off",
"no-unused-vars":
"off",
"prettier.endOfLine": "crlf",
"endOfLine":"auto"
"endOfLine":
"auto"
},
"parserOptions": {
"parser": "babel-eslint"
}
}
src/config/index.js
View file @
24a72c3
...
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-1
1-25 13:57:31
* @LastEditTime: 2022-1
2-01 15:41:17
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
...
...
src/main.js
View file @
24a72c3
...
...
@@ -7,21 +7,21 @@
* @LastEditTime: 2021-09-14 09:34:52
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import
Vue
from
'vue'
import
apis
from
'./api'
import
'./public-path'
import
'./components'
import
filters
from
'./utils/filters'
import
Vue
from
"vue"
;
import
apis
from
"./api"
;
import
"./public-path"
;
import
"./components"
;
import
filters
from
"./utils/filters"
;
// import 'glsx-components/dist/glsx-components.css'
import
{
start
}
from
'@/setup'
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$apis
=
apis
import
{
start
}
from
"@/setup"
;
Vue
.
config
.
productionTip
=
false
;
Vue
.
prototype
.
$apis
=
apis
;
//过滤器统一处理预加载
Object
.
keys
(
filters
).
forEach
(
key
=>
{
Vue
.
filter
(
key
,
filters
[
key
])
})
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_tag
=
params
=>
Vue
.
prototype
.
$http_tag
(
params
)
Object
.
keys
(
filters
).
forEach
(
(
key
)
=>
{
Vue
.
filter
(
key
,
filters
[
key
])
;
})
;
start
()
;
export
{
bootstrap
,
mount
,
unmount
}
from
"@/setup"
;
export
const
http
=
(
params
)
=>
Vue
.
prototype
.
$http
(
params
);
export
const
http_common
=
(
params
)
=>
Vue
.
prototype
.
$http_common
(
params
);
export
const
http_tag
=
(
params
)
=>
Vue
.
prototype
.
$http_tag
(
params
);
src/setup/qiankun.js
View file @
24a72c3
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-25 10:20:02
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-1
1-25 13:37:55
* @LastEditTime: 2022-1
2-01 14:38:59
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -31,7 +31,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
'scrm-base-fd30e9d8-aea4-4367-936d-3e7a9cdaa18d-rop'
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_tag
=
new
common
.
Http
({
response
,
request
:
request_tag
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
...
...
src/views/businessCard/components/activityList.vue
View file @
24a72c3
...
...
@@ -3,7 +3,7 @@
<div
class=
"form-panel scrm-box-f"
>
<GLCombiForm
:rowNumber=
"1"
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"tabel-header"
>
<div
class=
"tabel-header-title"
>
活动申请
列表
</div>
<div
class=
"tabel-header-title"
>
名片
列表
</div>
<el-button
plain
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
...
...
@@ -91,7 +91,7 @@ export default {
},
searchFormData
:
[
{
label
:
'申请时间
:
'
,
label
:
'申请时间'
,
name
:
'createTime'
,
type
:
'datePicker'
,
placeholder
:
''
,
...
...
@@ -148,7 +148,7 @@ export default {
width
:
'210px'
},
{
label
:
'主营
车型
'
,
label
:
'主营
品牌
'
,
prop
:
'carModel'
,
width
:
'140px'
},
...
...
src/views/businessCard/components/cardList.vue
View file @
24a72c3
...
...
@@ -9,7 +9,7 @@
<div
class=
"form-panel scrm-box-f"
>
<GLCombiForm
:rowNumber=
"1"
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"tabel-header"
>
<div
class=
"tabel-header-title"
>
智能
名片列表
</div>
<div
class=
"tabel-header-title"
>
名片列表
</div>
<el-button
plain
size=
"small"
@
click=
"handleExport"
>
导出
</el-button>
...
...
@@ -99,6 +99,18 @@ export default {
name
:
'cardName'
,
type
:
'input'
,
placeholder
:
'请输入渠道名称'
},
{
label
:
'创建时间'
,
name
:
'createTime'
,
type
:
'datePicker'
,
placeholder
:
''
,
isClear
:
true
,
pickerOptions
:
{
disabledDate
:
time
=>
{
return
time
.
getTime
()
>
Date
.
now
()
}
}
}
],
tableData
:
[],
...
...
@@ -261,11 +273,16 @@ export default {
this
.
selectItem
=
scope
},
getParams
(
status
)
{
if
(
this
.
tableSearchForm
.
createTime
)
{
this
.
tableSearchForm
.
statisticStartTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'/'
)
this
.
tableSearchForm
.
statisticEndTime
=
new
Date
(
this
.
tableSearchForm
.
createTime
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'/'
)
}
const
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableSearchForm
)),
pageSize
:
status
?
100000
:
this
.
$refs
.
table
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
table
.
page
.
pageNum
}
delete
params
.
createTime
return
params
},
listBussinessCardByPage
()
{
...
...
src/views/businessCard/components/recordList.vue
View file @
24a72c3
...
...
@@ -22,6 +22,7 @@
<div
class=
"listTitle"
>
访问列表
</div>
<div>
<el-radio-group
v-model=
"timeRadio"
size=
"mini"
@
change=
"handleTab"
>
<el-radio-button
label=
""
>
全部
</el-radio-button>
<el-radio-button
label=
"1"
>
今天
</el-radio-button>
<el-radio-button
label=
"2"
>
本周
</el-radio-button>
<el-radio-button
label=
"3"
>
本月
</el-radio-button>
...
...
@@ -63,8 +64,8 @@ export default {
isShowInput
:
false
,
recordRelationList
:
[],
dialogTableVisible
:
false
,
timeRadio
:
1
,
dateInterval
:
1
,
timeRadio
:
''
,
dateInterval
:
''
,
pickerOptions
:
{
disabledDate
:
time
=>
{
return
time
.
getTime
()
>
Date
.
now
()
...
...
@@ -173,8 +174,8 @@ export default {
}
else
{
this
.
startDate
=
''
this
.
endDate
=
''
this
.
timeRadio
=
1
this
.
dateInterval
=
1
this
.
timeRadio
=
''
this
.
dateInterval
=
''
}
this
.
codeSearch
()
},
...
...
@@ -191,12 +192,12 @@ export default {
this
.
tableSearchForm
[
key
]
=
''
})
this
.
createTime
=
[]
this
.
timeRadio
=
1
this
.
timeRadio
=
''
let
params
=
{
...
this
.
tableSearchForm
,
pageSize
:
10
,
pageNum
:
1
,
dateInterval
:
1
dateInterval
:
''
}
this
.
sendPageListApi
(
params
)
},
...
...
src/views/businessCard/index.vue
View file @
24a72c3
...
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-12 09:30:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-1
0-18 16:03:33
* @LastEditTime: 2022-1
2-02 14:09:36
* @FilePath: \scrm-micro-drainage\src\views\businessCard\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -41,6 +41,10 @@ export default {
tabPaneList
}
},
componentsName
:
'a'
,
mounted
()
{
console
.
log
(
this
)
},
computed
:
{
tabName
()
{
let
sname
...
...
@@ -70,4 +74,9 @@ export default {
margin-bottom
:
10px
;
}
}
/
deep
/
.search-list
{
.el-form-item--small
{
width
:
21%
!important
;
}
}
</
style
>
vue.config.js
View file @
24a72c3
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-25 10:20:02
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-12-02 18:00:36
* @FilePath: \scrm-micro-drainage\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,68 @@ 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