| | |
| | | "license": "MIT", |
| | | "dependencies": { |
| | | "axios": "0.17.1", |
| | | "dayjs": "^1.11.10", |
| | | "element-ui": "^2.15.14", |
| | | "expres": "0.0.5", |
| | | "glob": "^7.1.6", |
| | |
| | | "dependencies": { |
| | | "anymatch": "~3.1.2", |
| | | "braces": "~3.0.2", |
| | | "fsevents": "~2.3.2", |
| | | "glob-parent": "~5.1.2", |
| | | "is-binary-path": "~2.1.0", |
| | | "is-glob": "~4.0.1", |
| | |
| | | "engines": { |
| | | "node": ">=0.10" |
| | | } |
| | | }, |
| | | "node_modules/dayjs": { |
| | | "version": "1.11.10", |
| | | "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz", |
| | | "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==" |
| | | }, |
| | | "node_modules/de-indent": { |
| | | "version": "1.0.2", |
| | |
| | | "integrity": "sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==", |
| | | "dev": true, |
| | | "dependencies": { |
| | | "chokidar": "^3.4.1", |
| | | "graceful-fs": "^4.1.2", |
| | | "neo-async": "^2.5.0" |
| | | "neo-async": "^2.5.0", |
| | | "watchpack-chokidar2": "^2.0.1" |
| | | }, |
| | | "optionalDependencies": { |
| | | "chokidar": "^3.4.1", |
| | |
| | | "anymatch": "^2.0.0", |
| | | "async-each": "^1.0.1", |
| | | "braces": "^2.3.2", |
| | | "fsevents": "^1.2.7", |
| | | "glob-parent": "^3.1.0", |
| | | "inherits": "^2.0.3", |
| | | "is-binary-path": "^1.0.0", |
| | |
| | | "dependencies": { |
| | | "anymatch": "^1.3.0", |
| | | "async-each": "^1.0.0", |
| | | "fsevents": "^1.0.0", |
| | | "glob-parent": "^2.0.0", |
| | | "inherits": "^2.0.1", |
| | | "is-binary-path": "^1.0.0", |
| | |
| | | "dev": true, |
| | | "dependencies": { |
| | | "source-map": "~0.5.1", |
| | | "uglify-to-browserify": "~1.0.0", |
| | | "yargs": "~3.10.0" |
| | | }, |
| | | "bin": { |
| | |
| | | "assert-plus": "^1.0.0" |
| | | } |
| | | }, |
| | | "dayjs": { |
| | | "version": "1.11.10", |
| | | "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz", |
| | | "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==" |
| | | }, |
| | | "de-indent": { |
| | | "version": "1.0.2", |
| | | "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", |
| | |
| | | }, |
| | | "dependencies": { |
| | | "axios": "0.17.1", |
| | | "dayjs": "^1.11.10", |
| | | "element-ui": "^2.15.14", |
| | | "expres": "0.0.5", |
| | | "glob": "^7.1.6", |
| | |
| | | <!-- |
| | | * @Date: 2024-01-04 19:40:32 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-04 20:45:45 |
| | | * @FilePath: /belleson-frontend/Users/mache/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/650b28d71b3acf9feb5c2af6da2686eb/Message/MessageTemp/650b28d71b3acf9feb5c2af6da2686eb/File/mdc-portal/src/components/home/index.vue |
| | | * @LastEditTime: 2024-01-23 18:38:18 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/components/home/index.vue |
| | | --> |
| | | <template> |
| | | <div class="home"> |
| | |
| | | <div class="menu"> |
| | | <slot name="menu"></slot> |
| | | </div> |
| | | |
| | | <p class="time">{{time1}}<span>{{time2}}</span></p> |
| | | </div> |
| | | <div class="content"> |
| | | <slot name="content"></slot> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import dayjs from 'dayjs' |
| | | let timer |
| | | export default { |
| | | data () { |
| | | return { |
| | | time1: '', |
| | | time2: '' |
| | | } |
| | | }, |
| | | created () { |
| | | timer = setInterval(() => { |
| | | this.time1 = dayjs().format('YYYY/MM/DD') |
| | | this.time2 = dayjs().format('HH:mm:ss') |
| | | },1000) |
| | | }, |
| | | beforeDestroy() { |
| | | clearInterval(timer) |
| | | }, |
| | | mounted () { |
| | | console.log(this, '------') |
| | | } |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | .header { |
| | | position: relative; |
| | | padding-left: 24px; |
| | | padding-right: 24px; |
| | | height: 94px; |
| | |
| | | height: 50px; |
| | | margin-left: auto; |
| | | } |
| | | .time { |
| | | // position: absolute; |
| | | color: #fff; |
| | | font-size: 20px; |
| | | span { |
| | | margin-left: 14px; |
| | | font-family: digital; |
| | | font-size: 30px; |
| | | } |
| | | } |
| | | } |
| | | .content { |
| | | flex: 1 1 auto; |
| | |
| | | <!-- |
| | | * @Date: 2024-01-05 23:47:53 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-20 19:40:37 |
| | | * @LastEditTime: 2024-01-23 19:20:24 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/Map.vue |
| | | --> |
| | | <template> |
| | |
| | | <el-input style="width: 70px;" class="input" v-model="plantName" placeholder="请输入厂名" /> |
| | | </div> |
| | | <div class="table" :class="$route.name === 'preview' ? 'active' : ''"> |
| | | <div class="table-action" :style="position" v-show="showAction && status !== 2"> |
| | | <div class="table-actions" :style="position" v-show="showAction && status !== 2"> |
| | | <div @click="merge">合并</div> |
| | | <div @click="split">拆分</div> |
| | | <div @click="sign(1)">过道</div> |
| | |
| | | position: relative; |
| | | overflow-x: scroll; |
| | | |
| | | .table-action { |
| | | .table-actions { |
| | | position: fixed; |
| | | z-index: 999; |
| | | color: #fff; |
| | |
| | | <!-- |
| | | * @Date: 2024-01-06 17:40:19 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-16 23:04:06 |
| | | * @LastEditTime: 2024-01-23 19:14:03 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/component/index.vue |
| | | --> |
| | | <template> |
| | |
| | | </el-date-picker> |
| | | </div> |
| | | <div class="item" style="flex: 1 1 auto;justify-content: flex-end;"> |
| | | <el-button type="primary" size="small" @click="query">查询</el-button> |
| | | <el-button type="primary" size="small" @click="reset">重置</el-button> |
| | | <el-button type="primary" size="small" style="width: 150px" @click="query">查询</el-button> |
| | | <el-button type="ghost" size="small" style="width: 150px" @click="reset">重置</el-button> |
| | | </div> |
| | | </template> |
| | | <template slot="columns"> |
| | |
| | | border-radius: 2px; |
| | | border: 1px solid #435F9E; |
| | | } |
| | | } |
| | | .el-button--mini { |
| | | background: transparent; |
| | | } |
| | | .el-button--primary { |
| | | background-color: transparent; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <!-- |
| | | * @Date: 2024-01-06 17:40:19 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-20 17:14:54 |
| | | * @LastEditTime: 2024-01-23 19:19:35 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/deviceType/index.vue |
| | | --> |
| | | <template> |
| | |
| | | |
| | | </div> |
| | | <div class="item" style="flex: 1 1 auto;justify-content: flex-end;"> |
| | | <el-button type="primary" size="small" @click="query">查询</el-button> |
| | | <el-button type="primary" size="small" @click="reset">重置</el-button> |
| | | <el-button type="primary" size="small" style="width: 150px;" @click="query">查询</el-button> |
| | | <el-button type="ghost" size="small" style="width: 150px;" @click="reset">重置</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | | <template slot="table-tool"> |
| | | <el-button type="primary" size="mini" @click="add">添加设备类型</el-button> |
| | | <el-button type="primary" size="mini" style="width: 150px;" @click="add">添加设备类型</el-button> |
| | | </template> |
| | | |
| | | <template slot="columns"> |
| | |
| | | label="名称" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column width="180" align="center" label="操作" prop="editor"> |
| | | <el-table-column width="220" align="center" label="操作" prop="editor"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" @click="editDeviceType(scope.row)">编辑</el-button> |
| | | <el-button size="mini" type="text" @click="deleteHandle(scope.row)">删除</el-button> |
| | | <a class="table-action table-edit" @click="editDeviceType(scope.row)">编辑</a> |
| | | <a class="table-action table-del" @click="deleteHandle(scope.row)">删除</a> |
| | | <!-- <el-button size="mini" type="text" @click="editDeviceType(scope.row)">编辑</el-button> |
| | | <el-button size="mini" type="text" @click="deleteHandle(scope.row)">删除</el-button> --> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | border: 1px solid #435F9E; |
| | | } |
| | | } |
| | | .el-button--mini { |
| | | background: transparent; |
| | | .el-button { |
| | | background: #AAB6BA; |
| | | color: #90999C; |
| | | } |
| | | .el-button--primary { |
| | | background-color: transparent; |
| | | color: #FFF; |
| | | background: #5DD1FC; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | </el-col>
|
| | | <el-col :xs="24" :sm="6" :md="6" :lg="6" :xl="6">
|
| | | <el-form-item label="备注" prop="remark">
|
| | | <el-input v-model="dataForm.remark" placeholder="备注" clearable></el-input>
|
| | | <el-input type="textarea"
|
| | | :rows="2" v-model="dataForm.remark" placeholder="备注" clearable></el-input>
|
| | | </el-form-item>
|
| | | </el-col>
|
| | | </el-row>
|
| | | <!-- 上传 -->
|
| | | <el-row :gutter="20">
|
| | | <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
| | | <el-form-item label="上传图片" prop="pic">
|
| | | <el-form-item label="上传设备图片" prop="pic">
|
| | | <el-upload class="avatar-uploader" action="/mdc/account/uploadPic" :show-file-list="false"
|
| | | :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload">
|
| | | <img v-if="dataForm.pic" :src="dataForm.pic" class="avatar">
|
| | |
| | | <!-- |
| | | * @Date: 2024-01-06 17:40:19 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-18 23:33:58 |
| | | * @LastEditTime: 2024-01-23 19:19:40 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/ledger/index.vue |
| | | --> |
| | | <template> |
| | |
| | | </el-select> |
| | | </div> |
| | | <div class="item" style="flex: 1 1 auto;justify-content: flex-end;"> |
| | | <el-button type="primary" size="small" @click="query">查询</el-button> |
| | | <el-button type="primary" size="small" @click="reset">重置</el-button> |
| | | <!-- <div class="reset btn" @click="reset">重置</div> --> |
| | | <el-button type="primary" style="width: 150px;" size="small" @click="query">查询</el-button> |
| | | <el-button type="ghost" style="width: 150px;" size="small" @click="reset">重置</el-button> |
| | | </div> |
| | | |
| | | </template> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="备注" align="center" prop="remark"> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" align="center" label="操作"> |
| | | <el-table-column width="220" fixed="right" align="center" label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row)">编辑</el-button> |
| | | <el-button type="text" size="small" @click="del(scope.row)">删除</el-button> |
| | | <a class="table-action table-edit" @click="addOrUpdateHandle(scope.row)">编辑</a> |
| | | <a class="table-action table-del" @click="del(scope.row)">删除</a> |
| | | <!-- <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row)">编辑</el-button> |
| | | <el-button type="text" size="small" @click="del(scope.row)">删除</el-button> --> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | } |
| | | } |
| | | |
| | | .el-button--mini { |
| | | background: transparent; |
| | | .el-button { |
| | | background: #AAB6BA; |
| | | color: #90999C; |
| | | } |
| | | |
| | | .el-button--primary { |
| | | background-color: transparent; |
| | | color: #FFF; |
| | | background: #5DD1FC; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <!-- |
| | | * @Date: 2024-01-06 17:40:19 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-18 23:55:56 |
| | | * @LastEditTime: 2024-01-23 19:04:07 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/list/index.vue |
| | | --> |
| | | <template> |
| | |
| | | height: 100%; |
| | | overflow: auto; |
| | | .table { |
| | | .hover-row { |
| | | background-color: transparent; |
| | | td.el-table__cell { |
| | | background-color: transparent; |
| | | } |
| | | } |
| | | .el-table::before { |
| | | background-color: transparent; |
| | | } |
| | |
| | | <!-- |
| | | * @Date: 2024-01-06 17:40:19 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-21 22:24:19 |
| | | * @LastEditTime: 2024-01-23 19:19:45 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/machineList/index.vue |
| | | --> |
| | | <template> |
| | |
| | | </el-select> |
| | | </div> |
| | | <div class="item" style="flex: 1 1 auto;justify-content: flex-end;"> |
| | | <el-button type="primary" size="small" @click="query">查询</el-button> |
| | | <el-button type="primary" size="small" @click="reset">重置</el-button> |
| | | <el-button type="primary" size="small" style="width: 150px" @click="query">查询</el-button> |
| | | <el-button type="ghost" size="small" style="width: 150px" @click="reset">重置</el-button> |
| | | </div> |
| | | </template> |
| | | <!-- |
| | |
| | | label="DNC名称" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" align="center" label="操作"> |
| | | <el-table-column width="120px" fixed="right" align="center" label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="handlerSetting(scope.row)">配置</el-button> |
| | | <a class="table-action table-edit" @click="handlerSetting(scope.row)">配置</a> |
| | | <!-- <el-button type="text" size="small" @click="handlerSetting(scope.row)">配置</el-button> --> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | border-radius: 2px; |
| | | border: 1px solid #435F9E; |
| | | } |
| | | } |
| | | .el-button--mini { |
| | | background: transparent; |
| | | } |
| | | .el-button--primary { |
| | | background-color: transparent; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <el-row :gutter="24">
|
| | | <el-col :xs="24" :sm="6" :md="6" :lg="6" :xl="6">
|
| | | <el-form-item label="设备名称" prop="machineName">
|
| | | <el-select v-model="dataForm.machineId" placeholder="---请选择---" clearable>
|
| | | <el-select filterable v-model="dataForm.machineId" placeholder="---请选择---" clearable>
|
| | | <el-option v-for="item in machineList" :key="item.id" :label="item.machineName"
|
| | | :value="item.id">
|
| | | </el-option>
|
| | |
| | | <!-- |
| | | * @Date: 2024-01-06 17:40:19 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-19 00:15:38 |
| | | * @LastEditTime: 2024-01-23 19:16:16 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/maintenance/index.vue |
| | | --> |
| | | <template> |
| | |
| | | </el-date-picker> |
| | | </div> |
| | | <div class="item" style="flex: 1 1 auto;justify-content: flex-end;"> |
| | | <el-button type="primary" size="small" @click="query">查询</el-button> |
| | | <el-button type="primary" size="small" @click="reset">重置</el-button> |
| | | <el-button type="primary" style="width: 150px;" size="small" @click="query">查询</el-button> |
| | | <el-button type="ghost" style="width: 150px;" size="small" @click="reset">重置</el-button> |
| | | </div> |
| | | </template> |
| | | <template slot="table-tool"> |
| | | <el-button type="primary" size="mini" @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 |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" width="150" :show-overflow-tooltip="true" label="保养内容与存在问题" prop="detail"> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="操作" prop="editor"> |
| | | <el-table-column width="220" align="center" label="操作" prop="editor"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" @click="addDevice(2, scope.row, $event)">编辑</el-button> |
| | | <el-button size="mini" type="text" @click="deleteHandle(scope.row)">删除</el-button> |
| | | <a class="table-action" @click="addDevice(2, scope.row, $event)">编辑</a> |
| | | <a class="table-action table-del" @click="deleteHandle(scope.row)">删除</a> |
| | | <!-- <el-button size="mini" type="text" @click="addDevice(2, scope.row, $event)">编辑</el-button> --> |
| | | <!-- <el-button size="mini" type="text" @click="deleteHandle(scope.row)">删除</el-button> --> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | |
| | | border-radius: 2px; |
| | | border: 1px solid #435F9E; |
| | | } |
| | | } |
| | | |
| | | .el-button--mini { |
| | | background: transparent; |
| | | } |
| | | |
| | | .el-button--primary { |
| | | background-color: transparent; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | // @import './element-ui.scss';
|
| | | // // @import './sidebar.scss';
|
| | | // @import './style.scss';
|
| | |
|
| | | @font-face {
|
| | | font-family: digital;
|
| | | src: url('../assets/DS-Digital.ttf');
|
| | | }
|
| | | body {
|
| | | height: 100%;
|
| | | -moz-osx-font-smoothing: grayscale;
|
| | |
| | | line-height: 32px;
|
| | | }
|
| | | .el-button--mini {
|
| | | background: #AAB6BA;
|
| | | }
|
| | | .el-button--primary {
|
| | | background: #5DD1FC;
|
| | | }
|
| | | // .el-popper[x-placement^=bottom] {
|
| | | // margin-top: 50px;
|
| | | // }
|
| | | .el-button--mini {
|
| | | background: transparent;
|
| | | }
|
| | | .el-button--primary {
|
| | | background-color: transparent;
|
| | | }
|
| | | .el-button--primary.active {
|
| | | background-color: #5DD1FC!important;
|
| | | // background: #AAB6BA;
|
| | | }
|
| | | .el-form-item__content {
|
| | | line-height: 40px;
|
| | |
| | | .el-input__inner {
|
| | | color: #000;
|
| | | }
|
| | | }
|
| | | .el-button {
|
| | | background: #AAB6BA;
|
| | | color: #90999C;
|
| | | }
|
| | | .el-button--primary {
|
| | | color: #FFF;
|
| | | background: #5DD1FC;
|
| | | }
|
| | | .table-action {
|
| | | display: inline-block;
|
| | | width: 92px;
|
| | | height: 32px;
|
| | | line-height: 32px;
|
| | | color: #5DD1FC;
|
| | | background: url('../assets/img/table-edit.png');
|
| | | }
|
| | | .table-del {
|
| | | margin-inline: 4px;
|
| | | color: #FF4342;
|
| | | background: url('../assets/img/table-del.png');
|
| | | } |
| | |
| | | <template>
|
| | | <Home>
|
| | | <template slot="test"><span style="color: red">123</span></template>
|
| | | <template slot="content">
|
| | | <el-form class="login-form" autoComplete="on" :model="loginForm" :rules="loginRules" ref="loginForm"
|
| | | label-position="left">
|