|
@@ -65,6 +65,19 @@
|
|
</template>
|
|
</template>
|
|
</t-table>
|
|
</t-table>
|
|
</div>
|
|
</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>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -162,10 +175,19 @@ async function getTaskTypeList() {
|
|
}
|
|
}
|
|
getTaskTypeList();
|
|
getTaskTypeList();
|
|
|
|
|
|
|
|
+const logVisible = ref(false);
|
|
|
|
+const logList = ref([]);
|
|
|
|
+
|
|
async function handleDownload(row, type) {
|
|
async function handleDownload(row, type) {
|
|
const res = await getAttachmentFile(row.id, type).catch(() => {});
|
|
const res = await getAttachmentFile(row.id, type).catch(() => {});
|
|
if (!res) return;
|
|
if (!res) return;
|
|
|
|
|
|
|
|
+ if (type === 'REPORT_FILE') {
|
|
|
|
+ logVisible.value = true;
|
|
|
|
+ logList.value = (res.content || '').split('\n');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
const url = res.url;
|
|
const url = res.url;
|
|
if (url.endsWith('.txt')) {
|
|
if (url.endsWith('.txt')) {
|
|
window.open(url);
|
|
window.open(url);
|