Sfoglia il codice sorgente

基础数据检查表

zcy 4 anni fa
parent
commit
04bac6a7b4

+ 1 - 1
src/layout/components/Sidebar/Logo.vue

@@ -24,7 +24,7 @@ export default {
   },
   data() {
     return {
-      title: 'Vue Element Admin',
+      title: '供电生产管理系统',
       logo: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png'
     }
   }

+ 1 - 1
src/settings.js

@@ -1,5 +1,5 @@
 module.exports = {
-  title: 'Vue Element Admin',
+  title: '供电生产管理系统',
 
   /**
    * @type {boolean} true | false

+ 1 - 1
src/utils/get-page-title.js

@@ -1,6 +1,6 @@
 import defaultSettings from '@/settings'
 
-const title = defaultSettings.title || 'Vue Element Admin'
+const title = defaultSettings.title || '供电生产管理系统'
 
 export default function getPageTitle(pageTitle) {
   if (pageTitle) {

+ 41 - 43
src/views/basics/check/view/bl/CheckAndEditModel.vue

@@ -8,69 +8,51 @@
     @close="close"
   >
     <a-form-model ref="form" :label-col="labelCol" :wrapper-col="wrapperCol" :rules="validatorRules" :model="model">
-      <a-form-model-item label="支柱号" prop="zzh">
-        <a-input v-model="model.zzh" />
-      </a-form-model-item>
-      <a-form-model-item label="所属部门" prop="bm">
+      <a-form-model-item label="车间" prop="bm">
+        <a-tree-select
+          v-model="model.bm"
+          tree-default-expand-all
+          style="width: 100%"
+          :tree-data="treeData"
+          tree-checkable
+        />
       </a-form-model-item>
       <a-form-model-item label="线别" prop="xb">
-        <j-dict-select-tag
+        <j-list-select-tag
           v-model="model.xb"
-          dict-code="word_type"
+          dict-code="line"
         />
       </a-form-model-item>
       <a-form-model-item label="站场区间" prop="qj">
-        <j-dict-select-tag
+        <j-list-select-tag
           v-model="model.qj"
-          dict-code="word_type"
+          dict-code="station"
         />
       </a-form-model-item>
       <a-form-model-item label="行别" prop="hb">
         <j-dict-select-tag
-          type="radioButton"
           v-model="model.hb"
+          type="radioButton"
           dict-code="word_type"
         />
       </a-form-model-item>
+      <a-form-model-item label="支柱号" prop="zzh">
+        <a-input v-model="model.zzh" />
+      </a-form-model-item>
       <a-form-model-item label="公里标" prop="glb">
         <a-input v-model="model.glb" />
       </a-form-model-item>
-      <a-form-model-item label="支柱类型" prop="zzlx">
-        <j-dict-select-tag
-          v-model="model.zzlx"
-          dict-code="word_type"
-        />
-      </a-form-model-item>
-      <a-form-model-item label="支柱型号" prop="zzxh">
-        <j-dict-select-tag
-          v-model="model.zzxh"
-          dict-code="word_type"
-        />
-      </a-form-model-item>
-      <a-form-model-item label="支柱用途" prop="zzyt">
-        <j-dict-select-tag
-          v-model="model.zzyt"
-          dict-code="word_type"
-        />
-      </a-form-model-item>
-      <a-form-model-item label="材质" prop="cz">
-        <j-dict-select-tag
-          v-model="model.cz"
-          dict-code="word_type"
-        />
+      <a-form-model-item label="生产厂家" prop="sccj">
+        <a-input v-model="model.sccj" />
       </a-form-model-item>
-      <a-form-model-item label="直线/曲外/曲内" prop="zxqwqn">
-        <j-dict-select-tag
-          type="radioButton"
-          v-model="model.zxqwqn"
-          dict-code="word_type"
-        />
+      <a-form-model-item label="避雷器型号" prop="blqxh">
+        <a-input v-model="model.blqxh" />
       </a-form-model-item>
     </a-form-model>
   </j-modal>
 </template>
 <script>
-import { httpAction } from '@/api/request'
+  import {getAction, httpAction} from '@/api/request'
 import JModal from '@/components/JModal'
 export default {
   name: 'CheckAndEditModel',
@@ -79,6 +61,7 @@ export default {
   },
   data() {
     return {
+      treeData: [],
       labelCol: { span: 4 },
       wrapperCol: { span: 19 },
       dataSource: [],
@@ -87,18 +70,33 @@ export default {
       isCheck: false,
       model: {},
       validatorRules: {
-        name: [{ required: true, message: '请输入' }],
-        type: [{ required: true, message: '请选择' }]
+        bm: [{ required: true, message: '请输入' }],
+        xb: [{ required: true, message: '请选择' }],
+        qj: [{ required: true, message: '请选择' }],
+        hb: [{ required: true, message: '请选择' }],
+        zzh: [{ required: true, message: '请输入' }],
+        glb: [{ required: true, message: '请输入' }],
+        sccj: [{ required: true, message: '请输入' }]
       },
       url: {
-        add: '/business/catenary/bus/zzdzxx/add',
-        edit: '/business/catenary/bus/zzdzxx/update'
+        add: '/business/catenary/bus/blq/add',
+        edit: '/business/catenary/bus/blq/update',
+        tree: '/system/dept/treeSelect'
       }
     }
   },
   created() {
+    this.loadTree()
   },
   methods: {
+    loadTree() {
+      this.treeData = []
+      getAction(this.url.tree).then((res) => {
+        if (res.code === 200) {
+          this.treeData = res.data
+        }
+      })
+    },
     add() {
       this.model = {}
       this.visible = true

+ 1 - 1
src/views/basics/check/view/bl/index.vue

@@ -125,7 +125,7 @@ export default {
       // 表头
       columns: columns(this),
       url: {
-        list: '/business/catenary/bus/zzdzxx/list',
+        list: '/business/catenary/bus/blq/list',
         delete: '/business/catenary/bus/zzdzxx/',
         exportXlsUrl: '/exportXlsUrl',
         importExcelUrl: `${process.env.VUE_APP_BASE_API}/importExcelUrl`

+ 13 - 19
src/views/basics/check/view/bl/indexColumns.js

@@ -9,6 +9,12 @@ function columns(vm) {
         return parseInt(index) + 1
       }
     },
+    {
+      title: '车间',
+      align: 'center',
+      dataIndex: 'bm',
+      key: 'bm'
+    },
     {
       title: '线别',
       align: 'center',
@@ -16,17 +22,11 @@ function columns(vm) {
       key: 'xb'
     },
     {
-      title: '区间/站场',
+      title: '区间站场',
       align: 'center',
       dataIndex: 'qj',
       key: 'qj'
     },
-    {
-      title: '车间/工区',
-      align: 'center',
-      dataIndex: 'bm',
-      key: 'bm'
-    },
     {
       title: '行别',
       align: 'center',
@@ -46,22 +46,16 @@ function columns(vm) {
       key: 'glb'
     },
     {
-      title: '规格型号',
-      align: 'center',
-      dataIndex: 'zzxh',
-      key: 'zzxh'
-    },
-    {
-      title: '支柱类型',
+      title: '生产厂家',
       align: 'center',
-      dataIndex: 'zzlx',
-      key: 'zzlx'
+      dataIndex: 'sccj',
+      key: 'sccj'
     },
     {
-      title: '安装时间',
+      title: '型号',
       align: 'center',
-      dataIndex: 'ccrq',
-      key: 'ccrq'
+      dataIndex: 'blqxh',
+      key: 'blqxh'
     },
     {
       title: '操作',

+ 21 - 6
src/views/basics/check/view/dc/CheckAndEditModel.vue

@@ -8,10 +8,14 @@
     @close="close"
   >
     <a-form-model ref="form" :label-col="labelCol" :wrapper-col="wrapperCol" :rules="validatorRules" :model="model">
-      <a-form-model-item label="支柱号" prop="zzh">
-        <a-input v-model="model.zzh" />
-      </a-form-model-item>
-      <a-form-model-item label="所属部门" prop="bm">
+      <a-form-model-item label="车间" prop="bm">
+        <a-tree-select
+          v-model="model.bm"
+          tree-default-expand-all
+          style="width: 100%"
+          :tree-data="treeData"
+          tree-checkable
+        />
       </a-form-model-item>
       <a-form-model-item label="线别" prop="xb">
         <j-dict-select-tag
@@ -70,7 +74,7 @@
   </j-modal>
 </template>
 <script>
-import { httpAction } from '@/api/request'
+  import {getAction, httpAction} from '@/api/request'
 import JModal from '@/components/JModal'
 export default {
   name: 'CheckAndEditModel',
@@ -79,6 +83,7 @@ export default {
   },
   data() {
     return {
+      treeData: [],
       labelCol: { span: 4 },
       wrapperCol: { span: 19 },
       dataSource: [],
@@ -92,13 +97,23 @@ export default {
       },
       url: {
         add: '/business/catenary/bus/zzdzxx/add',
-        edit: '/business/catenary/bus/zzdzxx/update'
+        edit: '/business/catenary/bus/zzdzxx/update',
+        tree: '/system/dept/treeSelect'
       }
     }
   },
   created() {
+    this.loadTree()
   },
   methods: {
+    loadTree() {
+      this.treeData = []
+      getAction(this.url.tree).then((res) => {
+        if (res.code === 200) {
+          this.treeData = res.data
+        }
+      })
+    },
     add() {
       this.model = {}
       this.visible = true

+ 2 - 2
src/views/basics/check/view/dc/index.vue

@@ -125,8 +125,8 @@ export default {
       // 表头
       columns: columns(this),
       url: {
-        list: '/business/catenary/bus/zzdzxx/list',
-        delete: '/business/catenary/bus/zzdzxx/',
+        list: '/business/catenary/bus/jcb/dmcgyq/list',
+        delete: '/business/catenary/bus/jcb/dmcgyq/',
         exportXlsUrl: '/exportXlsUrl',
         importExcelUrl: `${process.env.VUE_APP_BASE_API}/importExcelUrl`
       }

+ 23 - 29
src/views/basics/check/view/dc/indexColumns.js

@@ -10,58 +10,52 @@ function columns(vm) {
       }
     },
     {
-      title: '线别',
+      title: '车间',
       align: 'center',
-      dataIndex: 'xb',
-      key: 'xb'
+      dataIndex: 'bm',
+      key: 'bm'
     },
     {
-      title: '区间/站场',
+      title: '线别',
       align: 'center',
-      dataIndex: 'qj',
-      key: 'qj'
+      dataIndex: 'xingbie',
+      key: 'xingbie'
     },
     {
-      title: '车间/工区',
+      title: '区间站场',
       align: 'center',
-      dataIndex: 'bm',
-      key: 'bm'
+      dataIndex: 'zhanqujian',
+      key: 'zhanqujian'
     },
     {
       title: '行别',
       align: 'center',
-      dataIndex: 'hb',
-      key: 'hb'
-    },
-    {
-      title: '支柱号',
-      align: 'center',
-      dataIndex: 'zzh',
-      key: 'zzh'
+      dataIndex: 'xingbie',
+      key: 'xingbie'
     },
     {
-      title: '公里标',
+      title: '分相名称',
       align: 'center',
-      dataIndex: 'glb',
-      key: 'glb'
+      dataIndex: 'fenxiang',
+      key: 'fenxiang'
     },
     {
-      title: '规格型号',
+      title: '支柱号范围',
       align: 'center',
-      dataIndex: 'zzxh',
-      key: 'zzxh'
+      dataIndex: 'zzhfw',
+      key: 'zzhfw'
     },
     {
-      title: '支柱类型',
+      title: '磁枕里程',
       align: 'center',
-      dataIndex: 'zzlx',
-      key: 'zzlx'
+      dataIndex: 'cdh',
+      key: 'cdh'
     },
     {
-      title: '安装时间',
+      title: '设备编号',
       align: 'center',
-      dataIndex: 'ccrq',
-      key: 'ccrq'
+      dataIndex: 'cdh',
+      key: 'cdh'
     },
     {
       title: '操作',

+ 39 - 44
src/views/basics/check/view/fd/CheckAndEditModel.vue

@@ -8,69 +8,48 @@
     @close="close"
   >
     <a-form-model ref="form" :label-col="labelCol" :wrapper-col="wrapperCol" :rules="validatorRules" :model="model">
-      <a-form-model-item label="支柱号" prop="zzh">
-        <a-input v-model="model.zzh" />
-      </a-form-model-item>
-      <a-form-model-item label="所属部门" prop="bm">
+      <a-form-model-item label="车间" prop="bm">
+        <a-tree-select
+          v-model="model.bm"
+          tree-default-expand-all
+          style="width: 100%"
+          :tree-data="treeData"
+          tree-checkable
+        />
       </a-form-model-item>
       <a-form-model-item label="线别" prop="xb">
-        <j-dict-select-tag
+        <j-list-select-tag
           v-model="model.xb"
-          dict-code="word_type"
+          dict-code="line"
         />
       </a-form-model-item>
       <a-form-model-item label="站场区间" prop="qj">
-        <j-dict-select-tag
+        <j-list-select-tag
           v-model="model.qj"
-          dict-code="word_type"
+          dict-code="station"
         />
       </a-form-model-item>
       <a-form-model-item label="行别" prop="hb">
         <j-dict-select-tag
-          type="radioButton"
           v-model="model.hb"
+          type="radioButton"
           dict-code="word_type"
         />
       </a-form-model-item>
+      <a-form-model-item label="支柱号范围" prop="zzhfw">
+        <a-input v-model="model.zzhfw" />
+      </a-form-model-item>
       <a-form-model-item label="公里标" prop="glb">
         <a-input v-model="model.glb" />
       </a-form-model-item>
-      <a-form-model-item label="支柱类型" prop="zzlx">
-        <j-dict-select-tag
-          v-model="model.zzlx"
-          dict-code="word_type"
-        />
-      </a-form-model-item>
-      <a-form-model-item label="支柱型号" prop="zzxh">
-        <j-dict-select-tag
-          v-model="model.zzxh"
-          dict-code="word_type"
-        />
-      </a-form-model-item>
-      <a-form-model-item label="支柱用途" prop="zzyt">
-        <j-dict-select-tag
-          v-model="model.zzyt"
-          dict-code="word_type"
-        />
-      </a-form-model-item>
-      <a-form-model-item label="材质" prop="cz">
-        <j-dict-select-tag
-          v-model="model.cz"
-          dict-code="word_type"
-        />
-      </a-form-model-item>
-      <a-form-model-item label="直线/曲外/曲内" prop="zxqwqn">
-        <j-dict-select-tag
-          type="radioButton"
-          v-model="model.zxqwqn"
-          dict-code="word_type"
-        />
+      <a-form-model-item label="道岔号" prop="cdh">
+        <a-input v-model="model.cdh" />
       </a-form-model-item>
     </a-form-model>
   </j-modal>
 </template>
 <script>
-import { httpAction } from '@/api/request'
+import { getAction, httpAction } from '@/api/request'
 import JModal from '@/components/JModal'
 export default {
   name: 'CheckAndEditModel',
@@ -79,6 +58,7 @@ export default {
   },
   data() {
     return {
+      treeData: [],
       labelCol: { span: 4 },
       wrapperCol: { span: 19 },
       dataSource: [],
@@ -87,18 +67,33 @@ export default {
       isCheck: false,
       model: {},
       validatorRules: {
-        name: [{ required: true, message: '请输入' }],
-        type: [{ required: true, message: '请选择' }]
+        bm: [{ required: true, message: '请输入' }],
+        xb: [{ required: true, message: '请选择' }],
+        qj: [{ required: true, message: '请选择' }],
+        hb: [{ required: true, message: '请选择' }],
+        zzhfw: [{ required: true, message: '请输入' }],
+        glb: [{ required: true, message: '请输入' }],
+        cdh: [{ required: true, message: '请输入' }]
       },
       url: {
-        add: '/business/catenary/bus/zzdzxx/add',
-        edit: '/business/catenary/bus/zzdzxx/update'
+        add: '/business/catenary/bus/fdfxjyq/add',
+        edit: '/business/catenary/bus/fdfxjyq/update',
+        tree: '/system/dept/treeSelect'
       }
     }
   },
   created() {
+    this.loadTree()
   },
   methods: {
+    loadTree() {
+      this.treeData = []
+      getAction(this.url.tree).then((res) => {
+        if (res.code === 200) {
+          this.treeData = res.data
+        }
+      })
+    },
     add() {
       this.model = {}
       this.visible = true

+ 2 - 2
src/views/basics/check/view/fd/index.vue

@@ -125,8 +125,8 @@ export default {
       // 表头
       columns: columns(this),
       url: {
-        list: '/business/catenary/bus/zzdzxx/list',
-        delete: '/business/catenary/bus/zzdzxx/',
+        list: '/business/catenary/bus/fdfxjyq/list',
+        delete: '​/business​/catenary​/bus​/fdfxjyq​/',
         exportXlsUrl: '/exportXlsUrl',
         importExcelUrl: `${process.env.VUE_APP_BASE_API}/importExcelUrl`
       }

+ 13 - 25
src/views/basics/check/view/fd/indexColumns.js

@@ -9,6 +9,12 @@ function columns(vm) {
         return parseInt(index) + 1
       }
     },
+    {
+      title: '车间',
+      align: 'center',
+      dataIndex: 'bm',
+      key: 'bm'
+    },
     {
       title: '线别',
       align: 'center',
@@ -16,17 +22,11 @@ function columns(vm) {
       key: 'xb'
     },
     {
-      title: '区间/站场',
+      title: '区间站场',
       align: 'center',
       dataIndex: 'qj',
       key: 'qj'
     },
-    {
-      title: '车间/工区',
-      align: 'center',
-      dataIndex: 'bm',
-      key: 'bm'
-    },
     {
       title: '行别',
       align: 'center',
@@ -34,10 +34,10 @@ function columns(vm) {
       key: 'hb'
     },
     {
-      title: '支柱号',
+      title: '支柱号范围',
       align: 'center',
-      dataIndex: 'zzh',
-      key: 'zzh'
+      dataIndex: 'zzhfw',
+      key: 'zzhfw'
     },
     {
       title: '公里标',
@@ -46,22 +46,10 @@ function columns(vm) {
       key: 'glb'
     },
     {
-      title: '规格型号',
-      align: 'center',
-      dataIndex: 'zzxh',
-      key: 'zzxh'
-    },
-    {
-      title: '支柱类型',
-      align: 'center',
-      dataIndex: 'zzlx',
-      key: 'zzlx'
-    },
-    {
-      title: '安装时间',
+      title: '道岔号',
       align: 'center',
-      dataIndex: 'ccrq',
-      key: 'ccrq'
+      dataIndex: 'cdh',
+      key: 'cdh'
     },
     {
       title: '操作',

+ 2 - 2
src/views/basics/check/view/gl/index.vue

@@ -125,8 +125,8 @@ export default {
       // 表头
       columns: columns(this),
       url: {
-        list: '/business/catenary/bus/zzdzxx/list',
-        delete: '/business/catenary/bus/zzdzxx/',
+        list: '/business/catenary/bus/jcb/glkg/list',
+        delete: '/business/catenary/bus/jcb/glkg/',
         exportXlsUrl: '/exportXlsUrl',
         importExcelUrl: `${process.env.VUE_APP_BASE_API}/importExcelUrl`
       }

+ 2 - 2
src/views/basics/check/view/jc/index.vue

@@ -125,8 +125,8 @@ export default {
       // 表头
       columns: columns(this),
       url: {
-        list: '/business/catenary/bus/zzdzxx/list',
-        delete: '/business/catenary/bus/zzdzxx/',
+        list: '/business/catenary/bus/jcb/jcxc/list',
+        delete: '/business/catenary/bus/jcb/jcxc/',
         exportXlsUrl: '/exportXlsUrl',
         importExcelUrl: `${process.env.VUE_APP_BASE_API}/importExcelUrl`
       }

+ 2 - 2
src/views/basics/check/view/wjc/index.vue

@@ -125,8 +125,8 @@ export default {
       // 表头
       columns: columns(this),
       url: {
-        list: '/business/catenary/bus/zzdzxx/list',
-        delete: '/business/catenary/bus/zzdzxx/',
+        list: '/business/catenary/bus/jcb/wjcxc/list',
+        delete: '/business/catenary/bus/jcb/wjcxc/',
         exportXlsUrl: '/exportXlsUrl',
         importExcelUrl: `${process.env.VUE_APP_BASE_API}/importExcelUrl`
       }

+ 0 - 3
src/views/dashboard/index.vue

@@ -2,13 +2,11 @@
   <div class="dashboard-container">
     <div class="dashboard-text">name: {{ user.nickName }}</div>
     <el-button v-permission="['system:user:resetPwd']">默认按钮</el-button>
-    <el-button v-if="checkPermission(['system:user:resetPwd'])" type="primary">主要按钮</el-button>
   </div>
 </template>
 
 <script>
 import { mapGetters } from 'vuex'
-import checkPermission from '@/utils/permission.js' // 权限判断函数
 
 export default {
   name: 'Dashboard',
@@ -18,7 +16,6 @@ export default {
     ])
   },
   methods: {
-    checkPermission
   }
 }
 </script>