SanHQin 2 tháng trước cách đây
mục cha
commit
886ed8cbda

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.de139e8d543f06da50556eaa818ba4dd.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.bb486323f0fa002ba2e7.js></script><script type=text/javascript src=./static/js/app.7cdb048c94ddea7dd885.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.8ed50f4ba905b78c1a5e735d727cd98c.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.bb486323f0fa002ba2e7.js></script><script type=text/javascript src=./static/js/app.de27e6ca2f108b2f156c.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.8ed50f4ba905b78c1a5e735d727cd98c.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/app.8ed50f4ba905b78c1a5e735d727cd98c.css.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.de27e6ca2f108b2f156c.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.de27e6ca2f108b2f156c.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/manifest.161e82026ac2ae03ab6f.js.map


+ 245 - 0
src/components/pages/test/check/checkFileListDialog.vue

@@ -0,0 +1,245 @@
+<template>
+  <div>
+    <el-dialog
+      :center="true"
+      :visible.sync="show"
+      :close-on-click-modal="false"
+      :modal="true"
+      width="auto"
+      top="2vh"
+      height="auto"
+      :append-to-body="true"
+      class="dialog"
+    >
+      <div class="box">
+        <div class="b_head">
+          <span>文件列表</span>
+          <svg
+            @click="close()"
+            t="1748587270371"
+            class="icon"
+            viewBox="0 0 1024 1024"
+            version="1.1"
+            xmlns="http://www.w3.org/2000/svg"
+            p-id="5023"
+            width="200"
+            height="200"
+          >
+            <path
+              d="M0 0h1024v1024H0z"
+              fill="#FF0033"
+              fill-opacity="0"
+              p-id="5024"
+            ></path>
+            <path
+              d="M240.448 168l2.346667 2.154667 289.92 289.941333 279.253333-279.253333a42.666667 42.666667 0 0 1 62.506667 58.026666l-2.133334 2.346667-279.296 279.210667 279.274667 279.253333a42.666667 42.666667 0 0 1-58.005333 62.528l-2.346667-2.176-279.253333-279.253333-289.92 289.962666a42.666667 42.666667 0 0 1-62.506667-58.005333l2.154667-2.346667 289.941333-289.962666-289.92-289.92a42.666667 42.666667 0 0 1 57.984-62.506667z"
+              fill="#111111"
+              p-id="5025"
+            ></path>
+          </svg>
+        </div>
+        <div class="b_main" v-loading="loading">
+          <div
+            class="file"
+            v-for="(file, index2) in fileList"
+            :key="index + '-' + index2"
+            @click.stop="checkFile(file)"
+          >
+            <img
+              class="download"
+              src="../../../../assets/icon/fileIcon/download.png"
+              @click.stop="downloadFile(file)"
+              :style="{ right: '10px' }"
+            />
+            <img class="img" :src="wordIcon" alt="" v-if="file.type == 1" />
+            <img class="img" :src="videoIcon" alt="" v-if="file.type == 2" />
+            <img class="img" :src="file.url" alt="" v-if="file.type == 3" />
+            <img class="img" :src="wordIcon" alt="" v-if="file.type == 4" />
+            <img class="img" :src="fileIcon" alt="" v-if="file.type == 5" />
+            <div class="name">
+              <el-tooltip :content="file.name" placement="top" effect="dark">
+                <span>{{ file.name }}</span>
+              </el-tooltip>
+            </div>
+          </div>
+        </div>
+        <div class="b_bottom">
+          <el-button size="small" type="primary" @click="close()"
+            >确定</el-button
+          >
+        </div>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      fileList: [],
+      show: false,
+      loading: false
+    };
+  },
+  methods: {
+    open(list) {
+      this.fileList = JSON.parse(JSON.stringify(list));
+      this.show = true;
+    },
+    close() {
+      this.show = false;
+    },
+    checkFile(file) {
+      this.$emit("checkFile", file);
+    },
+    downloadFile(file) {
+      this.$emit("downloadFile", file);
+    }
+  }
+};
+</script>
+
+<style scoped>
+.dialog >>> .el-dialog {
+  width: 80vw !important;
+  border-radius: 8px;
+  padding: 0;
+  background-color: #fff;
+  overflow: hidden;
+}
+
+.dialog >>> .el-dialog__body {
+  width: 80vw !important;
+  height: auto;
+  flex-shrink: 0;
+  padding: 0;
+  box-sizing: border-box;
+  overflow: auto;
+}
+
+.dialog >>> .el-dialog__header {
+  display: none !important;
+}
+
+.box {
+  width: 100%;
+  height: 80vh;
+  background: #fafafa;
+  border-radius: 15px;
+  box-shadow: 0px 6px 30px 5px rgba(0, 0, 0, 0.05),
+    0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 8px 10px -5px rgba(0, 0, 0, 0.08);
+}
+
+.b_head {
+  width: 100%;
+  height: 50px;
+  border-radius: 15px 15px 0 0;
+  background: #fff;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  box-sizing: border-box;
+  padding: 0 20px;
+}
+
+.b_head > span {
+  font-size: 18px;
+  font-weight: bold;
+  color: #000;
+}
+
+.b_head > img {
+  width: 20px;
+  height: 20px;
+  cursor: pointer;
+}
+
+.b_head > svg {
+  width: 20px;
+  height: 20px;
+  cursor: pointer;
+}
+
+.b_main {
+  width: 100%;
+  height: calc(100% - 70px - 50px);
+  background: #fafafa;
+  padding: 20px 20px 0 20px;
+  box-sizing: border-box;
+  /* display: flex;
+  flex-wrap: wrap;
+  align-items: flex-start; */
+  overflow: auto;
+  /* flex-direction: column; */
+  /* align-items: center; */
+  /* justify-content: center; */
+}
+
+.b_bottom {
+  width: 100%;
+  height: 70px;
+  display: flex;
+  align-items: center;
+  justify-content: flex-end;
+  box-sizing: border-box;
+  padding: 0 20px;
+}
+
+.file {
+  min-width: 200px;
+  width: 200px;
+  height: 140px;
+  margin: 10px 10px 10px 0px;
+  border-radius: 15px;
+  box-shadow: rgb(223, 218, 218) 0px 0px 6px 1px;
+  overflow: hidden;
+  margin-right: 15px;
+  position: relative;
+  display: flex;
+  flex-direction: column;
+  float: left;
+}
+
+.file > .img {
+  width: 100%;
+  height: calc(100% - 35px);
+  object-fit: cover;
+  cursor: pointer;
+}
+
+.file > .del {
+  position: absolute;
+  width: 25px;
+  top: 10px;
+  right: 10px;
+  cursor: pointer;
+}
+
+.file > .download {
+  position: absolute;
+  width: 25px;
+  top: 10px;
+  right: 35px;
+  cursor: pointer;
+  opacity: 0.8;
+}
+
+.file > .name {
+  height: 35px;
+  width: 100%;
+  background: #f9f9f9;
+  display: flex;
+  align-items: center;
+  padding: 0 10px;
+  box-sizing: border-box;
+}
+
+.file > .name > span {
+  display: block;
+  text-overflow: ellipsis;
+  max-width: 100%;
+  white-space: nowrap;
+  overflow: hidden;
+}
+</style>

