|
|
|
@@ -93,7 +93,7 @@ |
|
|
|
<tr> |
|
|
|
<td class="ti-text-form-label text-width80">标签</td> |
|
|
|
<td class="ti-text-form-content"> |
|
|
|
<div id="Label"> |
|
|
|
<div id="Label" style="overflow: hidden;width: 95%;"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
@@ -219,6 +219,7 @@ function tranSize(value){ |
|
|
|
return size+unitArr[index]; |
|
|
|
} |
|
|
|
function editorFn(context){ |
|
|
|
debugger |
|
|
|
let id= context.dataset.id |
|
|
|
let text = context.dataset.desc |
|
|
|
$('#edit-td').replaceWith("<div id='edit-div' style='width:80%;display: inline-block;'><textarea id='textarea-value' value='' rows='3' maxlength='255' style='width:80%;' id='edit-text'>"+text+"</textarea><i class='check icon' style='color: #50d4ab;' onclick='editorSure(\"" + text + "\",\"" + id + "\")'></i><i class='times icon' style='color: #f66f6a;' onclick='editorCancel(\"" + text + "\",\"" + id + "\")'></i></div>"); |
|
|
|
@@ -228,6 +229,7 @@ function editorCancel(text,id){ |
|
|
|
$('#edit-div').replaceWith(`<div id="edit-td" style="display:flex;"><span id="Description" title="${text}" class="iword-elipsis">${text}</span><i id="edit-pencil" data-id="${id}" data-desc="${text}" class="pencil alternate icon" style="cursor:pointer;vertical-align: top;" id="editor" onclick="editorFn(this)"></div>`) |
|
|
|
} |
|
|
|
function editorSure(text,id){ |
|
|
|
debugger |
|
|
|
let description=$('#textarea-value').val() |
|
|
|
let data = { |
|
|
|
ID:id, |
|
|
|
@@ -258,7 +260,7 @@ function renderInfo(obj,accObj,id){ |
|
|
|
let labelArray = obj[key].trim().replace(/ +/g,' ').split(' ') |
|
|
|
let html='' |
|
|
|
for(let i=0;i<labelArray.length;i++){ |
|
|
|
html += `<a class="ui label">${labelArray[i]}</a>` |
|
|
|
html += `<a class="ui label" title="${labelArray[i]}">${labelArray[i]}</a>` |
|
|
|
} |
|
|
|
$('#Label').append(html) |
|
|
|
} |
|
|
|
|