|
@@ -19,6 +19,7 @@
|
|
</div>
|
|
</div>
|
|
<SwitchButton :nextPath="nextPath" :nextDo="genarate"></SwitchButton>
|
|
<SwitchButton :nextPath="nextPath" :nextDo="genarate"></SwitchButton>
|
|
<Steps :stepArray="stepArray" ref="steps" :stepsDialogVisible="stepDialog"></Steps>
|
|
<Steps :stepArray="stepArray" ref="steps" :stepsDialogVisible="stepDialog"></Steps>
|
|
|
|
+ <el-button @click="openPageoffice">OFFICE</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -28,13 +29,13 @@ import SheetView from '../../../components/SheetView/index.vue'
|
|
import houseGuarantyfrom from '@/api/houseGuaranty';
|
|
import houseGuarantyfrom from '@/api/houseGuaranty';
|
|
import { downloadCollect1 } from '@/api/fileUpload'
|
|
import { downloadCollect1 } from '@/api/fileUpload'
|
|
import fileUtil from '@/utils/file'
|
|
import fileUtil from '@/utils/file'
|
|
- import Steps from '../../../components/Steps/index.vue'
|
|
|
|
-
|
|
|
|
|
|
+import Steps from '../../../components/Steps/index.vue'
|
|
|
|
+import { POBrowser } from 'js-pageoffice'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
SwitchButton,
|
|
SwitchButton,
|
|
SheetView,
|
|
SheetView,
|
|
- Steps
|
|
|
|
|
|
+ Steps,
|
|
},
|
|
},
|
|
|
|
|
|
data() {
|
|
data() {
|
|
@@ -156,7 +157,16 @@ export default {
|
|
|
|
|
|
downloadCollect1(){
|
|
downloadCollect1(){
|
|
fileUtil.download("/file/download/house/guaranty/collect1");
|
|
fileUtil.download("/file/download/house/guaranty/collect1");
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ openPageoffice(fileName,fileUrl) {
|
|
|
|
+ let paramJson={};
|
|
|
|
+ paramJson.fileName='gen1';
|
|
|
|
+ paramJson.fileUrl='gen1.docx';
|
|
|
|
+ let paramString=JSON.stringify(paramJson);
|
|
|
|
+ //openWindow()第三个参数用来向弹出的PageOffice浏览器(POBrowser)窗口传递参数(参数长度不限),支持json格式字符串。
|
|
|
|
+ //此处为了方便演示,我们传递了file_id和file_name两个参数,具体以您实际开发为准。
|
|
|
|
+ POBrowser.openWindow('/showDoc', 'width=1150px;height=900px;',paramString);
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|