|
@@ -20,7 +20,7 @@ export const explain = {
|
|
|
methods: {
|
|
|
// 解释所需方法
|
|
|
saveValue(val) {//点击输入触发,第一次为空不打印
|
|
|
- // console.log("saveValue",val);
|
|
|
+ console.log("saveValue",val);
|
|
|
if (this.keepSure) {
|
|
|
this.keepSure = false;
|
|
|
}
|
|
@@ -77,6 +77,7 @@ export const explain = {
|
|
|
reader.onload = (event) => {
|
|
|
var blobUrl = event.target.result
|
|
|
var new_img = '<img src="' + blobUrl + '" style="width:80px;height: 80px;border: 1px solid #f9f6f675;vertical-align:middle" >';
|
|
|
+
|
|
|
let str = row[name]?row[name]:''
|
|
|
// var arr = this.SplitHtmlTag(this.innerhtml)
|
|
|
// var b = []
|
|
@@ -88,7 +89,8 @@ export const explain = {
|
|
|
// var html = b.join(' ')
|
|
|
// console.log(html)
|
|
|
// str = html
|
|
|
- if (this.innerHtml) {//不为空
|
|
|
+ if (this.innerhtml) {//不为空
|
|
|
+ // console.log(this.innerhtml + new_img)
|
|
|
// row[name] = this.innerhtml + new_img
|
|
|
this.$set(row,name,this.innerhtml + new_img)
|
|
|
this.innerhtml = ''
|