Browse Source

签章代码起脚

hongchuangyanfa 2 years ago
parent
commit
3ca702b356

+ 2 - 1
public/index.html

@@ -16,7 +16,8 @@
   <link rel="stylesheet" href="<%= BASE_URL %>cdn/iconfont/avue/iconfont.css">
   <link rel="stylesheet" href="<%= BASE_URL %>cdn/iconfont/saber/iconfont.css">
   <link rel="stylesheet" href="<%= BASE_URL %>cdn/avue/2.9.5/index.css">
-  <script type='text/javascript' src='http://47.98.223.222:8090/web-apps/apps/api/documents/api.js'></script>
+<!--  <script type='text/javascript' src='http://47.110.251.215:6831/web-apps/apps/api/documents/api.js'></script>-->
+  <script type='text/javascript' src='http://192.168.0.110:6831/web-apps//api/documents/api.js'></script>
   <script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script>
   <script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script>
   <link rel="icon" href="<%= BASE_URL %>favicon.png">

+ 3 - 2
src/components/online-office/index.vue

@@ -68,10 +68,11 @@
             lang: option.lang,//语言设置
             //定制
             customization: {
-              autosave: false,//是否自动保存
+              autosave: true,//是否自动保存
               chat: false,
+              forcesave:true,//开启手动保存
               comments: false,
-              help: false,
+              help: true,
               hideRightMenu:true,
               // "hideRightMenu": false,//定义在第一次加载时是显示还是隐藏右侧菜单。 默认值为false
               //是否显示插件

+ 23 - 23
src/views/exctab/excelmodel/excelmodel.vue

@@ -431,7 +431,7 @@ export default {
           user: { id:null,name:''}
       },
       excelshow: false,
-      
+
       expandedKeys:[],//默认展开的节点
       excelId:'',
       treeNode: {},
@@ -459,7 +459,6 @@ export default {
         id: '',//清表树ID
         extension: '', //文件名称
         fileUrl: '',//文件路径
-
         import:null,
       },
       fileList: [],//选中的文件
@@ -533,16 +532,17 @@ export default {
   },
   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}
-        // })
+          this.excelshow = true
+          this.exceloption.isEdit = true
+          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:this.userInfo.id,name:this.userInfo.user_name}
+         // this.exceloption.editUrl = "http://172.31.222.127:8090/blade-manager/exceltab/callbackSave";
+          this.exceloption.editUrl = "http://192.168.0.110:8090/blade-manager/exceltab/callbackSave";
+          this.exceloption.key = this.from.id;
       },
         //刷新左边树形数据
       refreshTree(){
@@ -566,7 +566,7 @@ export default {
         this.updateTreeNewNode()
       }
     },
- 
+
   updateTreeNewNode () {
       tabLazytree( {
          parentId:this.curTreeData.parentId,
@@ -600,7 +600,7 @@ export default {
      newArr=newArr.join(',')
       //清表树手动排序
       const { data: res } = await exctabSort(newArr);
-    
+
       console.log(res);
       if (res.code == 200) {
         this.sortTag = false;
@@ -763,12 +763,12 @@ export default {
         this.from.checkd = true
       }
       this.fileList = [];
-    
-      
-  
+
+
+
      this.refreshTree()
-     
-      
+
+
     },
     async deleteExcel (data) {//删除excel表
       const { data: res } = await deleteExcel(data)
@@ -779,9 +779,9 @@ export default {
         })
         this.detailExcel(this.from.id)
         this.refreshTree()
-       
-       
-       
+
+
+
       }
     },
     //#endregion
@@ -882,7 +882,7 @@ export default {
           id: '',//清表树ID
           extension: '', //文件名称
           fileUrl: '',//文件路径
-         
+
         }
       }
     },