@focus-teach/ui 1.2.3 → 1.2.5

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.
@@ -0,0 +1,20 @@
1
+ import * as pkg from '../packages/zw-ai-report/index.js';
2
+ import { FtDragDialog } from '../packages/directives/drag-dialog.js';
3
+ import Alert from '../packages/assets/js/alert.js';
4
+ const components = Object.keys(pkg)
5
+ .map((key) => pkg[key])
6
+ .filter((item) => item && item.name);
7
+
8
+ const install = function (Vue) {
9
+ Vue.use(Alert);
10
+ if (install.installed) return;
11
+ components.forEach((component) => Vue.component(component.name, component));
12
+ Vue.directive('FtDragDialog', FtDragDialog);
13
+ };
14
+ if (typeof window !== 'undefined' && window.Vue) {
15
+ install(window.Vue);
16
+ }
17
+ export default {
18
+ install,
19
+ ...pkg,
20
+ };
package/api/index.js CHANGED
@@ -1894,7 +1894,7 @@ export function getShenBiImgInfoApi(options) {
1894
1894
  }
1895
1895
  );
1896
1896
  })
1897
- }
1897
+ }
1898
1898
 
1899
1899
  export function getTemplate(options) {
1900
1900
  return new Promise((resolve) => {
@@ -1909,12 +1909,12 @@ export function getTemplate(options) {
1909
1909
  })
1910
1910
  }
1911
1911
  export function checkStudentImg(options, success, error) {
1912
- return new Promise((resolve) => {
1913
- axios.get("/scanner/task/check-student-img", { params:options}).then(res => {
1914
- resolve([null, res])
1915
- }).catch(err => {
1916
- resolve([err, null])
1917
- })
1912
+ return new Promise((resolve) => {
1913
+ axios.get("/scanner/task/check-student-img", { params: options }).then(res => {
1914
+ resolve([null, res])
1915
+ }).catch(err => {
1916
+ resolve([err, null])
1917
+ })
1918
1918
  });
1919
1919
  }
1920
1920
  export function excImg(options, success, error) {
@@ -1994,7 +1994,7 @@ export function reMarkQuestionApi(options) {
1994
1994
  //修改成绩
1995
1995
  export function changeStudentScoreApi(options) {
1996
1996
  return new Promise((resolve) => {
1997
- axios.post("/ai/scanner/update-question-score", options).then(
1997
+ axios.post("/ai/scanner/update-errExcAns", options).then(
1998
1998
  (res) => {
1999
1999
  resolve([null, res])
2000
2000
  },
@@ -2057,4 +2057,108 @@ export function setBatchReviewStatusApi(options) {
2057
2057
  }
2058
2058
  );
2059
2059
  });
2060
- }
2060
+ }
2061
+ //ocr识别图片get
2062
+ export function ocrImageApi(options) {
2063
+ return new Promise((resolve) => {
2064
+ axios.get("/ai/common/ocr-answer", { params: options }).then(
2065
+ (res) => {
2066
+ resolve([null, res])
2067
+ },
2068
+ (err) => {
2069
+ resolve([err, null])
2070
+ }
2071
+ );
2072
+ })
2073
+ }
2074
+ //ocr识别图片base64上传
2075
+ export function ocrImageBase64Api(options) {
2076
+ return new Promise((resolve) => {
2077
+ axios.post("/ai/common/base64-ocr-answer", options).then(
2078
+ (res) => {
2079
+ resolve([null, res])
2080
+ },
2081
+ (err) => {
2082
+ resolve([err, null])
2083
+ }
2084
+ );
2085
+ })
2086
+ }
2087
+ //主观题答案修改
2088
+ export function updateSubjectiveAnswerApi(options) {
2089
+ return new Promise((resolve) => {
2090
+ axios.post("/ybk/item/subjective-question-answers", options).then(
2091
+ (res) => {
2092
+ resolve([null, res]);
2093
+ },
2094
+ (err) => {
2095
+ resolve([err, null]);
2096
+ }
2097
+ );
2098
+ });
2099
+ }
2100
+ //按题目重新智批
2101
+ export function reJudgeByItemApi(options) {
2102
+ return new Promise((resolve) => {
2103
+ axios.post("/ai/scanner/item/re-judge-add", options).then(
2104
+ (res) => {
2105
+ resolve([null, res]);
2106
+ },
2107
+ (err) => {
2108
+ resolve([err, null]);
2109
+ }
2110
+ );
2111
+ });
2112
+ }
2113
+ //是否可以修改答案
2114
+ export function canModifyAnswerApi(options) {
2115
+ return new Promise((resolve) => {
2116
+ axios.get("/scanner/task/score/rule/check-question-save", { params: options }).then(
2117
+ (res) => {
2118
+ resolve([null, res])
2119
+ },
2120
+ (err) => {
2121
+ resolve([err, null])
2122
+ }
2123
+ );
2124
+ })
2125
+ }
2126
+ //获取填空题的坐标批注
2127
+ export function getBlainkAnawerPoint (options) {
2128
+ return new Promise((resolve) => {
2129
+ axios.get("/ai/scanner/get-ocr-answer", { params: options }).then(
2130
+ (res) => {
2131
+ resolve([null, res])
2132
+ },
2133
+ (err) => {
2134
+ resolve([err, null])
2135
+ }
2136
+ );
2137
+ })
2138
+ }
2139
+ //检测智批进度
2140
+ export function checkSmartMarkingProgressApi(options) {
2141
+ return new Promise((resolve) => {
2142
+ axios.get("/scanner/task/check/composition", { params: options }).then(
2143
+ (res) => {
2144
+ resolve([null, res])
2145
+ },
2146
+ (err) => {
2147
+ resolve([err, null])
2148
+ }
2149
+ );
2150
+ })
2151
+ }
2152
+ //检测当前题目的智批进度
2153
+ export function checkItemSmartMarkingProgressApi(options) {
2154
+ return new Promise((resolve) => {
2155
+ axios.get("/ai/scanner/get-item-status", { params: options }).then(
2156
+ (res) => {
2157
+ resolve([null, res])
2158
+ },
2159
+ (err) => {
2160
+ resolve([err, null])
2161
+ }
2162
+ );
2163
+ })
2164
+ }