Sfoglia il codice sorgente

feature:家装调整

chenqilong 2 anni fa
parent
commit
bf38df0279

+ 12 - 2
src/views/commercialEngineering/components/loginSuccess.vue

@@ -9,7 +9,7 @@
     :modal-append-to-body="false"
     :append-to-body="true"
   >
-    <div v-if="showDialog" style="height:60vh">
+    <div v-if="showDialog" style="height: 60vh">
       <template-page
         :pofx="true"
         ref="pageRefTable"
@@ -31,6 +31,8 @@
 <script>
 import TemplatePage from '@/components/template/template-page-1.vue'
 import { getLoginHomeDecorationList } from '@/api/homeDecoration'
+import { getLoginCrossDistrictList } from '@/api/crossDistrict'
+import { getLoginFrockList } from '@/api/frock'
 export default {
   mixins: [],
   components: { TemplatePage },
@@ -95,7 +97,15 @@ export default {
     getList(...p) {
       this.recordSelected = []
       p[0].params = [...p[0].params, { param: 'a.order_status', compare: '=', value: 'OK' }]
-      return getLoginHomeDecorationList(...p)
+      if (this.pageType === 'home') {
+        return getLoginHomeDecorationList(...p)
+      }
+      if (this.pageType === 'cross') {
+        return getLoginCrossDistrictList(...p)
+      }
+      if (this.pageType === 'frock') {
+        return getLoginFrockList(...p)
+      }
     },
     cancel() {
       this.$emit('cancel')