This commit is contained in:
cwchen 2025-09-29 15:10:38 +08:00
parent 8ddf1d6d5e
commit 17f3b105cf
4 changed files with 7 additions and 3 deletions

View File

@ -21,7 +21,7 @@
修改
</el-button>
<el-button plain size="mini" type="danger" icon="el-icon-delete" v-hasPermi="['transfer:apply:del']"
@click="handleDelete(data)" >
@click="handleDelete(data)" v-if="data.auditStatus === '2'">
删除
</el-button>
<el-button plain size="mini" type="success" icon="el-icon-warning-outline" v-hasPermi="['transfer:apply:query']"

View File

@ -49,9 +49,11 @@ export default {
/** 初始化表单数据 */
initFormData() {
if (this.rowData) {
console.log(this.rowData);
//
this.form = {
id: this.rowData.id,
id: this.rowData.fileId,
fileName: this.rowData.fileName || null,
};
}
@ -98,6 +100,8 @@ export default {
target: this.$el.querySelector('.el-dialog') || document.body
})
let params = _.cloneDeep(this.form);
console.log(params);
updateTransferRecordFileApi(params).then(res => {
this.loading.close();
if (res.code === 200) {

View File

@ -76,6 +76,7 @@ export default {
methods: {
//
viewFile(row) {
console.log(row);
this.viewTitle = "预览";
this.row = row;

View File

@ -138,7 +138,6 @@ export default {
this.pdfLoading = true;
this.pdfError = false;
}
getFileAsBase64Api({ id: this.rowData.fileId }).then(res => {
const obj = res.data;
this.fileUrl = obj?.fileBase64 || ''