Procházet zdrojové kódy

修复大中型价值意见书为null字符串

wucl před 9 měsíci
rodič
revize
006b6e3730

+ 2 - 2
src/views/DocView.vue

@@ -28,14 +28,14 @@
     methods: {
       OnPageOfficeCtrlInit() {
         //PageOffice的初始化事件回调函数,您可以在这里添加自定义按钮
+        pageofficectrl.Caption = this.open_params.file_id;
         pageofficectrl.AddCustomToolButton("保存", "Save", 1);//其中"Save"对应methods中的Save()函数,并且需要在mounted中挂载。
       },
       Save() {
         //使用SaveFilePage属性设置后端保存方法的Controller路由地址,这个地址必须从"/"开始,并且也可以向此路由地址传递json字符串参数,示例如下:
         let saveFileUrl = "/doc/saveFile";
         let paramValue = new URLSearchParams(this.open_params);//为了简单起见,这里直接使用打开时的参数。
-        // pageofficectrl.SaveFilePage = `${saveFileUrl}?${paramValue.toString()}`;
-        pageofficectrl.SaveFilePage = `${saveFileUrl}`;
+        pageofficectrl.SaveFilePage = `${saveFileUrl}?${paramValue.toString()}`;
         //在这里写您保存前的代码
         pageofficectrl.WebSave();
         //在这里写您保存后的代码,比如判断保存结果pageofficectrl.CustomSaveResult

+ 1 - 1
src/views/major/myOrder.vue

@@ -696,7 +696,7 @@ export default {
     this.todoBusinessId = this.$route.query.todoBusinessId;
     this.taskId = this.$route.query.tId;
     this.currentNodeId = this.$route.query.cId;
-    this.statementNo = this.$route.query.sNo;
+    this.statementNo = (this.$route.query.sNo==null || this.$route.query.sNo ==='null')?null:this.$route.query.sNo;
     this.reportNo = typeof (this.$route.query.rNo) == undefined ? null : this.$route.query.rNo;
     if (this.todoBusinessId) {
       this.productionListDialog = true;

+ 1 - 1
src/views/personal/readonlyDetail.vue

@@ -1548,7 +1548,7 @@ export default {
     },
     openPageoffice(fileName,fileUrl) {
        let paramJson={};
-       paramJson.file_id=1;
+       paramJson.file_id=fileName;
        paramJson.file_name=fileUrl;
        let paramString=JSON.stringify(paramJson);
        //openWindow()第三个参数用来向弹出的PageOffice浏览器(POBrowser)窗口传递参数(参数长度不限),支持json格式字符串。