bug修复
This commit is contained in:
parent
fa5e890caf
commit
d41e3e40a2
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
|
|
@ -153,7 +153,7 @@
|
||||||
|
|
||||||
<!-- 手环弹窗 -->
|
<!-- 手环弹窗 -->
|
||||||
<el-dialog :title="title" :visible.sync="showsh" width="600px" height="600px" append-to-body @close="cancel">
|
<el-dialog :title="title" :visible.sync="showsh" width="600px" height="600px" append-to-body @close="cancel">
|
||||||
<el-form :model="queryshCode" ref="queryshCode" :rules="rules" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
<el-form ref="queryshCode" :model="queryshCode" :rules="rules" label-width="100px" @submit.native.prevent>
|
||||||
<el-form-item label="手环编码" prop="shCode">
|
<el-form-item label="手环编码" prop="shCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryshCode.shCode"
|
v-model="queryshCode.shCode"
|
||||||
|
|
@ -668,12 +668,13 @@
|
||||||
<el-dialog :title="title" :visible.sync="openSh" width="600px" height="600px" append-to-body>
|
<el-dialog :title="title" :visible.sync="openSh" width="600px" height="600px" append-to-body>
|
||||||
<div> 当前手环箱还可以绑定{{ this.numers }}个手环</div>
|
<div> 当前手环箱还可以绑定{{ this.numers }}个手环</div>
|
||||||
<el-table v-loading="loadingSeven" :data="shListNoBind" width="600px" height = "400px" class="order" @selection-change="handleSelectionChange" >
|
<el-table v-loading="loadingSeven" :data="shListNoBind" width="600px" height = "400px" class="order" @selection-change="handleSelectionChange" >
|
||||||
<el-table-column type="selection" width="55" align="center" label="选择" :selectable="selectable" />
|
<el-table-column type="selection" width="55" align="center" :selectable="selectable" >
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="手环id" align="center" prop="shId" v-if="false" />
|
<el-table-column label="手环id" align="center" prop="shId" v-if="false" />
|
||||||
<el-table-column label="手环编码" align="center" prop="shCode" />
|
<el-table-column label="手环编码" align="center" prop="shCode" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="cancelBindTemp">取 消</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
|
|
@ -682,7 +683,6 @@
|
||||||
@click="handleBindSh"
|
@click="handleBindSh"
|
||||||
v-hasPermi="['basic:bracelet:add']"
|
v-hasPermi="['basic:bracelet:add']"
|
||||||
>绑定</el-button>
|
>绑定</el-button>
|
||||||
<el-button @click="cancelBindTemp">取 消</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <pagination
|
<!-- <pagination
|
||||||
v-show="totalTwo>0"
|
v-show="totalTwo>0"
|
||||||
|
|
@ -891,6 +891,7 @@
|
||||||
Capacity: 0,
|
Capacity: 0,
|
||||||
BindNum: 0,
|
BindNum: 0,
|
||||||
boxId:0,
|
boxId:0,
|
||||||
|
bindTemp:0,
|
||||||
queryshNoBind:{
|
queryshNoBind:{
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
|
@ -1002,7 +1003,9 @@
|
||||||
}
|
}
|
||||||
if (!Number.isInteger(value) || value <= 0) {
|
if (!Number.isInteger(value) || value <= 0) {
|
||||||
callback(new Error('请必须输入为正整数'));
|
callback(new Error('请必须输入为正整数'));
|
||||||
} else {
|
} else if(value > 1000) {
|
||||||
|
callback(new Error('请必须输入小于1000的正整数'));
|
||||||
|
}else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1306,7 +1309,7 @@
|
||||||
// 比较全选或者取消全选与当前页的数据,得到差集
|
// 比较全选或者取消全选与当前页的数据,得到差集
|
||||||
// 如果tableData中的数据在val中不存在,则说明是取消全选,需要从currentSelection中移除
|
// 如果tableData中的数据在val中不存在,则说明是取消全选,需要从currentSelection中移除
|
||||||
// 如果tableData中所有的数据都在val中存在,则说明是全选,需要将差集添加到currentSelection中
|
// 如果tableData中所有的数据都在val中存在,则说明是全选,需要将差集添加到currentSelection中
|
||||||
const isAllSelect = this.tableData.every(item =>
|
const isAllSelect = this.shboxallList.every(item =>
|
||||||
val.some(valItem => valItem.shboxCode === item.shboxCode)
|
val.some(valItem => valItem.shboxCode === item.shboxCode)
|
||||||
)
|
)
|
||||||
if (isAllSelect) {
|
if (isAllSelect) {
|
||||||
|
|
@ -1324,7 +1327,7 @@
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.currentSelection = this.currentSelection.filter(
|
this.currentSelection = this.currentSelection.filter(
|
||||||
shboxCode => !this.tableData.some(item => item.shboxCode === shboxCode)
|
shboxCode => !this.shboxallList.some(item => item.shboxCode === shboxCode)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1614,6 +1617,7 @@
|
||||||
this.$set(this.formTwo,'shboxCode',response.data.shboxCode+'')
|
this.$set(this.formTwo,'shboxCode',response.data.shboxCode+'')
|
||||||
this.$set(this.formTwo,'shboxCapacity',response.data.shboxCapacity)
|
this.$set(this.formTwo,'shboxCapacity',response.data.shboxCapacity)
|
||||||
this.formTwo.shboxId = response.data.shboxId;
|
this.formTwo.shboxId = response.data.shboxId;
|
||||||
|
this.formTwo.shboxBindNum = response.data.shboxBindNum;
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.openbox = true;
|
this.openbox = true;
|
||||||
this.title = "修改手环箱";
|
this.title = "修改手环箱";
|
||||||
|
|
@ -1742,6 +1746,11 @@
|
||||||
this.$refs["formTwo"].validate(valid => {
|
this.$refs["formTwo"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.formTwo.shboxId != undefined) {
|
if (this.formTwo.shboxId != undefined) {
|
||||||
|
console.log(this.formTwo)
|
||||||
|
if(this.formTwo.shboxBindNum > this.formTwo.shboxCapacity){
|
||||||
|
this.$modal.msgError("绑定手环数量不能大于手环箱容量");
|
||||||
|
return;
|
||||||
|
}
|
||||||
editBox(this.formTwo).then(response => {
|
editBox(this.formTwo).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.openbox = false;
|
this.openbox = false;
|
||||||
|
|
@ -1858,7 +1867,7 @@
|
||||||
if (this.currentSelection.length) {
|
if (this.currentSelection.length) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.currentSelection.forEach(row => {
|
this.currentSelection.forEach(row => {
|
||||||
this.tableData.forEach(item => {
|
this.shboxallList.forEach(item => {
|
||||||
if (item.shboxCode === row) {
|
if (item.shboxCode === row) {
|
||||||
this.$refs.multipleTable?.toggleRowSelection(item, true)
|
this.$refs.multipleTable?.toggleRowSelection(item, true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
<!-- 添加或修改设备对话框 -->
|
<!-- 添加或修改设备对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px" >
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px" >
|
||||||
<el-form-item label="设备类型" prop="devcieType" >
|
<el-form-item label="设备类型" prop="deviceType" >
|
||||||
<el-select v-if="flag == true" v-model="form.deviceType" placeholder="请选择设备类型" clearable style="width: 100%;" disabled>
|
<el-select v-if="flag == true" v-model="form.deviceType" placeholder="请选择设备类型" clearable style="width: 100%;" disabled>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.sys_device_type"
|
v-for="dict in dict.type.sys_device_type"
|
||||||
|
|
@ -375,7 +375,8 @@
|
||||||
|
|
||||||
<!-- 图片查看弹窗 -->
|
<!-- 图片查看弹窗 -->
|
||||||
<el-dialog :visible.sync="dialogVisible">
|
<el-dialog :visible.sync="dialogVisible">
|
||||||
<img width="100%" height="650px" :src="dialogImageUrl" alt />
|
<img v-if="isImage(dialogImageUrl)" width="100%" height="650px" :src="dialogImageUrl" alt="" />
|
||||||
|
<img v-else width="100%" height="650px" :src="urlTemp" alt="" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -526,6 +527,14 @@
|
||||||
console.log(this.dict.type.sys_device_type)
|
console.log(this.dict.type.sys_device_type)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
isImage(dUrl){
|
||||||
|
this.urlTemp = require('@/assets/noPicture.png');
|
||||||
|
if(dUrl == null || dUrl == ''){
|
||||||
|
return false
|
||||||
|
}else{
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
//列表-图片查看
|
//列表-图片查看
|
||||||
openImg(url) {
|
openImg(url) {
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
<!-- 添加或修改岗位对话框 -->
|
<!-- 添加或修改岗位对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||||
<el-form-item label="项目部名称" prop="projectDepartName">
|
<el-form-item label="项目部名称" prop="projectDepartName">
|
||||||
<el-input v-model="form.projectDepartName" maxlength="20" placeholder="请输入项目名称" />
|
<el-input v-model="form.projectDepartName" maxlength="20" placeholder="请输入项目名称" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -324,6 +324,7 @@ export default {
|
||||||
this.fileList=[];
|
this.fileList=[];
|
||||||
this.reset();
|
this.reset();
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
this.form = {
|
this.form = {
|
||||||
|
|
|
||||||
|
|
@ -221,6 +221,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="电工作业证">
|
<el-form-item label="电工作业证">
|
||||||
<el-upload
|
<el-upload
|
||||||
|
class = "upload-demo"
|
||||||
action="#"
|
action="#"
|
||||||
:file-list="electricianImgList"
|
:file-list="electricianImgList"
|
||||||
:show-file-list="true"
|
:show-file-list="true"
|
||||||
|
|
@ -258,6 +259,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="其他作业证">
|
<el-form-item label="其他作业证">
|
||||||
<el-upload
|
<el-upload
|
||||||
|
class = "upload-demo"
|
||||||
action="#"
|
action="#"
|
||||||
:file-list="elseImgList"
|
:file-list="elseImgList"
|
||||||
:show-file-list="true"
|
:show-file-list="true"
|
||||||
|
|
@ -1150,7 +1152,9 @@
|
||||||
::v-deep .el-upload-list__item-actions{
|
::v-deep .el-upload-list__item-actions{
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
}
|
}
|
||||||
|
.upload-demo{
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
.el-upload-list__item-thumbnail{
|
.el-upload-list__item-thumbnail{
|
||||||
height: 145px!important;
|
height: 145px!important;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue