linwenxin 1 år sedan
förälder
incheckning
ddedc10b89
3 ändrade filer med 0 tillägg och 81 borttagningar
  1. 0 5
      package-lock.json
  2. 0 1
      package.json
  3. 0 75
      src/components/fileOnlineView/index.vue

+ 0 - 5
package-lock.json

@@ -3927,11 +3927,6 @@
       "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==",
       "dev": true
     },
-    "@vue-office/excel": {
-      "version": "1.3.0",
-      "resolved": "https://registry.npmmirror.com/@vue-office/excel/-/excel-1.3.0.tgz",
-      "integrity": "sha512-YWtZkMZfPSWfoW7IDcf+gU70AJlJ05vCSN5yT+Tl9WLJBwNvSIgS2U46nzNvIDqRGbc7k/jWpZHg2pED3UBAKg=="
-    },
     "@vue/babel-helper-vue-jsx-merge-props": {
       "version": "1.2.1",
       "resolved": "https://registry.npmmirror.com/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.2.1.tgz",

+ 0 - 1
package.json

@@ -17,7 +17,6 @@
   "dependencies": {
     "@jiaminghi/data-view": "^2.10.0",
     "@turf/turf": "^6.5.0",
-    "@vue-office/excel": "^1.3.0",
     "@vue/composition-api": "^1.7.1",
     "@zjlib/element-plugins": "^2.14.1",
     "@zjlib/element-ui2": "^1.0.3",

+ 0 - 75
src/components/fileOnlineView/index.vue

@@ -1,75 +0,0 @@
-<template>
-  <div class="fileOnlineView">
-    <el-dialog
-      title="文件在线预览"
-      :show-close="true"
-      :modal="false"
-      :append-to-body="false"
-      :destroy-on-close="true"
-      :before-close="closeMapDispatch"
-      :visible.sync="mapDispatchDialog"
-    >
-      <div style="width: 100%; height: 100%" id="handout_wrap_inner">
-        <vue-office-excel :src="value" @rendered="rendered" />
-      </div>
-    </el-dialog>
-  </div>
-</template>
-
-<script>
-import VueOfficeExcel from '@vue-office/excel'
-import '@vue-office/excel/lib/index.css'
-export default {
-  components: {
-    VueOfficeExcel
-  },
-  props: {
-    value: {
-      type: String,
-      default: ''
-    }
-  },
-  data() {
-    return {
-      excel: '',
-      mapDispatchDialog: false
-    }
-  },
-  watch: {
-    value(newVal) {
-      this.$nextTick(() => {
-        this.mapDispatchDialog = newVal ? true : false
-      })
-    }
-  },
-  methods: {
-    rendered() {
-      console.log('渲染完成')
-    },
-    closeMapDispatch() {
-      this.$emit('input', '')
-    }
-  }
-}
-</script>
-
-<style lang="scss">
-.fileOnlineView {
-  .el-dialog__wrapper {
-    width: 100% !important;
-    height: 100% !important;
-    position: absolute !important;
-  }
-  .el-dialog {
-    margin: 0 !important;
-    width: 100%;
-    height: 100%;
-  }
-  .el-dialog__body {
-    padding: 0 !important;
-    width: 100%;
-    height: calc(100% - 58px);
-    position: relative;
-  }
-}
-</style>