|
@@ -38,12 +38,8 @@
|
|
|
<el-tag v-if="it.exclusion" type="info" size="mini">互斥项</el-tag>
|
|
|
</el-col>
|
|
|
<el-button @click="addRow">+</el-button>
|
|
|
- <div class="bottomPartMid bottomPartMidss">
|
|
|
- <p><span class="el-icon-arrow-up" @click="orderUpDown(-1)"></span></p>
|
|
|
- <p><span class="el-icon-arrow-down" @click="orderUpDown(1)"></span></p>
|
|
|
- </div>
|
|
|
</div>
|
|
|
- <div class="main-area sigle-row" v-if="type==3">
|
|
|
+ <div class="main-area" v-if="type==3">
|
|
|
<el-col v-for="(it,i) in rows" :key="i">
|
|
|
<div class="inps">
|
|
|
<el-input v-model="rows[i].name"
|
|
@@ -56,10 +52,6 @@
|
|
|
<el-tag v-if="it.exclusion" type="info" size="mini">互斥项</el-tag>
|
|
|
</el-col>
|
|
|
<el-button @click="addRow" class="little">+</el-button>
|
|
|
- <div class="bottomPartMid bottomPartMidss">
|
|
|
- <p><span class="el-icon-arrow-up" @click="orderUpDown(-1)"></span></p>
|
|
|
- <p><span class="el-icon-arrow-down" @click="orderUpDown(1)"></span></p>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -68,11 +60,6 @@
|
|
|
@import "../../less/common.less";
|
|
|
.main-area{
|
|
|
position: relative;
|
|
|
- .bottomPartMid{
|
|
|
- position: absolute;
|
|
|
- top:29px;
|
|
|
- right: 0px;
|
|
|
- }
|
|
|
}
|
|
|
.main-area .static-tip{
|
|
|
border:1px solid #dcdfe6;
|
|
@@ -122,15 +109,7 @@
|
|
|
.main-area{
|
|
|
width: 80%;
|
|
|
min-width: 400px;
|
|
|
- margin:20px 150px 20px 20px;
|
|
|
- &.sigle-row{
|
|
|
- width: 60%;
|
|
|
- margin:20px 150px 20px 30%;
|
|
|
- .bottomPartMid{
|
|
|
- top: 0;
|
|
|
- right: 40%;
|
|
|
- }
|
|
|
- }
|
|
|
+ margin:20px 150px;
|
|
|
.inps{
|
|
|
display: inline-block;
|
|
|
width: calc(100% - 60px);
|
|
@@ -208,9 +187,9 @@
|
|
|
focusOn(newVal){
|
|
|
this.checkedExc = this.rows[newVal].exclusion===1;
|
|
|
},
|
|
|
- /*type() {
|
|
|
+ type() {
|
|
|
this.initData();
|
|
|
- },*/
|
|
|
+ },
|
|
|
sexType() {
|
|
|
this.initData();
|
|
|
},
|
|
@@ -232,16 +211,6 @@
|
|
|
}
|
|
|
this.disableBtn = false;
|
|
|
},
|
|
|
- orderUpDown(i){
|
|
|
- const item = this.rows[this.focusOn]; //要调整位置的行
|
|
|
- const inx = this.focusOn;
|
|
|
- if(inx===-1||(inx===0&&i===-1)||(inx===this.rows.length-1&&i===1)){
|
|
|
- return ;
|
|
|
- }
|
|
|
- this.focusOn = inx+i;
|
|
|
- this.rows.splice(inx,1);
|
|
|
- this.rows.splice(inx+i,0,item);
|
|
|
- },
|
|
|
handlePlaceholder(type){ //占位符类型,type=0文本输入框,type=1数字输入框
|
|
|
const i = this.focusOn;
|
|
|
clearTimeout(this.msgTimer);
|