|
@@ -68,8 +68,8 @@
|
|
|
</p>
|
|
</p>
|
|
|
<ul v-if="list.properties && (list.properties.length > 1 || (list.properties.length == 1 && list.properties[0].value))">
|
|
<ul v-if="list.properties && (list.properties.length > 1 || (list.properties.length == 1 && list.properties[0].value))">
|
|
|
<li v-for="prop in properties">
|
|
<li v-for="prop in properties">
|
|
|
- <span :title="switchParams(prop.property.labelCn, 0)">{{prop.property.labelCn || '-'}}</span>
|
|
|
|
|
- <span :title="switchParams(prop.value, 0)">{{prop.value || '-'}}</span>
|
|
|
|
|
|
|
+ <span>{{prop.property.labelCn || '-'}}</span>
|
|
|
|
|
+ <span :title="prop.value&&prop.value.length > 25 ? switchParams(prop.value, 0): ''">{{prop.value || '-'}}</span>
|
|
|
</li>
|
|
</li>
|
|
|
<li v-if="!isEven(properties.length)">
|
|
<li v-if="!isEven(properties.length)">
|
|
|
<span>-</span>
|
|
<span>-</span>
|
|
@@ -197,12 +197,23 @@
|
|
|
let tmp = ''
|
|
let tmp = ''
|
|
|
if (str.length > index + 25) {
|
|
if (str.length > index + 25) {
|
|
|
tmp += str.substring(index, index + 25)
|
|
tmp += str.substring(index, index + 25)
|
|
|
- tmp += ' ' + this.switchParams(str, index + 25)
|
|
|
|
|
|
|
+ tmp += '\n' + this.switchParams(str, index + 25)
|
|
|
} else {
|
|
} else {
|
|
|
- tmp += str
|
|
|
|
|
|
|
+ tmp += str.substring(index, str.length - 1)
|
|
|
}
|
|
}
|
|
|
return tmp
|
|
return tmp
|
|
|
}
|
|
}
|
|
|
|
|
+// getRealLen: function (str) {
|
|
|
|
|
+// let len = 0
|
|
|
|
|
+// for (let i = 0; i < str.length; i++) {
|
|
|
|
|
+// if (str.charCodeAt(i) > 127 || str.charCodeAt(i) === 94) {
|
|
|
|
|
+// len += 2
|
|
|
|
|
+// } else {
|
|
|
|
|
+// len++
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
+// return len
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|