Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
csssp-xcx-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
劳广强
csssp-xcx-h5
Commits
da787fdd
提交
da787fdd
authored
1月 13, 2023
作者:
杨斌基
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(上报内容): 交通违法增加号牌种类
上级
543d1732
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
63 行增加
和
1 行删除
+63
-1
index.vue
pages/record-content/index.vue
+63
-1
没有找到文件。
pages/record-content/index.vue
浏览文件 @
da787fdd
...
...
@@ -54,6 +54,19 @@
<
/view
>
-->
<
view
class
=
"report_box"
style
=
"margin-top: 50rpx;"
>
<
view
class
=
"report_one"
@
click
=
"selectNumberPlatesShow = true"
>
<
view
class
=
"report_left"
>
<
image
mode
=
"aspectFill"
class
=
"tep_icon"
src
=
"/static/icon/ic_rw_zhixing@2x.png"
/>
<
view
class
=
"one"
>
号牌种类
<
/view
>
<
/view
>
<
view
class
=
"report_right"
>
<
view
class
=
"report_name"
>
{{
numberPlateText
}}
<
/view
>
<
image
mode
=
"aspectFill"
class
=
"arrow_right"
src
=
"/static/icon/arrow_right@2x.png"
/>
<
/view
>
<
/view
>
<
/view
>
<!--
号牌号码
-->
<
view
class
=
"step_box"
>
<
view
class
=
"tep_one"
>
...
...
@@ -439,6 +452,15 @@
@
cancel
=
"showIllegalTime = false"
@
confirm
=
"onIllegalTimeConfirm"
/>
<
u
-
action
-
sheet
:
actions
=
"numberPlates"
:
show
=
"selectNumberPlatesShow"
cancelText
=
"取消"
safeAreaInsetBottom
round
=
"32rpx"
@
close
=
"selectNumberPlatesShow = false"
@
select
=
"onSelectNumberPlate"
/>
<
/view
>
<
/view
>
<
/template
>
...
...
@@ -460,6 +482,15 @@ const typeMap = {
dispersion
:
'渣土运输车辆未覆盖或沿途泄露、抛撒'
}
const
numberPlateMap
=
new
Map
([
[
'1'
,
'大型汽车(黄底黑字)'
],
[
'2'
,
'小型汽车(蓝底白字)'
],
[
'3'
,
'大型新能源汽车(黄绿双拼色底黑字)'
],
[
'4'
,
'小型新能源汽车(渐变绿底黑字)'
],
[
'5'
,
'轻便摩托车(蓝底白字)'
],
[
'6'
,
'普通摩托车(黄底黑字)'
]
])
export
default
{
components
:
{
CertificateTypeActionSheet
,
UploadActionSheet
}
,
data
()
{
...
...
@@ -509,6 +540,12 @@ export default {
number_plate
:
''
,
// 号牌种类
license_plate
:
''
,
// 车牌号码
}
,
selectNumberPlatesShow
:
false
,
numberPlateMap
,
numberPlates
:
[...
numberPlateMap
.
entries
()].
map
(([
value
,
name
])
=>
({
name
,
value
}
)),
mustUploadImageCount
,
map
:
{
...
...
@@ -599,6 +636,10 @@ export default {
}
,
videoFit
()
{
return
this
.
video
.
fullscreen
?
'contain'
:
'cover'
}
,
numberPlateText
()
{
const
name
=
this
.
numberPlateMap
.
get
(
this
.
IllegalForm
.
number_plate
)
return
name
&&
name
.
slice
(
0
,
name
.
indexOf
(
'('
))
||
'请选择'
}
}
,
...
...
@@ -656,6 +697,10 @@ export default {
this
.
id
=
item
.
id
;
}
,
onSelectNumberPlate
({
value
}
)
{
this
.
IllegalForm
.
number_plate
=
value
}
,
/**
* 获取地理位置
* @returns {Promise<void>
}
...
...
@@ -835,11 +880,11 @@ export default {
if (this.IllegalShow) {
if (!this.IllegalForm.illegal_time) return t('请输入违法时间');
if (!this.longitude) return t('请选择位置');
if (!this.IllegalForm.number_plate) return t('请输入号牌种类');
if (!this.IllegalForm.license_plate) return t('请输入号牌号码');
// if (!this.IllegalForm.jurisdiction) return t('请输入所属辖区');
// if (!this.IllegalForm.IllegalType) return t('请输入违法类型');
if (!this.IllegalForm.content) return t('请输入违法行为描述');
// if (!this.IllegalForm.number_plate) return t('请输入号牌种类');
if (!this.photoList.length) return t(`
请
$
{
this
.
uploadTitle
}
`);
if (!this.realForm.name) return t('请输入真实姓名');
if (!this.realForm.phone) return t('请输入电话号码');
...
...
@@ -978,4 +1023,21 @@ export default {
::v-deep .uni-video-cover {
display: none;
}
::v-deep .u-action-sheet__item-wrap {
max-height: 80vh;
overflow: auto;
}
.report_one {
gap: 30rpx;
}
.report_left {
flex: 0 0 auto;
}
.report_right {
text-align: right;
}
</style>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论