|
|
@@ -20,9 +20,12 @@
|
|
|
>
|
|
|
<template v-slot:toolbar v-if="type != 'view'">
|
|
|
<el-button type="primary" @click="fileEditOpen">本地上传</el-button>
|
|
|
- <el-button type="primary" @click="fileShow = true">
|
|
|
+ <el-button type="primary" @click="openFileList(0)">
|
|
|
关联文档库
|
|
|
</el-button>
|
|
|
+ <el-button type="primary" @click="openFileList(1)">
|
|
|
+ 关联个人文档库
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
|
@@ -168,6 +171,12 @@
|
|
|
created() {},
|
|
|
|
|
|
methods: {
|
|
|
+ openFileList(type) {
|
|
|
+ this.fileShow = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.doc_templateRef.query(type);
|
|
|
+ });
|
|
|
+ },
|
|
|
open(fileId, type) {
|
|
|
//查看详情:view 新增:add
|
|
|
this.showEditFlag = true;
|
|
|
@@ -177,12 +186,7 @@
|
|
|
}
|
|
|
this.init();
|
|
|
},
|
|
|
- openFileList(type) {
|
|
|
- this.fileShow = true;
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.doc_templateRef.query(type);
|
|
|
- });
|
|
|
- },
|
|
|
+
|
|
|
fileEditOpen() {
|
|
|
this.$refs.fileEditRef.open();
|
|
|
},
|