Commit 6475a1f2 authored by zhanglw's avatar zhanglw

修复后台页面bug

parent 9cdbf5c4
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
<!-- 嵌入三维地图页面 --> <!-- 嵌入三维地图页面 -->
<!-- <iframe :src="url" frameborder="0" class="mapcontainer1"></iframe>--> <!-- <iframe :src="url" frameborder="0" class="mapcontainer1"></iframe>-->
<!-- <iframe src="http://192.168.3.38:3002/#/Index" frameborder="0" class="mapcontainer1"></iframe>--> <iframe src="http://192.168.3.60:18041//#/Index" frameborder="0" class="mapcontainer1"></iframe>
<!-- 单个车辆视频监控 --> <!-- 单个车辆视频监控 -->
<div class="monitorCover1" v-if="monitorCover1Show"> <div class="monitorCover1" v-if="monitorCover1Show">
<div class="monitorCover1_closePic" @click="closeMonitorCoverFn"></div> <div class="monitorCover1_closePic" @click="closeMonitorCoverFn"></div>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<!-- 表格 --> <!-- 表格 -->
<div class="panel-bottom page-row"> <div class="panel-bottom page-row">
<h3>司机人员管理</h3> <h3>人员管理</h3>
<div class="ctin-box"> <div class="ctin-box">
<div class="content-within"> <div class="content-within">
<div class="content-fix"> <div class="content-fix">
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</div> </div>
<!-- 表单渲染 --> <!-- 表单渲染 -->
<el-dialog append-to-body :close-on-click-modal="true" :before-close="cancelForm" :visible.sync="form.visible" :title="form.title" width="700px"> <el-dialog append-to-body :close-on-click-modal="false" :before-close="cancelForm" :visible.sync="form.visible" :title="form.title" width="700px">
<el-form :model="form.item" :rules="rules" ref="form1" :inline="true" size="small" label-width="150px"> <el-form :model="form.item" :rules="rules" ref="form1" :inline="true" size="small" label-width="150px">
<el-form-item label="名称" prop="name"> <el-form-item label="名称" prop="name">
<el-input v-model="form.item.name" style="width:280px;" placeholder="请输入名称"/> <el-input v-model="form.item.name" style="width:280px;" placeholder="请输入名称"/>
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
//角色单独属性 //角色单独属性
rolesLonely:"", rolesLonely:"",
form: { form: {
title:'新增司机人员', title:'新增人员',
visible:false, visible:false,
reqType:'add', reqType:'add',
status:{cu:0}, status:{cu:0},
...@@ -192,6 +192,15 @@ export default { ...@@ -192,6 +192,15 @@ export default {
}) })
}, },
methods: { methods: {
normalizer(node) {
if(node){
node.id = node.name?node.name:null;
node.label = node.name?node.name:null;
if (node.children == null || node.children == 'null'|| node.children.length == 0) {
delete node.children
}
}
},
selectDepart(val){ selectDepart(val){
console.log('selectDepart', val); console.log('selectDepart', val);
this.lastDeptData = val; this.lastDeptData = val;
...@@ -227,7 +236,7 @@ export default { ...@@ -227,7 +236,7 @@ export default {
param.page = this.page - 1; param.page = this.page - 1;
param.size = this.size; param.size = this.size;
param.sort = sort; param.sort = sort;
this.$nextTick(()=>{ this.$nextTick(()=>{
//获取司机人员信息 //获取司机人员信息
HttpReq.truckDispatching.driverManagementPCQuery(param).then((res) => { HttpReq.truckDispatching.driverManagementPCQuery(param).then((res) => {
...@@ -296,7 +305,7 @@ export default { ...@@ -296,7 +305,7 @@ export default {
toAdd() { toAdd() {
// 请除表单验证 // 请除表单验证
this.$refs['form1'] && this.$refs['form1'].clearValidate(); this.$refs['form1'] && this.$refs['form1'].clearValidate();
this.form.title = '新增司机人员'; this.form.title = '新增人员';
this.form.status.cu = 0; this.form.status.cu = 0;
this.form.visible = true; this.form.visible = true;
this.form.reqType = 'add'; this.form.reqType = 'add';
...@@ -305,7 +314,7 @@ export default { ...@@ -305,7 +314,7 @@ export default {
toEdit(item) { toEdit(item) {
// 请除表单验证 // 请除表单验证
this.$refs['form1'] && this.$refs['form1'].clearValidate(); this.$refs['form1'] && this.$refs['form1'].clearValidate();
this.form.title = '修改司机人员'; this.form.title = '修改人员';
this.form.status.cu = 0; this.form.status.cu = 0;
this.form.visible = true; this.form.visible = true;
this.form.item = {...item}; this.form.item = {...item};
...@@ -499,7 +508,7 @@ export default { ...@@ -499,7 +508,7 @@ export default {
var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31) var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23) var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23)
var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59) var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59) var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59)
//修改月份格式 //修改月份格式
if (month >= 1 && month <= 9) { if (month >= 1 && month <= 9) {
month = "0" + month; month = "0" + month;
...@@ -535,7 +544,7 @@ export default { ...@@ -535,7 +544,7 @@ export default {
.el-table .success-row { .el-table .success-row {
background: #f0f9eb; background: #f0f9eb;
} }
.device-manage{ .device-manage{
.panel-bottom{ .panel-bottom{
.el-button{margin:2px 0;padding:6px 15px;font-size:14px;} .el-button{margin:2px 0;padding:6px 15px;font-size:14px;}
...@@ -550,7 +559,7 @@ export default { ...@@ -550,7 +559,7 @@ export default {
} }
} }
} }
.ecahrt1-dialog{ .ecahrt1-dialog{
display:flex;align-items:center; display:flex;align-items:center;
.el-dialog{ .el-dialog{
......
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
}, },
toDelete(item) { toDelete(item) {
var id = item.id; var id = item.id;
this.$confirm( item.carclass == '铲车' ? '该车为铲车,如要删除,请在删除以后为采点管理中对应的采点分配新的铲车!' : '确认删除该条数据吗?', '提示', { this.$confirm( '确认删除该条数据吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: item.carclass == '铲车' ? 'error' : 'warning' type: item.carclass == '铲车' ? 'error' : 'warning'
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<date-range-picker v-model="query.createTime" class="date-item" /> <date-range-picker v-model="query.createTime" class="date-item" />
<rrOperation /> <rrOperation />
</div> </div>
<crudOperation :permission="permission" /> <crudOperation :permission="permission"/>
</div> </div>
<!--表单渲染--> <!--表单渲染-->
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="580px"> <el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="580px">
...@@ -186,6 +186,9 @@ export default { ...@@ -186,6 +186,9 @@ export default {
} }
} }
}, },
created(){
this.crud.optShow.download = false
},
methods: { methods: {
// 新增与编辑前做的操作 // 新增与编辑前做的操作
[CRUD.HOOK.afterToCU](crud, form) { [CRUD.HOOK.afterToCU](crud, form) {
......
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
param.page = this.page - 1; param.page = this.page - 1;
param.size = this.size; param.size = this.size;
//param.sort = sort; //param.sort = sort;
this.$nextTick(()=>{ this.$nextTick(()=>{
HttpReq.truckDispatching.shiftQuery(param).then((res) => { HttpReq.truckDispatching.shiftQuery(param).then((res) => {
if(res.code == 200){ if(res.code == 200){
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
this.loadData() this.loadData()
}, },
// 清除限制 // 清除限制
clearLimit(){ clearLimit(){
this.loadData() this.loadData()
}, },
cancelForm(a, b, c){ cancelForm(a, b, c){
...@@ -158,8 +158,6 @@ export default { ...@@ -158,8 +158,6 @@ export default {
this.form.status.cu = 0; this.form.status.cu = 0;
this.form.visible = true; this.form.visible = true;
this.form.item = {...item}; this.form.item = {...item};
this.form.item.startTime = '';
this.form.item.endTime = '';
this.form.reqType = 'edit'; this.form.reqType = 'edit';
this.ShiftId = this.form.item.id; this.ShiftId = this.form.item.id;
}, },
...@@ -277,7 +275,7 @@ export default { ...@@ -277,7 +275,7 @@ export default {
var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31) var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23) var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23)
var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59) var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59) var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59)
//修改月份格式 //修改月份格式
if (month >= 1 && month <= 9) { if (month >= 1 && month <= 9) {
month = "0" + month; month = "0" + month;
...@@ -310,7 +308,7 @@ export default { ...@@ -310,7 +308,7 @@ export default {
var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31) var day = date.getDate(); //日 ,从 Date 对象返回一个月中的某一天 (1 ~ 31)
var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23) var hours = date.getHours(); //小时 ,返回 Date 对象的小时 (0 ~ 23)
var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59) var minutes = date.getMinutes(); //分钟 ,返回 Date 对象的分钟 (0 ~ 59)
var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59) var seconds = date.getSeconds(); //秒 ,返回 Date 对象的秒数 (0 ~ 59)
//修改月份格式 //修改月份格式
if (month >= 1 && month <= 9) { if (month >= 1 && month <= 9) {
month = "0" + month; month = "0" + month;
...@@ -347,7 +345,7 @@ export default { ...@@ -347,7 +345,7 @@ export default {
.el-table .success-row { .el-table .success-row {
background: #f0f9eb; background: #f0f9eb;
} }
.device-manage{ .device-manage{
.panel-bottom{ .panel-bottom{
.el-button{margin:2px 0;padding:6px 15px;font-size:14px;} .el-button{margin:2px 0;padding:6px 15px;font-size:14px;}
...@@ -362,7 +360,7 @@ export default { ...@@ -362,7 +360,7 @@ export default {
} }
} }
} }
.ecahrt1-dialog{ .ecahrt1-dialog{
display:flex;align-items:center; display:flex;align-items:center;
.el-dialog{ .el-dialog{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment