wanghong
2024-01-05 60c97371be338da5a707b4c6516e7a2dbe8ea2c9
Source/UBCS-WEB/src/views/monitor/log/localLog.vue
@@ -25,7 +25,7 @@
                  type="text"
                  :loading="downloadLoading"
                  @click="downLoadLogFile(scope.row)"
                  v-if="permissionList.downLoadBtn"
                  v-if="permissionList.downLoadBtn && scope.row.hasChildren!=1"
              >下载
              </el-button>
          </template>
@@ -69,7 +69,7 @@
          // menuWidth: 300,
          dialogClickModal: false,
          highlightCurrentRow: true, //行选中时高亮
          rowKey: "logName", //行数据的 Key,用来优化 Table 的渲染
          rowKey: "randomOid", //行数据的 Key,用来优化 Table 的渲染
          column: [
            {
              label: "服务名称",
@@ -90,21 +90,22 @@
            {
              label: "日志名称",
              prop: "logName",
              width:'80',
              width:'160',
            },
            {
              label: "日志类型",
              prop: "logType"
              prop: "logType",
              width:'160'
            },
            {
            /*{
              label: "创建时间",
              prop: "createTime",
              width:'180'
            },
              width:'160'
            },*/
            {
              label: "最后修改时间",
              prop: "lastModifier",
              width:'180'
              width:'160'
            }
          ]
        },
@@ -117,7 +118,7 @@
      permissionList() {
        return {
          delBtn: this.vaildData(this.permission.localLog.localLog_delete, false),
          downLoadBtn: this.vaildData(this.permission.localLog.localLog_dwonload, false)
          downLoadBtn: this.vaildData(this.permission.localLog.localLog_download, false)
        };
      }
    },
@@ -125,7 +126,7 @@
      downLoadLogFile(row){
          this.downloadLoading = true;
          let logPath = row.hasChildren ?  row.logPath:row.logPath+"\\"+row.logName;
          let logPath = row.hasChildren ? row.logPath:row.logPath+"\\"+row.logName;
          downLoadLog(Object.assign({},row,{logFullPaths:logPath})).then(res=>{
              func.downloadFileByBlobHandler(res);
              this.downloadLoading = false;