zhangjie преди 1 година
родител
ревизия
e4f1f4f958
променени са 2 файла, в които са добавени 23 реда и са изтрити 1 реда
  1. 1 1
      src/views/resource-guard/person-guard/person-allocate/person-deploy-dialog.vue
  2. 22 0
      src/views/system/task/task-manage/index.vue

+ 1 - 1
src/views/resource-guard/person-guard/person-allocate/person-deploy-dialog.vue

@@ -46,7 +46,7 @@
                 <t-checkbox
                   v-model="regionUseManage"
                   @change="regionUseManageChange"
-                  >区域协调人由大区经理兼</t-checkbox
+                  >区域协调人由大区经理兼</t-checkbox
                 >
               </div>
               <t-table

+ 22 - 0
src/views/system/task/task-manage/index.vue

@@ -65,6 +65,19 @@
         </template>
       </t-table>
     </div>
+
+    <my-dialog
+      :visible="logVisible"
+      header="日志"
+      :width="800"
+      attach="body"
+      @close="logVisible = false"
+    >
+      <p v-for="(cont, cidx) in logList" :key="cidx"> {{ cont }}</p>
+      <template #foot>
+        <t-button theme="primary" @click="logVisible = false">保存</t-button>
+      </template>
+    </my-dialog>
   </div>
 </template>
 
@@ -162,10 +175,19 @@ async function getTaskTypeList() {
 }
 getTaskTypeList();
 
+const logVisible = ref(false);
+const logList = ref([]);
+
 async function handleDownload(row, type) {
   const res = await getAttachmentFile(row.id, type).catch(() => {});
   if (!res) return;
 
+  if (type === 'REPORT_FILE') {
+    logVisible.value = true;
+    logList.value = (res.content || '').split('\n');
+    return;
+  }
+
   const url = res.url;
   if (url.endsWith('.txt')) {
     window.open(url);