fan 2 vuotta sitten
vanhempi
commit
152411fd9d
2 muutettua tiedostoa jossa 247 lisäystä ja 214 poistoa
  1. 73 51
      public/static/views/onlineShareExcel.html
  2. 174 163
      src/pages/main/onlineExcel/index.vue

+ 73 - 51
public/static/views/onlineShareExcel.html

@@ -73,7 +73,14 @@
         </form>
     </div>
     <div style="float: right;padding-right: 10px" id="shareBtn">
-        <button id="share" class="btn btn-primary" style="padding:3px 6px;font-size: 18px;margin-right: 10px;width: 100px">分享</button>
+        <button id="share" class="btn btn-primary"
+                style="padding:3px 6px;font-size: 18px;margin-right: 10px;width: 100px">分享
+        </button>
+    </div>
+    <div style="float: right;padding-right: 10px" id="newShareBtn">
+        <button id="newShare" class="btn btn-primary"
+                style="padding:3px 6px;font-size: 18px;margin-right: 10px;width: 100px">分享
+        </button>
     </div>
 </div>
 <div style="height:90%;width: 100%;">
@@ -172,7 +179,7 @@
         }
 
         // 表格初始化
-        function initExcel(data,name) {
+        function initExcel(data, name) {
             if (type == '1') {
                 flag = false
             } else {
@@ -182,7 +189,7 @@
                 adminFlag = true;
             }
             var fileName = excelInfo.fileName;
-            if ($.trim(name)!=''){
+            if ($.trim(name) != '') {
                 fileName = name;
             }
             try {
@@ -299,18 +306,24 @@
                 $("#editFrom").attr('disabled', true);
                 $("#editTo").attr('disabled', true);
                 $("#shareBtn").hide();
+                $("#newShareBtn").hide();
             } else {
                 $("#editStatus").attr('disabled', false);
                 $("#editFrom").attr('disabled', false);
                 $("#editTo").attr('disabled', false);
                 $("#shareBtn").show();
+                $("#newShareBtn").show();
             }
             if (emptyExcel == true) {
                 $("#shareBtn").show();
                 $("#saves").hide();
+                $("#newShareBtn").hide();
             } else {
                 $("#shareBtn").hide();
                 $("#saves").show();
+                if (isAdmin) {
+                    $("#newShareBtn").show();
+                }
             }
             if (excelInfo.shareStatus == '1') {
                 $("#editTo").attr('disabled', true);
@@ -333,6 +346,58 @@
             }
         }
 
+        function processShare(type) {
+            //  当前工作表名
+            var excelId = $(window.parent.document).find("#excelId").attr("value");
+            var sheetName = luckysheet.getSheet().name;
+            var excelData = luckysheet.getSheet(sheetName);
+            var urlsave = '/market/cOnlineExcel/saveExcel';
+            var editFrom = $("#editFrom").val();
+            var editTo = $("#editTo").val();
+            var editStatus = $("#editStatus").val();
+            var excelName = luckysheet.toJson().title;
+            //校验可编辑列
+            if ($.trim(editFrom) == '' && $.trim(editTo) == '') {
+
+            } else if (/^\d*$/.test(editFrom) && /^\d*$/.test(editTo)) {
+                if (editFrom == 0) {
+                    window.top.$vm.$message({
+                        message: '可编辑列开始不能为0',
+                        type: 'info'
+                    })
+                    return;
+                }
+                if (editFrom > editTo) {
+                    window.top.$vm.$message({
+                        message: '可编辑列的起始列不能大于结束列',
+                        type: 'info'
+                    })
+                    return;
+                }
+            } else if (/^[a-zA-Z]+$/.test(editFrom) && /^[a-zA-Z]+$/.test(editTo)) {
+
+            } else {
+                window.top.$vm.$message({
+                    message: '可编辑列必须全部为字母或数字',
+                    type: 'info'
+                })
+                return;
+            }
+            util.ajaxJson("正在加载中", ctx + '/market/cOnlineExcel/checkExcelEmpty', {
+                data: excelData,
+            }, function (data) {
+                if (data.result == 1) {
+                    window.top.$vm.$message({
+                        message: data.desc,
+                        type: 'error'
+                    });
+                } else {
+                    //excelJson, editFrom, editTo, editStatus, excelName, excelId, type
+                    window.parent['shareExcel'](excelData, editFrom, editTo, editStatus, excelName, excelId, type);
+                }
+            });
+        }
+
         // 绑定按钮事件
         function initHandel() {
             $("#closeExcel").on("click", function () {
@@ -347,54 +412,11 @@
             })
             //分享
             $('#share').off("click").click(function () {
-                //  当前工作表名
-                var excelId = $(window.parent.document).find("#excelId").attr("value");
-                var sheetName = luckysheet.getSheet().name;
-                var excelData = luckysheet.getSheet(sheetName);
-                var urlsave = '/market/cOnlineExcel/saveExcel';
-                var editFrom = $("#editFrom").val();
-                var editTo = $("#editTo").val();
-                var editStatus = $("#editStatus").val();
-                var excelName = luckysheet.toJson().title;
-                //校验可编辑列
-                if ($.trim(editFrom) == '' && $.trim(editTo) == '') {
-
-                } else if (/^\d*$/.test(editFrom) && /^\d*$/.test(editTo)) {
-                    if (editFrom == 0) {
-                        window.top.$vm.$message({
-                            message: '可编辑列开始不能为0',
-                            type: 'info'
-                        })
-                        return;
-                    }
-                    if (editFrom > editTo) {
-                        window.top.$vm.$message({
-                            message: '可编辑列的起始列不能大于结束列',
-                            type: 'info'
-                        })
-                        return;
-                    }
-                } else if (/^[a-zA-Z]+$/.test(editFrom) && /^[a-zA-Z]+$/.test(editTo)) {
-
-                } else {
-                    window.top.$vm.$message({
-                        message: '可编辑列必须全部为字母或数字',
-                        type: 'info'
-                    })
-                    return;
-                }
-                util.ajaxJson("正在加载中", ctx + '/market/cOnlineExcel/checkExcelEmpty', {
-                    data: excelData,
-                }, function (data) {
-                    if (data.result == 1) {
-                        window.top.$vm.$message({
-                            message: data.desc,
-                            type: 'error'
-                        });
-                    } else {
-                        window.parent['shareExcel'](excelData, editFrom, editTo, editStatus, excelName,excelId);
-                    }
-                });
+                processShare(1);
+            });
+            //新增分享
+            $('#newShare').off("click").click(function () {
+                processShare(2);
             });
             // 保存
             $('#saves').off("click").click(function () {

+ 174 - 163
src/pages/main/onlineExcel/index.vue

@@ -1,24 +1,25 @@
 <template>
     <fullscreen :fullscreen.sync="fullscreen" class="container">
-    <div class="container">
-        <div class="main-box container-box">
-            <input type="hidden" id="excelId"/>
-            <div class="inner-left" style="overflow: hidden">
-                <!--                <div class="button-list">-->
-                <!--                    <el-button type="primary" @click="showExcel = true" plain>excel</el-button>-->
-                <!--                    <el-button type="primary" @click="showExcel = false" plain>不excel</el-button>-->
-                <!--                </div>-->
-                <div style="margin: 10px 0">
-                    <el-input placeholder="请输入内容" v-model="filterText" class="input-with-select" clearable
-                              @change="() => {if (!filterText) {searchMenu();}}">
-                        <el-button slot="append" @click="searchMenu" icon="el-icon-search"></el-button>
-                    </el-input>
-                </div>
-                <div v-loading="loading" style="height: calc(100% - 100px);overflow-y: scroll;overflow-x: scroll">
-                    <el-tree ref="tree" class="tree-line" :expand-on-click-node="false" :auto-expand-parent="true"
-                             :default-expand-all="true" :default-checked-keys="checkedMenu" :data="menuList"
-                             @check="checkChange"
-                             @node-click="nodeClick" :filter-node-method="filterNode" node-key="functionCode" style="width: 300px">
+        <div class="container">
+            <div class="main-box container-box">
+                <input type="hidden" id="excelId"/>
+                <div class="inner-left" style="overflow: hidden">
+                    <!--                <div class="button-list">-->
+                    <!--                    <el-button type="primary" @click="showExcel = true" plain>excel</el-button>-->
+                    <!--                    <el-button type="primary" @click="showExcel = false" plain>不excel</el-button>-->
+                    <!--                </div>-->
+                    <div style="margin: 10px 0">
+                        <el-input placeholder="请输入内容" v-model="filterText" class="input-with-select" clearable
+                                  @change="() => {if (!filterText) {searchMenu();}}">
+                            <el-button slot="append" @click="searchMenu" icon="el-icon-search"></el-button>
+                        </el-input>
+                    </div>
+                    <div v-loading="loading" style="height: calc(100% - 100px);overflow-y: scroll;overflow-x: scroll">
+                        <el-tree ref="tree" class="tree-line" :expand-on-click-node="false" :auto-expand-parent="true"
+                                 :default-expand-all="true" :default-checked-keys="checkedMenu" :data="menuList"
+                                 @check="checkChange"
+                                 @node-click="nodeClick" :filter-node-method="filterNode" node-key="functionCode"
+                                 style="width: 300px">
                         <span class="custom-tree-node" slot-scope="{ node }">
                             <span>
                                 <span v-if="node.data.type == 4"
@@ -30,142 +31,145 @@
                                     }}</span>
                             </span>
                         </span>
-                    </el-tree>
-                </div>
-                <div class="tree-action"></div>
-            </div>
-            <div class="inner-right">
-                <div style="overflow: hidden;" v-if="showExcel == false">
-                    <toolList @iconCli='iconCli' :tooltit='tooltit' style="margin: 10px"></toolList>
-                    <div style="margin-top: 20px;float: left;" class="bigbtns">
-                        <el-button style="margin-left: 20px;" class="btn-check" size="medium" type="primary"
-                                   @click="addNewStatus = true">新建
-                        </el-button>
-                    </div>
-                    <div style="margin-top: 20px;float: right;margin-right: 20px" class="bigbtns"
-                         v-if="selectionSize != 0">
-                        <el-button style="margin-left: 5px;" class="btn-check" size="small" type="primary"
-                                   @click="delExcel()">删除
-                        </el-button>
-                        <el-button style="margin-left: 5px;" class="btn-check" size="small" type="primary"
-                                   @click="cancelSelection()">取消
-                        </el-button>
-                        <el-button style="margin-left: 5px;" class="btn-check" size="small" type="primary"
-                                   @click="moveStatus = true">移动到
-                        </el-button>
+                        </el-tree>
                     </div>
+                    <div class="tree-action"></div>
                 </div>
-                <div class="tabbox" v-if="showExcel == false">
-                    <div id="selectionList" style="height: 30px">
-                        <span v-if="selectionSize != 0">已选{{ selectionSize }}项</span>
+                <div class="inner-right">
+                    <div style="overflow: hidden;" v-if="showExcel == false">
+                        <toolList @iconCli='iconCli' :tooltit='tooltit' style="margin: 10px"></toolList>
+                        <div style="margin-top: 20px;float: left;" class="bigbtns">
+                            <el-button style="margin-left: 20px;" class="btn-check" size="medium" type="primary"
+                                       @click="addNewStatus = true">新建
+                            </el-button>
+                        </div>
+                        <div style="margin-top: 20px;float: right;margin-right: 20px" class="bigbtns"
+                             v-if="selectionSize != 0">
+                            <el-button style="margin-left: 5px;" class="btn-check" size="small" type="primary"
+                                       @click="delExcel()">删除
+                            </el-button>
+                            <el-button style="margin-left: 5px;" class="btn-check" size="small" type="primary"
+                                       @click="cancelSelection()">取消
+                            </el-button>
+                            <el-button style="margin-left: 5px;" class="btn-check" size="small" type="primary"
+                                       @click="moveStatus = true">移动到
+                            </el-button>
+                        </div>
                     </div>
-                    <el-table height="calc(100% - 60px)" class="com-table" ref="multipleTable" :data="tableData"
-                              tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading"
-                              @selection-change="handleSelectionChange">
-                        <el-table-column type="selection" width="45"></el-table-column>
-                        <el-table-column prop="fileName" label="名称">
-                        </el-table-column>
-                        <el-table-column prop="opTime" label="创建时间">
-                        </el-table-column>
-                        <el-table-column prop="addUserDept" label="创建科室">
-                        </el-table-column>
-                        <el-table-column prop="addUserName" label="创建人">
-                        </el-table-column>
-                        <el-table-column prop="shareEditStatus" label="权限状态">
-                            <template slot-scope="scope">
-                                <span v-if="scope.row.editStatus == 0">开</span>
-                                <span v-if="scope.row.editStatus == 1">关</span>
-                            </template>
-                        </el-table-column>
-                        <el-table-column label="操作" width="180px" align="center" fixed="right">
-                            <template slot-scope="scope">
-                                <el-button size="mini" type="primary" @click="moveToEdit(scope.row)"
-                                           :disabled="scope.row.shareEditStatus==1">编辑
-                                </el-button>
-                            </template>
-                        </el-table-column>
-                    </el-table>
-                    <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
-                                   :total="total">
-                    </el-pagination>
-                </div>
-                <div class="container" id="container" v-else>
-                    <iframe id="excelIframe" height="100%" width="100%" src="/marketfront/static/views/onlineShareExcel.html"
-                            frameborder="0"></iframe>
-                </div>
-            </div>
-        </div>
-        <el-dialog :title="'新建'" :visible.sync="addNewStatus" width="300px" :destroy-on-close="true"
-                   :modal-append-to-body="false" :close-on-click-modal="false">
-            <div>
-<!--                <el-button type="primary" @click="addExcel()" plain class="iconfont icon-wenjian">在线文档</el-button>-->
-<!--                <el-button type="primary" @click="addFolderStatus = true" plain class="iconfont icon-wenjianjia">文件夹</el-button>-->
-                <div style="padding-bottom: 30px">
-                    <div style="width: 85px;display: inline-block;cursor: pointer" @click="addExcel()">
-                        <span class="iconfont icon-wenjian" style="font-size: 80px;color: dodgerblue"></span>
-                        <p style="margin-left: 20px;margin-top: 10px">在线文档</p>
+                    <div class="tabbox" v-if="showExcel == false">
+                        <div id="selectionList" style="height: 30px">
+                            <span v-if="selectionSize != 0">已选{{ selectionSize }}项</span>
+                        </div>
+                        <el-table height="calc(100% - 60px)" class="com-table" ref="multipleTable" :data="tableData"
+                                  tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading"
+                                  @selection-change="handleSelectionChange">
+                            <el-table-column type="selection" width="45"></el-table-column>
+                            <el-table-column prop="fileName" label="名称">
+                            </el-table-column>
+                            <el-table-column prop="opTime" label="创建时间">
+                            </el-table-column>
+                            <el-table-column prop="addUserDept" label="创建科室">
+                            </el-table-column>
+                            <el-table-column prop="addUserName" label="创建人">
+                            </el-table-column>
+                            <el-table-column prop="shareEditStatus" label="权限状态">
+                                <template slot-scope="scope">
+                                    <span v-if="scope.row.editStatus == 0">开</span>
+                                    <span v-if="scope.row.editStatus == 1">关</span>
+                                </template>
+                            </el-table-column>
+                            <el-table-column label="操作" width="180px" align="center" fixed="right">
+                                <template slot-scope="scope">
+                                    <el-button size="mini" type="primary" @click="moveToEdit(scope.row)"
+                                               :disabled="scope.row.shareEditStatus==1">编辑
+                                    </el-button>
+                                </template>
+                            </el-table-column>
+                        </el-table>
+                        <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next"
+                                       background
+                                       :total="total">
+                        </el-pagination>
                     </div>
-                    <div style="width: 85px;display: inline-block;margin-left: 70px;cursor: pointer" @click="addFolderStatus = true">
-                        <span class="iconfont icon-wenjianjia" style="font-size: 80px;color: dodgerblue"></span>
-                        <p style="margin-left: 20px;margin-top: 10px">文件夹</p>
+                    <div class="container" id="container" v-else>
+                        <iframe id="excelIframe" height="100%" width="100%" src="/marketfront/static/views/onlineShareExcel.html"
+                                frameborder="0"></iframe>
                     </div>
                 </div>
             </div>
-        </el-dialog>
-        <el-dialog :title="'新增文件夹'" :visible.sync="addFolderStatus" width="50%" :destroy-on-close="true"
-                   :modal-append-to-body="false" :close-on-click-modal="false">
-            <div v-loading="loading">
-                <el-form :model="infolist" ref="infolist">
-                    <div class="online">
-                        <el-form-item prop="name">
-                            <span>文件夹名称</span>
-                            <el-input v-model="infolist.name" placeholder="文件夹名称" :disabled="disableStatus"></el-input>
-                        </el-form-item>
+            <el-dialog :title="'新建'" :visible.sync="addNewStatus" width="300px" :destroy-on-close="true"
+                       :modal-append-to-body="false" :close-on-click-modal="false">
+                <div>
+                    <!--                <el-button type="primary" @click="addExcel()" plain class="iconfont icon-wenjian">在线文档</el-button>-->
+                    <!--                <el-button type="primary" @click="addFolderStatus = true" plain class="iconfont icon-wenjianjia">文件夹</el-button>-->
+                    <div style="padding-bottom: 30px">
+                        <div style="width: 85px;display: inline-block;cursor: pointer" @click="addExcel()">
+                            <span class="iconfont icon-wenjian" style="font-size: 80px;color: dodgerblue"></span>
+                            <p style="margin-left: 20px;margin-top: 10px">在线文档</p>
+                        </div>
+                        <div style="width: 85px;display: inline-block;margin-left: 70px;cursor: pointer"
+                             @click="addFolderStatus = true">
+                            <span class="iconfont icon-wenjianjia" style="font-size: 80px;color: dodgerblue"></span>
+                            <p style="margin-left: 20px;margin-top: 10px">文件夹</p>
+                        </div>
                     </div>
-                </el-form>
-                <div slot="footer" class="dialog-footer myfooter">
-                    <el-button type="primary" @click="addNewFolder()">确 定</el-button>
-                    <el-button @click="addFolderStatus = false">取 消</el-button>
                 </div>
-            </div>
-        </el-dialog>
-        <el-dialog :title="'分享选项'" :visible.sync="shareStatus" width="550px" :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="openOADialog(2)" plain>部门内所有人可编辑</el-button>
-                <el-button type="primary" @click="checkexa = true" plain>指定人可编辑</el-button>
-            </div>
-        </el-dialog>
-        <el-dialog title="选择填报人" :visible.sync="checkexa" width="50%" :destroy-on-close="true"
-                   :modal-append-to-body="false" :close-on-click-modal="false">
-            <div>
-                <el-form :model="exaList" ref="addInfoList">
-                    <el-form-item prop="processUserId" class="info-line online">
-                        <span style="width: 80px;margin-right: 20px">审批人员</span>
-                        <deptTreeUserNew class="tree" @treeCheck="treeCheckonly" :defaultList="defaultList"
-                                         :type="depttype" :closeList="closeList"></deptTreeUserNew>
-                        <div class="tree treeUser">
-                            <p v-for="(item,index) in treeList" :key="index">{{ item.receiveName }}
-                                <i @click="deletes(item,index)" class="el-icon-error"></i>
-                            </p>
+            </el-dialog>
+            <el-dialog :title="'新增文件夹'" :visible.sync="addFolderStatus" width="50%" :destroy-on-close="true"
+                       :modal-append-to-body="false" :close-on-click-modal="false">
+                <div v-loading="loading">
+                    <el-form :model="infolist" ref="infolist">
+                        <div class="online">
+                            <el-form-item prop="name">
+                                <span>文件夹名称</span>
+                                <el-input v-model="infolist.name" placeholder="文件夹名称"
+                                          :disabled="disableStatus"></el-input>
+                            </el-form-item>
                         </div>
-                    </el-form-item>
-                </el-form>
+                    </el-form>
+                    <div slot="footer" class="dialog-footer myfooter">
+                        <el-button type="primary" @click="addNewFolder()">确 定</el-button>
+                        <el-button @click="addFolderStatus = false">取 消</el-button>
+                    </div>
+                </div>
+            </el-dialog>
+            <el-dialog :title="'分享选项'" :visible.sync="shareStatus" width="550px" :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="openOADialog(2)" plain>部门内所有人可编辑</el-button>
+                    <el-button type="primary" @click="checkexa = true" plain>指定人可编辑</el-button>
+                </div>
+            </el-dialog>
+            <el-dialog title="选择填报人" :visible.sync="checkexa" width="50%" :destroy-on-close="true"
+                       :modal-append-to-body="false" :close-on-click-modal="false">
+                <div>
+                    <el-form :model="exaList" ref="addInfoList">
+                        <el-form-item prop="processUserId" class="info-line online">
+                            <span style="width: 80px;margin-right: 20px">审批人员</span>
+                            <deptTreeUserNew class="tree" @treeCheck="treeCheckonly" :defaultList="defaultList"
+                                             :type="depttype" :closeList="closeList"></deptTreeUserNew>
+                            <div class="tree treeUser">
+                                <p v-for="(item,index) in treeList" :key="index">{{ item.receiveName }}
+                                    <i @click="deletes(item,index)" class="el-icon-error"></i>
+                                </p>
+                            </div>
+                        </el-form-item>
+                    </el-form>
 
-                <div slot="footer" style="text-align: right;padding-bottom: 20px">
-                    <el-button type="primary" @click="checkProcessUser(3)">确 定</el-button>
-                    <el-button @click="checkexa = false">取 消</el-button>
+                    <div slot="footer" style="text-align: right;padding-bottom: 20px">
+                        <el-button type="primary" @click="checkProcessUser(3)">确 定</el-button>
+                        <el-button @click="checkexa = false">取 消</el-button>
+                    </div>
                 </div>
-            </div>
-        </el-dialog>
-        <el-dialog title="移动到" :visible.sync="moveStatus" width="500px" :destroy-on-close="true"
-                   :modal-append-to-body="false" :close-on-click-modal="false">
-            <div>
-                <el-tree ref="tree" class="tree-line" :expand-on-click-node="false" :auto-expand-parent="true"
-                         :default-expand-all="true" :default-checked-keys="checkedMenu" :data="moveMenuList"
-                         @check="checkChange"
-                         @node-click="folderNodeClick" node-key="functionCode" @expand-on-click-node="false">
+            </el-dialog>
+            <el-dialog title="移动到" :visible.sync="moveStatus" width="500px" :destroy-on-close="true"
+                       :modal-append-to-body="false" :close-on-click-modal="false">
+                <div>
+                    <el-tree ref="tree" class="tree-line" :expand-on-click-node="false" :auto-expand-parent="true"
+                             :default-expand-all="true" :default-checked-keys="checkedMenu" :data="moveMenuList"
+                             @check="checkChange"
+                             @node-click="folderNodeClick" node-key="functionCode" @expand-on-click-node="false">
                         <span class="custom-tree-node" slot-scope="{ node }">
                             <span>
                                 <span v-if="node.data.type == 4"
@@ -177,20 +181,20 @@
                                     }}</span>
                             </span>
                         </span>
-                </el-tree>
-                <div slot="footer" style="text-align: right;padding-bottom: 20px">
-                    <el-button type="primary" @click="addFolderStatus = true" style="margin-right: 150px">+新建文件夹
-                    </el-button>
-                    <el-button type="primary" @click="moveExcel()">确 定</el-button>
-                    <el-button @click="moveStatus = false">取 消</el-button>
+                    </el-tree>
+                    <div slot="footer" style="text-align: right;padding-bottom: 20px">
+                        <el-button type="primary" @click="addFolderStatus = true" style="margin-right: 150px">+新建文件夹
+                        </el-button>
+                        <el-button type="primary" @click="moveExcel()">确 定</el-button>
+                        <el-button @click="moveStatus = false">取 消</el-button>
+                    </div>
                 </div>
-            </div>
-        </el-dialog>
-        <myMessage :messTit='messTit' @closeMessage="processDel" :centerDialogVisible="delVisible"
-                   v-if="delVisible"></myMessage>
-        <myMessageNew :messTit='oaTitle' @closeMessage="processOa" :centerDialogVisible="oaVisible"
-                   v-if="oaVisible" yesBtnName="是" noBtnName="否"></myMessageNew>
-    </div>
+            </el-dialog>
+            <myMessage :messTit='messTit' @closeMessage="processDel" :centerDialogVisible="delVisible"
+                       v-if="delVisible"></myMessage>
+            <myMessageNew :messTit='oaTitle' @closeMessage="processOa" :centerDialogVisible="oaVisible"
+                          v-if="oaVisible" yesBtnName="是" noBtnName="否"></myMessageNew>
+        </div>
     </fullscreen>
 </template>
 
@@ -256,9 +260,10 @@ export default {
             moveStatus: false,
             //移动文件夹tree相关
             nowMoveFolder: {},
-            shareLoading : false,
+            shareLoading: false,
             woNo: '',
             moveMenuList: [],
+            addShareType: 0,
         }
     },
     methods: {
@@ -380,8 +385,12 @@ export default {
             console.log('oa:' + this.oaType);
             console.log('share:' + shareType);
             //提交
+            var url = '/market/cOnlineExcel/saveExcelShare';
+            if (this.addShareType == '2') {
+                url = '/market/cOnlineExcel/addExcelShare';
+            }
             this.$http({
-                url: '/market/cOnlineExcel/saveExcelShare',
+                url: url,
                 method: "post",
                 headers: {
                     "Content-Type": "application/json",
@@ -426,14 +435,15 @@ export default {
             this.treeList = v;
         },
         //从excel页面调用来打开分享框
-        shareExcel(excelJson, editFrom, editTo, editStatus, excelName, excelId) {
-            console.log(excelJson, editFrom, editTo, editStatus, excelName, excelId);
+        shareExcel(excelJson, editFrom, editTo, editStatus, excelName, excelId, type) {
+            console.log(excelJson, editFrom, editTo, editStatus, excelName, excelId, type);
             this.excelJson = excelJson;
             this.editFrom = editFrom;
             this.editTo = editTo;
             this.editStatus = editStatus;
             this.excelName = excelName;
             this.excelId = excelId;
+            this.addShareType = type;
             this.shareStatus = true;
         },
         //从excel页面调用来关闭excel
@@ -716,7 +726,7 @@ export default {
             this.menuList = arr;
             //复制一份给移动文件夹用
             this.moveMenuList = [];
-            arr.map((o) =>{
+            arr.map((o) => {
                 if (o.type == '4') {
                     this.moveMenuList.push(o);
                 }
@@ -753,8 +763,9 @@ export default {
         window['backToExcelList'] = (rp) => {
             this.closeExcel(rp);
         }
-        window['shareExcel'] = (a, b, c, d, e, f) => {
-            this.shareExcel(a, b, c, d, e, f);
+        //方法里写了字母含义
+        window['shareExcel'] = (a, b, c, d, e, f, g) => {
+            this.shareExcel(a, b, c, d, e, f, g);
         }
     },
     name: "index"