Browse Source

文件上传去主应用

yusheng 11 months ago
parent
commit
05aaf84d4c

+ 2 - 4
src/main.js

@@ -59,10 +59,8 @@ Vue.use(VueClipboard);
 let instance = null;
 
 function render(props = {}) {
-  const {
-    container,
-    routerBase
-  } = props;
+  const { container, routerBase, fileMain } = props;
+  Vue.component('fileMain', fileMain);
   // const router = new VueRouter({
   //   base: window.__POWERED_BY_QIANKUN__ ? routerBase : process.env.BASE_URL,
   //   mode: 'history',

+ 4 - 4
src/views/cuttingPlan/components/producePlan.vue

@@ -231,7 +231,7 @@
               </template>
 
               <template v-slot:imgUrl="{ row }">
-                <fileUpload
+                <fileMain
                   v-model="row.imgUrl"
                   module="main"
                   :showLib="false"
@@ -241,7 +241,7 @@
               </template>
 
               <template v-slot:files="{ row }">
-                <fileUpload
+                <fileMain
                   v-model="row.files"
                   module="main"
                   :showLib="false"
@@ -304,7 +304,7 @@
     getById
   } from '@/api/materialPlan/index';
   import ProductionVersion from '@/components/CreatePlan/ProductionVersion2.vue';
-  import fileUpload from '@/components/addDoc/index.vue';
+  // import fileUpload from '@/components/addDoc/index.vue';
   import timeDialog from './timeDialog';
   import dictMixins from '@/mixins/dictMixins';
   export default {
@@ -312,7 +312,7 @@
       produceOrder,
       ProductModal,
       ProductionVersion,
-      fileUpload,
+      // fileUpload,
       timeDialog
     },
     mixins: [dictMixins],

+ 4 - 4
src/views/materialPlan/components/plan-edit-dialog.vue

@@ -276,7 +276,7 @@
               </template>
 
               <template v-slot:imgUrl="{ row }">
-                <fileUpload
+                <fileMain
                   v-model="row.imgUrl"
                   module="main"
                   :showLib="false"
@@ -286,7 +286,7 @@
               </template>
 
               <template v-slot:files="{ row }">
-                <fileUpload
+                <fileMain
                   v-model="row.files"
                   module="main"
                   :showLib="false"
@@ -404,7 +404,7 @@
 
   import { getCode } from '@/api/codeManagement';
 
-  import fileUpload from '@/components/addDoc/index.vue';
+  // import fileUpload from '@/components/addDoc/index.vue';
   import timeDialog from './timeDialog.vue';
   import dictMixins from '@/mixins/dictMixins';
   export default {
@@ -412,7 +412,7 @@
       saleOrderPop,
       ProductModal,
       ProductionVersion,
-      fileUpload,
+      // fileUpload,
       timeDialog
     },
     mixins: [dictMixins],

+ 4 - 4
src/views/materialPlan/components/producePlan.vue

@@ -324,7 +324,7 @@
               </template>
 
               <template v-slot:imgUrl="{ row }">
-                <fileUpload
+                <fileMain
                   v-model="row.imgUrl"
                   module="main"
                   :showLib="false"
@@ -334,7 +334,7 @@
               </template>
 
               <template v-slot:files="{ row }">
-                <fileUpload
+                <fileMain
                   v-model="row.files"
                   module="main"
                   :showLib="false"
@@ -452,7 +452,7 @@
     getById
   } from '@/api/materialPlan/index';
   import ProductionVersion from '@/components/CreatePlan/ProductionVersion2.vue';
-  import fileUpload from '@/components/addDoc/index.vue';
+  // import fileUpload from '@/components/addDoc/index.vue';
   import timeDialog from './timeDialog';
   import dictMixins from '@/mixins/dictMixins';
 
@@ -462,7 +462,7 @@
       produceOrder,
       ProductModal,
       ProductionVersion,
-      fileUpload,
+      // fileUpload,
       timeDialog
     },
     mixins: [dictMixins],