yunxing 4 năm trước cách đây
mục cha
commit
17175b6526
1 tập tin đã thay đổi với 7 bổ sung16 xóa
  1. 7 16
      src/views/equipmentFacilities/MainEquipmentDetail.vue

+ 7 - 16
src/views/equipmentFacilities/MainEquipmentDetail.vue

@@ -104,7 +104,6 @@ export default {
         return {
             title: '',
             // 查询下拉菜单,主列表使用
-            major: '', //系统
             type_code: '', //自定义分类内码
             brand: '', //品牌
             classstructureid: '', //设备分类
@@ -140,24 +139,19 @@ export default {
     components: {},
     created() {
         // 从路由中获取参数
-
-        // title, 标题 高压进线柜(4)
-
-        // major,  暖通 等
-
         //  brand,   品牌如果没有传递‘--’
         //  classstructureid, 设备分类
         //  manufacturer, 生产厂商  如果没有传递‘--’
         // sbxh,    设备类型  如果没有传递‘--’
         // type_code    自定义分类内码
-        let { title, major, type_code, brand, classstructureid, manufacturer, sbxh } = this.$route.params
-        this.title = title || '高压进线柜(4)'
-        this.major = major || '暖通'
-        this.type_code = type_code || 'nt023'
+        // TODO: 参数修改
+        let { type_code, brand, classstructureid, manufacturer, sbxh } = this.$route.params
+        this.title = '高压进线柜(4)'
+        this.type_code = type_code || 'nt011'
         this.brand = brand || '--'
-        this.classstructureid = classstructureid || '1714'
-        this.manufacturer = manufacturer || '深圳麦克威尔空调制冷有限公司'
-        this.sbxh = sbxh || '050A'
+        this.classstructureid = classstructureid || '1700'
+        this.manufacturer = manufacturer || '开利空调销售服务(上海)有限公司'
+        this.sbxh = sbxh || '19XR-50514QELCH52'
 
         // 设置 筛选抽屉中的 楼层
         let floorList = [{ code: '全部', gcname: '全部', gcode: '全部', gname: '全部', seq: null, active: 'active' }]
@@ -178,11 +172,9 @@ export default {
          */
         async getOptions() {
             let data = {
-                major: this.major,
                 plazaId: this.plazaId,
                 onlyMainAsset: true,
             }
-            // TODO: type_code
             let postParams = [{ columnName: { sbglgs: 'sbglgs' }, params: { type_code: this.type_code }, tableName: 'sms_asset' }]
             let res = await queryOptions({ data, postParams })
             if (!res?.data?.data) {
@@ -241,7 +233,6 @@ export default {
         async getList() {
             let queryData = {
                 data: {
-                    major: this.major,
                     plazaId: this.plazaId,
                     page: this.page,
                     size: this.size,