lshcom 1.0.25 → 1.0.27
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 +1 -1
- package/src/assets/css/global.scss +3 -2
- package/src/common/global.js +23 -9
- package/src/common/lixinghang-api.js +5 -0
- package/src/common/lixinghang-url.js +2 -0
- package/src/components/iris-card-modal/ApplicableProduct.vue +3 -0
- package/src/components/portrayal/portrayal.vue +1 -0
- package/src/components/sidebar/SidebarNavLink.vue +1 -1
package/package.json
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
.f-fs#{$i*2} { font-size: #{$i*2}px }
|
|
92
92
|
}
|
|
93
93
|
// 边距 填充
|
|
94
|
-
@for $i from 1 through
|
|
94
|
+
@for $i from 1 through 6 {
|
|
95
95
|
.f-m#{$i*5} { margin: #{$i*5}px }
|
|
96
96
|
.f-mt#{$i*5} { margin-top: #{$i*5}px }
|
|
97
97
|
.f-mr#{$i*5} { margin-right: #{$i*5}px }
|
|
@@ -107,4 +107,5 @@
|
|
|
107
107
|
.u-ti{display:flex;align-items:center;justify-content:space-between}
|
|
108
108
|
.u-center{display:flex;align-items:center;justify-content:center}
|
|
109
109
|
.u-par{position:absolute;top:12px;right:-15px;z-index:1;}
|
|
110
|
-
.u-vh1{height:calc(100vh - 200px)}
|
|
110
|
+
.u-vh1{height:calc(100vh - 200px)}
|
|
111
|
+
.f-borerb-c{border-bottom: 1px solid #ccc}
|
package/src/common/global.js
CHANGED
|
@@ -87,18 +87,32 @@ const global = {
|
|
|
87
87
|
},
|
|
88
88
|
download(url, name){
|
|
89
89
|
Message('文件下载中...')
|
|
90
|
-
const a = document.createElement('a')
|
|
91
90
|
// 这里是将链接地址url转成blob地址,
|
|
92
91
|
fetch(url).then(res => res.blob()).then(blob => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
this.downloadFun(blob, name || url.slice(url.lastIndexOf('/') + 1))
|
|
93
|
+
})
|
|
94
|
+
},
|
|
95
|
+
// post传参
|
|
96
|
+
async downloadPost(url, params, name) {
|
|
97
|
+
Message('文件下载中...')
|
|
98
|
+
const response = await fetch(url, {
|
|
99
|
+
body: JSON.stringify(params),
|
|
100
|
+
method: 'POST',
|
|
101
|
+
headers: {'Content-Type': 'application/json;charset=UTF-8'}
|
|
101
102
|
})
|
|
103
|
+
const blob = await response.blob()
|
|
104
|
+
this.downloadFun(blob, name || decodeURIComponent(response.headers.get('content-disposition').split(';')[1].split('=')[1]))
|
|
105
|
+
},
|
|
106
|
+
downloadFun(blob, name){
|
|
107
|
+
const a = document.createElement('a')
|
|
108
|
+
a.href = URL.createObjectURL(blob)
|
|
109
|
+
// 下载文件的名称及文件类型后缀
|
|
110
|
+
a.download = name
|
|
111
|
+
document.body.appendChild(a)
|
|
112
|
+
a.click()
|
|
113
|
+
//在资源下载完成后 清除 占用的缓存资源
|
|
114
|
+
window.URL.revokeObjectURL(a.href)
|
|
115
|
+
document.body.removeChild(a)
|
|
102
116
|
},
|
|
103
117
|
// 导出Excel
|
|
104
118
|
exportExcel(params = {fileExportType:'',fileRelactionCode:'',parameters:{}}){
|
|
@@ -515,6 +515,8 @@ export default {
|
|
|
515
515
|
getBatchCardInfoByCode: `${common.isdev()}/v2/cardcoupons/card/getBatchCardInfoByCode`, // 根据卡券号查询卡券信息
|
|
516
516
|
batchCardUploadAttachments: `${common.isdev()}/systemFoundation_service/v1/fileSys/file/batchCardUploadAttachments`, // 批量上传绑定文件关系
|
|
517
517
|
checkOaBatchCardInfo: `${common.isdev()}/v1/card/oa/checkOaBatchCardInfo.htm`, // 校验OA批量发放卡券
|
|
518
|
+
//查询作废的卡券详情
|
|
519
|
+
getOriginalCardInfo: `${common.isdev()}/v1/replacement/card/getOriginalCardInfo`,
|
|
518
520
|
},
|
|
519
521
|
giftReason: {
|
|
520
522
|
getCardGiftReaAccNoMappingInfo: `${common.isdev()}/v1/cardRule/cardGiftReaAccNoMappingInfo/get.htm`,
|