2025.9.10 改bug
parent
6318206baa
commit
fe32d178a3
|
@ -24,9 +24,9 @@ class ApiService {
|
||||||
/// 登录及其他管理后台接口
|
/// 登录及其他管理后台接口
|
||||||
// static const String basePath = "http://192.168.20.240:8500/integrated_whb";//测试服务器
|
// static const String basePath = "http://192.168.20.240:8500/integrated_whb";//测试服务器
|
||||||
// static const String basePath = "https://qaaqwh.qhdsafety.com/integrated_whb";
|
// static const String basePath = "https://qaaqwh.qhdsafety.com/integrated_whb";
|
||||||
static const String basePath = "http://192.168.20.240:8500/integrated_whb";
|
// static const String basePath = "http://192.168.20.240:8500/integrated_whb";
|
||||||
// static const String basePath = "http://192.168.0.25:28199";//王轩服务器
|
// static const String basePath = "http://192.168.0.25:28199";//王轩服务器
|
||||||
// static const String basePath = "http://192.168.0.45:28199";//长久服务器
|
static const String basePath = "http://192.168.0.45:28199";//长久服务器
|
||||||
|
|
||||||
/// 图片文件服务
|
/// 图片文件服务
|
||||||
static const String baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
static const String baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
||||||
|
@ -1806,12 +1806,14 @@ U6Hzm1ninpWeE+awIDAQAB
|
||||||
String showCount,
|
String showCount,
|
||||||
String currentPage,
|
String currentPage,
|
||||||
String keyWord,
|
String keyWord,
|
||||||
|
String type,
|
||||||
) {
|
) {
|
||||||
return HttpManager().request(
|
return HttpManager().request(
|
||||||
basePath,
|
basePath,
|
||||||
'/app/notice/listForCp',
|
'/app/notice/listForCp',
|
||||||
method: Method.post,
|
method: Method.post,
|
||||||
data: {
|
data: {
|
||||||
|
"TYPE": type,
|
||||||
"showCount": showCount,
|
"showCount": showCount,
|
||||||
"currentPage": currentPage,
|
"currentPage": currentPage,
|
||||||
"KEYWORDS": keyWord,
|
"KEYWORDS": keyWord,
|
||||||
|
@ -2471,33 +2473,7 @@ U6Hzm1ninpWeE+awIDAQAB
|
||||||
Map data,
|
Map data,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
print("======>"+{
|
|
||||||
// ...data,
|
|
||||||
"HIDDEN_ID": "",
|
|
||||||
"SOURCE": '1',
|
|
||||||
"HIDDENDESCR": hazardDescription,
|
|
||||||
"HIDDENPART": partDescription,
|
|
||||||
"LATITUDE": latitude,
|
|
||||||
"LONGITUDE": longitude,
|
|
||||||
|
|
||||||
"RECTIFYDESCR": dangerDetail,
|
|
||||||
"RECTIFICATIONDEADLINE": dataTime,
|
|
||||||
"RECTIFICATIONTYPE": type,
|
|
||||||
"RECTIFICATIONOR": responsibleId,
|
|
||||||
|
|
||||||
"HIDDENTYPE": yinHuanTypeIds,
|
|
||||||
"HIDDENLEVEL": hazardLeve,
|
|
||||||
"RECTIFICATIONDEPT": buMenId,
|
|
||||||
"HIDDENFINDDEPT": buMenPDId.isNotEmpty ? buMenPDId : buMenId,
|
|
||||||
|
|
||||||
"CREATOR": SessionService.instance.loginUserId,
|
|
||||||
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
|
||||||
"HIDDENTYPE1": hiddenType1,
|
|
||||||
"HIDDENTYPE2": hiddenType2,
|
|
||||||
"HIDDENTYPE3": hiddenType3,
|
|
||||||
"CORPINFO_ID": SessionService.instance.corpinfoId,
|
|
||||||
"USER_ID": SessionService.instance.loginUserId,
|
|
||||||
}.toString());
|
|
||||||
return HttpManager().request(
|
return HttpManager().request(
|
||||||
basePath,
|
basePath,
|
||||||
'/app/hidden/riskListCheckAppAdd',
|
'/app/hidden/riskListCheckAppAdd',
|
||||||
|
@ -2519,7 +2495,7 @@ U6Hzm1ninpWeE+awIDAQAB
|
||||||
"HIDDENTYPE": yinHuanTypeIds,
|
"HIDDENTYPE": yinHuanTypeIds,
|
||||||
"HIDDENLEVEL": hazardLeve,
|
"HIDDENLEVEL": hazardLeve,
|
||||||
"RECTIFICATIONDEPT": buMenId,
|
"RECTIFICATIONDEPT": buMenId,
|
||||||
"HIDDENFINDDEPT": buMenPDId.isNotEmpty ? buMenPDId : buMenId,
|
"HIDDENFINDDEPT": buMenId,
|
||||||
|
|
||||||
"CREATOR": SessionService.instance.loginUserId,
|
"CREATOR": SessionService.instance.loginUserId,
|
||||||
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
||||||
|
|
|
@ -131,7 +131,7 @@ class _DangerManagerDetailPageState extends State<DangerManagerDetailPage> {
|
||||||
ItemListWidget.multiLineTitleTextField(
|
ItemListWidget.multiLineTitleTextField(
|
||||||
label: '是否缴纳罚款:',
|
label: '是否缴纳罚款:',
|
||||||
isEditable: false,
|
isEditable: false,
|
||||||
text: punishForm['已缴'] == '1' ? '已缴' : '未缴',
|
text: punishForm['HANDLED'] == '1' ? '已缴' : '未缴',
|
||||||
),
|
),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
if (punishForm['HANDLED'].toString() == '1')
|
if (punishForm['HANDLED'].toString() == '1')
|
||||||
|
|
|
@ -129,7 +129,7 @@ class _PunishmentManagerDetailPageState extends State<PunishmentManagerDetailPag
|
||||||
ItemListWidget.multiLineTitleTextField(
|
ItemListWidget.multiLineTitleTextField(
|
||||||
label: '是否缴纳罚款:',
|
label: '是否缴纳罚款:',
|
||||||
isEditable: false,
|
isEditable: false,
|
||||||
text: punishForm['已缴'] == '1' ? '已缴' : '未缴',
|
text: punishForm['HANDLED'] == '1' ? '已缴' : '未缴',
|
||||||
),
|
),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
if (punishForm['HANDLED'].toString() == '1')
|
if (punishForm['HANDLED'].toString() == '1')
|
||||||
|
|
|
@ -73,7 +73,7 @@ class _InspectRecordsListPageState extends State<InspectRecordsListPage>
|
||||||
Future<void> _getNotifEnterprise(String keyWord) async {
|
Future<void> _getNotifEnterprise(String keyWord) async {
|
||||||
// LoadingDialogHelper.show();
|
// LoadingDialogHelper.show();
|
||||||
try {
|
try {
|
||||||
final result = await ApiService.getNotifEnterprise("-1", pageNum.toString(),keyWord);
|
final result = await ApiService.getNotifEnterprise("-1", pageNum.toString(),keyWord,"0");
|
||||||
if (result['result'] == 'success') {
|
if (result['result'] == 'success') {
|
||||||
final List<dynamic> newList = result['varList'] ?? [];
|
final List<dynamic> newList = result['varList'] ?? [];
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|
|
@ -141,25 +141,31 @@ class DannerRepairState extends State<DannerRepair> {
|
||||||
ListItemFactory.createBuildSimpleSection("隐患整改"),
|
ListItemFactory.createBuildSimpleSection("隐患整改"),
|
||||||
Divider(height: 1),
|
Divider(height: 1),
|
||||||
Container(
|
Container(
|
||||||
height: 130,
|
|
||||||
padding: EdgeInsets.all(15),
|
padding: EdgeInsets.all(15),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
ListItemFactory.createBuildMultilineInput(
|
||||||
children: [
|
isRequired:true,
|
||||||
Text('* ', style: TextStyle(color: Colors.red)),
|
"隐患描述",
|
||||||
HhTextStyleUtils.mainTitle("隐患描述", fontSize: 15)],
|
"请对隐患进行详细描述(必填项)",
|
||||||
),
|
miaoShuController,
|
||||||
TextField(
|
|
||||||
controller: miaoShuController,
|
|
||||||
keyboardType: TextInputType.multiline,
|
|
||||||
maxLines: null, // 不限制行数,输入多少文字就撑开多少行
|
|
||||||
style: TextStyle(fontSize: 15),
|
|
||||||
decoration: InputDecoration(
|
|
||||||
hintText: '请对隐患进行详细描述(必填项)',
|
|
||||||
border: InputBorder.none,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
// Row(
|
||||||
|
// children: [
|
||||||
|
// Text('* ', style: TextStyle(color: Colors.red)),
|
||||||
|
// HhTextStyleUtils.mainTitle("隐患描述", fontSize: 15)],
|
||||||
|
// ),
|
||||||
|
// TextField(
|
||||||
|
// controller: miaoShuController,
|
||||||
|
// keyboardType: TextInputType.multiline,
|
||||||
|
// maxLines: null, // 不限制行数,输入多少文字就撑开多少行
|
||||||
|
// style: TextStyle(fontSize: 15),
|
||||||
|
// decoration: InputDecoration(
|
||||||
|
// hintText: '请对隐患进行详细描述(必填项)',
|
||||||
|
// border: InputBorder.none,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -486,22 +486,28 @@ class _HiddenDangerAcceptancePageState extends State<HiddenDangerAcceptancePage>
|
||||||
padding: EdgeInsets.only(top: 10,bottom: 10,left: 10,right: 10),
|
padding: EdgeInsets.only(top: 10,bottom: 10,left: 10,right: 10),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
ListItemFactory.createBuildMultilineInput(
|
||||||
children: [
|
isRequired:true,
|
||||||
Text('* ', style: TextStyle(color: Colors.red)),
|
"验收描述",
|
||||||
HhTextStyleUtils.mainTitle("验收描述", fontSize: 15)],
|
"请对隐患进行详细描述(必填项)",
|
||||||
),
|
miaoShuController,
|
||||||
TextField(
|
|
||||||
controller: miaoShuController,
|
|
||||||
keyboardType: TextInputType.multiline,
|
|
||||||
minLines: 3,
|
|
||||||
maxLines: null, // 不限制行数,输入多少文字就撑开多少行
|
|
||||||
style: TextStyle(fontSize: 15),
|
|
||||||
decoration: InputDecoration(
|
|
||||||
hintText: '请对隐患进行详细描述(必填项)',
|
|
||||||
border: InputBorder.none,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
// Row(
|
||||||
|
// children: [
|
||||||
|
// Text('* ', style: TextStyle(color: Colors.red)),
|
||||||
|
// HhTextStyleUtils.mainTitle("验收描述", fontSize: 15)],
|
||||||
|
// ),
|
||||||
|
// TextField(
|
||||||
|
// controller: miaoShuController,
|
||||||
|
// keyboardType: TextInputType.multiline,
|
||||||
|
// minLines: 3,
|
||||||
|
// maxLines: null, // 不限制行数,输入多少文字就撑开多少行
|
||||||
|
// style: TextStyle(fontSize: 15),
|
||||||
|
// decoration: InputDecoration(
|
||||||
|
// hintText: '请对隐患进行详细描述(必填项)',
|
||||||
|
// border: InputBorder.none,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -224,6 +224,8 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet
|
||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
|
|
||||||
|
|
||||||
_buildInfoItem('隐患描述', pd['HIDDENDESCR'] ?? ''),
|
_buildInfoItem('隐患描述', pd['HIDDENDESCR'] ?? ''),
|
||||||
|
|
||||||
Divider(height: 1),
|
Divider(height: 1),
|
||||||
|
|
|
@ -16,14 +16,17 @@ class NotifPage extends StatefulWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
class _NotifPageState extends State<NotifPage>
|
class _NotifPageState extends State<NotifPage>
|
||||||
with SingleTickerProviderStateMixin {
|
with TickerProviderStateMixin {
|
||||||
final TextEditingController searchController = TextEditingController();
|
final TextEditingController searchController = TextEditingController();
|
||||||
late List<dynamic> _list = [];
|
late List<dynamic> _list = [];
|
||||||
late TabController _tabController;
|
late TabController _tabController;
|
||||||
|
late TabController _tabControllerTwo;
|
||||||
int _selectedTab = 0;
|
int _selectedTab = 0;
|
||||||
|
int _selectedTabTwo = 0;
|
||||||
int pageNum = 1;
|
int pageNum = 1;
|
||||||
String keyWord="";
|
String keyWord="";
|
||||||
|
|
||||||
|
|
||||||
// 模拟数据
|
// 模拟数据
|
||||||
final List<Map<String, dynamic>> _notifications = List.generate(10, (i) {
|
final List<Map<String, dynamic>> _notifications = List.generate(10, (i) {
|
||||||
bool read = i % 3 == 0;
|
bool read = i % 3 == 0;
|
||||||
|
@ -52,6 +55,24 @@ class _NotifPageState extends State<NotifPage>
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
_tabControllerTwo = TabController(length: 2, vsync: this);
|
||||||
|
_tabControllerTwo.addListener(() {
|
||||||
|
// if (!_tabController.indexIsChanging) {
|
||||||
|
// setState(() => _selectedTab = _tabController.index);
|
||||||
|
// }
|
||||||
|
|
||||||
|
if (_tabControllerTwo.indexIsChanging) {
|
||||||
|
setState(() => _selectedTabTwo = _tabControllerTwo.index);
|
||||||
|
print('切换到标签:${_tabControllerTwo.index}');
|
||||||
|
|
||||||
|
searchController.text = "";
|
||||||
|
keyWord="";
|
||||||
|
reRefreshData();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
_getNotifList();
|
_getNotifList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,6 +117,7 @@ class _NotifPageState extends State<NotifPage>
|
||||||
"-1",
|
"-1",
|
||||||
pageNum.toString(),
|
pageNum.toString(),
|
||||||
keyWord,
|
keyWord,
|
||||||
|
_selectedTabTwo.toString(),
|
||||||
);
|
);
|
||||||
if (result['result'] == 'success') {
|
if (result['result'] == 'success') {
|
||||||
final List<dynamic> newList = result['varList'] ?? [];
|
final List<dynamic> newList = result['varList'] ?? [];
|
||||||
|
@ -129,6 +151,7 @@ class _NotifPageState extends State<NotifPage>
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
_tabController.dispose();
|
_tabController.dispose();
|
||||||
|
_tabControllerTwo.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,9 +179,23 @@ class _NotifPageState extends State<NotifPage>
|
||||||
tabs: const [Tab(text: '平台公告'), Tab(text: '企业公告')],
|
tabs: const [Tab(text: '平台公告'), Tab(text: '企业公告')],
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
|
if(_selectedTab==1)
|
||||||
|
TabBar(
|
||||||
|
controller: _tabControllerTwo,
|
||||||
|
labelStyle: TextStyle(fontSize: 14),
|
||||||
|
indicator: UnderlineTabIndicator(
|
||||||
|
borderSide: BorderSide(width: 3.0, color: Colors.blue),
|
||||||
|
insets: EdgeInsets.symmetric(horizontal: 80.0),
|
||||||
|
),
|
||||||
|
labelColor: Colors.blue,
|
||||||
|
unselectedLabelColor: Colors.grey,
|
||||||
|
tabs: const [Tab(text: '未读'), Tab(text: '已读')],
|
||||||
|
),
|
||||||
|
|
||||||
// Search bar
|
// Search bar
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(10),
|
padding: EdgeInsets.only(left: 10,right: 10,top: 10),
|
||||||
child: SearchBarWidget(
|
child: SearchBarWidget(
|
||||||
key: Key("searchBody"),
|
key: Key("searchBody"),
|
||||||
controller: searchController,
|
controller: searchController,
|
||||||
|
@ -178,6 +215,7 @@ class _NotifPageState extends State<NotifPage>
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
// List
|
// List
|
||||||
Expanded(
|
Expanded(
|
||||||
child:
|
child:
|
||||||
|
|
Loading…
Reference in New Issue