mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-24 05:46:09 +08:00
优化代码
This commit is contained in:
parent
0243f84811
commit
b70ca11ef4
@ -19,7 +19,7 @@
|
|||||||
<button class="cu-btn sm bg-orange margin-left" @click="doEditOaWorkflow()" v-if="isMe()">编辑</button>
|
<button class="cu-btn sm bg-orange margin-left" @click="doEditOaWorkflow()" v-if="isMe()">编辑</button>
|
||||||
<button class="cu-btn sm bg-green margin-left" @click="doDealOaWorkflow()"
|
<button class="cu-btn sm bg-green margin-left" @click="doDealOaWorkflow()"
|
||||||
v-if="action=='Audit'">处理</button>
|
v-if="action=='Audit'">处理</button>
|
||||||
<button class="cu-btn sm bg-orange margin-left" @click="downLoadOaWorkflowFile()">下载</button>
|
<button class="cu-btn sm bg-orange margin-left" @click="downLoadOaWorkflowFile()" v-if="oaWorkflowData.files && oaWorkflowData.files.length >0">下载</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -169,6 +169,7 @@
|
|||||||
return "未知"
|
return "未知"
|
||||||
},
|
},
|
||||||
downLoadOaWorkflowFile: function() {
|
downLoadOaWorkflowFile: function() {
|
||||||
|
// #ifndef H5
|
||||||
uni.downloadFile({
|
uni.downloadFile({
|
||||||
url: this.oaWorkflowData.files[0].realFileName, //文件链接
|
url: this.oaWorkflowData.files[0].realFileName, //文件链接
|
||||||
header: {},
|
header: {},
|
||||||
@ -197,6 +198,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
// #endif
|
||||||
|
// #ifdef H5
|
||||||
|
window.location.href = this.oaWorkflowData.files[0].realFileName
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user