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