Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
csssp-xcx-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
劳广强
csssp-xcx-h5
Commits
a91f8ad0
提交
a91f8ad0
authored
1月 03, 2023
作者:
杨斌基
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(选择发布类型): 新增告知书和直接进入表单
上级
f6ceab9b
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
44 行增加
和
1 行删除
+44
-1
index.vue
pages/record/index.vue
+44
-1
没有找到文件。
pages/record/index.vue
浏览文件 @
a91f8ad0
...
@@ -9,13 +9,19 @@
...
@@ -9,13 +9,19 @@
:key=
"item.id"
:key=
"item.id"
class=
"item"
class=
"item"
:style=
"
{ marginTop: index === 0 ? 0 : '60rpx', background: item.background }"
:style=
"
{ marginTop: index === 0 ? 0 : '60rpx', background: item.background }"
@click="onListClick(item, index)"
@click="
_
onListClick(item, index)"
>
>
<image
class=
"item-icon"
:src=
"item.img"
/>
<image
class=
"item-icon"
:src=
"item.img"
/>
<view
class=
"item-text"
>
{{
item
.
name
}}
</view>
<view
class=
"item-text"
>
{{
item
.
name
}}
</view>
</view>
</view>
</view>
</view>
<u-modal
:show=
"modalShow"
@
confirm=
"onModalConfirm"
>
<view
class=
"modal"
:style=
"`max-height: $
{modalHeight}rpx; overflow-y: scroll; white-space: pre-wrap`">
<u-parse
:content=
"activeItem.desc"
/>
</view>
</u-modal>
<!-- 取消举报说明
<!-- 取消举报说明
<view
class=
"footer"
>
<view
class=
"footer"
>
<u-button
class=
"report-btn"
@
click=
"onReportClick"
>
举报说明
</u-button>
<u-button
class=
"report-btn"
@
click=
"onReportClick"
>
举报说明
</u-button>
...
@@ -48,6 +54,8 @@ const _list = [
...
@@ -48,6 +54,8 @@ const _list = [
},
},
];
];
const
faultName
=
'交通设施故障上报'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -58,6 +66,10 @@ export default {
...
@@ -58,6 +66,10 @@ export default {
isFirstRecord
:
0
,
isFirstRecord
:
0
,
isFirstRecordId
:
0
,
isFirstRecordId
:
0
,
faultTask
:
{
id
:
0
,
parent
:
{
id
:
0
}
},
activeItem
:
{},
modalShow
:
false
,
};
};
},
},
...
@@ -80,6 +92,9 @@ export default {
...
@@ -80,6 +92,9 @@ export default {
async
fetchPhotoTaskTypeData
()
{
async
fetchPhotoTaskTypeData
()
{
const
{
list
}
=
await
uni
.
$u
.
http
.
get
(
'/api/app/phototasktype/list'
,
{
params
:
{
parent_id
:
0
}
});
const
{
list
}
=
await
uni
.
$u
.
http
.
get
(
'/api/app/phototasktype/list'
,
{
params
:
{
parent_id
:
0
}
});
this
.
list
=
list
.
map
((
value
,
index
)
=>
({
...
value
,
background
:
_list
[
index
].
background
}));
this
.
list
=
list
.
map
((
value
,
index
)
=>
({
...
value
,
background
:
_list
[
index
].
background
}));
const
fault
=
this
.
list
.
find
(
v
=>
v
.
name
===
faultName
)
this
.
fetchFalutTask
(
fault
.
id
)
},
},
async
fetchPhotoTaskTypeDetail
()
{
async
fetchPhotoTaskTypeDetail
()
{
...
@@ -87,6 +102,11 @@ export default {
...
@@ -87,6 +102,11 @@ export default {
console
.
log
(
detail
);
console
.
log
(
detail
);
},
},
async
fetchFalutTask
(
id
)
{
const
{
list
:
[
task
]
}
=
await
uni
.
$u
.
http
.
get
(
'/api/app/phototasktype/list'
,
{
params
:
{
parent_id
:
id
}
})
this
.
faultTask
=
task
},
async
onReportClick
()
{
async
onReportClick
()
{
console
.
log
(
'onReportClick'
);
console
.
log
(
'onReportClick'
);
this
.
showReport
=
true
;
this
.
showReport
=
true
;
...
@@ -101,6 +121,24 @@ export default {
...
@@ -101,6 +121,24 @@ export default {
this
.
showReport
=
false
;
this
.
showReport
=
false
;
},
},
_onListClick
(
item
,
index
)
{
const
{
name
}
=
item
// 交通设施故障上报直接进入填写表单
if
(
name
===
faultName
)
{
const
{
id
,
parent
:
{
id
:
parentId
}
}
=
this
.
faultTask
uni
.
$u
.
route
({
url
:
'pages/record-content/index'
,
params
:
{
parent_id
:
parentId
,
detail_id
:
id
,
},
});
return
}
this
.
activeItem
=
item
this
.
modalShow
=
true
},
onListClick
(
item
,
index
)
{
onListClick
(
item
,
index
)
{
if
(
!
this
.
isFirstRecord
)
{
if
(
!
this
.
isFirstRecord
)
{
this
.
isFirstRecordId
=
item
.
id
;
this
.
isFirstRecordId
=
item
.
id
;
...
@@ -115,6 +153,11 @@ export default {
...
@@ -115,6 +153,11 @@ export default {
if
(
!
isFirstRecord
)
uni
.
setStorageSync
(
'isFirstRecord'
,
1
);
if
(
!
isFirstRecord
)
uni
.
setStorageSync
(
'isFirstRecord'
,
1
);
return
isFirstRecord
;
return
isFirstRecord
;
},
},
onModalConfirm
()
{
this
.
modalShow
=
false
this
.
onListClick
(
this
.
activeItem
)
}
},
},
};
};
</
script
>
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论