|
@@ -246,10 +246,13 @@
|
|
v-if="from.fileUrl"
|
|
v-if="from.fileUrl"
|
|
style="flex:1;"
|
|
style="flex:1;"
|
|
>
|
|
>
|
|
- <iframe
|
|
|
|
|
|
+ <!-- <iframe
|
|
:src="excelSrc"
|
|
:src="excelSrc"
|
|
style="width:100%;height:100%;"
|
|
style="width:100%;height:100%;"
|
|
- ></iframe>
|
|
|
|
|
|
+ ></iframe> -->
|
|
|
|
+ <div v-if='excelshow' class='qualityManual-container-office' style="width:100%;height:100%;">
|
|
|
|
+ <vab-only-office :option='exceloption' />
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -406,15 +409,29 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import {mapGetters} from "vuex";
|
|
import { detailExcel, excelType, tabLazytree, getWbsTypeList, wbstree, selectByNodeTable, Excelmodify, uploadExcel, deleteExcelshu, deleteExcel ,tabLazytreeAll,
|
|
import { detailExcel, excelType, tabLazytree, getWbsTypeList, wbstree, selectByNodeTable, Excelmodify, uploadExcel, deleteExcelshu, deleteExcel ,tabLazytreeAll,
|
|
uploadcoverfileExcel,downExcelFile,exctabSort} from '@/api/exctab/excelmodel';
|
|
uploadcoverfileExcel,downExcelFile,exctabSort} from '@/api/exctab/excelmodel';
|
|
import ManualSorting from '@/components/WbsTree/ManualSorting'
|
|
import ManualSorting from '@/components/WbsTree/ManualSorting'
|
|
|
|
+import VabOnlyOffice from '@/components/online-office/index'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- ManualSorting,
|
|
|
|
|
|
+ ManualSorting,VabOnlyOffice
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
|
|
+ //参考vabOnlyOffice组件参数配置
|
|
|
|
+ exceloption: {
|
|
|
|
+ url: '',
|
|
|
|
+ isEdit: '',
|
|
|
|
+ fileType: '',
|
|
|
|
+ title: '',
|
|
|
|
+ lang: '',
|
|
|
|
+ isPrint: '',
|
|
|
|
+ user: { id:null,name:''}
|
|
|
|
+ },
|
|
|
|
+ excelshow: false,
|
|
|
|
+
|
|
expandedKeys:[],//默认展开的节点
|
|
expandedKeys:[],//默认展开的节点
|
|
excelId:'',
|
|
excelId:'',
|
|
treeNode: {},
|
|
treeNode: {},
|
|
@@ -510,8 +527,23 @@ export default {
|
|
curTreeData:{},
|
|
curTreeData:{},
|
|
defaultExpandKey:[],
|
|
defaultExpandKey:[],
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters(["userInfo"]),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getFile() {
|
|
|
|
+ this.excelshow = true
|
|
|
|
+ // getAction('/file/selectById', { id: this.id }).then(res => {
|
|
|
|
+ this.exceloption.isEdit = false
|
|
|
|
+ this.exceloption.lang = 'zh-CN'
|
|
|
|
+ this.exceloption.url = this.from.fileUrl
|
|
|
|
+ this.exceloption.title = this.from.extension
|
|
|
|
+ this.exceloption.fileType = 'xlsx'
|
|
|
|
+ this.exceloption.isPrint = false
|
|
|
|
+ this.exceloption.user= { id:12,name:this.userInfo.user_name}
|
|
|
|
+ // })
|
|
|
|
+ },
|
|
//刷新左边树形数据
|
|
//刷新左边树形数据
|
|
refreshTree(){
|
|
refreshTree(){
|
|
console.log(this.curTreeData,'this.curTreeData111111111');
|
|
console.log(this.curTreeData,'this.curTreeData111111111');
|
|
@@ -624,6 +656,7 @@ export default {
|
|
this.excelSrc = 'http://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(pSrc);
|
|
this.excelSrc = 'http://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(pSrc);
|
|
// //导入模板名称
|
|
// //导入模板名称
|
|
// this.from.import={}
|
|
// this.from.import={}
|
|
|
|
+ this. getFile()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async getWbsTypeList () {//清表编辑 wbs 下拉框选择
|
|
async getWbsTypeList () {//清表编辑 wbs 下拉框选择
|