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>
<el-button plain size="mini" type="danger" icon="el-icon-delete" v-hasPermi="['transfer:apply:del']" <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>
<el-button plain size="mini" type="success" icon="el-icon-warning-outline" v-hasPermi="['transfer:apply:query']" <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() { initFormData() {
if (this.rowData) { if (this.rowData) {
console.log(this.rowData);
// //
this.form = { this.form = {
id: this.rowData.id, id: this.rowData.fileId,
fileName: this.rowData.fileName || null, fileName: this.rowData.fileName || null,
}; };
} }
@ -98,6 +100,8 @@ export default {
target: this.$el.querySelector('.el-dialog') || document.body target: this.$el.querySelector('.el-dialog') || document.body
}) })
let params = _.cloneDeep(this.form); let params = _.cloneDeep(this.form);
console.log(params);
updateTransferRecordFileApi(params).then(res => { updateTransferRecordFileApi(params).then(res => {
this.loading.close(); this.loading.close();
if (res.code === 200) { if (res.code === 200) {

View File

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

View File

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