ocpview-plus 1.3.20 → 1.3.21
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
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
</Row>
|
|
57
57
|
<Row type="flex" justify="center" :gutter="10">
|
|
58
58
|
<Col>
|
|
59
|
+
<RadioGroup v-if="myConfig.showImportTtype" v-model="importType" style="margin-bottom: 24px;">
|
|
60
|
+
<Radio label="all">全量导入</Radio>
|
|
61
|
+
<Radio label="add">增量导入</Radio>
|
|
62
|
+
</RadioGroup>
|
|
59
63
|
<Upload ref="upload"
|
|
60
64
|
:before-upload="handleUpload"
|
|
61
65
|
accept=".xlsx,.xls"
|
|
@@ -124,6 +128,7 @@
|
|
|
124
128
|
fileType:['xlsx','xls'],
|
|
125
129
|
setImportUrl:null,
|
|
126
130
|
resources:'',
|
|
131
|
+
showImportTtype: false,//是否显示导入类型
|
|
127
132
|
},
|
|
128
133
|
initConfig:{
|
|
129
134
|
typeData:[],
|
|
@@ -236,7 +241,8 @@
|
|
|
236
241
|
checkExportFailFlag: false,
|
|
237
242
|
checkExportSuccessFlag:true,
|
|
238
243
|
actionGrid:null,
|
|
239
|
-
modulecode:''
|
|
244
|
+
modulecode:'',
|
|
245
|
+
importType: 'all', // 默认全量导入
|
|
240
246
|
};
|
|
241
247
|
},
|
|
242
248
|
props:{
|
|
@@ -280,6 +286,9 @@
|
|
|
280
286
|
}
|
|
281
287
|
}
|
|
282
288
|
}
|
|
289
|
+
if(this.myConfig.showImportTtype) {
|
|
290
|
+
para.importType = this.importType;
|
|
291
|
+
}
|
|
283
292
|
return url+'¶m=' +encodeURI(JSON.stringify(para));
|
|
284
293
|
}
|
|
285
294
|
},
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
</Row>
|
|
22
22
|
<Row type="flex" justify="center" :gutter="10">
|
|
23
23
|
<Col>
|
|
24
|
+
<RadioGroup v-if="myConfig.showImportTtype" v-model="importType" style="margin-bottom: 24px;">
|
|
25
|
+
<Radio label="all">全量导入</Radio>
|
|
26
|
+
<Radio label="add">增量导入</Radio>
|
|
27
|
+
</RadioGroup>
|
|
24
28
|
<Upload ref="upload"
|
|
25
29
|
:before-upload="handleUpload"
|
|
26
30
|
accept=".xlsx,.xls"
|
|
@@ -78,7 +82,8 @@ export default {
|
|
|
78
82
|
myConfig:{
|
|
79
83
|
typeData:[],
|
|
80
84
|
fileType:['xlsx','xls'],
|
|
81
|
-
setImportUrl:null
|
|
85
|
+
setImportUrl:null,
|
|
86
|
+
showImportTtype: false,//是否显示导入类型
|
|
82
87
|
},
|
|
83
88
|
initConfig:{
|
|
84
89
|
typeData:[],
|
|
@@ -95,7 +100,8 @@ export default {
|
|
|
95
100
|
curlUrl:'',
|
|
96
101
|
loading:false,
|
|
97
102
|
downMethod:'exportTemplate',
|
|
98
|
-
importMethod:'import'
|
|
103
|
+
importMethod:'import',
|
|
104
|
+
importType: 'all', // 默认全量导入
|
|
99
105
|
};
|
|
100
106
|
},
|
|
101
107
|
props:{
|
|
@@ -124,6 +130,9 @@ export default {
|
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
132
|
}
|
|
133
|
+
if(this.myConfig.showImportTtype) {
|
|
134
|
+
para.importType = this.importType;
|
|
135
|
+
}
|
|
127
136
|
return url+'¶m=' +encodeURI(JSON.stringify(para));
|
|
128
137
|
}
|
|
129
138
|
},
|