gaosp
2024-01-27 5f7e02ac64ce8d1d9b673b04acaf13d56821d05e
update
已修改6个文件
56 ■■■■■ 文件已修改
src/container/deviceType/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/ledger/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/list/index.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/machineList/index.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/maintenance/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/styles/index.scss 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/container/deviceType/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-06 17:40:19
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-23 21:49:38
 * @LastEditTime: 2024-01-27 16:24:57
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/deviceType/index.vue
-->
<template>
@@ -23,7 +23,7 @@
            </template>
            
            <template slot="table-tool">
                <el-button type="primary" size="mini" style="width: 150px;" @click="add">添加设备类型</el-button>
                <el-button type="primary" size="mini" style="width: 150px;" @click="add">新增设备类型</el-button>
            </template>
            
            <template slot="columns">
src/container/ledger/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-06 17:40:19
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-23 21:48:22
 * @LastEditTime: 2024-01-27 16:24:56
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/ledger/index.vue
-->
<template>
@@ -78,7 +78,7 @@
            </template>
            <template slot="table-tool">
                <el-button type="primary" size="mini" @click="add">添加设备台账</el-button>
                <el-button type="primary" size="mini" @click="add">新增设备台账</el-button>
            </template>
            <template slot="columns">
                <!-- <el-table-column type="selection" align="center" width="55">
src/container/list/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-06 17:40:19
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-23 19:04:07
 * @LastEditTime: 2024-01-27 16:39:04
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/list/index.vue
-->
<template>
@@ -34,6 +34,9 @@
            </el-table>
            <div v-if="total" class="pagination">
                <el-pagination
                @current-change="currentChange"
                @prev-click="currentChange"
                @next-click="currentChange"
                style="background: transparent;"
                :page-size="pageSize"
                :current-page="current"
@@ -58,19 +61,25 @@
                pageSize: 10,
                current: 1,
                total: 0,
                loading: false
                loading: false,
                params: {}
            }
        },
        created () {
            this.pageQuery()
        },
        methods: {
            currentChange (e) {
                this.current = e
                this.pageQuery()
            },
            pageQuery(params) {
                if (params) this.params = params
                this.loading = true
                this.$http.postJson(this.url,{
                    ...this.params,
                    pageSize: this.pageSize,
                    current: this.current,
                    ...params
                }).then(res => {
                    console.log(res)
                    this.tableData = res.data.records || []
@@ -131,20 +140,6 @@
                background-color: #182D54!important;
            }
            // .el-table__header {
            //     color: #E6E5E5;
            //     background: transparent;
            //     background-color: transparent;
            //     border-bottom: none;
            //     padding: 0;
            // }
            // .el-table__body-wrapper {
            //     color: #E6E5E5;
            //     background: transparent;
            //     background-color: transparent;
            //     border-bottom: none;
            //     padding: 0;
            // }
            .el-table__header-wrapper {
                border: none;
                border-bottom: none;
@@ -157,6 +152,7 @@
        .el-pager li {
            background: transparent;
        }
        .el-pagination button:disabled {
            background: transparent;
        }
src/container/machineList/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-06 17:40:19
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-23 21:50:06
 * @LastEditTime: 2024-01-27 16:27:27
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/machineList/index.vue
-->
<template>
@@ -44,7 +44,7 @@
            </template>
            <!--
            <template slot="table-tool">
                <el-button type="primary" size="mini" @click="add">添加设备类型</el-button>
                <el-button type="primary" size="mini" @click="add">新增设备类型</el-button>
            </template>
            -->
            <template slot="columns">
@@ -88,6 +88,11 @@
                    prop="shiftType"
                    label="班制"
                    width="180">
                    <template slot-scope="scope">
                        <span v-if="scope.row.shiftType == 1">1班</span>
                        <span v-else-if="scope.row.shiftType == 2">2班</span>
                        <span v-else-if="scope.row.shiftType == 3">3班</span>
                    </template>
                </el-table-column>
                <el-table-column
                    prop="port"
src/container/maintenance/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-06 17:40:19
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-23 21:50:15
 * @LastEditTime: 2024-01-27 16:24:53
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/maintenance/index.vue
-->
<template>
@@ -57,7 +57,7 @@
                </div>
            </template>
            <template slot="table-tool">
                <el-button type="primary" size="mini" style="width: 150px;" @click="addDevice(1)">添加</el-button>
                <el-button type="primary" size="mini" style="width: 150px;" @click="addDevice(1)">新增</el-button>
            </template>
            <template slot="columns">
                <!-- <el-table-column
src/styles/index.scss
@@ -183,6 +183,10 @@
    color: #FFF;
    background: linear-gradient(180deg, #00FFFF 0%, #008CFF 100%);
  }
  .el-pager li {
    color: #FFF;
    background: rgba(255,255,255,0.2);
  }
}
.nav-top {
  position: relative;
@@ -200,3 +204,4 @@
  transform: translateY(-50%);
  background: #4DC3FF;
}