Browse Source

添加条件

lex 1 year ago
parent
commit
ecf035792c

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1705916335091}
+{"version":1706063306448}

+ 1 - 0
src/views/attend-class/index.tsx

@@ -1698,6 +1698,7 @@ export default defineComponent({
           <TrainSettings
             detailId={data.detailId}
             subjectId={data.subjectId}
+            courseScheduleId={data.classId}
             classGroupId={data.classGroupId}
             onClose={() => (data.modelTrainStatus = false)}
             onConfirm={() => {

+ 7 - 1
src/views/attend-class/model/train-settings/index.tsx

@@ -38,6 +38,11 @@ export default defineComponent({
     classGroupId: {
       type: String,
       default: ''
+    },
+    /** 上课编号 */
+    courseScheduleId: {
+      type: String,
+      default: ''
     }
   },
   emits: ['close', 'confirm'],
@@ -157,7 +162,8 @@ export default defineComponent({
         const params = {
           lessonTrainingDetails: details,
           expireDate: trainForms.expireDate + ' 23:59:59',
-          classGroupId: props.classGroupId
+          classGroupId: props.classGroupId,
+          courseScheduleId: props.courseScheduleId || null
         };
         await lessonTrainingAdd(params);
         message.success('布置成功');

+ 5 - 4
src/views/attend-class/model/train-type/index.tsx

@@ -36,7 +36,6 @@ type ItemType = {
   allTimes?: number;
   trainingTimes?: number;
   recordId?: string | number; // 评测记录编号
-  musicPracticeRecordId?: string | number;
 };
 
 export default defineComponent({
@@ -101,18 +100,20 @@ export default defineComponent({
       const tockn = userStore.getToken;
       reportSrc.value =
         vaildUrl() +
-        `/instrument/#/evaluat-report?id=${row.id}&Authorization=${tockn}`;
+        `/instrument/#/evaluat-report?id=${
+          row.id || '1693935536619667457'
+        }&Authorization=${tockn}`;
       detailVisiable.value = true;
     };
 
     const onBackLook = async () => {
       try {
-        if (!props.item?.musicPracticeRecordId) {
+        if (!props.item?.recordId) {
           message.error('暂无数据');
           return;
         }
         const { data } = await musicPracticeRecordDetail({
-          id: props.item.musicPracticeRecordId
+          id: props.item.recordId
         });
         if (data.videoFilePath || data.recordFilePath) {
           let lookTitle = '';

+ 2 - 1
vite.config.ts

@@ -24,7 +24,8 @@ function resolve(dir: string) {
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
 // const proxyUrl = 'https://dev.kt.colexiu.com/';
-const proxyUrl = 'https://test.lexiaoya.cn';
+// const proxyUrl = 'https://test.lexiaoya.cn';
+const proxyUrl = 'http://192.168.3.14:7989';
 const now = new Date().getTime();
 export default defineConfig(() => {
   return {