Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-equity
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 9a16701d
authored
Mar 31, 2021
by
limin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
48495d8a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
118 additions
and
104 deletions
package-lock.json
package.json
src/api/request.js
src/api/test.js
src/base.js
src/components/d2-table/index.vue
src/styles/index.scss → src/styles/index.css
src/views/customer/collectionManagement/index.vue
src/views/customer/newEquityCard/index.vue
src/views/customer/rightsCardManagement/index.vue
title.js
vue.config.js
package-lock.json
View file @
9a16701
This diff is collapsed.
Click to expand it.
package.json
View file @
9a16701
{
{
"name"
:
"equity"
,
"name"
:
"glsx-oss-equity"
,
"version"
:
"1.0.0"
,
"version"
:
"0.1.0"
,
"description"
:
"A Vue.js project"
,
"author"
:
"zhouzy <962305455@qq.com>"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve"
,
...
@@ -12,10 +10,11 @@
...
@@ -12,10 +10,11 @@
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"^0.18.0"
,
"axios"
:
"^0.18.0"
,
"element-ui"
:
"^2.15.1"
,
"element-ui"
:
"^2.15.1"
,
"glsx-vue-common"
:
"^1.2.1"
,
"glsx-vue-common"
:
"^1.1.14"
,
"node-sass"
:
"^4.9.3"
,
"glsx-vue-components"
:
"^1.0.13"
,
"sass-loader"
:
"^7.1.0"
,
"vee-validate"
:
"^2.1.7"
,
"vue"
:
"^2.5.17"
"vue"
:
"^2.5.17"
,
"vue-clipboard2"
:
"^0.2.1"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^3.0.1"
,
"@vue/cli-plugin-babel"
:
"^3.0.1"
,
...
...
src/api/request.js
View file @
9a16701
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
* @Last Modified time: 2020-12-22 11:54:03
* @Last Modified time: 2020-12-22 11:54:03
*/
*/
// import sign from './sign'
// import sign from './sign'
import
RequestMethods
from
'./request.methods'
import
RequestMethods
from
'./request.methods'
// import util from '@/libs/util.js'
// import util from '@/libs/util.js'
...
...
src/api/test.js
View file @
9a16701
...
@@ -2,12 +2,8 @@ import {
...
@@ -2,12 +2,8 @@ import {
GlAxios
GlAxios
}
from
'glsx-vue-common'
}
from
'glsx-vue-common'
const
path
=
'memberInfo'
const
path
=
'memberInfo'
// function getdetailsMemberInfo(params) {
// function getdetailsMemberInfo(params) {
// return GlAxios.get(`${path}/detailsMemberInfo`, { params })
// return GlAxios.get(`${path}/detailsMemberInfo`, { params })
// }
// }
...
@@ -24,12 +20,12 @@ function listMemberCardDefine(params) {
...
@@ -24,12 +20,12 @@ function listMemberCardDefine(params) {
return
GlAxios
.
post
(
`
${
path
}
/listMemberCardDefine`
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
},
requestType
:
'jsonString'
})
return
GlAxios
.
post
(
`
${
path
}
/listMemberCardDefine`
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
},
requestType
:
'jsonString'
})
}
}
function
getlistByCardName
(
params
)
{
function
getlistByCardName
(
params
)
{
return
GlAxios
.
get
(
`
${
path
}
/listByCardName`
,
{
params
})
return
GlAxios
.
get
(
`
${
path
}
/listByCardName`
,
{
params
})
}
}
// function exportMemberCard(params) {
// function exportMemberCard(params) {
// return GlAxios.get(`${path}/exportMemberCard`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
// return GlAxios.get(`${path}/exportMemberCard`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
// }
// }
//查询权益卡详情
//
查询权益卡详情
// export function memberCardDetails(data) {
// export function memberCardDetails(data) {
// data.method = 'memberInfo/detailsMemberInfo'
// data.method = 'memberInfo/detailsMemberInfo'
// return request(data)
// return request(data)
...
@@ -47,7 +43,7 @@ function getMemberCardDetail(params) {
...
@@ -47,7 +43,7 @@ function getMemberCardDetail(params) {
return
GlAxios
.
get
(
`
${
path
}
/getMemberCardDetail`
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
},
requestType
:
'jsonString'
})
return
GlAxios
.
get
(
`
${
path
}
/getMemberCardDetail`
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
},
requestType
:
'jsonString'
})
}
}
export
{
export
{
// getdetailsMemberInfo,
// getdetailsMemberInfo,
// getlistMemberInfo,
// getlistMemberInfo,
generateMemberBatch
,
generateMemberBatch
,
...
...
src/base.js
View file @
9a16701
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-03-31 00:05:24
* @LastEditors: limin
* @LastEditTime: 2021-03-31 00:38:50
*/
// The Vue build version to load with the `import` command
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import
Vue
from
'vue'
import
Vue
from
'vue'
import
ElementUI
from
'element-ui'
import
GlsxVueComponents
from
'glsx-vue-components'
import
'element-ui/lib/theme-chalk/index.css'
import
'glsx-vue-components/dist/glsx-vue-components.css'
// import GlsxVueComponents from 'glsx-vue-components'
import
'./styles/index.css'
// import 'glsx-vue-components/dist/glsx-vue-components.css'
// import zh_CN from 'vee-validate/dist/locale/zh_CN'
import
{
Request
as
request
}
from
'glsx-vue-common'
// const {
// import '@/styles/index.scss'
// Validator
// 组件
// } = VeeValidate
import
'@/components'
// import VueI18n from 'vue-i18n'
// Vue.use(VueI18n)
// const i18n = new VueI18n({
// locale: 'zh_CN'
// })
// import axios from 'axios'
Vue
.
use
(
GlsxVueComponents
)
var
mixin
=
{
Vue
.
use
(
ElementUI
)
mounted
()
{
const
_this
=
this
// var mixin = {
const
theme
=
new
this
.
$Theme
()
// mounted() {
const
connection
=
this
.
$Penpal
.
connectToParent
({
// const _this = this
methods
:
{
// const theme = new this.$Theme()
setTheme
(
color
)
{
// const connection = this.$Penpal.connectToParent({
theme
.
change
(
color
)
// methods: {
},
// setTheme(color) {
height
()
{
// theme.change(color)
return
document
.
height
||
document
.
body
.
offsetHeight
// document.documentElement.clientHeight || document.body.clientHeight //
// },
}
// height() {
// return document.height || document.body.offsetHeight // document.documentElement.clientHeight || document.body.clientHeight //
// }
// }
// })
// connection.promise.then(parent => {
// const cfg = _this.$get_session_config()
// if (cfg) return
// parent.getResources().then(config => {
// _this.$set_session_config(config)
// })
// })
// }
// }
const
URL
=
' https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/oss_rightsAndInterests'
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
request
({
url
}).
then
(
res
=>
{
if
(
res
.
status
===
'success'
)
{
resolve
({
'vue'
:
Vue
,
'config'
:
JSON
.
parse
(
res
.
data
)
})
}
else
{
reject
(
'ERROR.'
)
}
}
})
})
connection
.
promise
.
then
(
parent
=>
{
const
cfg
=
_this
.
$get_session_config
()
if
(
cfg
)
return
parent
.
getResources
().
then
(
config
=>
{
_this
.
$set_session_config
(
config
)
})
})
}
}
const
URL
=
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/oss_rightsAndInterests'
)
=>
{
return
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
()
xhr
.
onreadystatechange
=
()
=>
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
resolve
({
'vue'
:
Vue
,
'config'
:
JSON
.
parse
(
xhr
.
responseText
)
})
}
}
xhr
.
open
(
'GET'
,
url
)
xhr
.
send
()
})
})
}
}
/* eslint-disable no-new */
/* eslint-disable no-new */
const
render
=
App
=>
{
const
render
=
App
=>
{
new
Vue
({
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
//
mixins: [mixin],
mixins
:
[
mixin
],
render
:
h
=>
h
(
App
)
render
:
h
=>
h
(
App
)
})
})
}
}
export
default
{
render
,
getConfig
}
export
default
{
render
,
getConfig
}
src/components/d2-table/index.vue
View file @
9a16701
...
@@ -114,7 +114,7 @@ export default {
...
@@ -114,7 +114,7 @@ export default {
page
:
{
page
:
{
pageSize
:
10
,
pageSize
:
10
,
// pageNum: 1
// pageNum: 1
currentPage
:
1
currentPage
:
1
},
},
total
:
10
,
total
:
10
,
// 排序
// 排序
...
...
src/styles/index.
s
css
→
src/styles/index.css
View file @
9a16701
File moved
src/views/customer/collectionManagement/index.vue
View file @
9a16701
This diff is collapsed.
Click to expand it.
src/views/customer/newEquityCard/index.vue
View file @
9a16701
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
insertMemberCardDefineRf
}
from
"@/api/test"
;
import
{
insertMemberCardDefineRf
}
from
'@/api/test'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -153,22 +153,22 @@ export default {
...
@@ -153,22 +153,22 @@ export default {
// validitVaule:""
// validitVaule:""
// },
// },
ruleForm
:
{
ruleForm
:
{
name
:
""
,
name
:
''
,
explain
:
""
,
explain
:
''
,
validity
:
1
,
validity
:
1
,
date1
:
""
,
date1
:
''
,
date2
:
""
,
date2
:
''
,
delivery
:
false
,
delivery
:
false
,
type
:
[],
type
:
[],
resource
:
""
,
resource
:
''
,
currencyCheckbox
:
false
,
currencyCheckbox
:
false
,
currencyInpution
:
""
,
currencyInpution
:
''
,
oilCheckbox
:
false
,
oilCheckbox
:
false
,
oilInpution
:
""
,
oilInpution
:
''
,
timeInpution
:
""
,
timeInpution
:
''
,
worryFreeCheckbox
:
false
,
worryFreeCheckbox
:
false
,
pushCollision
:
false
,
pushCollision
:
false
,
rebateRatio
:
""
,
rebateRatio
:
''
,
specialOfferCheckbox
:
false
,
specialOfferCheckbox
:
false
,
exchangeStandard
:
false
,
exchangeStandard
:
false
,
rescueCheckbox
:
false
,
rescueCheckbox
:
false
,
...
@@ -176,37 +176,37 @@ export default {
...
@@ -176,37 +176,37 @@ export default {
rescueWorryFree
:
null
,
rescueWorryFree
:
null
,
creditInstallment
:
null
,
creditInstallment
:
null
,
meiTuan
:
null
,
meiTuan
:
null
,
meituanCheckbox
:
false
,
meituanCheckbox
:
false
},
},
rules
:
{
rules
:
{
name
:
[
name
:
[
{
required
:
true
,
message
:
"请输入权益卡名字"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'请输入权益卡名字'
,
trigger
:
'blur'
},
{
min
:
3
,
max
:
5
,
message
:
"长度在 3 到 5 个字符"
,
trigger
:
"blur"
},
{
min
:
3
,
max
:
5
,
message
:
'长度在 3 到 5 个字符'
,
trigger
:
'blur'
}
],
],
explain
:
[{
required
:
true
,
message
:
"请填写说明"
,
trigger
:
"blur"
}],
explain
:
[{
required
:
true
,
message
:
'请填写说明'
,
trigger
:
'blur'
}],
validity
:
[{
required
:
true
,
message
:
"请选择有效期"
,
trigger
:
"blur"
}],
validity
:
[{
required
:
true
,
message
:
'请选择有效期'
,
trigger
:
'blur'
}],
currencyInpution
:
[
currencyInpution
:
[
{
required
:
true
,
message
:
"请填写返回的嘀币数"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'请填写返回的嘀币数'
,
trigger
:
'blur'
}
],
],
oilInpution
:
[{
required
:
true
,
message
:
"请填写推荐半径"
,
trigger
:
"blur"
}],
oilInpution
:
[{
required
:
true
,
message
:
'请填写推荐半径'
,
trigger
:
'blur'
}],
timeInpution
:
[{
required
:
true
,
message
:
"请填写最大天数"
,
trigger
:
"blur"
}],
timeInpution
:
[{
required
:
true
,
message
:
'请填写最大天数'
,
trigger
:
'blur'
}],
rebateRatio
:
[{
required
:
true
,
message
:
"请填写返利比例"
,
trigger
:
"blur"
}],
rebateRatio
:
[{
required
:
true
,
message
:
'请填写返利比例'
,
trigger
:
'blur'
}]
}
,
}
}
;
}
},
},
methods
:
{
methods
:
{
submitForm
(
formName
)
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
alert
(
"submit!"
);
alert
(
'submit!'
)
}
else
{
}
else
{
console
.
log
(
"error submit!!"
);
console
.
log
(
'error submit!!'
)
return
false
;
return
false
}
}
})
;
})
},
},
resetForm
(
formName
)
{
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
()
;
this
.
$refs
[
formName
].
resetFields
()
},
},
jump
()
{
jump
()
{
var
equityItemJson
=
{
var
equityItemJson
=
{
...
...
src/views/customer/rightsCardManagement/index.vue
View file @
9a16701
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
// import { getListApi } from '@/api/test'
// import { getListApi } from '@/api/test'
// import {memberCardDetails} from "@/api/test";
// import {memberCardDetails} from "@/api/test";
import
{
listMemberCardDefine
}
from
"@/api/test"
;
import
{
listMemberCardDefine
}
from
'@/api/test'
// import selectbotton from '@/components/selectbotton'
// import selectbotton from '@/components/selectbotton'
export
default
{
export
default
{
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
getListApi
:
listMemberCardDefine
,
getListApi
:
listMemberCardDefine
,
// getListApi: none,
// getListApi: none,
searchForm
:
null
,
searchForm
:
null
,
tableParams
:
{
tableParams
:
{
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'权益卡名称'
,
label
:
'权益卡名称'
,
prop
:
'memberName'
,
prop
:
'memberName'
// minWidth: '200'
// minWidth: '200'
},
},
{
{
...
@@ -66,18 +66,18 @@ export default {
...
@@ -66,18 +66,18 @@ export default {
},
},
{
{
label
:
'领卡人数'
,
label
:
'领卡人数'
,
prop
:
'activationCount'
,
prop
:
'activationCount'
// width: 110,
// width: 110,
// tagLabel: true
// tagLabel: true
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdDateStr'
,
prop
:
'createdDateStr'
// minWidth: '200'
// minWidth: '200'
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
// formatter: (cellValue) => {
// formatter: (cellValue) => {
// return {
// return {
// 0: '进行中',
// 0: '进行中',
...
@@ -93,19 +93,19 @@ export default {
...
@@ -93,19 +93,19 @@ export default {
label
:
'备注'
,
label
:
'备注'
,
prop
:
'remarks'
,
prop
:
'remarks'
,
minWidth
:
'200'
minWidth
:
'200'
}
,
}
]
]
}
,
}
}
}
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
addCard
()
{
addCard
()
{
window
.
location
.
href
=
'http://localhost:8080/customer/newEquityCard.html'
window
.
location
.
href
=
'http://localhost:8080/customer/newEquityCard.html'
}
,
}
// handleEdit() {
// handleEdit() {
...
...
title.js
View file @
9a16701
module
.
exports
=
{
module
.
exports
=
{
index
:
'主页'
,
index
:
'主页'
,
'customer/glsx'
:
'广联赛讯'
'customer/voice'
:
'语音活动管理'
,
'customer/brand'
:
'品牌表情管理'
}
}
vue.config.js
View file @
9a16701
...
@@ -20,14 +20,17 @@ module.exports = {
...
@@ -20,14 +20,17 @@ module.exports = {
// config.mode = mode
// config.mode = mode
},
},
devServer
:
{
devServer
:
{
port
:
808
0
,
port
:
808
5
,
host
:
'
192.168.1.169
'
,
host
:
'
0.0.0.0
'
,
open
:
true
,
// open: process.platform === '192.168.0.21'
,
proxy
:
{
proxy
:
{
'/api'
:
{
'/api'
:
{
target
:
'http://1
27.0.0.
1:8080'
,
target
:
'http://1
92.168.0.2
1:8080'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/api'
:
''
}
pathRewrite
:
{
'^/api'
:
''
},
ws
:
false
}
}
}
}
}
}
...
...
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