SanHQin пре 4 месеци
родитељ
комит
b5f3a3c7ae

+ 3 - 3
src/components/pages/test/check/docxTemplateDialog.vue

@@ -521,11 +521,11 @@ export default {
               `{${fieldList[i].field}}`,
               `{${fieldList[i].field}}`,
               fieldList[i].value
               fieldList[i].value
             );
             );
-          } else if (this.fieldList[i].type == "file") {
+          } else if (fieldList[i].type == "file") {
             let _text = ``;
             let _text = ``;
             // this.fieldList[i].value.forEach(async f => {
             // this.fieldList[i].value.forEach(async f => {
             for (let j = 0; j < this.fieldList[i].value.length; j++) {
             for (let j = 0; j < this.fieldList[i].value.length; j++) {
-              let f = this.fieldList[i].value[j];
+              let f = fieldList[i].value[j];
               if (/\.(jpeg|jpg|gif|png|svg|bmp|webp)$/i.test(f.url)) {
               if (/\.(jpeg|jpg|gif|png|svg|bmp|webp)$/i.test(f.url)) {
                 // const img = await this.convertImageUrlToBase64(f.url);
                 // const img = await this.convertImageUrlToBase64(f.url);
                 // _text += `<img src="${f.url}" width="${100}" height="100" style="object-fit:contain"/><br/>`;
                 // _text += `<img src="${f.url}" width="${100}" height="100" style="object-fit:contain"/><br/>`;
@@ -537,7 +537,7 @@ export default {
                 _text += `<a href="${f.url}" target="_blank">${f.name}</a><br/>`;
                 _text += `<a href="${f.url}" target="_blank">${f.name}</a><br/>`;
               }
               }
             }
             }
-            _html = _html.replaceAll(`{${this.fieldList[i].field}}`, _text);
+            _html = _html.replaceAll(`{${fieldList[i].field}}`, _text);
             // });
             // });
           }
           }
         }
         }

+ 7 - 7
src/components/pages/test/smarter.vue

@@ -87,7 +87,7 @@
                         <!-- <div style="display: flex;">
                         <!-- <div style="display: flex;">
                             <div :class="['preview_file', { active: fileMenu === 1 }]" @click="fileMenu = 1">文档预览</div>
                             <div :class="['preview_file', { active: fileMenu === 1 }]" @click="fileMenu = 1">文档预览</div>
                             <div :class="['bianji_file', { active: fileMenu === 2 }]" @click="fileMenu = 2">文档编辑</div>
                             <div :class="['bianji_file', { active: fileMenu === 2 }]" @click="fileMenu = 2">文档编辑</div>
-                        </div> 
+                        </div>
                         <div v-if="fileMenu == 1" style="margin: -2px 10px;">  -->
                         <div v-if="fileMenu == 1" style="margin: -2px 10px;">  -->
                         <div class="cc_b_r_menu">
                         <div class="cc_b_r_menu">
                             <div v-for="(item, index) in menuList" @click="changeMenuIndex(index)" :key="index"
                             <div v-for="(item, index) in menuList" @click="changeMenuIndex(index)" :key="index"
@@ -138,7 +138,7 @@
                     </div>
                     </div>
                 </div>
                 </div>
             </div>
             </div>
-            <div v-show="activeMenu == 2" style="width:100%;">
+            <div v-show="activeMenu == 2" style="width:calc(100% - 148px);">
                 <div class="history_talk">
                 <div class="history_talk">
                     <div class="h_t_head">
                     <div class="h_t_head">
                         <div class="t_h_left">
                         <div class="t_h_left">
@@ -154,13 +154,13 @@
                     </div>
                     </div>
                     <div class="h_t_table">
                     <div class="h_t_table">
                         <el-table :data="tableData" style="width: 100%;cursor: pointer" @row-click="handleRowClick">
                         <el-table :data="tableData" style="width: 100%;cursor: pointer" @row-click="handleRowClick">
-                            <el-table-column prop="name" label="会话名称" width="180">
+                            <el-table-column prop="name" label="会话名称" >
                             </el-table-column>
                             </el-table-column>
                             <el-table-column prop="ctime" label="创建时间" width="180">
                             <el-table-column prop="ctime" label="创建时间" width="180">
                             </el-table-column>
                             </el-table-column>
-                            <el-table-column prop="utime" label="更新时间">
+                            <el-table-column prop="utime" label="更新时间" width="180">
                             </el-table-column>
                             </el-table-column>
-                            <el-table-column prop="control" label="操作">
+                            <el-table-column prop="control" label="操作" width="200">
                                 <template slot-scope="scope">
                                 <template slot-scope="scope">
                                     <div style="display: flex;">
                                     <div style="display: flex;">
                                         <div class="bianji">
                                         <div class="bianji">
@@ -410,7 +410,7 @@ export default {
         //     if(this.bianjiText){
         //     if(this.bianjiText){
         //         this.fileMenu = 2
         //         this.fileMenu = 2
         //     }
         //     }
-            
+
         // },
         // },
         // pushAiContent(data){
         // pushAiContent(data){
         //     this.aiContentArea.push(...data),
         //     this.aiContentArea.push(...data),
@@ -1154,4 +1154,4 @@ export default {
     display: inline-block;
     display: inline-block;
     width: 100%;
     width: 100%;
 }
 }
-</style>
+</style>