no message
This commit is contained in:
@@ -32,3 +32,12 @@ export function quickens(data) {
|
||||
data
|
||||
});
|
||||
}
|
||||
export function fileUrls(data) {
|
||||
// return request.post('/common/getSmsCode',qs.stringify(params));
|
||||
return request({
|
||||
url: "/signature/describeFileUrls",
|
||||
method: "POST",
|
||||
cha:'1',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ import { getUserInfo } from '@/api/auth.js';
|
||||
import Header from '@/components/common/header.vue';
|
||||
import TopSafe from '@/components/common/top-safe.nvue'
|
||||
import ContractItem from './components/contract-item.vue'
|
||||
import { getContractList } from '@/api/contract.js'
|
||||
import { getContractList,fileUrls } from '@/api/contract.js'
|
||||
import func from '@/utils/func.js';
|
||||
|
||||
export default {
|
||||
@@ -60,7 +60,8 @@ export default {
|
||||
{text:'状态',value:'已签署'},
|
||||
{text:'时间',value:'2025-08-11 12:00:00'},
|
||||
],
|
||||
obj:null
|
||||
obj:null,
|
||||
url:''
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
@@ -70,6 +71,22 @@ export default {
|
||||
init(){
|
||||
this.isSignContract()
|
||||
},
|
||||
getfileUrls(){
|
||||
let params = {
|
||||
businessType:'FLOW',
|
||||
businessIds:[this.obj.flowId]
|
||||
}
|
||||
fileUrls(params).then(res=>{
|
||||
if(res.bizcode == 100){
|
||||
this.url = res.data.fileUrls[0].url;
|
||||
}else{
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
message: res.msg,
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
isSignContract(){
|
||||
|
||||
getContractList().then(res=>{
|
||||
@@ -83,6 +100,7 @@ export default {
|
||||
this.dataList[4].value = this.obj.details.endTime;
|
||||
this.bottomList[0].value = this.obj.signatureName;
|
||||
this.bottomList[2].value = this.obj.time;
|
||||
this.getfileUrls();
|
||||
}else{
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
@@ -92,7 +110,8 @@ export default {
|
||||
})
|
||||
},
|
||||
onOpen(){
|
||||
window.open(this.obj.contractName)
|
||||
// window.open(this.obj.contractName,'_blank')
|
||||
window.open(this.url,'_blank')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -158,6 +177,7 @@ export default {
|
||||
.list-right{
|
||||
width:238rpx;
|
||||
margin-left:40rpx;
|
||||
word-break:break-all;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
+6
-2
@@ -7,14 +7,18 @@ import { BASE_URL, Authorization } from '@/utils/config.js'
|
||||
|
||||
function request(options) {
|
||||
const { url, method = 'GET', data = {}, headers = {}, isShowLoading = true } = options;
|
||||
|
||||
|
||||
// const token = uni.getStorageSync(tokenKey); // 获取token, 根据实际情况调整获取方式
|
||||
const token = getStorageFun(TOKEN_NAME); // 获取token, 根据实际情况调整获取方式
|
||||
const defaultHeaders = {
|
||||
let defaultHeaders = {
|
||||
"Authorization": Authorization,
|
||||
'HSM-AUTH': token ? token : '', // 如果存在token, 则添加到请求头中
|
||||
'content-type': ['post', 'POST'].includes(method) ? 'application/x-www-form-urlencoded' : 'application/json',
|
||||
};
|
||||
if(options.cha){
|
||||
defaultHeaders['content-type']= 'application/json'
|
||||
}
|
||||
console.log('defaultHeaders',defaultHeaders,method)
|
||||
if (token) {
|
||||
defaultHeaders['HSM-AUTH'] = token;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user