Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-charge
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 4dd7dc99
authored
Feb 29, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'yc_v1.0.0' of
http://192.168.3.233:8090/saas/scrm-micro-charge
into yc_v1.0.0
2 parents
93a3599e
91d28bbd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
24 deletions
src/assets/css/public.scss
src/setup/qiankun.js
src/views/Radar/index.vue
src/views/parkingPlace/index.vue
src/assets/css/public.scss
View file @
4dd7dc9
...
@@ -30,3 +30,7 @@ html {
...
@@ -30,3 +30,7 @@ html {
// align-items: center;
// align-items: center;
}
}
.message-class
{
z-index
:
5000
!
important
;
}
src/setup/qiankun.js
View file @
4dd7dc9
...
@@ -20,7 +20,8 @@ let instance = null
...
@@ -20,7 +20,8 @@ let instance = null
Vue
.
use
(
ElementUI
)
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
request_gpt
,
request_merchant
,
messageModel
}
=
await
fetchConfig
(
common
)
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
,
request_gpt
,
request_merchant
,
messageModel
,
commonData
}
=
await
fetchConfig
(
common
)
Vue
.
prototype
.
$commonData
=
commonData
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
...
...
src/views/Radar/index.vue
View file @
4dd7dc9
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</el-button>
</el-button>
<input
type=
"file"
style=
"opacity: 0"
ref=
"file"
accept=
"*"
@
change=
"uploadFile"
/>
<input
type=
"file"
style=
"opacity: 0"
ref=
"file"
accept=
"*"
@
change=
"uploadFile"
/>
</div>
</div>
<a
href=
"https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/导入设备.xlsx
"
target=
"_blank"
>
下载模板
</a>
<a
:href=
"tempUrl
"
target=
"_blank"
>
下载模板
</a>
</div>
</div>
</el-form-item>
</el-form-item>
<div
class=
"tip"
>
支持扩展名:xlsx、xls、csv
</div>
<div
class=
"tip"
>
支持扩展名:xlsx、xls、csv
</div>
...
@@ -73,6 +73,7 @@ export default {
...
@@ -73,6 +73,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
size
:
'small'
,
size
:
'small'
,
tempUrl
:
this
.
$commonData
.
radarTmplUrl
,
url
:
url
,
url
:
url
,
batchForm
:
{
batchForm
:
{
isUpload
:
false
,
isUpload
:
false
,
...
@@ -163,12 +164,12 @@ export default {
...
@@ -163,12 +164,12 @@ export default {
{
{
label
:
'设备状态'
,
label
:
'设备状态'
,
prop
:
'deviceStatusStr'
,
prop
:
'deviceStatusStr'
,
addHtml
:
'deviceStatus'
,
addHtml
:
'deviceStatus'
},
},
{
{
label
:
'绑定关系'
,
label
:
'绑定关系'
,
prop
:
'bindingStatusStr'
,
prop
:
'bindingStatusStr'
,
addHtml
:
'bindingStatus'
,
addHtml
:
'bindingStatus'
},
},
{
{
label
:
'入库时间'
,
label
:
'入库时间'
,
...
@@ -204,8 +205,8 @@ export default {
...
@@ -204,8 +205,8 @@ export default {
}
}
]
]
},
},
deviceStatusEnum
:
[
'#999999'
,
'#2CCA74'
,
'#EB4E4E'
],
deviceStatusEnum
:
[
'#999999'
,
'#2CCA74'
,
'#EB4E4E'
],
bindingStatusEnum
:
[
'#999999'
,
'#2CCA74'
]
bindingStatusEnum
:
[
'#999999'
,
'#2CCA74'
]
}
}
},
},
...
@@ -229,7 +230,8 @@ export default {
...
@@ -229,7 +230,8 @@ export default {
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-class'
})
})
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
fn
&&
fn
()
fn
&&
fn
()
...
@@ -248,7 +250,11 @@ export default {
...
@@ -248,7 +250,11 @@ export default {
this
.
handleImport
()
this
.
handleImport
()
return
return
}
else
if
(
!
this
.
batchForm
.
exportUrl
)
{
}
else
if
(
!
this
.
batchForm
.
exportUrl
)
{
this
.
$message
.
error
(
'请上传文件'
)
this
.
$message
({
message
:
'请上传图片'
,
type
:
'error'
,
customClass
:
'message-class'
})
return
return
}
}
let
params
=
{
let
params
=
{
...
@@ -260,7 +266,8 @@ export default {
...
@@ -260,7 +266,8 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'导入成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'导入成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-class'
})
})
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
batchForm
.
isUpload
=
true
this
.
batchForm
.
isUpload
=
true
...
@@ -270,7 +277,8 @@ export default {
...
@@ -270,7 +277,8 @@ export default {
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
res
.
message
,
message
:
res
.
message
,
type
:
'error'
type
:
'error'
,
customClass
:
'message-class'
})
})
}
}
})
})
...
@@ -283,7 +291,11 @@ export default {
...
@@ -283,7 +291,11 @@ export default {
let
AllImgExt
=
'.xls|.xlsx'
let
AllImgExt
=
'.xls|.xlsx'
let
extName
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
let
extName
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
this
.
$message
.
error
(
'上传格式不正确'
)
this
.
$message
({
message
:
'上传格式不正确'
,
type
:
'error'
,
customClass
:
'message-class'
})
return
false
return
false
}
}
const
size
=
file
.
size
/
1024
/
1024
const
size
=
file
.
size
/
1024
/
1024
...
@@ -314,7 +326,8 @@ export default {
...
@@ -314,7 +326,8 @@ export default {
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
'暂无错误数据'
,
message
:
'暂无错误数据'
,
type
:
'error'
type
:
'error'
,
customClass
:
'message-class'
})
})
}
}
},
},
...
@@ -520,5 +533,5 @@ export default {
...
@@ -520,5 +533,5 @@ export default {
background
:
#eb4e4e
;
background
:
#eb4e4e
;
border-radius
:
4px
;
border-radius
:
4px
;
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
</
style
>
</
style
>
src/views/parkingPlace/index.vue
View file @
4dd7dc9
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</el-button>
</el-button>
<input
type=
"file"
style=
"opacity: 0"
ref=
"file"
accept=
"*"
@
change=
"uploadFile"
/>
<input
type=
"file"
style=
"opacity: 0"
ref=
"file"
accept=
"*"
@
change=
"uploadFile"
/>
</div>
</div>
<a
href=
"https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/红包链接.xlsx
"
target=
"_blank"
>
下载模板
</a>
<a
:href=
"tempUrl
"
target=
"_blank"
>
下载模板
</a>
</div>
</div>
</el-form-item>
</el-form-item>
<div
class=
"tip"
>
支持扩展名:xlsx、xls
</div>
<div
class=
"tip"
>
支持扩展名:xlsx、xls
</div>
...
@@ -131,6 +131,7 @@ export default {
...
@@ -131,6 +131,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
tempUrl
:
this
.
$commonData
.
tmplUrl
,
parkingPlaceVisible
:
false
,
parkingPlaceVisible
:
false
,
uploadVisible
:
false
,
uploadVisible
:
false
,
isBatch
:
false
,
isBatch
:
false
,
...
@@ -436,7 +437,11 @@ export default {
...
@@ -436,7 +437,11 @@ export default {
this
.
handleExportError
()
this
.
handleExportError
()
return
return
}
else
if
(
!
this
.
batchForm
.
exportUrl
)
{
}
else
if
(
!
this
.
batchForm
.
exportUrl
)
{
return
this
.
$message
.
error
(
'请上传文件'
)
return
this
.
$message
({
message
:
'请上传文件'
,
type
:
'error'
,
customClass
:
'message-class'
})
}
}
let
params
=
{
let
params
=
{
exportUrl
:
this
.
batchForm
.
exportUrl
,
exportUrl
:
this
.
batchForm
.
exportUrl
,
...
@@ -448,7 +453,8 @@ export default {
...
@@ -448,7 +453,8 @@ export default {
console
.
log
(
res
,
'exporres'
)
console
.
log
(
res
,
'exporres'
)
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'导入成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'导入成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-class'
})
})
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
const
data
=
res
?.
data
||
{}
const
data
=
res
?.
data
||
{}
...
@@ -459,7 +465,8 @@ export default {
...
@@ -459,7 +465,8 @@ export default {
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
res
.
message
,
message
:
res
.
message
,
type
:
'error'
type
:
'error'
,
customClass
:
'message-class'
})
})
}
}
})
})
...
@@ -472,7 +479,11 @@ export default {
...
@@ -472,7 +479,11 @@ export default {
let
AllImgExt
=
'.xls|.xlsx'
let
AllImgExt
=
'.xls|.xlsx'
let
extName
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
let
extName
=
file
.
name
.
substring
(
file
.
name
.
lastIndexOf
(
'.'
)).
toLowerCase
()
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
if
(
AllImgExt
.
indexOf
(
extName
)
===
-
1
)
{
this
.
$message
.
error
(
'上传格式不正确'
)
this
.
$message
({
message
:
'上传格式不正确'
,
type
:
'error'
,
customClass
:
'message-class'
})
return
false
return
false
}
}
const
size
=
file
.
size
/
1024
/
1024
const
size
=
file
.
size
/
1024
/
1024
...
@@ -504,7 +515,8 @@ export default {
...
@@ -504,7 +515,8 @@ export default {
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
'暂无错误数据'
,
message
:
'暂无错误数据'
,
type
:
'error'
type
:
'error'
,
customClass
:
'message-class'
})
})
}
}
},
},
...
@@ -526,10 +538,10 @@ export default {
...
@@ -526,10 +538,10 @@ export default {
this
.
isBatch
=
true
this
.
isBatch
=
true
},
},
//车位标记
//车位标记
sign
(
row
){
sign
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/parkingPlace/sign'
,
path
:
'/parkingPlace/sign'
,
query
:
row
query
:
row
})
})
},
},
openUploadDialog
(
row
)
{
openUploadDialog
(
row
)
{
...
@@ -560,7 +572,13 @@ export default {
...
@@ -560,7 +572,13 @@ export default {
picList
.
push
(
obj
)
picList
.
push
(
obj
)
}
}
})
})
if
(
!
picList
?.
length
)
return
this
.
$message
.
error
(
'请上传图片'
)
if
(
!
picList
?.
length
)
{
return
this
.
$message
({
message
:
'请上传图片'
,
type
:
'error'
,
customClass
:
'message-class'
})
}
const
params
=
{
const
params
=
{
id
:
this
.
curId
,
id
:
this
.
curId
,
chargeParkingSpaceImgDTOList
:
picList
chargeParkingSpaceImgDTOList
:
picList
...
@@ -568,6 +586,7 @@ export default {
...
@@ -568,6 +586,7 @@ export default {
this
.
$apis
.
parkingSpace
.
saveParkingSpacePicApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
parkingSpace
.
saveParkingSpacePicApi
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
$message
.
success
(
'操作成功'
)
this
.
searchTable
()
this
.
uploadCancel
()
this
.
uploadCancel
()
}
}
})
})
...
@@ -578,7 +597,7 @@ export default {
...
@@ -578,7 +597,7 @@ export default {
this
.
uploadList
=
JSON
.
parse
(
JSON
.
stringify
(
UPLOAD_LIST
))
this
.
uploadList
=
JSON
.
parse
(
JSON
.
stringify
(
UPLOAD_LIST
))
},
},
getMerchantList
()
{
getMerchantList
()
{
this
.
$apis
.
parkingSpace
.
getMerchantListApi
({
merchantId
:
'44209875'
}).
then
(
res
=>
{
this
.
$apis
.
parkingSpace
.
getMerchantListApi
({
merchantId
:
this
.
$commonData
.
merchantId
}).
then
(
res
=>
{
if
(
res
?.
length
)
{
if
(
res
?.
length
)
{
const
target
=
this
.
searchFormList
.
find
(
item
=>
item
.
name
==
'merchantId'
)
const
target
=
this
.
searchFormList
.
find
(
item
=>
item
.
name
==
'merchantId'
)
target
.
optionList
=
[{
merchantName
:
'全部'
,
merchantNo
:
''
},
...
res
]
target
.
optionList
=
[{
merchantName
:
'全部'
,
merchantNo
:
''
},
...
res
]
...
...
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