字段类型修改

This commit is contained in:
machuanyu 2024-07-26 09:34:49 +08:00
parent 944d302bd7
commit 92878d0a16
14 changed files with 224 additions and 78 deletions

View File

@ -1,23 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "LaunchImage.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}

View File

@ -1,49 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Making School Asignment App</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>making_school_asignment_app</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Making School Asignment App</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>making_school_asignment_app</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>

View File

@ -9,7 +9,9 @@
import 'package:making_school_asignment_app/common/job/common/base_page.dart';
class RequestConfig {
static const _devBaseUrl = "http://192.168.2.119:1091"; //
// static const _devBaseUrl = "http://192.168.2.119:1091"; //
static const _devBaseUrl = "https://dpc-teacher-api.23544.com"; //
// static const _proBaseUrl = "http://192.168.2.119:1091"; //
static const _proBaseUrl = "https://dpc-teacher-api.23544.com"; //
static const imgUrl = 'https://dpc-job-oss.23544.com/';

View File

@ -37,7 +37,7 @@ class Questions extends Object {
int templateId;
@JsonKey(name: 'questionNo')
int questionNo;
String questionNo;
@JsonKey(name: 'questionType')
int questionType;
@ -213,7 +213,7 @@ class Dtls extends Object {
int? templateId;
@JsonKey(name: 'questionNo')
int questionNo;
String questionNo;
@JsonKey(name: 'questionType')
int questionType;

View File

@ -19,7 +19,7 @@ class KnowledgeReportDetail extends Object {
int templateId;
@JsonKey(name: 'questionNo')
int questionNo;
String questionNo;
@JsonKey(name: 'questionType')
int questionType;

View File

@ -16,7 +16,7 @@ class OriginalManuscriptHandwritingParams extends Object {
int? templateId;
@JsonKey(name: 'questionNo')
int? questionNo;
String? questionNo;
@JsonKey(name: 'pageNum')
int? pageNum;

View File

@ -105,7 +105,7 @@ class KgtList extends Object {
String id;
@JsonKey(name: 'questionNo')
int questionNo;
String questionNo;
@JsonKey(name: 'questionType')
int questionType;
@ -135,7 +135,7 @@ class ZgtList extends Object {
String id;
@JsonKey(name: 'questionNo')
int questionNo;
String questionNo;
@JsonKey(name: 'questionType')
int questionType;

View File

@ -43,7 +43,7 @@ class KgtList extends Object {
int templateId;
@JsonKey(name: 'questionNo')
int questionNo;
String questionNo;
@JsonKey(name: 'answer')
String? answer;
@ -76,7 +76,7 @@ class ZgtList extends Object {
int templateId;
@JsonKey(name: 'questionNo')
int questionNo;
String questionNo;
@JsonKey(name: 'answer')
String? answer;

View File

@ -29,7 +29,7 @@ class AnswerHandwriting extends Dialog {
final int studentId;
final int? templateId;
final int? pageNum;
final int? questionNo;
final String? questionNo;
final Function closeCall;
AnswerHandwriting(
{super.key, required this.homeworkId, required this.studentId, required this.closeCall, this.templateId, this.pageNum, this.questionNo});
@ -68,7 +68,7 @@ Future<void> showAnswerHandwriting(
required int studentId,
int? templateId,
int? pageNum,
int? questionNo,
String? questionNo,
}) async {
backCall() {
Navigator.of(context).pop();
@ -118,7 +118,7 @@ class AnswerHandwritingMainBox extends HookWidget with EventBusMixin {
final int? templateId;
final int studentId;
final int? pageNum;
final int? questionNo;
final String? questionNo;
final Function closeCall;
@override
@ -184,7 +184,7 @@ class UseMainBoxState with RequestToolMixin {
final String homeworkId;
final int studentId;
final int? templateId;
int? questionNo;
String? questionNo;
final ValueNotifier<int?> pageNum;
final ValueNotifier<int> pageCount;
final ValueNotifier<JobHandwriting?> handwritingData;
@ -210,7 +210,7 @@ class UseMainBoxState with RequestToolMixin {
});
//
factory UseMainBoxState.use(String homeworkId, int studentId, [int? pageNum, int? questionNo, int? templateId]) {
factory UseMainBoxState.use(String homeworkId, int studentId, [int? pageNum, String? questionNo, int? templateId]) {
return UseMainBoxState._(
homeworkId: homeworkId,
templateId: templateId,

View File

@ -263,11 +263,11 @@ class _KnowledgePointState extends State<KnowledgePoint> {
int okCount = stu.queDtls!.where((w) => w.state == 3).length;
int ttlCount = stu.queDtls!.length;
stu.okRate = Utils.calcRate(okCount, ttlCount);
stu.queDtls!.sort((a, b) {
/*stu.queDtls!.sort((a, b) {
int num1 = a.questionNo;
int num2 = b.questionNo;
return num1.compareTo(num2);
});
});*/
}
showPeopleListDialog(

View File

@ -518,9 +518,9 @@ class _ReportTableState extends State<ReportTable> {
style: TextStyle(
fontSize: 10.sp, color: const Color(0xFF4CC793))),
Image.asset(
'assets/images/job_data_right_icon.png',
width: 10.r,
height: 10.r,
'assets/images/green_right_icon.png',
width: 12.r,
height: 12.r,
)
],
),

View File

@ -9,7 +9,7 @@ class StudentKgTable extends StatefulWidget {
final List bodyList;
final int? fixedRows;
final int? fixedCols;
final Function(int, int)? questionNumCall;
final Function(String, int)? questionNumCall;
const StudentKgTable({
Key? key,

View File

@ -11,7 +11,7 @@ class StudentZgTable extends StatefulWidget {
final List bodyList;
final int? fixedRows;
final int? fixedCols;
final Function(int, int)? questionNumCall;
final Function(String, int)? questionNumCall;
const StudentZgTable({
Key? key,

View File

@ -1,6 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<!DOCTYPE html><html><head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
@ -27,12 +25,154 @@
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<link rel="icon" type="image/png" href="favicon.png">
<title>making_school_asignment_app</title>
<link rel="manifest" href="manifest.json">
<style id="splash-screen-style">
html {
height: 100%
}
body {
margin: 0;
min-height: 100%;
background-color: #ffffff;
background-image: url("splash/img/light-background.png");
background-size: 100% 100%;
}
.center {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.contain {
display:block;
width:100%; height:100%;
object-fit: contain;
}
.stretch {
display:block;
width:100%; height:100%;
}
.cover {
display:block;
width:100%; height:100%;
object-fit: cover;
}
.bottom {
position: absolute;
bottom: 0;
left: 50%;
-ms-transform: translate(-50%, 0);
transform: translate(-50%, 0);
}
.bottomLeft {
position: absolute;
bottom: 0;
left: 0;
}
.bottomRight {
position: absolute;
bottom: 0;
right: 0;
}
</style>
<script id="splash-screen-script">
function removeSplashFromWeb() {
document.getElementById("splash")?.remove();
document.getElementById("splash-branding")?.remove();
document.body.style.background = "transparent";
}
</script>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<link rel="stylesheet" type="text/css" href="splash/style.css">
<script src="splash/splash.js"></script>
</head>
<body>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>
<script src="flutter_bootstrap.js" async=""></script>
</body></html>