|
|
|
@ -83,7 +83,6 @@
|
|
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
<el-table v-loading="loading" :data="list">
|
|
|
|
|
<!-- <el-table-column label="主键" align="center" prop="id" /> -->
|
|
|
|
|
<el-table-column label="文件名" align="center" prop="name" />
|
|
|
|
|
<el-table-column label="OA/ERP流程编号" align="center" prop="flowCode" />
|
|
|
|
|
<el-table-column label="文件来源" align="center" prop="source" />
|
|
|
|
@ -98,13 +97,13 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="业务实体" align="center" prop="company" />
|
|
|
|
|
<el-table-column label="文件地址" align="center" prop="fileUrl">
|
|
|
|
|
<!-- <el-table-column label="文件地址" align="center" prop="fileUrl">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" @click="openLink(scope.row.fileUrl)">
|
|
|
|
|
{{ scope.row.fileUrl }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<el-table-column label="归档状态" align="center" prop="fileStatus">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
@ -137,6 +136,21 @@
|
|
|
|
|
width="180px"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
v-if="scope.row.fileUrl"
|
|
|
|
|
@click="handleViewFJ(scope.row)"
|
|
|
|
|
>查看附件
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
@click="handleView(scope.row)"
|
|
|
|
|
>查看
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
@ -182,6 +196,7 @@
|
|
|
|
|
:on-success="handleSuccess"
|
|
|
|
|
name="multipartFile"
|
|
|
|
|
:multiple="false"
|
|
|
|
|
v-if="optType != 'view'"
|
|
|
|
|
>
|
|
|
|
|
<i class="el-icon-upload"></i>
|
|
|
|
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
|
@ -287,7 +302,9 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitForm" v-if="optType != 'view'"
|
|
|
|
|
>确 定</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -341,6 +358,7 @@ export default {
|
|
|
|
|
components: {},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
optType: undefined,
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
// 导出遮罩层
|
|
|
|
@ -446,6 +464,10 @@ export default {
|
|
|
|
|
`/onlinePreview?url=${encodeURIComponent(this.base64Encode(fileUrl))}`;
|
|
|
|
|
window.open(url);
|
|
|
|
|
},
|
|
|
|
|
/** 查看附件按钮操作 */
|
|
|
|
|
handleViewFJ(row) {
|
|
|
|
|
this.openLink(row.fileUrl);
|
|
|
|
|
},
|
|
|
|
|
/** 查询列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -502,6 +524,7 @@ export default {
|
|
|
|
|
this.fileList = [];
|
|
|
|
|
this.reset();
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.optType = "add";
|
|
|
|
|
this.title = "添加其他资料";
|
|
|
|
|
},
|
|
|
|
|
// 上传成功的函数
|
|
|
|
@ -515,9 +538,21 @@ export default {
|
|
|
|
|
this.form.companyId = val.id;
|
|
|
|
|
this.form.company = val.organizationName;
|
|
|
|
|
},
|
|
|
|
|
/** 查看按钮操作 */
|
|
|
|
|
handleView(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.optType = "view";
|
|
|
|
|
const id = row.id;
|
|
|
|
|
getOther(id).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "查看其他资料";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.optType = "edit";
|
|
|
|
|
const id = row.id;
|
|
|
|
|
getOther(id).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|