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 = "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.45:28199";//长久服务器
|
||||
static const String basePath = "http://192.168.0.45:28199";//长久服务器
|
||||
|
||||
/// 图片文件服务
|
||||
static const String baseImgPath = "https://file.zcloudchina.com/YTHFile";
|
||||
|
@ -1806,12 +1806,14 @@ U6Hzm1ninpWeE+awIDAQAB
|
|||
String showCount,
|
||||
String currentPage,
|
||||
String keyWord,
|
||||
String type,
|
||||
) {
|
||||
return HttpManager().request(
|
||||
basePath,
|
||||
'/app/notice/listForCp',
|
||||
method: Method.post,
|
||||
data: {
|
||||
"TYPE": type,
|
||||
"showCount": showCount,
|
||||
"currentPage": currentPage,
|
||||
"KEYWORDS": keyWord,
|
||||
|
@ -2471,33 +2473,7 @@ U6Hzm1ninpWeE+awIDAQAB
|
|||
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(
|
||||
basePath,
|
||||
'/app/hidden/riskListCheckAppAdd',
|
||||
|
@ -2519,7 +2495,7 @@ U6Hzm1ninpWeE+awIDAQAB
|
|||
"HIDDENTYPE": yinHuanTypeIds,
|
||||
"HIDDENLEVEL": hazardLeve,
|
||||
"RECTIFICATIONDEPT": buMenId,
|
||||
"HIDDENFINDDEPT": buMenPDId.isNotEmpty ? buMenPDId : buMenId,
|
||||
"HIDDENFINDDEPT": buMenId,
|
||||
|
||||
"CREATOR": SessionService.instance.loginUserId,
|
||||
"HIDDENTYPE_NAME": yinHuanTypeNames,
|
||||
|
|
|
@ -131,7 +131,7 @@ class _DangerManagerDetailPageState extends State<DangerManagerDetailPage> {
|
|||
ItemListWidget.multiLineTitleTextField(
|
||||
label: '是否缴纳罚款:',
|
||||
isEditable: false,
|
||||
text: punishForm['已缴'] == '1' ? '已缴' : '未缴',
|
||||
text: punishForm['HANDLED'] == '1' ? '已缴' : '未缴',
|
||||
),
|
||||
const Divider(),
|
||||
if (punishForm['HANDLED'].toString() == '1')
|
||||
|
|
|
@ -129,7 +129,7 @@ class _PunishmentManagerDetailPageState extends State<PunishmentManagerDetailPag
|
|||
ItemListWidget.multiLineTitleTextField(
|
||||
label: '是否缴纳罚款:',
|
||||
isEditable: false,
|
||||
text: punishForm['已缴'] == '1' ? '已缴' : '未缴',
|
||||
text: punishForm['HANDLED'] == '1' ? '已缴' : '未缴',
|
||||
),
|
||||
const Divider(),
|
||||
if (punishForm['HANDLED'].toString() == '1')
|
||||
|
|
|
@ -73,7 +73,7 @@ class _InspectRecordsListPageState extends State<InspectRecordsListPage>
|
|||
Future<void> _getNotifEnterprise(String keyWord) async {
|
||||
// LoadingDialogHelper.show();
|
||||
try {
|
||||
final result = await ApiService.getNotifEnterprise("-1", pageNum.toString(),keyWord);
|
||||
final result = await ApiService.getNotifEnterprise("-1", pageNum.toString(),keyWord,"0");
|
||||
if (result['result'] == 'success') {
|
||||
final List<dynamic> newList = result['varList'] ?? [];
|
||||
setState(() {
|
||||
|
|
|
@ -141,25 +141,31 @@ class DannerRepairState extends State<DannerRepair> {
|
|||
ListItemFactory.createBuildSimpleSection("隐患整改"),
|
||||
Divider(height: 1),
|
||||
Container(
|
||||
height: 130,
|
||||
|
||||
padding: EdgeInsets.all(15),
|
||||
child: Column(
|
||||
children: [
|
||||
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,
|
||||
),
|
||||
ListItemFactory.createBuildMultilineInput(
|
||||
isRequired:true,
|
||||
"隐患描述",
|
||||
"请对隐患进行详细描述(必填项)",
|
||||
miaoShuController,
|
||||
),
|
||||
// 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),
|
||||
child: Column(
|
||||
children: [
|
||||
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,
|
||||
),
|
||||
ListItemFactory.createBuildMultilineInput(
|
||||
isRequired:true,
|
||||
"验收描述",
|
||||
"请对隐患进行详细描述(必填项)",
|
||||
miaoShuController,
|
||||
),
|
||||
// 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(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
||||
|
||||
_buildInfoItem('隐患描述', pd['HIDDENDESCR'] ?? ''),
|
||||
|
||||
Divider(height: 1),
|
||||
|
|
|
@ -16,14 +16,17 @@ class NotifPage extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _NotifPageState extends State<NotifPage>
|
||||
with SingleTickerProviderStateMixin {
|
||||
with TickerProviderStateMixin {
|
||||
final TextEditingController searchController = TextEditingController();
|
||||
late List<dynamic> _list = [];
|
||||
late TabController _tabController;
|
||||
late TabController _tabControllerTwo;
|
||||
int _selectedTab = 0;
|
||||
int _selectedTabTwo = 0;
|
||||
int pageNum = 1;
|
||||
String keyWord="";
|
||||
|
||||
|
||||
// 模拟数据
|
||||
final List<Map<String, dynamic>> _notifications = List.generate(10, (i) {
|
||||
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();
|
||||
}
|
||||
|
||||
|
@ -96,6 +117,7 @@ class _NotifPageState extends State<NotifPage>
|
|||
"-1",
|
||||
pageNum.toString(),
|
||||
keyWord,
|
||||
_selectedTabTwo.toString(),
|
||||
);
|
||||
if (result['result'] == 'success') {
|
||||
final List<dynamic> newList = result['varList'] ?? [];
|
||||
|
@ -129,6 +151,7 @@ class _NotifPageState extends State<NotifPage>
|
|||
@override
|
||||
void dispose() {
|
||||
_tabController.dispose();
|
||||
_tabControllerTwo.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
|
@ -156,9 +179,23 @@ class _NotifPageState extends State<NotifPage>
|
|||
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
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(10),
|
||||
padding: EdgeInsets.only(left: 10,right: 10,top: 10),
|
||||
child: SearchBarWidget(
|
||||
key: Key("searchBody"),
|
||||
controller: searchController,
|
||||
|
@ -178,6 +215,7 @@ class _NotifPageState extends State<NotifPage>
|
|||
),
|
||||
),
|
||||
|
||||
|
||||
// List
|
||||
Expanded(
|
||||
child:
|
||||
|
|
Loading…
Reference in New Issue