Admin
4 天以前 bd6818fc9d40f343547bafca0743658f3c0379dc
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
 
<template>
  <div>
    <view-grid :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormOptions="editFormOptions" :searchFormFields="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>
 
<script>
import extend from '@/extension/system/Sys_DictionaryList.js';
var vueParam = {
  data() {
    return {
      table: {
        key: 'DicList_ID',
        footer: 'Foots',
        cnName: '字典明细',
        name: 'Sys_DictionaryList',
        url: '/Sys_DictionaryList/',
        sortName: 'DicList_ID',
      },
      extend: extend,
      editFormFields: {
        DicValue: '',
        DicName: '',
        OrderNo: '',
        Remark: '',
        Enable: '',
      },
      editFormOptions: [
        [
          {
            columnType: 'string',
            title: '数据源Value',
            field: 'DicValue',
            type: 'text',
          },
          {
            columnType: 'string',
            title: '数据源Text',
            field: 'DicName',
            type: 'text',
          },
          {
            columnType: 'int',
            title: '排序号',
            field: 'OrderNo',
            type: 'text',
          },
          { columnType: 'int', title: '备注', field: 'Remark', type: 'text' },
          {
            columnType: 'byte',
            dataKey: 'enable',
            title: '是否可用',
            field: 'Enable',
            type: 'switch',
          },
        ],
      ],
      searchFormFields: {},
      searchFormOptions: [],
      columns: [
        {
          field: 'DicList_ID',
          title: 'DicList_ID',
          type: 'int',
          width: 90,
          hidden: true,
          readonly: true,
          require: true,
          align: 'left',
        },
        {
          field: 'Dic_ID',
          title: '数据源ID',
          type: 'int',
          width: 90,
          readonly: true,
          align: 'left',
          sortable: true,
        },
        {
          field: 'DicValue',
          title: '数据源Value',
          type: 'string',
          width: 90,
          align: 'left',
        },
        {
          field: 'DicName',
          title: '数据源Text',
          type: 'string',
          width: 90,
          align: 'left',
        },
        {
          field: 'OrderNo',
          title: '排序号',
          type: 'int',
          width: 90,
          align: 'left',
        },
        {
          field: 'Remark',
          title: '备注',
          type: 'int',
          width: 90,
          align: 'left',
        },
        {
          field: 'Enable',
          title: '是否可用',
          type: 'byte',
          bind: { key: 'enable', data: [] },
          width: 90,
          align: 'left',
        },
        {
          field: 'CreateID',
          title: 'CreateID',
          type: 'int',
          width: 90,
          hidden: true,
          align: 'left',
        },
        {
          field: 'Creator',
          title: '创建人',
          type: 'string',
          width: 130,
          readonly: true,
          align: 'left',
        },
        {
          field: 'CreateDate',
          title: '创建时间',
          type: 'datetime',
          width: 90,
          readonly: true,
          align: 'left',
          sortable: true,
        },
        {
          field: 'ModifyID',
          title: 'ModifyID',
          type: 'int',
          width: 90,
          hidden: true,
          align: 'left',
        },
        {
          field: 'Modifier',
          title: '修改人',
          type: 'string',
          width: 130,
          align: 'left',
        },
        {
          field: 'ModifyDate',
          title: '修改时间',
          type: 'datetime',
          width: 90,
          align: 'left',
          sortable: true,
        },
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '#detailSortName',
      },
    };
  },
};
export default vueParam;
</script>