fix some bug
This commit is contained in:
parent
bf75aad55b
commit
a6b61c6589
@ -105,6 +105,7 @@
|
|||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
line-height: 16px;
|
||||||
}
|
}
|
||||||
.files {
|
.files {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
@ -189,8 +190,8 @@
|
|||||||
/* display: none; */
|
/* display: none; */
|
||||||
|
|
||||||
background-color:rgba(255, 255, 255, 0.0);
|
background-color:rgba(255, 255, 255, 0.0);
|
||||||
border: 2px solid rgb(87, 198, 232);
|
border: 2px solid #30DFF3;
|
||||||
box-shadow: 0px 0px 2px rgb(87, 198, 232);
|
box-shadow: 0px 0px 2px #30DFF3;
|
||||||
}
|
}
|
||||||
.warnText{
|
.warnText{
|
||||||
color: #D50000;
|
color: #D50000;
|
||||||
@ -237,6 +238,14 @@
|
|||||||
#mapColMark td{
|
#mapColMark td{
|
||||||
width: 29px;
|
width: 29px;
|
||||||
}
|
}
|
||||||
|
#mapColMark td:hover .colBlock{
|
||||||
|
position: absolute;
|
||||||
|
top: 19px;
|
||||||
|
height: 416px;
|
||||||
|
width: 32px;
|
||||||
|
z-index: 100;
|
||||||
|
background-color: rgba(38,166,154,.5);
|
||||||
|
}
|
||||||
table.row{
|
table.row{
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -244,7 +253,7 @@
|
|||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
table.row td{
|
table.row td{
|
||||||
background-color: #795548;
|
background-color: #A1887F;
|
||||||
}
|
}
|
||||||
#arrRowMark{
|
#arrRowMark{
|
||||||
top: 5px;
|
top: 5px;
|
||||||
@ -263,6 +272,14 @@
|
|||||||
#mapRowMark td{
|
#mapRowMark td{
|
||||||
height: 29px;
|
height: 29px;
|
||||||
}
|
}
|
||||||
|
#mapRowMark td:hover .rowBlock{
|
||||||
|
position: absolute;
|
||||||
|
left: 18px;
|
||||||
|
height: 32px;
|
||||||
|
width: 416px;
|
||||||
|
z-index: 100;
|
||||||
|
background-color: rgba(121,85,72,.5);
|
||||||
|
}
|
||||||
/* for vue dom */
|
/* for vue dom */
|
||||||
[v-cloak] {
|
[v-cloak] {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
@ -367,14 +384,14 @@
|
|||||||
// 生成定位编号
|
// 生成定位编号
|
||||||
var colNum = ' ';
|
var colNum = ' ';
|
||||||
for(var i=0; i<13; i++){
|
for(var i=0; i<13; i++){
|
||||||
var tpl = '<td>'+i+'</td>';
|
var tpl = '<td>'+i+'<div class="colBlock" style="left:'+(i*32+1)+'px;"></div></td>';
|
||||||
colNum += tpl;
|
colNum += tpl;
|
||||||
}
|
}
|
||||||
arrColMark.innerHTML = '<tr>'+colNum+'</tr>';
|
arrColMark.innerHTML = '<tr>'+colNum+'</tr>';
|
||||||
mapColMark.innerHTML = '<tr>'+colNum+'</tr>';
|
mapColMark.innerHTML = '<tr>'+colNum+'</tr>';
|
||||||
var rowNum = ' ';
|
var rowNum = ' ';
|
||||||
for(var i=0; i<13; i++){
|
for(var i=0; i<13; i++){
|
||||||
var tpl = '<tr><td>'+i+'</td></tr>';
|
var tpl = '<tr><td>'+i+'<div class="rowBlock" style="top:'+(i*32+1)+'px;"></div></td></tr>';
|
||||||
rowNum += tpl;
|
rowNum += tpl;
|
||||||
}
|
}
|
||||||
arrRowMark.innerHTML = rowNum;
|
arrRowMark.innerHTML = rowNum;
|
||||||
@ -948,9 +965,10 @@
|
|||||||
formatTimer: null,
|
formatTimer: null,
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
mapArr: function () {
|
mapArr: function (val, oldval) {
|
||||||
var that = this;
|
var that = this;
|
||||||
if(that.mapArr !='' && that.formatArr()){
|
if(val=='') return;
|
||||||
|
if(that.formatArr()){
|
||||||
that.error = 0;
|
that.error = 0;
|
||||||
clearTimeout(that.formatTimer);
|
clearTimeout(that.formatTimer);
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
@ -1007,7 +1025,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(var k=0; k<13; k++){
|
for(var k=0; k<13; k++){
|
||||||
formatArrStr += Array(Math.max(4-a[k].length,0)).join(' ')+parseInt(a[k])+(k==12?'':',');
|
var num = parseInt(a[k]);
|
||||||
|
formatArrStr += Array(Math.max(4-String(num).length,0)).join(' ')+num+(k==12?'':',');
|
||||||
}
|
}
|
||||||
formatArrStr += ']'+(i==12?'':',\n');
|
formatArrStr += ']'+(i==12?'':',\n');
|
||||||
}
|
}
|
||||||
@ -1055,6 +1074,7 @@
|
|||||||
ec = eventLayer.getContext('2d');
|
ec = eventLayer.getContext('2d');
|
||||||
ec.clearRect(0, 0, 416, 416);
|
ec.clearRect(0, 0, 416, 416);
|
||||||
clearTimeout(editArea.formatTimer);
|
clearTimeout(editArea.formatTimer);
|
||||||
|
clearTimeout(tip.timer);
|
||||||
pout.value = '';
|
pout.value = '';
|
||||||
editArea.mapArr = '';
|
editArea.mapArr = '';
|
||||||
tip.whichShow = 4;
|
tip.whichShow = 4;
|
||||||
@ -1102,13 +1122,14 @@
|
|||||||
var that = this;
|
var that = this;
|
||||||
that.mapMsg = '';
|
that.mapMsg = '';
|
||||||
that.msgs[4] = "复制失败!"+editTip.err;
|
that.msgs[4] = "复制失败!"+editTip.err;
|
||||||
if(that.whichShow)
|
|
||||||
that.mapMsg = that.msgs[that.whichShow-1];
|
|
||||||
|
|
||||||
clearTimeout(that.timer);
|
clearTimeout(that.timer);
|
||||||
|
if(that.whichShow){
|
||||||
|
that.mapMsg = that.msgs[that.whichShow-1];
|
||||||
that.timer = setTimeout(function() {
|
that.timer = setTimeout(function() {
|
||||||
tip.whichShow = 0;
|
if(!(that.whichShow%2))
|
||||||
}, 5000); //5秒后自动清除
|
that.whichShow = 0;
|
||||||
|
}, 5000); //5秒后自动清除success,warn不清除
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1121,6 +1142,8 @@
|
|||||||
watch: {
|
watch: {
|
||||||
isSelected: function(){
|
isSelected: function(){
|
||||||
tip.isSelectedBlock = this.isSelected;
|
tip.isSelectedBlock = this.isSelected;
|
||||||
|
tip.whichShow = 0;
|
||||||
|
clearTimeout(tip.timer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user