xiejun
2024-01-23 f09e05514d9a9e2623cfa73c4de1ffa98bb30bf8
Source/UBCS-WEB/src/views/monitor/log/operateLog.vue
@@ -14,6 +14,11 @@
               @size-change="sizeChange"
               @refresh-change="refreshChange"
               @on-load="onLoad">
    <template slot="description" slot-scope="scope">
      <avue-text-ellipsis :text="scope.row.description" :height="50">
        <small slot="more">...</small>
      </avue-text-ellipsis>
    </template>
    </avue-crud>
  </basic-container>
</template>
@@ -40,7 +45,7 @@
        },
        option: {
          height: 'auto',
          calcHeight: 30,
          calcHeight: 20,
          columnBtn:false,
          tip: false,
          searchShow: true,
@@ -58,18 +63,18 @@
              label: "用户名",
              prop: "userName",
              search: true,
              width:'100'
              width:'120'
            },
            {
              label: "姓名",
              prop: "realName",
              search: true,
              width:'100'
              width:'120'
            },
            {
              label: "用户ip",
              prop: "ip",
              width:'100'
              width:'130'
            },
            {
              label: "模块",
@@ -84,12 +89,15 @@
            {
              label: "操作结果",
              prop: "operateResult",
              width:'100'
              width:'110'
            },
            {
              label: "描述",
              prop: "description",
              width:'300'
              span: 24,
              minRows: 20,
              type: "textarea",
              slot: true,
            },
          ]
        },
@@ -131,14 +139,6 @@
      underscoreName(key) {
        return key.replace(/([A-Z])/g, "_$1").toLowerCase();
      },
      beforeOpen(done, type) {
        if (["edit", "view"].includes(type)) {
          getUsualLogs(this.form.id).then(res => {
            this.form = res.data.data;
          });
        }
        done();
      },
      currentChange(currentPage){
        this.page.currentPage = currentPage;
      },
@@ -159,7 +159,7 @@
        }
        this.loading = true;
        listLogOperate(
          page.currentPage,
          page.currentPage,
          page.pageSize,
          conditionMaps
        ).then(res => {