Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
br-client
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
49f77cf2
...
49f77cf2c4dd1e1a5fb02fbc80031026074641f9
authored
2020-09-02 20:37:17 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
3faad008
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
20 deletions
config/index.js
package-lock.json
package.json
src/main.js
src/page/index.vue
config/index.js
View file @
49f77cf
...
...
@@ -14,13 +14,13 @@ module.exports = {
// Various Dev Server settings
host
:
'localhost'
,
// can be overwritten by process.env.HOST
port
:
80
8
0
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
port
:
80
9
0
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
false
,
errorOverlay
:
true
,
notifyOnErrors
:
true
,
poll
:
false
,
// https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
/**
* Source Maps
*/
...
...
package-lock.json
View file @
49f77cf
...
...
@@ -1269,6 +1269,14 @@
"qs"
:
"6.7.0"
,
"raw-body"
:
"2.4.0"
,
"type-is"
:
"~1.6.17"
},
"dependencies"
:
{
"qs"
:
{
"version"
:
"6.7.0"
,
"resolved"
:
"https://registry.npmjs.org/qs/-/qs-6.7.0.tgz"
,
"integrity"
:
"sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
,
"dev"
:
true
}
}
},
"bonjour"
:
{
...
...
@@ -3841,6 +3849,14 @@
"type-is"
:
"~1.6.18"
,
"utils-merge"
:
"1.0.1"
,
"vary"
:
"~1.1.2"
},
"dependencies"
:
{
"qs"
:
{
"version"
:
"6.7.0"
,
"resolved"
:
"https://registry.npmjs.org/qs/-/qs-6.7.0.tgz"
,
"integrity"
:
"sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
,
"dev"
:
true
}
}
},
"ext"
:
{
...
...
@@ -8909,10 +8925,9 @@
"dev"
:
true
},
"qs"
:
{
"version"
:
"6.7.0"
,
"resolved"
:
"https://registry.npmjs.org/qs/-/qs-6.7.0.tgz"
,
"integrity"
:
"sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
,
"dev"
:
true
"version"
:
"6.9.4"
,
"resolved"
:
"https://registry.npmjs.org/qs/-/qs-6.9.4.tgz"
,
"integrity"
:
"sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ=="
},
"query-string"
:
{
"version"
:
"4.3.4"
,
...
...
package.json
View file @
49f77cf
...
...
@@ -12,6 +12,7 @@
"dependencies"
:
{
"axios"
:
"^0.20.0"
,
"element-ui"
:
"^2.13.2"
,
"qs"
:
"^6.9.4"
,
"vue"
:
"^2.5.2"
,
"vue-router"
:
"^3.0.1"
},
...
...
src/main.js
View file @
49f77cf
...
...
@@ -6,9 +6,12 @@ import router from './router'
import
axios
from
'axios'
import
Element
from
'element-ui'
;
import
'element-ui/lib/theme-chalk/index.css'
;
import
qs
from
'qs'
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$http
=
axios
Vue
.
prototype
.
$qs
=
qs
axios
.
defaults
.
baseURL
=
'http://192.168.8.216:9090'
Vue
.
use
(
Element
,
{
size
:
'small'
,
zIndex
:
3000
});
...
...
src/page/index.vue
View file @
49f77cf
...
...
@@ -2,18 +2,29 @@
<div>
<el-row>
<el-col
:span=
"8"
>
<el-card
class=
"box-card"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
卡片名称
</span>
<el-button
style=
"float: right; padding: 3px 0"
type=
"text"
>
操作按钮
</el-button>
</div>
<div
v-for=
"o in 4"
:key=
"o"
class=
"text item"
>
{{
'列表内容 '
+
o
}}
</div>
</el-card>
<el-form
ref=
"form"
:model=
"deleteClues"
label-width=
"0px"
>
<el-card
class=
"yellowgreen"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
删除指定UID的线索
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"代理人UID"
v-model=
"deleteClues.agentUid"
clearable
></el-input>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-input
placeholder=
"该代理人名下的健康坊用户UID"
v-model=
"deleteClues.customUid"
clearable
></el-input>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"onSubmit"
>
删除线索
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-card
class=
"
box-car
d"
shadow=
"always"
>
<el-card
class=
"
darkre
d"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
卡片名称
</span>
<el-button
style=
"float: right; padding: 3px 0"
type=
"text"
>
操作按钮
</el-button>
...
...
@@ -24,7 +35,7 @@
</el-card>
</el-col>
<el-col
:span=
"8"
>
<el-card
class=
"b
ox-card
"
shadow=
"always"
>
<el-card
class=
"b
lue
"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
卡片名称
</span>
<el-button
style=
"float: right; padding: 3px 0"
type=
"text"
>
操作按钮
</el-button>
...
...
@@ -37,7 +48,7 @@
</el-row>
<el-row>
<el-col>
<el-card
class=
"
box-card
"
shadow=
"always"
>
<el-card
class=
"
aquamarine
"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
卡片名称
</span>
<el-button
style=
"float: right; padding: 3px 0"
type=
"text"
>
操作按钮
</el-button>
...
...
@@ -69,9 +80,75 @@
clear
:
both
}
.
box-card
{
width
:
440px
;
.
yellowgreen
{
width
:
calc
(
100%
-
20px
)
;
padding
:
0px
;
background-color
:
yellowgreen
;
}
.darkred
{
width
:
calc
(
100%
-
20px
);
padding
:
0px
;
background-color
:
darkkhaki
;
}
.blue
{
width
:
calc
(
100%
-
20px
);
padding
:
0px
;
background-color
:
deepskyblue
;
}
.aquamarine
{
width
:
calc
(
440px
);
padding
:
0px
;
background-color
:
aquamarine
;
}
</
style
>
<
script
>
export
default
{
data
()
{
return
{
deleteClues
:
{
agentUid
:
''
,
customUid
:
''
}
}
},
methods
:
{
onSubmit
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/money/delete?'
+
this
.
$qs
.
stringify
({
uid
:
this
.
deleteClues
.
agentUid
,
ref_id
:
this
.
deleteClues
.
customUid
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
==
'success'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'删除线索成功'
,
type
:
'success'
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
'删除线索失败'
,
type
:
'error'
});
}
}).
catch
(
error
=>
{
console
.
log
(
error
);
this
.
$message
({
showClose
:
true
,
message
:
'服务器抛出异常'
,
type
:
'error'
});
})
}
}
}
</
script
>
...
...
Please
register
or
sign in
to post a comment