dengjunjie
2026-03-17 644819a289399eff1d5972c3df41ec55cb9d8c95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!--
*Author:jxx
 *Contact:283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/loginfo/Dt_trackloginfo.js此处编写
 -->
<template>
  <view-grid ref="grid"
             :columns="columns"
             :detail="detail"
             :editFormFields="editFormFields"
             :editFormOptions="editFormOptions"
             :searchFormFields="searchFormFields"
             :searchFormOptions="searchFormOptions"
             :table="table"
             :extend="extend">
  </view-grid>
</template>
<script>
import extend from "@/extension/basicinfo/Dt_trackloginfo.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
  setup () {
    const table = ref({
      key: 'tracklog_id',
      footer: "Foots",
      cnName: '操作日志',
      name: 'Dt_trackloginfo',
      url: "/trackloginfo/",
      sortName: "tracklog_createtime"
    });
    const editFormFields = ref({});
    const editFormOptions = ref([]);
    const searchFormFields = ref({ "tracklog_name": "", "tracklog_content": "", "tracklog_des": "", "tracklog_message": "" });
    const searchFormOptions = ref([
      [
        { "title": "参数", "field": "tracklog_content", "type": "like" },
        { "title": "名称", "field": "tracklog_name", "type": "like" },
        { "title": "描述", "field": "tracklog_des", "type": "like" },
        { "title": "错误描述", "field": "tracklog_message", "type": "like" }
      ]
    ]);
    const columns = ref([
      { field: 'tracklog_id', title: 'ID', type: 'int', width: 90, require: true, align: 'left', sort: true },
      { field: 'tracklog_name', title: '名称', type: 'string', sort: true, width: 120, require: true, align: 'left' },
      { field: 'tracklog_content', title: '参数', type: 'string', sort: true, width: 185, align: 'left' },
      { field: 'tracklog_type', title: '类型', type: 'string', sort: true, width: 90, require: true, align: 'left' },
      { field: 'tracklog_des', title: '描述', type: 'string', sort: true, width: 185, require: true, align: 'left' },
      { field: 'tracklog_code', title: '错误代码', type: 'string', sort: true, width: 110, require: true, align: 'left' },
      { field: 'tracklog_message', title: '错误描述', type: 'string', sort: true, width: 185, align: 'left' },
      { field: 'tracklog_operator', title: '操作人', type: 'string', sort: true, width: 110, require: true, align: 'left' },
      { field: 'tracklog_createtime', title: '创建时间', type: 'datetime', sort: true, width: 160, require: true, align: 'left', sort: true }]);
    const detail = ref({
      cnName: "#detailCnName",
      columns: [],
      sortName: "",
      key: ""
    });
    return {
      table,
      extend,
      editFormFields,
      editFormOptions,
      searchFormFields,
      searchFormOptions,
      columns,
      detail,
    };
  },
});
</script>