Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
csssp-xcx-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
劳广强
csssp-xcx-h5
Commits
52b5a0bb
提交
52b5a0bb
authored
1月 05, 2023
作者:
杨斌基
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(上报内容): 交通故障设施上报上传照片/视频下方增加车牌号、申报时间
上级
82cb25e3
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
13 行增加
和
10 行删除
+13
-10
index.vue
pages/record-content/index.vue
+13
-10
没有找到文件。
pages/record-content/index.vue
浏览文件 @
52b5a0bb
...
@@ -308,7 +308,7 @@
...
@@ -308,7 +308,7 @@
-->
-->
<!-- 车牌号码-->
<!-- 车牌号码-->
<view
v-if=
"isDispersion"
class=
"step_box"
>
<view
v-if=
"isDispersion
|| isFault
"
class=
"step_box"
>
<view
class=
"tep_one"
>
<view
class=
"tep_one"
>
<image
mode=
"aspectFill"
class=
"tep_icon"
src=
"/static/icon/ic_rw_neirong@2x.png"
/>
<image
mode=
"aspectFill"
class=
"tep_icon"
src=
"/static/icon/ic_rw_neirong@2x.png"
/>
<view
class=
"one"
>
{{ '车牌号码' }}
</view>
<view
class=
"one"
>
{{ '车牌号码' }}
</view>
...
@@ -323,15 +323,15 @@
...
@@ -323,15 +323,15 @@
</view>
</view>
<!-- 违法时间-->
<!-- 违法时间-->
<view
v-if=
"isIncivility"
class=
"step_box"
>
<view
class=
"step_box"
>
<view
class=
"tep_one"
>
<view
class=
"tep_one"
>
<image
mode=
"aspectFill"
class=
"tep_icon"
src=
"/static/icon/ic_rw_neirong@2x.png"
/>
<image
mode=
"aspectFill"
class=
"tep_icon"
src=
"/static/icon/ic_rw_neirong@2x.png"
/>
<view
class=
"one"
>
{{
'违法时间'
}}
</view>
<view
class=
"one"
>
{{
activeMap.time
}}
</view>
</view>
</view>
<view
class=
"report_title"
>
<view
class=
"report_title"
>
<input
<input
:maxlength=
"20"
:maxlength=
"20"
:placeholder=
"
'违法时间'
"
:placeholder=
"
activeMap.time
"
:value=
"$u.timeFormat(IllegalForm.illegal_time, 'yyyy-mm-dd hh:MM:ss')"
:value=
"$u.timeFormat(IllegalForm.illegal_time, 'yyyy-mm-dd hh:MM:ss')"
readonly
readonly
class=
"title_input"
class=
"title_input"
...
@@ -512,10 +512,12 @@ export default {
...
@@ -512,10 +512,12 @@ export default {
[
typeMap
.
incivility
]:
{
[
typeMap
.
incivility
]:
{
realNameTitle
:
'举报人信息'
,
realNameTitle
:
'举报人信息'
,
content
:
'违法行为描述'
,
content
:
'违法行为描述'
,
time
:
'违法时间'
,
},
},
[
typeMap
.
fault
]:
{
[
typeMap
.
fault
]:
{
content
:
'申报行为描述'
,
content
:
'申报行为描述'
,
realNameTitle
:
'申报人信息'
,
realNameTitle
:
'申报人信息'
,
time
:
'申报时间'
,
}
}
}
}
};
};
...
@@ -732,6 +734,7 @@ export default {
...
@@ -732,6 +734,7 @@ export default {
*/
*/
async
submitReview
()
{
async
submitReview
()
{
const
t
=
(
text
=
''
)
=>
uni
.
$u
.
toast
(
text
);
const
t
=
(
text
=
''
)
=>
uni
.
$u
.
toast
(
text
);
const
{
activeMap
,
isIncivility
,
isFault
,
isDispersion
}
=
this
if
(
this
.
IllegalShow
)
{
if
(
this
.
IllegalShow
)
{
if
(
!
this
.
longitude
)
return
t
(
'请选择位置'
);
if
(
!
this
.
longitude
)
return
t
(
'请选择位置'
);
// if (!this.IllegalForm.jurisdiction) return t('请输入所属辖区');
// if (!this.IllegalForm.jurisdiction) return t('请输入所属辖区');
...
@@ -749,15 +752,15 @@ export default {
...
@@ -749,15 +752,15 @@ export default {
if
(
!
this
.
id
)
return
t
(
'请选择上报类型'
);
if
(
!
this
.
id
)
return
t
(
'请选择上报类型'
);
if
(
!
this
.
longitude
)
return
t
(
'请选择位置'
);
if
(
!
this
.
longitude
)
return
t
(
'请选择位置'
);
if
(
!
this
.
photoList
.
length
)
return
t
(
'请上传图片/视频'
);
if
(
!
this
.
photoList
.
length
)
return
t
(
'请上传图片/视频'
);
if
(
this
.
isIncivility
)
{
if
(
!
this
.
IllegalForm
.
illegal_time
)
return
t
(
`请输入
${
activeMap
.
time
}
`
);
if
(
isIncivility
)
{
// if (!this.IllegalForm.IllegalType) return t('请输入违法类型');
// if (!this.IllegalForm.IllegalType) return t('请输入违法类型');
if
(
!
this
.
IllegalForm
.
illegal_time
)
return
t
(
'请输入违法时间'
);
}
if
(
this
.
isDispersion
)
{
if
(
isFault
||
isDispersion
)
{
if
(
!
this
.
IllegalForm
.
license_plate
)
return
t
(
'请输入车牌号码'
);
if
(
!
this
.
IllegalForm
.
license_plate
)
return
t
(
'请输入车牌号码'
);
}
}
}
// if (!this.title && !this.isIncivility) return t('请输入标题');
// if (!this.title && !this.isIncivility) return t('请输入标题');
if
(
!
this
.
content
)
return
t
(
'请输入'
+
this
.
activeMap
.
content
);
if
(
!
this
.
content
)
return
t
(
'请输入'
+
activeMap
.
content
);
if
(
this
.
checked
)
{
if
(
this
.
checked
)
{
if
(
!
this
.
realForm
.
name
)
return
t
(
'请输入真实姓名'
);
if
(
!
this
.
realForm
.
name
)
return
t
(
'请输入真实姓名'
);
if
(
!
this
.
realForm
.
phone
)
return
t
(
'请输入电话号码'
);
if
(
!
this
.
realForm
.
phone
)
return
t
(
'请输入电话号码'
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论