This commit is contained in:
parent
8ddf1d6d5e
commit
17f3b105cf
|
|
@ -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']"
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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 || ''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue