|
@@ -5,14 +5,24 @@
|
|
<div class="initia_title_1">{{initia_head.initial_suertext}}</div>
|
|
<div class="initia_title_1">{{initia_head.initial_suertext}}</div>
|
|
<div class="nitia_list" v-for="(v,i) in initia_arr" :key="i">
|
|
<div class="nitia_list" v-for="(v,i) in initia_arr" :key="i">
|
|
<span>{{v.initialName}}</span>
|
|
<span>{{v.initialName}}</span>
|
|
- <!-- <el-tooltip placement="top">
|
|
|
|
- <div slot="content" class="initia_mark?">多行信息<br/>第二行信息</div>
|
|
|
|
- <el-button class="initia_el_button"></el-button>
|
|
|
|
- </el-tooltip>-->
|
|
|
|
<p class="initia_mark" v-show="v.initia_mark">?</p>
|
|
<p class="initia_mark" v-show="v.initia_mark">?</p>
|
|
- <el-input v-model="v.initia_input" placeholder="请输入分值"></el-input>
|
|
|
|
|
|
+ <div class="initia_mark_none">
|
|
|
|
+ <div class="initia_mark_none_text">
|
|
|
|
+ <p v-html="v.initial_text"></p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="initia_mark_none_jt"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="v.initia_input"
|
|
|
|
+ placeholder="请输入分值"
|
|
|
|
+ oninput="if(this.value=='0'){this.value='';}else{this.value=this.value.replace(/[^0-9]/g,'')}"
|
|
|
|
+ ></el-input>
|
|
</div>
|
|
</div>
|
|
- <button class="initia_button" @click="save()">保存</button>
|
|
|
|
|
|
+ <button
|
|
|
|
+ class="initia_button"
|
|
|
|
+ @click="save()"
|
|
|
|
+ :style="'margin: 20px 0 0 '+initia_head.initial_left"
|
|
|
|
+ >保存</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -36,10 +46,20 @@ export default {
|
|
arr.push({
|
|
arr.push({
|
|
sj: this.initia_arr[i].initia_input,
|
|
sj: this.initia_arr[i].initia_input,
|
|
});
|
|
});
|
|
- this.initia_arr[i].initia_input = "";
|
|
|
|
|
|
+ if (arr.length == this.initia_arr.length) {
|
|
|
|
+ this.$emit("initia", arr);
|
|
|
|
+ for (let a = 0; a < this.initia_arr.length; a++) {
|
|
|
|
+ this.initia_arr[a].initia_input = "";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入内容',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ });
|
|
|
|
+ return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.$emit("initia", arr);
|
|
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
@@ -77,6 +97,7 @@ export default {
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
+ position: relative;
|
|
}
|
|
}
|
|
.nitia_list span {
|
|
.nitia_list span {
|
|
color: #606266;
|
|
color: #606266;
|
|
@@ -92,7 +113,6 @@ export default {
|
|
border: 1px solid rgba(220, 223, 230, 1);
|
|
border: 1px solid rgba(220, 223, 230, 1);
|
|
margin-left: 11px;
|
|
margin-left: 11px;
|
|
}
|
|
}
|
|
-
|
|
|
|
.initia_button {
|
|
.initia_button {
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
background-color: rgba(38, 162, 255, 1);
|
|
background-color: rgba(38, 162, 255, 1);
|
|
@@ -102,11 +122,44 @@ export default {
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
text-align: center;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
line-height: 40px;
|
|
- margin: 20px 0 0 72px;
|
|
|
|
outline: none;
|
|
outline: none;
|
|
}
|
|
}
|
|
.initia_el_button {
|
|
.initia_el_button {
|
|
width: 13px;
|
|
width: 13px;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
+.initia_mark_none_jt {
|
|
|
|
+ float: left;
|
|
|
|
+ width: 0;
|
|
|
|
+ height: 0;
|
|
|
|
+ border-width: 6px;
|
|
|
|
+ border-style: solid;
|
|
|
|
+ border-color: rgba(0, 0, 0, 1) transparent transparent transparent;
|
|
|
|
+ margin-left: 56px;
|
|
|
|
+ opacity: 0.8;
|
|
|
|
+}
|
|
|
|
+.initia_mark_none_text {
|
|
|
|
+ background-color: rgba(0, 0, 0, 1);
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+ opacity: 0.9;
|
|
|
|
+}
|
|
|
|
+.initia_mark_none_text p {
|
|
|
|
+ padding: 7px 15px 15px 7px;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+}
|
|
|
|
+.initia_mark_none {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: -10px;
|
|
|
|
+ bottom: 32px;
|
|
|
|
+ transition: 0.4s;
|
|
|
|
+ opacity: 0;
|
|
|
|
+ visibility: hidden;
|
|
|
|
+ z-index: 0;
|
|
|
|
+}
|
|
|
|
+.initia_mark:hover + .initia_mark_none {
|
|
|
|
+ opacity: 1;
|
|
|
|
+ visibility: visible;
|
|
|
|
+ z-index: 10;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|