@focus-teach/ui 1.0.56 → 1.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/index.js +77 -2
- package/app/globals.css +40 -0
- package/lib/ui.common.js +2789 -1400
- package/lib/ui.css +1 -1
- package/lib/ui.umd.js +2789 -1400
- package/lib/ui.umd.min.js +8 -9
- package/package.json +3 -2
- package/utils/index.js +38 -22
package/api/index.js
CHANGED
|
@@ -1098,13 +1098,88 @@ export function getCustomCardRecord(options) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
//获取用户搜索内容
|
|
1100
1100
|
export function getSearchList(options, success, error) {
|
|
1101
|
-
axios.get("/
|
|
1101
|
+
axios.get("/paper-exam/user/like-name", {params: options})
|
|
1102
1102
|
.then((res) => {
|
|
1103
1103
|
success && success(res)
|
|
1104
1104
|
}, (res) => {
|
|
1105
1105
|
error && error(res)
|
|
1106
1106
|
})
|
|
1107
1107
|
}
|
|
1108
|
+
//搜索学生列表
|
|
1109
|
+
export const getSearchStudentList = (params) => {
|
|
1110
|
+
return new Promise(resolve => {
|
|
1111
|
+
axios.get("/paper-exam/special-set/getStudent", {
|
|
1112
|
+
params
|
|
1113
|
+
}).then(res => {
|
|
1114
|
+
// console.log("/report/custom/cfg", res);
|
|
1115
|
+
resolve([null, res]);
|
|
1116
|
+
}, err => {
|
|
1117
|
+
console.error("/paper-exam/special-set/getStudent", err);
|
|
1118
|
+
resolve([err, null]);
|
|
1119
|
+
});
|
|
1120
|
+
});
|
|
1121
|
+
};
|
|
1122
|
+
//获取报告控制列表
|
|
1123
|
+
export const getReportControlList = (params) => {
|
|
1124
|
+
return new Promise(resolve => {
|
|
1125
|
+
axios.get("/paper-exam/report/control/list.json", {
|
|
1126
|
+
params
|
|
1127
|
+
}).then(res => {
|
|
1128
|
+
// console.log("/report/custom/cfg", res);
|
|
1129
|
+
resolve([null, res]);
|
|
1130
|
+
}, err => {
|
|
1131
|
+
console.error("/rpt/intel/custom/special/reportControlList", err);
|
|
1132
|
+
resolve([err, null]);
|
|
1133
|
+
});
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
//提交报告控制
|
|
1137
|
+
export const submitReportControl = (params) => {
|
|
1138
|
+
return new Promise(resolve => {
|
|
1139
|
+
axios.post("/paper-exam/report/control/aou", params).then(res => {
|
|
1140
|
+
// console.log("/report/custom/cfg", res);
|
|
1141
|
+
resolve([null, res]);
|
|
1142
|
+
}, err => {
|
|
1143
|
+
console.error("paper-exam/report/control/aou", err);
|
|
1144
|
+
resolve([err, null]);
|
|
1145
|
+
});
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
1148
|
+
//学生特殊设置提交
|
|
1149
|
+
export const submitSpecialSet = (params) => {
|
|
1150
|
+
return new Promise(resolve => {
|
|
1151
|
+
axios.post("/paper-exam/special-set/set", params).then(res => {
|
|
1152
|
+
resolve([null, res]);
|
|
1153
|
+
}, err => {
|
|
1154
|
+
console.error("/paper-exam/special-set/set", err);
|
|
1155
|
+
resolve([err, null]);
|
|
1156
|
+
});
|
|
1157
|
+
});
|
|
1158
|
+
}
|
|
1159
|
+
//获取学生特殊设置
|
|
1160
|
+
export const getSpecialSetList = (params) => {
|
|
1161
|
+
return new Promise(resolve => {
|
|
1162
|
+
axios.get("/paper-exam/special-set/get", {
|
|
1163
|
+
params
|
|
1164
|
+
}).then(res => {
|
|
1165
|
+
resolve([null, res]);
|
|
1166
|
+
}, err => {
|
|
1167
|
+
console.error("/paper-exam/special-set/get", err);
|
|
1168
|
+
resolve([err, null]);
|
|
1169
|
+
});
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
//从其他引入实施人员提交
|
|
1173
|
+
export const submitUserFromOther = (params) => {
|
|
1174
|
+
return new Promise(resolve => {
|
|
1175
|
+
axios.post("/paper-exam/user/reference", params).then(res => {
|
|
1176
|
+
resolve([null, res]);
|
|
1177
|
+
}, err => {
|
|
1178
|
+
console.error("/paper-exam/user/reference", err);
|
|
1179
|
+
resolve([err, null]);
|
|
1180
|
+
});
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1108
1183
|
//获取权限列表
|
|
1109
1184
|
export function getPermissionList(options) {
|
|
1110
1185
|
return new Promise((resolve) => {
|
|
@@ -1116,7 +1191,7 @@ export function getPermissionList(options) {
|
|
|
1116
1191
|
resolve([err, null])
|
|
1117
1192
|
}
|
|
1118
1193
|
);
|
|
1119
|
-
})
|
|
1194
|
+
})
|
|
1120
1195
|
}
|
|
1121
1196
|
/* 获取学科网变式题 */
|
|
1122
1197
|
export function getXkwRecVariantList(options) {
|
package/app/globals.css
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* 自定义滚动条样式 */
|
|
2
|
+
::-webkit-scrollbar {
|
|
3
|
+
width: 8px;
|
|
4
|
+
height: 8px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
::-webkit-scrollbar-track {
|
|
8
|
+
background: #f1f1f1;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::-webkit-scrollbar-thumb {
|
|
13
|
+
background: #888;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
transition: all 0.3s ease;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
::-webkit-scrollbar-thumb:hover {
|
|
19
|
+
background: #555;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* 确保在Firefox浏览器中也有类似的滚动条样式 */
|
|
23
|
+
* {
|
|
24
|
+
scrollbar-width: thin;
|
|
25
|
+
scrollbar-color: #888 #f1f1f1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* 加载状态的背景样式 */
|
|
29
|
+
.loading-container {
|
|
30
|
+
background-color: rgba(255, 255, 255, 0); /* 完全透明 */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.loading-overlay {
|
|
34
|
+
background-color: rgba(0, 0, 0, 0); /* 完全透明 */
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* 如果使用了其他加载状态的类名,也可以添加类似的样式 */
|
|
38
|
+
.loading {
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
}
|