Bläddra i källkod

fix: build 脚本的改变

lvkun 2 år sedan
förälder
incheckning
1baa3693d3
4 ändrade filer med 15 tillägg och 81 borttagningar
  1. 1 1
      plugins/build.js
  2. 8 8
      src/components/TableProV2/index.tsx
  3. 2 2
      src/pages/cvs/video/space.vue
  4. 4 70
      src/router/index.ts

+ 1 - 1
plugins/build.js

@@ -11,7 +11,7 @@ const rootPath = join(__dirname, '..')
 const file = fs.readFileSync(resolve(rootPath, 'src/router/index.ts'), 'utf8')
 
 const r = file.replace(
-  'const _routes = [iot, rts, schedule, view, lowcode, user, login]',
+  'const _routes = [iot, schedule, view, lowcode, user, login]',
   `const _routes = [${args.map((arg, index) => index > 0 ? ` ${arg}` : arg)}]`
 )
 

+ 8 - 8
src/components/TableProV2/index.tsx

@@ -90,7 +90,7 @@ const TablePro: FunctionalComponent<Props> = (props) => {
   return (
       <>
 
-        <Row gutter={[8, 8]}>
+        <Row gutter={[8, 8]} style={{ width: '100%' }} >
           <Col span={12} >
             {/* <solt name="search" ></solt> */}
           </Col>
@@ -104,11 +104,11 @@ const TablePro: FunctionalComponent<Props> = (props) => {
                   overlay={
                   <Menu>
                     {
-                      // rowCustomized.value.map((item, index) => (
-                      //   <Menu.item key={item.key} onClick={() => swicthColumn(index)} >
-                      //     {item.title}
-                      //   </Menu.item>
-                      // ))
+                      rowCustomized.value.map((item, index) => (
+                        <Menu.item key={item.key} onClick={() => swicthColumn(index)} >
+                          {item.title}
+                        </Menu.item>
+                      ))
                     }
                   </Menu>}
                 >
@@ -128,14 +128,14 @@ const TablePro: FunctionalComponent<Props> = (props) => {
           </Col>
         </Row>
         {/*       dataSource={dataSource} */}
-        {/* <Table
+        <Table
           columns={columnsFilter.value}
           loading={loading.value}
           pagination={typeof props.pagination === 'boolean' ? false : pagination}
         >
           <slot></slot>
           <slot name='action'></slot>
-        </Table> */}
+        </Table>
       </>
   )
 }

+ 2 - 2
src/pages/cvs/video/space.vue

@@ -5,13 +5,13 @@
     <a-col><a-button type="primary"  @click="openModal">创建空间</a-button></a-col>
   </a-row>
 
-  <StepModal
+  <!-- <StepModal
     :step="step"
     :steps="steps"
     :visible="visible"
   >
     7788
-  </StepModal>
+  </StepModal> -->
 </a-card>
 </template>
 <script lang='ts' setup >

+ 4 - 70
src/router/index.ts

@@ -207,73 +207,6 @@ const iot = {
   ]
 }
 
-const rts = {
-  path: '/rts',
-  name: '视联网',
-  meta: {
-    title: '视联网'
-  },
-  component: () => import('@/layout/layout.vue'),
-  redirect: '/stream',
-  children: [
-    {
-      path: '/stream',
-      name: '视频流管理',
-      icon: 'PlayCircleOutlined',
-      component: () => import('@/pages/rts/stream/index.vue')
-    },
-    {
-      path: '/pull',
-      name: '拉流管理',
-      icon: 'FallOutlined',
-      component: () => import('@/pages/rts/pull/index.vue')
-    },
-    {
-      path: '/push',
-      name: '推流管理',
-      icon: 'RiseOutlined',
-      component: () => import('@/pages/rts/push/index.vue')
-    },
-    {
-      path: '/record',
-      name: '存储配置',
-      icon: 'FileAddOutlined',
-      component: () => import('@/pages/rts/record/index.vue')
-    },
-    {
-      path: '/gb28181',
-      name: '国标设备',
-      icon: 'CameraOutlined',
-      redirect: '/gb28181/index',
-      children: [
-        {
-          path: '/gb28181/index',
-          name: '所有国标设备',
-          component: () => import('@/pages/rts/gb28181/index.vue')
-        },
-        {
-          path: '/gb28181/record',
-          name: '设备录像',
-          hidden: true,
-          component: () => import('@/pages/rts/gb28181/record.vue')
-        }
-      ]
-    },
-    {
-      path: '/protocol',
-      name: '协议配置',
-      icon: 'DeploymentUnitOutlined',
-      component: () => import('@/pages/rts/protocol/index.vue')
-    },
-    {
-      path: '/monitor',
-      name: '系统监控',
-      icon: 'ProfileOutlined',
-      component: () => import('@/pages/rts/monitor/index.vue')
-    }
-  ]
-}
-
 const schedule = {
   path: '/schedule',
   name: '数据中台',
@@ -381,9 +314,9 @@ const login = {
 
 const cvs = {
   path: '/cvs',
-  name: 'cvs',
+  name: '视联网',
   meta: {
-    title: 'cvs'
+    title: '视联网'
   },
   component: () => import('@/layout/layout.vue'),
   redirect: '/cvs/video/space',
@@ -472,6 +405,7 @@ const cvs = {
     }
   ]
 }
+
 // }HQDZKE6BBJCJB0412
 
 const demo = {
@@ -481,7 +415,7 @@ const demo = {
   component: () => import('@/pages/demo/index.vue')
 }
 
-const _routes = [iot, rts, schedule, view, lowcode, user, cvs] as any
+const _routes = [iot, schedule, view, lowcode, user, cvs] as any
 
 if (_routes[0].link) {
   window.open(_routes[0].path)