|
|
@@ -57,14 +57,32 @@ export default {
|
|
|
show: false,
|
|
|
url: 'http://localhost:5173/resource?id=64b79edd8ce2593744685a3e&type=0',
|
|
|
logoSrc: new URL('@/assets/img/logo.png', import.meta.url).href,
|
|
|
- qrCodeText: ''
|
|
|
+ qrCodeText: '',
|
|
|
+ deptId: ''
|
|
|
}
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ // fixme 项目经理
|
|
|
+ this.getProjectInfo()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ getProjectInfo() {
|
|
|
+ this.$api.project.projectInfo(this.row.projectId).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ console.log(res)
|
|
|
+ this.deptId = res.data.createDept
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getQrCode() {
|
|
|
this.$api.resource.shareFiles({ ids: this.row.id }).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- this.qrCodeText = website.baseUrl + 'resource?shareId=' + res.data
|
|
|
+ this.qrCodeText =
|
|
|
+ website.baseUrl +
|
|
|
+ 'resource?shareId=' +
|
|
|
+ res.data +
|
|
|
+ '&deptId=' +
|
|
|
+ this.deptId
|
|
|
} else {
|
|
|
this.$message.error(res.msg)
|
|
|
}
|