|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <el-dialog :title="title" width="60%" custom-class="dialog-addItem" top="5vh" center :before-close="handleClose"
|
|
|
+ <el-dialog :title="title" width="50%" custom-class="dialog-addItem" top="5vh" center :before-close="handleClose"
|
|
|
:visible.sync="visible" @open="handleOpen" @close="handleClose">
|
|
|
<el-row>
|
|
|
<el-col :span="10">
|
|
@@ -12,11 +12,11 @@
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="10">
|
|
|
- <el-divider content-position="left">数据项</el-divider>
|
|
|
+ <el-divider content-position="left">点位</el-divider>
|
|
|
<div class="cy-line">
|
|
|
<el-checkbox v-model="isSelectAllGroupItem" @change="selectAllGroupItem"
|
|
|
style="margin-left: 10px">全选</el-checkbox>
|
|
|
- <div style="height: 60vh; overflow: auto">
|
|
|
+ <div style="height: 40vh; overflow: auto">
|
|
|
<p-virtual-check ref="groupItem" :data-sources="groupItemList"
|
|
|
@check-change-all="checkChangeAllGroupItem" @check-change="checkChangeGroupItem">
|
|
|
</p-virtual-check>
|
|
@@ -37,11 +37,11 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
|
- <el-divider content-position="left">已选择数据项({{ selectedItemList.length }})</el-divider>
|
|
|
+ <el-divider content-position="left">已选择点位({{ selectedItemList.length }})</el-divider>
|
|
|
<div class="cy-line">
|
|
|
<el-checkbox v-model="isSelectAllSelectedItem" @change="selectAllSelectedItem"
|
|
|
style="margin-left: 10px">全选</el-checkbox>
|
|
|
- <div style="height: 60vh; overflow: auto">
|
|
|
+ <div style="height: 40vh; overflow: auto">
|
|
|
<p-virtual-check ref="selectedItem" :data-sources="selectedItemList"
|
|
|
@check-change-all="checkChangeAllSelectedItem" @check-change="checkChangeSelectedItem">
|
|
|
</p-virtual-check>
|
|
@@ -49,9 +49,9 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <div style="width: 100%; text-align: center;margin-bottom: 5px;">
|
|
|
- <el-button type="primary" @click="addItemEvent">确定</el-button>
|
|
|
- <el-button @click="handleClose">取消</el-button>
|
|
|
+ <div style="width: 100%; text-align: right;margin-top: 10px;">
|
|
|
+ <el-button type="primary" @click="addItemEvent" size="small">确定</el-button>
|
|
|
+ <el-button @click="handleClose" size="small">取消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- title: '选择数据项',
|
|
|
+ title: '选择点位',
|
|
|
visible: false,
|
|
|
itemGroupId: null,
|
|
|
itemGroupName: '',
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
let currentChooseItemListF = []
|
|
|
if (this.currentChooseItemList.length == 0) {
|
|
|
this.$message({
|
|
|
- message: '请选择数据项!',
|
|
|
+ message: '请选择点位!',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
return;
|
|
@@ -178,7 +178,7 @@ export default {
|
|
|
}
|
|
|
if (status) {
|
|
|
this.$message({
|
|
|
- message: '请注意,选择的数据项中含有重复的项',
|
|
|
+ message: '请注意,选择的点位中含有重复的项',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
}
|
|
@@ -217,7 +217,7 @@ export default {
|
|
|
addItemEvent() {
|
|
|
if (this.selectedItemList.length == 0) {
|
|
|
this.$message({
|
|
|
- message: '请选择数据项!',
|
|
|
+ message: '请选择点位!',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
return;
|
|
@@ -231,10 +231,10 @@ export default {
|
|
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
.dialog-addItem {
|
|
|
- height: 80vh;
|
|
|
+ height: 50vh;
|
|
|
|
|
|
.el-dialog__body {
|
|
|
- height: 70vh;
|
|
|
+ height: 50vh;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
}
|
|
@@ -255,7 +255,10 @@ export default {
|
|
|
|
|
|
.btn-group {
|
|
|
width: 100%;
|
|
|
- height: calc(100% - 20px);
|
|
|
- padding: 100% 30%;
|
|
|
+ //height: calc(100% - 20px);
|
|
|
+ padding: 150px 20%;
|
|
|
}
|
|
|
-</style>
|
|
|
+.el-row {
|
|
|
+ margin: 5px 0;
|
|
|
+}
|
|
|
+</style>
|