@leevan/jtui 2.0.30 → 2.0.32-n
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/examples/form/form.vue +12 -1
- package/lib/jtui.common.js +83 -36
- package/lib/jtui.css +1 -1
- package/lib/jtui.umd.js +83 -36
- package/lib/jtui.umd.min.js +6 -6
- package/package.json +1 -1
- package/packages/jt-form-pc/JtFormPc.vue +2 -2
- package/packages/jt-upload-pc/JtUploadPc.vue +7 -1
- package/vue.config.js +9 -2
package/package.json
CHANGED
|
@@ -321,7 +321,7 @@ export default {
|
|
|
321
321
|
async lazyLoad (node, resolve) {
|
|
322
322
|
const { level ,data:res } = node;
|
|
323
323
|
if(level === 0) {
|
|
324
|
-
const {data} = await _this.$axios.post(path + childPath,this.lazyLoadParams);
|
|
324
|
+
const {data} = await _this.$axios.post(path + childPath,config.params || this.lazyLoadParams);
|
|
325
325
|
resolve(data.map(item => ({
|
|
326
326
|
label:item.name,
|
|
327
327
|
leaf:item.path === '-' || !item.path,
|
|
@@ -335,7 +335,7 @@ export default {
|
|
|
335
335
|
resolve();
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
const {data} = await _this.$axios.post(path + res.path,this.lazyLoadParams);
|
|
338
|
+
const {data} = await _this.$axios.post(path + res.path,config.params || this.lazyLoadParams);
|
|
339
339
|
resolve(data.map(item => ({
|
|
340
340
|
label:item.name,
|
|
341
341
|
leaf:item.path === '-' || !item.path,
|
|
@@ -124,7 +124,13 @@ export default {
|
|
|
124
124
|
type: file.type
|
|
125
125
|
})
|
|
126
126
|
.then((response) => {
|
|
127
|
-
|
|
127
|
+
if(('Result' in response.data) && response.data.Result == 500){
|
|
128
|
+
const activeIndex = this.$refs.list.fileList.findIndex(item => item.name == file.name && item.size == file.size)
|
|
129
|
+
this.$refs.list.fileList.splice(activeIndex,1)
|
|
130
|
+
this.$message.warning(file.name + response.data.Msg + ',请重新上传')
|
|
131
|
+
}else{
|
|
132
|
+
this.$emit("success", response);
|
|
133
|
+
}
|
|
128
134
|
})
|
|
129
135
|
.catch(function(error) {
|
|
130
136
|
console.log(error);
|
package/vue.config.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: leevan
|
|
3
|
+
* @Date: 2022-01-15 17:02:55
|
|
4
|
+
* @LastEditTime: 2023-10-12 16:04:14
|
|
5
|
+
* @LastEditors: leevan
|
|
6
|
+
* @FilePath: /jtui-pc/vue.config.js
|
|
7
|
+
*/
|
|
1
8
|
module.exports = {
|
|
2
9
|
lintOnSave: false, //代码规范检测开关
|
|
3
10
|
pages: {
|
|
@@ -10,8 +17,8 @@ module.exports = {
|
|
|
10
17
|
devServer:{
|
|
11
18
|
proxy:{
|
|
12
19
|
'/':{
|
|
13
|
-
|
|
14
|
-
target:'http://127.0.0.1:38781',
|
|
20
|
+
target:'http://mxe5zg.natappfree.cc',
|
|
21
|
+
// target:'http://127.0.0.1:38781',
|
|
15
22
|
ws:true,
|
|
16
23
|
changeOrigin:true,
|
|
17
24
|
pathRewrite:{
|