cloud-web-corejs 1.0.43 → 1.0.44-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,156 +0,0 @@
1
- <template>
2
- <div id="containt">
3
- <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane :label="$t1('常规')" name="first">
5
- <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
- @reload="$reloadHandle"></editView>
7
- </el-tab-pane>
8
- <el-tab-pane :label="$t1('列表')" name="second">
9
- <div class="grid-height">
10
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
- @custom="$vxeTableUtil.customHandle">
12
- <template #form>
13
- <div class="clearfix screen-btns">
14
- <div class="fl">
15
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
16
- {{ $t1('新增') }}
17
- </vxe-button>
18
- <base-table-export :option="{ title: $t1('扩展属性-单据配置导出'), targetRef: 'table-m1'}"
19
- :parent-target="_self"/>
20
- </div>
21
- <div class="fr">
22
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{ $t1('重置') }}
24
- </vxe-button>
25
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
- {{ $t1('搜索') }}
27
- </vxe-button>
28
- </div>
29
- </div>
30
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
31
- @submit="searchEvent" @reset="searchEvent">
32
- <vxe-form-item :title="$t1('单据对象名称')+':'" field="eaObjName">
33
- <template v-slot>
34
- <el-input v-model="formData.eaObjName" size="small" clearable/>
35
- </template>
36
- </vxe-form-item>
37
- <vxe-form-item :title="$t1('单据对象编码')+':'" field="eaObjCode">
38
- <template v-slot>
39
- <el-input v-model="formData.eaObjCode" size="small" clearable/>
40
- </template>
41
- </vxe-form-item>
42
- </vxe-form>
43
- </template>
44
- </vxe-grid>
45
- </div>
46
- </el-tab-pane>
47
- </el-tabs>
48
- </div>
49
- </template>
50
-
51
- <script>
52
- import editView from './edit.vue';
53
-
54
- export default {
55
- name: 'eaobj:list',
56
- components: {
57
- editView
58
- },
59
- created() {
60
- },
61
- mounted() {
62
- this.initTableList();
63
- },
64
- data() {
65
- return {
66
- activeName: 'second',
67
- dataId: 0,
68
- showEdit: false,
69
- vxeOption: {},
70
- formData: {}
71
- };
72
- },
73
- methods: {
74
- searchEvent() {
75
- this.$refs['table-m1'].commitProxy('reload');
76
- },
77
- resetEvent() {
78
- this.formData = {};
79
- this.$refs['table-m1'].commitProxy('reload');
80
- },
81
- openEditDialog(id) {
82
- this.dataId = !id || typeof id == 'object' ? 0 : id;
83
- this.activeName = 'first';
84
- this.$openEditView('showEdit');
85
- },
86
- initTableList() {
87
- let that = this;
88
- let tableOption = {
89
- vue: this,
90
- tableRef: 'table-m1',
91
- tableName: 'user-ea-eaobj-list-m1',
92
- path: USER_PREFIX + '/eaobj/listPage',
93
- param: () => {
94
- return this.formData;
95
- },
96
- columns: [
97
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
98
- {
99
- title: this.$t1('单据对象名称'),
100
- field: 'eaObjName',
101
- width: 150,
102
- fixed: 'left'
103
- },
104
- {
105
- field: 'eaObjCode',
106
- title: this.$t1('单据对象编码'),
107
- width: 150
108
- },
109
- {
110
- field: 'applicationName',
111
- title: this.$t1('所属应用服务名'),
112
- width: 150
113
- },
114
- {
115
- field: 'memo',
116
- title: this.$t1('备注'),
117
- width: 150
118
- },
119
- {
120
- field: 'createDate',
121
- title: this.$t1('创建时间'),
122
- width: 200
123
- },
124
- {
125
- width: 47,
126
- fixed: 'right',
127
- title: '',
128
- sortable: false,
129
- slots: {
130
- default: ({row}) => {
131
- return [
132
- <a
133
- href="javascript:void(0);"
134
- class="a-link"
135
- onclick={() => {
136
- this.openEditDialog(row.id);
137
- }}
138
- >
139
- <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
140
- popper-class="tooltip-skin">
141
- <i class="el-icon-edit"/>
142
- </el-tooltip>
143
- </a>
144
- ];
145
- }
146
- }
147
- }
148
- ]
149
- };
150
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
151
- this.vxeOption = opts;
152
- });
153
- }
154
- }
155
- };
156
- </script>