详情修改
This commit is contained in:
parent
5d27011848
commit
93179dc98d
|
|
@ -3,18 +3,28 @@
|
||||||
<el-dialog class="l-dialog" :class="lDialog" :title="title" :visible.sync="dialogVisible" :showClose="true"
|
<el-dialog class="l-dialog" :class="lDialog" :title="title" :visible.sync="dialogVisible" :showClose="true"
|
||||||
:closeOnClickModal="false" @close="handleClose" :append-to-body="true">
|
:closeOnClickModal="false" @close="handleClose" :append-to-body="true">
|
||||||
<div>
|
<div>
|
||||||
<el-table :data="tableData" style="width: 100%" border header-align="center">
|
<el-table :data="tableData" style="width: 100%" border header-align="center" max-height="600">
|
||||||
<el-table-column prop="index" label="序号" width="80" align="center">
|
<el-table-column prop="index" label="序号" width="80" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.$index + 1 }}
|
{{ scope.$index + 1 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column v-for="item in tableColumns" :key="item.prop" :prop="item.prop" :label="item.label"
|
<el-table-column v-for="item in tableColumns" :key="item.prop" :prop="item.prop" :label="item.label"
|
||||||
center align="center"></el-table-column>
|
center align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="item.prop === 'fileName'" class="file-name-link" @click="viewFile(scope.row)" style="color: #409EFF; cursor: pointer;">
|
||||||
|
{{ scope.row.fileName }}
|
||||||
|
</span>
|
||||||
|
<span v-else>
|
||||||
|
{{ scope.row[item.prop] }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 预览文件 -->
|
||||||
|
<ViewFile v-if="isViewflag" :rowData="row" :title="viewTitle" @closeDialog="closeDialog" @showColose="showColose" :width="600" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -22,10 +32,14 @@ import _ from 'lodash'
|
||||||
import {
|
import {
|
||||||
getTransferReceiceFilesApi,
|
getTransferReceiceFilesApi,
|
||||||
} from '@/api/filesTransfer/accept'
|
} from '@/api/filesTransfer/accept'
|
||||||
|
import ViewFile from '@/views/viewFile/viewFile.vue'
|
||||||
export default {
|
export default {
|
||||||
name: "AcceptRecordList",
|
name: "AcceptRecordList",
|
||||||
props: ["width", "dataForm", "title", "disabled", "jumpType", "rowData"],
|
props: ["width", "dataForm", "title", "disabled", "jumpType", "rowData"],
|
||||||
dicts: ['data_class_type'],
|
dicts: ['data_class_type'],
|
||||||
|
components: {
|
||||||
|
ViewFile
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
lDialog: this.width > 500 ? "w700" : "w500",
|
lDialog: this.width > 500 ? "w700" : "w500",
|
||||||
|
|
@ -37,12 +51,27 @@ export default {
|
||||||
maintenanceTitle: "",
|
maintenanceTitle: "",
|
||||||
isflag: false,
|
isflag: false,
|
||||||
maintenanceRow: {},
|
maintenanceRow: {},
|
||||||
|
isViewflag: false,
|
||||||
|
row: {},
|
||||||
|
viewTitle: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initFormData();
|
this.initFormData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 预览文件
|
||||||
|
viewFile(row) {
|
||||||
|
|
||||||
|
this.viewTitle = "预览";
|
||||||
|
this.row = row;
|
||||||
|
this.isViewflag = true;
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.isViewflag = false;
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
/** 初始化表单数据 */
|
/** 初始化表单数据 */
|
||||||
async initFormData() {
|
async initFormData() {
|
||||||
|
|
||||||
|
|
@ -79,19 +108,13 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
closeDialog() {
|
|
||||||
this.isflag = false;
|
|
||||||
},
|
|
||||||
showColose() {
|
|
||||||
this.isflag = false;
|
|
||||||
},
|
|
||||||
/*关闭弹窗 */
|
/*关闭弹窗 */
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
this.$emit("closeDialog");
|
this.$emit("closeDialog");
|
||||||
setTimeout(() => {
|
/* setTimeout(() => {
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
});
|
}); */
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
<!-- 文件详情表格 -->
|
<!-- 文件详情表格 -->
|
||||||
<div class="table-section">
|
<div class="table-section">
|
||||||
<el-table :data="fileList" border style="width: 100%" class="detail-table">
|
<el-table :data="fileList" border style="width: 100%" class="detail-table" max-height="800">
|
||||||
<el-table-column prop="index" label="序号" width="80" align="center">
|
<el-table-column prop="index" label="序号" width="80" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.$index + 1 }}
|
{{ scope.$index + 1 }}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
<!-- 文件详情表格 -->
|
<!-- 文件详情表格 -->
|
||||||
<div class="table-section">
|
<div class="table-section">
|
||||||
<el-table :data="fileList" border style="width: 100%" class="detail-table" v-if="viewStatus === 'record'">
|
<el-table :data="fileList" border style="width: 100%" class="detail-table" v-if="viewStatus === 'record'" max-height="800">
|
||||||
<el-table-column prop="index" label="序号" width="80" align="center">
|
<el-table-column prop="index" label="序号" width="80" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.$index + 1 }}
|
{{ scope.$index + 1 }}
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-table :data="fileList" border style="width: 100%" class="detail-table" v-if="viewStatus === 'accept'">
|
<el-table :data="fileList" border style="width: 100%" class="detail-table" v-if="viewStatus === 'accept'" max-height="800">
|
||||||
<el-table-column prop="index" label="序号" width="80" align="center">
|
<el-table-column prop="index" label="序号" width="80" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.$index + 1 }}
|
{{ scope.$index + 1 }}
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,23 @@
|
||||||
<el-dialog class="l-dialog" :class="lDialog" :title="title" :visible.sync="dialogVisible" :showClose="true"
|
<el-dialog class="l-dialog" :class="lDialog" :title="title" :visible.sync="dialogVisible" :showClose="true"
|
||||||
:closeOnClickModal="false" @close="handleClose" :append-to-body="true">
|
:closeOnClickModal="false" @close="handleClose" :append-to-body="true">
|
||||||
<div>
|
<div>
|
||||||
<el-table :data="tableData" style="width: 100%" border header-align="center">
|
<el-table :data="tableData" style="width: 100%" border header-align="center" max-height="600">
|
||||||
<el-table-column prop="index" label="序号" width="80" align="center">
|
<el-table-column prop="index" label="序号" width="80" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.$index + 1 }}
|
{{ scope.$index + 1 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column v-for="item in tableColumns" :key="item.prop" :prop="item.prop" :label="item.label"
|
<el-table-column v-for="item in tableColumns" :key="item.prop" :prop="item.prop" :label="item.label"
|
||||||
center align="center"></el-table-column>
|
center align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="item.prop === 'fileName'" class="file-name-link" @click="viewFile(scope.row)" style="color: #409EFF; cursor: pointer;">
|
||||||
|
{{ scope.row.fileName }}
|
||||||
|
</span>
|
||||||
|
<span v-else>
|
||||||
|
{{ scope.row[item.prop] }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="100" align="center">
|
<el-table-column label="操作" width="100" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button v-if="jumpType === 'list' && scope.row.transferStatus === '进行中'" hasPermi="['record:file:update']" plain
|
<el-button v-if="jumpType === 'list' && scope.row.transferStatus === '进行中'" hasPermi="['record:file:update']" plain
|
||||||
|
|
@ -22,7 +31,8 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 预览文件 -->
|
||||||
|
<ViewFile v-if="isViewflag" :rowData="row" :title="viewTitle" @closeDialog="closeDialog2" :width="600" />
|
||||||
<Maintenance v-if="isflag" :rowData="maintenanceRow" :title="maintenanceTitle" @closeDialog="closeDialog"
|
<Maintenance v-if="isflag" :rowData="maintenanceRow" :title="maintenanceTitle" @closeDialog="closeDialog"
|
||||||
:dataForm="maintenanceRow" :width="600" @handleQuery="handleQuery" />
|
:dataForm="maintenanceRow" :width="600" @handleQuery="handleQuery" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
@ -34,12 +44,14 @@ import {
|
||||||
updateTransferRecordFilesStatusApi
|
updateTransferRecordFilesStatusApi
|
||||||
} from '@/api/filesTransfer/record'
|
} from '@/api/filesTransfer/record'
|
||||||
import Maintenance from './maintenance.vue';
|
import Maintenance from './maintenance.vue';
|
||||||
|
import ViewFile from '@/views/viewFile/viewFile.vue'
|
||||||
export default {
|
export default {
|
||||||
name: "RecordList",
|
name: "RecordList",
|
||||||
props: ["width", "dataForm", "title", "disabled", "jumpType", "rowData"],
|
props: ["width", "dataForm", "title", "disabled", "jumpType", "rowData"],
|
||||||
dicts: ['data_class_type'],
|
dicts: ['data_class_type'],
|
||||||
components: {
|
components: {
|
||||||
Maintenance
|
Maintenance,
|
||||||
|
ViewFile
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -52,13 +64,26 @@ export default {
|
||||||
maintenanceTitle: "",
|
maintenanceTitle: "",
|
||||||
isflag: false,
|
isflag: false,
|
||||||
maintenanceRow: {},
|
maintenanceRow: {},
|
||||||
getTransferRecordFilesApi
|
getTransferRecordFilesApi,
|
||||||
|
isViewflag: false,
|
||||||
|
row: {},
|
||||||
|
viewTitle: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.initFormData();
|
this.initFormData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 预览文件
|
||||||
|
viewFile(row) {
|
||||||
|
|
||||||
|
this.viewTitle = "预览";
|
||||||
|
this.row = row;
|
||||||
|
this.isViewflag = true;
|
||||||
|
},
|
||||||
|
closeDialog2() {
|
||||||
|
this.isViewflag = false;
|
||||||
|
},
|
||||||
/** 初始化表单数据 */
|
/** 初始化表单数据 */
|
||||||
async initFormData() {
|
async initFormData() {
|
||||||
this.tableColumns = [];
|
this.tableColumns = [];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue