This commit is contained in:
parent
8ddf1d6d5e
commit
17f3b105cf
|
|
@ -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']"
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ export default {
|
|||
methods: {
|
||||
// 预览文件
|
||||
viewFile(row) {
|
||||
console.log(row);
|
||||
|
||||
this.viewTitle = "预览";
|
||||
this.row = row;
|
||||
|
|
|
|||
|
|
@ -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 || ''
|
||||
|
|
|
|||
Loading…
Reference in New Issue