@focus-teach/ui 1.0.54 → 1.0.56

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 CHANGED
@@ -946,7 +946,7 @@ export function getItemDiffList(options) {
946
946
  }
947
947
 
948
948
  //获取推荐变式题
949
- export function getJYWVariantList(options,) {
949
+ export function getJYWVariantList(options) {
950
950
  return new Promise((resolve) => {
951
951
  axios.post("/ybk/variant/list-similar", options).then(
952
952
  (res) => {
@@ -1117,4 +1117,51 @@ export function getPermissionList(options) {
1117
1117
  }
1118
1118
  );
1119
1119
  });
1120
+ }
1121
+ /* 获取学科网变式题 */
1122
+ export function getXkwRecVariantList(options) {
1123
+ const apiAxios = axios.create({
1124
+ baseURL: '/jiaoxue',
1125
+ timeout: 30000,
1126
+ crossDomain: true,
1127
+ withCredentials: true
1128
+ });
1129
+ return new Promise((resolve) => {
1130
+ apiAxios.get("/xkw/subject_text", { params: options }).then(
1131
+ (res) => {
1132
+ resolve([null, res?.data])
1133
+ },
1134
+ (err) => {
1135
+ resolve([err, null])
1136
+ }
1137
+ );
1138
+ })
1139
+ }
1140
+ //上传url资源
1141
+ export function uploadUrlApi(options) {
1142
+ return new Promise((resolve) => {
1143
+ axios.post("/item/common/upload/url", options).then(
1144
+ (res) => {
1145
+ resolve([null,res]);
1146
+ },
1147
+ (err) => {
1148
+ resolve([err,null]);
1149
+ }
1150
+ );
1151
+ });
1152
+ }
1153
+
1154
+
1155
+ //根据试卷id,题目id获取变式题个数
1156
+ export function getVariantCountApi(options){
1157
+ return new Promise((resolve) => {
1158
+ axios.get("/ybk/variant/count", { params: options }).then(
1159
+ (res) => {
1160
+ resolve([null, res])
1161
+ },
1162
+ (err) => {
1163
+ resolve([err, null])
1164
+ }
1165
+ );
1166
+ })
1120
1167
  }
Binary file