Browse Source

0412 新看板

master
ruanqi 2 years ago
parent
commit
30f1c775f0
  1. 8
      src/router/index.js
  2. 2
      src/views/main-navbar.vue
  3. 8
      src/views/main.vue
  4. 10
      src/views/modules/pad/padCODelNotify.vue
  5. 2
      src/views/modules/pad/padPart1.vue
  6. 3
      src/views/modules/pad/padPartPhoto.vue
  7. 35
      src/views/modules/production/shopOrderProductView.vue
  8. 1
      src/views/modules/sys/menu-add-or-update.vue

8
src/router/index.js

@ -90,12 +90,18 @@ router.beforeEach((to, from, next) => {
if (router.options.isAddDynamicMenuRoutes || fnCurrentRouteType(to, globalRoutes) === 'global') { if (router.options.isAddDynamicMenuRoutes || fnCurrentRouteType(to, globalRoutes) === 'global') {
next() next()
} else { } else {
let type="pc"
// let match = navigator.userAgent.match(/(pad|iPad)/i);
let match = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
if (match) {
type="pad"
}
http({ http({
url: http.adornUrl('/sys/menu/nav'), url: http.adornUrl('/sys/menu/nav'),
method: 'get', method: 'get',
params: { params: {
'l': i18n.locale, //i18n.locale 'l': i18n.locale, //i18n.locale
menuType: "pc"
menuType: type
} }
}).then(({data}) => { }).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {

2
src/views/main-navbar.vue

@ -1,7 +1,7 @@
<template> <template>
<nav class="site-navbar" :class="'site-navbar--' + navbarLayoutType"> <nav class="site-navbar" :class="'site-navbar--' + navbarLayoutType">
<div class="site-navbar__header"> <div class="site-navbar__header">
<h1 class="site-navbar__brand" @click="$router.push({ name: 'home' })">
<h1 class="site-navbar__brand">
<el-menu <el-menu
class="site-navbar__menu" class="site-navbar__menu"
mode="horizontal"> mode="horizontal">

8
src/views/main.vue

@ -97,10 +97,10 @@
this.site = data.user.site this.site = data.user.site
this.languageDefault = data.user.languageDefault this.languageDefault = data.user.languageDefault
this.userDisplay = data.user.userDisplay this.userDisplay = data.user.userDisplay
let match = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
if (match) {
this.$router.replace({ name: 'padCODelNotify' })
}
// let match = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
// if (match) {
// this.$router.replace({ name: 'padCODelNotify' })
// }
} }
}) })
} }

10
src/views/modules/pad/padCODelNotify.vue

@ -66,7 +66,7 @@
</el-form> </el-form>
<div v-loading="delNotifyHeaderTableLoading"> <div v-loading="delNotifyHeaderTableLoading">
<el-table <el-table
:height="300"
:height="height"
:data="delNotifyHeaderList" :data="delNotifyHeaderList"
border stripe border stripe
@row-click="rowClickDelNotifyHeaderTable" @row-click="rowClickDelNotifyHeaderTable"
@ -177,7 +177,7 @@
</div> </div>
<el-table :data="delNotifyDetailList" <el-table :data="delNotifyDetailList"
height="300"
height="250"
border stripe border stripe
style="margin-top: 10px;"> style="margin-top: 10px;">
<el-table-column label="操作" width="150px" header-align="center" fixed align="center"> <el-table-column label="操作" width="150px" header-align="center" fixed align="center">
@ -554,6 +554,7 @@ import {Decimal} from "decimal.js";
export default { export default {
data() { data() {
return { return {
height:200,
// //
searchData:{ searchData:{
site:"", site:"",
@ -599,6 +600,11 @@ export default {
subCodeDesc:"",// subCodeDesc:"",//
} }
}, },
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 475
})
},
methods: { methods: {
searchDelHeaderList(){ searchDelHeaderList(){
let params = JSON.parse(JSON.stringify(this.searchData)) let params = JSON.parse(JSON.stringify(this.searchData))

2
src/views/modules/pad/padPart1.vue

@ -100,7 +100,7 @@
}, },
mounted () { mounted () {
this.$nextTick(() => { this.$nextTick(() => {
this.height = window.innerHeight - 100
this.height = window.innerHeight - 210
}) })
}, },
methods: { methods: {

3
src/views/modules/pad/padPartPhoto.vue

@ -78,7 +78,8 @@
}, },
jump(){ jump(){
this.$router.push('/padPart');
// this.$router.push('/padPart');
this.$router.back();
}, },
getPhoto(){ getPhoto(){
getPhotoAddressData(this.searchData).then(({data}) => { getPhotoAddressData(this.searchData).then(({data}) => {

35
src/views/modules/production/shopOrderProductView.vue

@ -248,7 +248,23 @@
serialNumber: null, serialNumber: null,
columnType: null, columnType: null,
align: 'right' align: 'right'
}, {
tableId: "orderView",
tableName: this.$route.meta.title,
columnProp: "jiagongReport",
columnLabel: "加工组",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 60,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, { }, {
tableId: "orderView", tableId: "orderView",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,
@ -266,23 +282,6 @@
serialNumber: null, serialNumber: null,
columnType: null, columnType: null,
align: 'right' align: 'right'
// }, {
// tableId: "orderView",
// tableName: this.$route.meta.title,
// columnProp: "jianyanReport",
// columnLabel: "",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// columnWidth: 60,
// format: null,
// functionId: this.$route.meta.menuId,
// sortLv: 0,
// status: true,
// fixed: '',
// serialNumber: null,
// columnType: null,
// align: 'right'
}, { }, {
tableId: "orderView", tableId: "orderView",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,

1
src/views/modules/sys/menu-add-or-update.vue

@ -51,6 +51,7 @@
<el-select v-model="dataForm.menuType"> <el-select v-model="dataForm.menuType">
<el-option label="pc" value="pc"></el-option> <el-option label="pc" value="pc"></el-option>
<el-option label="pda" value="pda"></el-option> <el-option label="pda" value="pda"></el-option>
<el-option label="pad" value="pad"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="dataForm.type !== 2" label="菜单图标" prop="icon"> <el-form-item v-if="dataForm.type !== 2" label="菜单图标" prop="icon">

Loading…
Cancel
Save