+ 36 - 6
src/components/pages/test/check/index.vue

@@ -1430,6 +1430,7 @@
                     <div
                       class="file"
                       v-for="(file, index2) in scope.row.array[index].json.file"
+                      v-if="index2<3"
                       :key="index + '-' + index2"
                       @click.stop="checkFile(file)"
                     >
@@ -1479,6 +1480,11 @@
                         </el-tooltip>
                       </div>
                     </div>
+                    <div class="file_more" v-if="scope.row.array[index].json.file.length>3">
+                      <el-tooltip class="item" effect="light" content="查看更多" placement="top-start">
+                        <svg t="1753409620948" @click="checkFileListOpen(scope.row.array[index].json.file)" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4403" width="200" height="200"><path d="M134.26141867 386.08713955c-69.25213392 0-125.91286045 56.66072652-125.91286045 125.91286045s56.66072652 125.91286045 125.91286045 125.91286045S260.17427911 581.25213392 260.17427911 512s-56.66072652-125.91286045-125.91286044-125.91286045z m755.47716266 0c-69.25213392 0-125.91286045 56.66072652-125.91286044 125.91286045s56.66072652 125.91286045 125.91286044 125.91286045S1015.65144178 581.25213392 1015.65144178 512s-56.66072652-125.91286045-125.91286045-125.91286045z m-377.73858133 0c-69.25213392 0-125.91286045 56.66072652-125.91286045 125.91286045S442.74786608 637.91286045 512 637.91286045 637.91286045 581.25213392 637.91286045 512 581.25213392 386.08713955 512 386.08713955z" fill="#515151" p-id="4404"></path></svg>
+                      </el-tooltip>
+                    </div>
                   </div>
                   <div
                     v-if="scope.row.array[index].type == 6"
