Quellcode durchsuchen

新在线文档修改

hujunwei@agilestar.cn vor 2 Jahren
Ursprung
Commit
bfcb5a5b53
1 geänderte Dateien mit 11 neuen und 9 gelöschten Zeilen
  1. 11 9
      src/pages/main/onlineOfficeExcel/index.vue

+ 11 - 9
src/pages/main/onlineOfficeExcel/index.vue

@@ -135,8 +135,8 @@
                                 </template>
                             </el-table-column>
                         </el-table>
-                        <el-pagination ref="pagination" class="pageBox" @current-change="currchange" layout="prev, pager, next" background
-                            :total="total">
+                        <el-pagination ref="pagination" class="pageBox" @current-change="currchange"
+                            layout="prev, pager, next" background :total="total">
                         </el-pagination>
                     </div>
 
@@ -149,7 +149,7 @@
                 </div>
             </div>
             <el-dialog :title="'新建'" :visible.sync="addNewDiaStatus" width="50%" :destroy-on-close="true"
-                :modal-append-to-body="false" :close-on-click-modal="false">
+                :modal-append-to-body="false" :close-on-click-modal="false" v-if="addNewDiaStatus">
                 <div v-loading="loading">
                     <el-form :model="form" ref="form">
                         <div class="online">
@@ -179,7 +179,8 @@
                 :modal-append-to-body="false" :close-on-click-modal="false">
                 <div>
                     <div style="padding-bottom: 30px;display:flex">
-                        <div style="width: 85px;display: inline-block;cursor: pointer" @click="addNewDiaStatus = true">
+                        <div style="width: 85px;display: inline-block;cursor: pointer"
+                            @click="addNewDiaStatus = true; form = {}">
                             <span class="iconfont icon-wenjian" style="font-size: 80px;color: dodgerblue"></span>
                             <p style="margin-left: 20px;margin-top: 10px">在线文档</p>
                         </div>
@@ -213,10 +214,10 @@
                     </div>
                 </div>
             </el-dialog>
-            <el-dialog :title="'分享选项'" :visible.sync="shareStatus" width="550px" :destroy-on-close="true"
+            <el-dialog :title="'分享选项'" :visible.sync="shareStatus" width="450px" :destroy-on-close="true"
                 :modal-append-to-body="false" :close-on-click-modal="false">
                 <div style="margin-left: 30px;padding-bottom: 20px" v-loading='shareLoading'>
-                    <el-button type="primary" @click="processExcelShare(1)" plain>仅我可编辑</el-button>
+                    <!-- <el-button type="primary" @click="processExcelShare(1)" plain>仅我可编辑</el-button> -->
                     <el-button type="primary" @click="openOADialog(2)" plain>部门内所有人可编辑</el-button>
                     <el-button type="primary" @click="checkexa = true" plain>指定人可编辑</el-button>
                 </div>
@@ -276,8 +277,8 @@
                     </div>
                 </div>
             </el-dialog>
-            <el-dialog :modal="false" :title="officetitle" :visible.sync="officeStatus" style="height:100% ;" :fullscreen="true" width="100%"
-                height="100%" center>
+            <el-dialog :modal="false" :title="officetitle" :visible.sync="officeStatus" style="height:100% ;"
+                :fullscreen="true" width="100%" height="100%" center>
                 <div id="DocEditor" v-if="officeStatus">
                     <onlyoffice-editor editorId="DocEditor" :src="src" :config="config" @ready="onReady" />
                 </div>
@@ -955,7 +956,7 @@ export default {
             this.nowFolder = a;
             this.tooltit = '在线文档-' + a.functionName;
             this.pageSize = 1;
-            this.$refs.pagination.internalCurrentPage=1
+            this.$refs.pagination.internalCurrentPage = 1
             this.getList({}, 1);
         },
         // tree过滤方法
@@ -1124,6 +1125,7 @@ svg {
 ::v-deep .el-dialog__body {
     height: 100%;
 }
+
 .custom-tree-node {
     flex: 1;
     display: flex;