cloud-web-corejs 1.0.26 → 1.0.28

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.26",
4
+ "version": "1.0.28",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -45,7 +45,7 @@ export default {
45
45
  props: ['param'],
46
46
  data() {
47
47
  return {
48
- abc: 'A',
48
+ abc: 'B',
49
49
  showDialog: true
50
50
  }
51
51
  },
@@ -1,202 +1,151 @@
1
- <template>
2
- <div v-if="showContent">
3
- <el-dialog
4
- :title="$t1('导入发布')"
5
- :append-to-body="falseValue"
6
- :modal-append-to-body="falseValue"
7
- :close-on-click-modal="falseValue"
8
- :visible.sync="showImportDialog"
9
- :modal="falseValue"
10
- custom-class="dialog-style"
11
- width="501px"
12
- v-el-drag-dialog
13
- >
14
- <el-form ref="editForm" :model="formData">
15
- <div id="containt">
16
- <table class="table-detail">
17
- <tbody>
18
- <tr>
19
- <th>
20
- <span class="t">
21
- <em class="f-red">*</em>
22
- {{ $t1('备注') }}
23
- </span>
24
- </th>
25
- <td>
26
- <el-form-item prop="logContent" :rules="[{ required:true, trigger: ['blur', 'change'] }]">
27
- <el-input type="textarea" :rows="8" :placeholder="$t1('请输入内容')"
28
- v-model="formData.logContent"></el-input>
29
- </el-form-item>
30
- </td>
31
- </tr>
32
- <tr>
33
- <th>
34
- <span class="t">
35
- <em class="f-red">*</em>
36
- {{ $t1('附件') }}
37
- </span>
38
- </th>
39
- <td>
40
- <el-upload v-if="!fileRaw" ref="uploadBtn" action="" class="upload-file" :auto-upload="false"
41
- :on-change="fileChange">
42
- <div class="el-upload-dragger">
43
- <i class="el-icon-upload"></i>
44
- <div class="el-upload__text"><em>{{ $t2('点击上传', 'components.excelImport.uploadBUtton') }}</em></div>
45
- </div>
46
- </el-upload>
47
- <div style="width: 360px;" class="upload-finish" v-if="fileRaw">
48
- <img :src="require('@/resources' + '/images/ico-txt.svg')" class="ico"/>
49
- <p class="name">{{ fileRaw.name }}</p>
50
- <el-tooltip :enterable="false" class="item" effect="dark"
51
- :content="$t2('关闭', 'components.excelImport.closeBUtton')" placement="bottom">
52
- <i
53
- class="el-icon-error js-close"
54
- @click="
55
- fileRaw = false;
56
- $refs.uploadBtn.clearFiles();
57
- "
58
- ></i>
59
- </el-tooltip>
60
- </div>
61
- </td>
62
- </tr>
63
- </tbody>
64
- </table>
65
- </div>
66
- </el-form>
67
- <!-- <div class="import-box">
68
- <el-upload v-if="!fileRaw" ref="uploadBtn" action="" class="upload-file" :auto-upload="false"
69
- :on-change="fileChange">
70
- <div class="el-upload-dragger">
71
- <i class="el-icon-upload"></i>
72
- <div class="el-upload__text"><em>{{ $t2('点击上传', 'components.excelImport.uploadBUtton') }}</em></div>
73
- </div>
74
- </el-upload>
75
- <div class="upload-finish" v-if="fileRaw">
76
- <img :src="require('@/resources' + '/images/ico-txt.svg')" class="ico"/>
77
- <p class="name">{{ fileRaw.name }}</p>
78
- <el-tooltip :enterable="false" class="item" effect="dark"
79
- :content="$t2('关闭', 'components.excelImport.closeBUtton')" placement="bottom">
80
- <i
81
- class="el-icon-error js-close"
82
- @click="
83
- fileRaw = false;
84
- $refs.uploadBtn.clearFiles();
85
- "
86
- ></i>
87
- </el-tooltip>
88
- </div>
89
- </div>-->
90
- <span slot="footer" class="dialog-footer">
91
- <el-button type="primary" plain class="button-sty" @click="dialogClose1">
92
- <i class="el-icon-close el-icon"></i>
93
- {{ $t2('取 消', 'system.button.cancel2') }}
94
- </el-button>
95
- <el-button type="primary" @click="dialogPrimary1" class="button-sty">
96
- <i class="el-icon-check el-icon"></i>
97
- {{ $t2('确 定', 'system.button.confirm2') }}
98
- </el-button>
99
- </span>
100
- </el-dialog>
101
- <el-dialog
102
- ref="importDialog"
103
- :title="$t2('导入', 'components.excelImport.title')"
104
- :append-to-body="falseValue"
105
- :modal-append-to-body="falseValue"
106
- :close-on-click-modal="falseValue"
107
- :visible.sync="showImportDialog2"
108
- :modal="falseValue"
109
- custom-class="dialog-style"
110
- width="501px"
111
- height="250px"
112
- @close="dialogClose2"
113
- v-el-drag-dialog
114
- >
115
- <div>
116
- <div class="import-box">
117
- <div class="tips">
118
- {{ $t2('导入中,请勿关闭当前窗口', 'components.excelImport.tip2') }}
119
- <!-- <span class="fr">耗时:<em class="time-txt">0 时 0 分 0 秒 </em></span> -->
120
- </div>
121
- <!-- <el-progress :text-inside="true" :stroke-width="26" :percentage="percentageNum"
122
- class="export-progress"></el-progress>-->
123
- <div class="i-status">
124
- <div class="item">
125
- <i class="el-icon-success f-green"></i>
126
- {{ $t2('成功', 'components.excelImport.success') }}:
127
- <span class="successNum" @click="showSuccessResult">{{ totalSuccessNum }}</span>
128
- </div>
129
- <div class="item">
130
- <i class="el-icon-error f-red"></i>
131
- {{ $t2('失败', 'components.excelImport.fail') }}:
132
- <span class="failNum" @click="showErrorResult">{{ totalErrorNum }}</span>
133
- </div>
134
- </div>
135
- </div>
136
- </div>
137
- <div slot="footer" class="dialog-footer" center="true">
138
- <div class="fl import-count">
139
- <span class="f-red doneNum">0</span>
140
- /
141
- <span class="dataSize">0</span>
142
- </div>
143
- <el-button type="primary" plain class="button-sty" @click="dialogClose2">
144
- <i class="el-icon-close el-icon"></i>
145
- {{ $t2('取 ', 'system.button.cancel2') }}
146
- </el-button>
147
- <el-button type="primary" class="button-sty" @click="dialogPrimary2">
148
- <i class="el-icon-check el-icon"></i>
149
- {{ $t2('确 定', 'system.button.confirm2') }}
150
- </el-button>
151
- </div>
152
- </el-dialog>
153
- <el-dialog
154
- :title="$t2('结果', 'components.excelImport.resultTitle')"
155
- :append-to-body="true"
156
- :modal-append-to-body="true"
157
- :close-on-click-modal="falseValue"
158
- :visible.sync="showImportResult"
159
- :modal="falseValue"
160
- custom-class="dialog-style list-dialog"
161
- width="1200px"
162
- v-el-drag-dialog
163
- >
164
- <div>
165
- <div class="box-style">
166
- <div class="cont">
167
- <div class="table-div">
168
- <vxe-grid
169
- id="resGrid"
170
- ref="resGrid"
171
- height="440px"
172
- v-bind="resOption"
173
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
174
- @custom="$vxeTableUtil.customHandle"
175
- >
176
- <template #form>
177
- <div class="clearfix screen-btns">
178
- <div class="fl">
179
- <vxe-button status="primary" class="button-sty" icon="el-icon-upload2" @click="exportToExcel()">
180
- 导出
181
- </vxe-button>
182
- </div>
183
- <div class="fr"></div>
184
- </div>
185
- </template>
186
- </vxe-grid>
187
- </div>
188
- </div>
189
- </div>
190
- </div>
191
- </el-dialog>
192
- </div>
193
- </template>
194
-
195
- <script>
196
- import {mixins} from './mixins';
197
-
198
- export default {
199
- mixins: [mixins],
200
- components: {}
201
- };
202
- </script>
1
+ <template>
2
+ <div v-if="showContent">
3
+ <el-dialog
4
+ :title="$t1('导入发布')"
5
+ :append-to-body="falseValue"
6
+ :modal-append-to-body="falseValue"
7
+ :close-on-click-modal="falseValue"
8
+ :visible.sync="showImportDialog"
9
+ :modal="falseValue"
10
+ custom-class="dialog-style"
11
+ width="501px"
12
+ v-el-drag-dialog
13
+ >
14
+ <div class="import-box">
15
+ <!-- <div class="tips">{{ $t2('请下载文件模板,填写信息后再上传文件', 'components.excelImport.tip') }}</div>-->
16
+ <el-upload v-if="!fileRaw" ref="uploadBtn" action="" class="upload-file" :auto-upload="false"
17
+ :on-change="fileChange">
18
+ <div class="el-upload-dragger">
19
+ <i class="el-icon-upload"></i>
20
+ <div class="el-upload__text"><em>{{ $t2('点击上传', 'components.excelImport.uploadBUtton') }}</em></div>
21
+ </div>
22
+ </el-upload>
23
+ <div class="upload-finish" v-if="fileRaw">
24
+ <img :src="require('@/resources' + '/images/ico-txt.svg')" class="ico"/>
25
+ <p class="name">{{ fileRaw.name }}</p>
26
+ <!-- <p>2022-1-17</p> -->
27
+ <el-tooltip :enterable="false" class="item" effect="dark"
28
+ :content="$t2('关闭', 'components.excelImport.closeBUtton')" placement="bottom">
29
+ <i
30
+ class="el-icon-error js-close"
31
+ @click="
32
+ fileRaw = false;
33
+ $refs.uploadBtn.clearFiles();
34
+ "
35
+ ></i>
36
+ </el-tooltip>
37
+ </div>
38
+ </div>
39
+ <span slot="footer" class="dialog-footer">
40
+ <el-button type="primary" plain class="button-sty" @click="dialogClose1">
41
+ <i class="el-icon-close el-icon"></i>
42
+ {{ $t2('取 消', 'system.button.cancel2') }}
43
+ </el-button>
44
+ <el-button type="primary" @click="dialogPrimary1" class="button-sty">
45
+ <i class="el-icon-check el-icon"></i>
46
+ {{ $t2('确 定', 'system.button.confirm2') }}
47
+ </el-button>
48
+ </span>
49
+ </el-dialog>
50
+ <el-dialog
51
+ ref="importDialog"
52
+ :title="$t2('导入', 'components.excelImport.title')"
53
+ :append-to-body="falseValue"
54
+ :modal-append-to-body="falseValue"
55
+ :close-on-click-modal="falseValue"
56
+ :visible.sync="showImportDialog2"
57
+ :modal="falseValue"
58
+ custom-class="dialog-style"
59
+ width="501px"
60
+ height="250px"
61
+ @close="dialogClose2"
62
+ v-el-drag-dialog
63
+ >
64
+ <div>
65
+ <div class="import-box">
66
+ <div class="tips">
67
+ {{ $t2('导入中,请勿关闭当前窗口', 'components.excelImport.tip2') }}
68
+ <!-- <span class="fr">耗时:<em class="time-txt">0 时 0 分 0 秒 </em></span> -->
69
+ </div>
70
+ <!-- <el-progress :text-inside="true" :stroke-width="26" :percentage="percentageNum"
71
+ class="export-progress"></el-progress>-->
72
+ <div class="i-status">
73
+ <div class="item">
74
+ <i class="el-icon-success f-green"></i>
75
+ {{ $t2('成功', 'components.excelImport.success') }}:
76
+ <span class="successNum" @click="showSuccessResult">{{ totalSuccessNum }}</span>
77
+ </div>
78
+ <div class="item">
79
+ <i class="el-icon-error f-red"></i>
80
+ {{ $t2('失败', 'components.excelImport.fail') }}:
81
+ <span class="failNum" @click="showErrorResult">{{ totalErrorNum }}</span>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ <div slot="footer" class="dialog-footer" center="true">
87
+ <div class="fl import-count">
88
+ <span class="f-red doneNum">0</span>
89
+ /
90
+ <span class="dataSize">0</span>
91
+ </div>
92
+ <el-button type="primary" plain class="button-sty" @click="dialogClose2">
93
+ <i class="el-icon-close el-icon"></i>
94
+ {{ $t2('取 消', 'system.button.cancel2') }}
95
+ </el-button>
96
+ <el-button type="primary" class="button-sty" @click="dialogPrimary2">
97
+ <i class="el-icon-check el-icon"></i>
98
+ {{ $t2('确 定', 'system.button.confirm2') }}
99
+ </el-button>
100
+ </div>
101
+ </el-dialog>
102
+ <el-dialog
103
+ :title="$t2('结果', 'components.excelImport.resultTitle')"
104
+ :append-to-body="true"
105
+ :modal-append-to-body="true"
106
+ :close-on-click-modal="falseValue"
107
+ :visible.sync="showImportResult"
108
+ :modal="falseValue"
109
+ custom-class="dialog-style list-dialog"
110
+ width="1200px"
111
+ v-el-drag-dialog
112
+ >
113
+ <div>
114
+ <div class="box-style">
115
+ <div class="cont">
116
+ <div class="table-div">
117
+ <vxe-grid
118
+ id="resGrid"
119
+ ref="resGrid"
120
+ height="440px"
121
+ v-bind="resOption"
122
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
123
+ @custom="$vxeTableUtil.customHandle"
124
+ >
125
+ <template #form>
126
+ <div class="clearfix screen-btns">
127
+ <div class="fl">
128
+ <vxe-button status="primary" class="button-sty" icon="el-icon-upload2" @click="exportToExcel()">
129
+ 导出
130
+ </vxe-button>
131
+ </div>
132
+ <div class="fr"></div>
133
+ </div>
134
+ </template>
135
+ </vxe-grid>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ </el-dialog>
141
+ </div>
142
+ </template>
143
+
144
+ <script>
145
+ import {mixins} from './mixins';
146
+
147
+ export default {
148
+ mixins: [mixins],
149
+ components: {}
150
+ };
151
+ </script>