no message
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user