[fix 86924] 分发资料-分发id改成取fileId
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
</template>
|
||||
|
||||
<span slot="action" class="action-span-cell" slot-scope="text, record" v-if="canOperate">
|
||||
<a @click="handleDistribute(record.fileId)" v-has="'fileMaintenance:distribute'">分发</a>
|
||||
<a @click="handleDistribute(record)" v-has="'fileMaintenance:distribute'">分发</a>
|
||||
<a @click="handleDownload(record)" v-has="'fileMaintenance:download'">下载</a>
|
||||
<a @click="handleDelete(record.id)" v-has="'fileMaintenance:delete'">删除</a>
|
||||
</span>
|
||||
@@ -79,6 +79,7 @@
|
||||
:project-type="projectType"
|
||||
:is-batch="isBatchDistribute"
|
||||
:record-id="dataId"
|
||||
:file-id="fileId"
|
||||
@ok="modalFormOk"></work-group-distribute-module>
|
||||
</div>
|
||||
</template>
|
||||
@@ -158,6 +159,7 @@ export default {
|
||||
distributeModalVisible: false,
|
||||
isBatchDistribute: false,
|
||||
dataId: '', // 资料id,传给分发
|
||||
fileId: '', // 文件id, 单个分发时查询用
|
||||
canOperate: true // 是否可操作(负责人B不可操作)
|
||||
}
|
||||
},
|
||||
@@ -209,8 +211,9 @@ export default {
|
||||
/**
|
||||
* 分发
|
||||
*/
|
||||
handleDistribute(id) {
|
||||
this.dataId = id
|
||||
handleDistribute(record) {
|
||||
this.fileId = record.fileId
|
||||
this.dataId = record.id
|
||||
this.distributeModalVisible = true
|
||||
this.isBatchDistribute = false
|
||||
},
|
||||
|
||||
@@ -207,6 +207,12 @@ export default {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
},
|
||||
// 单个分发时的文件Id
|
||||
fileId: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -265,7 +271,7 @@ export default {
|
||||
}
|
||||
// 非批量上传的时候传当前选中的文件id
|
||||
if(!this.isBatch) {
|
||||
param.fileId = this.recordId
|
||||
param.fileId = this.fileId
|
||||
}
|
||||
distributeMemberList(param).then(res => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user