yangbifan před 2 roky
rodič
revize
73ed889dff
1 změnil soubory, kde provedl 51 přidání a 11 odebrání
  1. 51 11
      src/pages/main/onlineOffice/index.vue

+ 51 - 11
src/pages/main/onlineOffice/index.vue

@@ -1,38 +1,36 @@
 <template>
     <div>
+    <el-button>新建</el-button>
+    <fromList :list="firstTable" />
+    </div>
+
+    <!-- <div>
         <myUpload @uploadBack="uploadBack" :fileInfo="fileInfo" :fileList="fileInfo.fileList">
         </myUpload>
         <div id="DocEditor">
             <onlyoffice-editor editorId="DocEditor" :src="src" :config="config" @ready="onReady" />
-            <!-- <DocumentEditor id="docEditor" :documentServerUrl="src" :config="config"/> -->
         </div>
 
-    </div>
+    </div> -->
 </template>
 
 <script>
-
+import fromList from '../../../../src/components/el-form.vue'
 import { DocumentEditor } from "@onlyoffice/document-editor-vue";
-// import { onlyofficeEditor } from "@onlyoffice/document-editor-vue"
 import myUpload from '../../../components/upload'
 export default {
     name: 'ExampleComponent',
     components: {
         DocumentEditor,
         myUpload,
+        fromList
         // DocumentEditor
 
     },
     data() {
-        let _this = this;
         return {
-            
-            url: '',
-
             src: 'http://192.168.2.221:7778/web-apps/apps/api/documents/api.js',
-
             config: {
-
                 documentType: 'cell',
                 document: {
                     fileType: "xlsx",
@@ -40,7 +38,6 @@ export default {
                     title: "后评估模板.xlsx",
                     url: "http://192.168.2.124:7779/api/file/download?id=e07e63993f3aaa920cbed74d8fc15794"
                 },
-     
                 editorConfig: {
                     user: {
                         id: "78e1e841",
@@ -54,6 +51,49 @@ export default {
                 url: '/aps/api/file/upload',
                 fileList: []
             },
+            firstTable: {
+                name: "first",
+                titledata: [
+                    {
+                        label: "名称",
+                        prop: "proposerTime",
+                        width: 400,
+                    },
+                    {
+                        label: "所有者",
+                        prop: "predealman",
+                        width: 400,
+                    },
+                    {
+                        label: "最近查看",
+                        prop: "taskName",
+                        width: 400,
+                    },
+                ], //表格头
+                data: [], //内容数据
+                loading: true,
+                pageData: {
+                    total: 100, // 总条数
+                    pageSize: 10, // 每页数量
+                    pageNum: 1, // 页码
+                },
+                isSelection: true, // 表格有多选时设置
+                isOperation: false, // 表格有操作列时设置
+                isIndex: false, // 列表序号
+                operation: {
+                    // 表格有操作列时设置
+                    label: "操作", // 列名
+                    width: "50", // 根据实际情况给宽度
+                    data: [
+                        {
+                            label: "操作", // 操作名称
+                            type: "", //按钮类型
+                            handleRow: (e, r, o) => {
+                            }, // 自定义事件
+                        },
+                    ],
+                },
+            },
         }
     },
     mounted() {