projects/mesxc-dy #303

Merged
juzi merged 4 commits from projects/mesxc-dy into projects/mesxc-test 2024-04-03 15:11:42 +08:00
6 changed files with 27 additions and 7 deletions
Showing only changes of commit caf614ca35 - Show all commits

View File

@ -1,8 +1,8 @@
### ###
# @Author: Do not edit # @Author: Do not edit
# @Date: 2023-08-29 09:40:39 # @Date: 2023-08-29 09:40:39
# @LastEditTime: 2024-03-25 15:59:53 # @LastEditTime: 2024-03-27 16:24:02
# @LastEditors: zhp # @LastEditors: DY
# @Description: # @Description:
### ###
# 开发环境配置 # 开发环境配置

View File

@ -2,15 +2,17 @@
* @Author: zwq * @Author: zwq
* @Date: 2021-11-18 14:16:25 * @Date: 2021-11-18 14:16:25
* @LastEditors: DY * @LastEditors: DY
* @LastEditTime: 2024-03-13 13:54:01 * @LastEditTime: 2024-03-27 13:47:24
* @Description: * @Description:
--> -->
<template> <template>
<el-drawer <el-drawer
:visible.sync="visible" :visible.sync="visible"
:show-close="false" :show-close="false"
:wrapper-closable="isdetail" :wrapper-closable="true"
class="drawer" class="drawer"
:before-close="beforeClose"
@closed="$emit('destroy')"
size="60%"> size="60%">
<small-title slot="title" :no-padding="true"> <small-title slot="title" :no-padding="true">
{{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }} {{ isdetail ? '详情' : !dataForm.id ? '新增' : '编辑' }}
@ -262,6 +264,15 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
beforeClose(done) {
if (!this.isdetail) {
this.$confirm('确认关闭?')
.then(_ => {
done();
})
.catch(_ => {});
}
},
clearArea() { clearArea() {
this.$set(this.dataForm, 'area', 0) this.$set(this.dataForm, 'area', 0)
this.$set(this.dataForm, 'weight', 0) this.$set(this.dataForm, 'weight', 0)

View File

@ -26,7 +26,8 @@
<add-or-update <add-or-update
v-if="addOrUpdateVisible" v-if="addOrUpdateVisible"
ref="addOrUpdate" ref="addOrUpdate"
@refreshDataList="getDataList" /> @refreshDataList="getDataList"
@destroy="addOrUpdateVisible = false" />
</div> </div>
</template> </template>

View File

@ -115,7 +115,7 @@ export default {
/** 把 list 里的数据转换成 tableProps 对应的格式 */ /** 把 list 里的数据转换成 tableProps 对应的格式 */
convertList(list) { convertList(list) {
// let sectionArr= [] // let sectionArr= []
let temp = Object.values(list.datamap) let temp = list.datamap ? Object.values(list?.datamap) : []
console.log('111', temp) console.log('111', temp)
temp.forEach(item => { temp.forEach(item => {

View File

@ -15,6 +15,7 @@
background: '#f2f4f9', background: '#f2f4f9',
color: '#606266', color: '#606266',
}" }"
:max-height="tableH"
class="waiting-list-table"> class="waiting-list-table">
<el-table-column <el-table-column
type="selection" type="selection"
@ -38,6 +39,7 @@
v-if="selectedBox[0]" v-if="selectedBox[0]"
width="128" width="128"
label="设备保养单号" label="设备保养单号"
:show-overflow-tooltip="true"
prop="maintainOrderNumber"></el-table-column> prop="maintainOrderNumber"></el-table-column>
<el-table-column v-if="selectedBox[1]" width="128" label="保养计划名称" prop="planName"> <el-table-column v-if="selectedBox[1]" width="128" label="保养计划名称" prop="planName">
<template slot-scope="scope"> <template slot-scope="scope">
@ -224,6 +226,7 @@ export default {
true, true,
], ],
selectedPlan: [], selectedPlan: [],
tableH: this.tableHeight(260),
}; };
}, },
computed: { computed: {
@ -234,6 +237,11 @@ export default {
})); }));
}, },
}, },
created() {
window.addEventListener('resize', () => {
this.tableH = this.tableHeight(260)
})
},
methods: { methods: {
checkSelectable(row, index) { checkSelectable(row, index) {
return ( return (

View File

@ -197,7 +197,7 @@ export default {
// //
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 20,
maintainPlanId: null, maintainPlanId: null,
startTime: null, startTime: null,
special: false, special: false,