|
|
@@ -92,6 +92,12 @@
|
|
|
|
|
|
export default {
|
|
|
mixins: [tabMixins],
|
|
|
+ props: {
|
|
|
+ disabled: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ }
|
|
|
+ },
|
|
|
components: { doc_template, fileEdit, browse },
|
|
|
|
|
|
data() {
|
|
|
@@ -186,12 +192,14 @@
|
|
|
this.init();
|
|
|
},
|
|
|
openFileList(type) {
|
|
|
+ if (this.disabled) return;
|
|
|
this.fileShow = true;
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.doc_templateRef.query(type)
|
|
|
- })
|
|
|
+ this.$refs.doc_templateRef.query(type);
|
|
|
+ });
|
|
|
},
|
|
|
fileEditOpen() {
|
|
|
+ if (this.disabled) return;
|
|
|
this.$refs.fileEditRef.open();
|
|
|
},
|
|
|
remove(row) {
|