@@ -1987,6 +1993,7 @@
       ref="docxTemplateDialogRef"
       @changeCover="changeCover"
     />
+    <checkFileListDialog ref="checkFileListDialogRef" @checkFile="checkFile" @downloadFile="downloadFile"/>
   </div>
 </template>
 
@@ -2015,6 +2022,9 @@ import { v4 as uuidv4 } from "uuid";
 // word模板
 import docxTemplateDialog from "./docxTemplateDialog";
 
+//查看文件
+import checkFileListDialog from "./checkFileListDialog.vue";
+
 const getFile = (url) => {
   return new Promise((resolve, reject) => {
     var credentials = {
@@ -2071,6 +2081,7 @@ export default {
     wordcloud,
     aiBoxRight,
     docxTemplateDialog,
+    checkFileListDialog
   },
   data() {
     return {
@@ -2443,7 +2454,7 @@ export default {
         // const result = userWork.filter(item => this.cueWord.fieldList.includes(item.tit));
 
         let messages = `
-NOTICE 
+NOTICE
 Role: 你是一个高级数据处理师。
 - 深入理解各种数据处理标准,确保处理流程的准确性。
 - 熟练掌握数据结构知识,能快速解析“字段名称:具体内容”结构的文本。
@@ -2451,11 +2462,11 @@ Role: 你是一个高级数据处理师。
 - 有丰富的数据处理经验,能应对多种类型的数据操作。
 - 拥有精准的数据分析能力,准确得出处理结果。
 - 擅长根据不同评价标准进行数据评价,保证结果符合要求。
-- 能够高效地处理大量数据,保证工作的时效性。 
+- 能够高效地处理大量数据,保证工作的时效性。
 Language: ${this.getLang()}
 
 ## 上下文
-在数据处理任务缺乏合适工具或人力时,如数据分析项目、数据审核任务场景下,存在多组特定结构的文本数据,需数据处理大师理解标准和内容,制定流程并处理数据,按要求输出结果。 
+在数据处理任务缺乏合适工具或人力时,如数据分析项目、数据审核任务场景下,存在多组特定结构的文本数据,需数据处理大师理解标准和内容,制定流程并处理数据,按要求输出结果。
 
 ## 数据处理标准
 ${this.cueWord.openCeCon}
@@ -2473,7 +2484,7 @@ ${userWork}
 
 ## 任务
 1. 数据标准理解:详细了解{数据处理标准}(如准确性、完整性、一致性等要求)
-2. 数据内容理解: 阅读并理解{数据内容}包括多组“字段名称:具体内容”结构的文本数据。 
+2. 数据内容理解: 阅读并理解{数据内容}包括多组“字段名称:具体内容”结构的文本数据。
 3. 处理流程制定:根据所理解的{数据处理标准},制定详细的数据处理流程,包括数据分析(如统计分析、关联分析等)、数据评价(根据标准打分或分类等)等步骤。
 4. 数据处理操作:按照制定的流程对数据进行分析、处理和评价等操作。
 5. 结果输出:仅输出按照用户要求处理后的结果,确保结果清晰、准确且易于理解。
@@ -2505,7 +2516,7 @@ ${userWork}
 - 质量指标确定:根据处理标准确定数据质量评估指标。
 - 数据检查:按照指标对处理过程中的数据进行检查。
 - 结果验证:依据评估结果验证最终输出的数据是否符合要求。
- 
+
 ##响应
 严格按照用户的需求进行输出,不要输出多余的内容
 
@@ -3137,6 +3148,7 @@ ${userWork}
               console.log("==>",el2)
               if (topic.type == 1) {
                 let _answer = el2.array[i].json.answer2;
+                if(!_answer)continue;
                 for (var k = 0; k < _answer.length; k++) {
                   topic.array[_answer[k]].count++;
                   topic.count++;
@@ -4494,6 +4506,10 @@ ${JSON.stringify(item.array)}
         this.examineData = null;
       })
     },
+    //查看文件列表
+    checkFileListOpen(list){
+      this.$refs.checkFileListDialogRef.open(list);
+    }
   },
 
   beforeDestroy() {
@@ -5119,7 +5135,7 @@ ${JSON.stringify(item.array)}
 
 .table_file{
   max-height: 250px;
-  overflow-y:scroll ;
+  overflow-x:hidden ;
 }
 
 .table_file > .file {
@@ -5612,4 +5628,18 @@ ${JSON.stringify(item.array)}
     padding: 4px;
     border-radius: 3px;
 }
+
+.file_more{
+  width:20px;
+  height:20px;
+  margin-left: 10px;
+  margin-top: auto;
+  margin-bottom: 10px;
+}
+
+.file_more>svg{
+  width: 100%;
+  height:100%;
+  cursor: pointer;
+}
 </style>

+ 4 - 6
src/components/pages/test/shareBox/index.vue

@@ -36,7 +36,6 @@
                 </div>
                 <div class="url">
                     <el-tooltip :content="origin" placement="top" effect="dark">
-                        <!-- content to trigger tooltip here -->
                         <span>{{ origin }}</span>
                     </el-tooltip>
                     <span @click="copy" :data-clipboard-text="copyText" class="tag-read">复制链接</span>
@@ -60,7 +59,7 @@
       </span> -->
     </el-dialog>
 </template>
-  
+
 <script>
 import Clipboard from "clipboard";
 import QRCode from "qrcodejs2";
@@ -150,7 +149,7 @@ export default {
         },
         copy2(){
             let url = "https://beta.cloud.cocorobo.cn/#/testDetail?testid=" + this.testJson.courseId
-            this.copyText2 = 
+            this.copyText2 =
             `表单名称:${this.testJson.title}\n表单范围:${this.testJson.juriP ? this.testJson.juriP : '所有人'}\n${this.testJson.overtime ? '截止时间:'+this.testJson.overtime +'\n' : ''}${'未完成人数:'+this.noCount +'\n'}${this.testJson ? '已完成人数:'+this.testJson.worksPerson +'\n' : ''}${this.pname.length ? '未完成名单:'+this.pname.join(',') +'\n' : ''}链接提醒:${url}`;
             var clipboard = new Clipboard(".tag-read2");
             clipboard.on("success", (e) => {
@@ -207,13 +206,13 @@ export default {
         }
     },
     mounted(){
-        console.log( window.topU.origin);
+        // console.log( window.topU.origin);
         console.log(this.testJson);
         // this.origin =  window.topU.origin
     },
 };
 </script>
-  
+
 <style scoped>
 .dialog_diy>>>.el-dialog {
     /* height: 100%; */
@@ -360,4 +359,3 @@ export default {
     color: #0061ff;
 }
 </style>
-  

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác