|
|
@@ -67,8 +67,9 @@ const AITrans = function() {
|
|
|
$('#ai-trans-file-add').after(html.join(''));
|
|
|
},
|
|
|
loadAiRelaFile: async function() {
|
|
|
- if (this.rela_node.aiRelaFile) return;
|
|
|
- this.rela_node.aiRelaFile = await postDataAsync(window.location.pathname + '/ai/file', { rela_id: this.rela_node.id, rela_type: this.rela_type });
|
|
|
+ if (!this.rela_node.aiRelaFile) {
|
|
|
+ this.rela_node.aiRelaFile = await postDataAsync(window.location.pathname + '/ai/file', { rela_id: this.rela_node.id, rela_type: this.rela_type });
|
|
|
+ }
|
|
|
this.reloadAiRelaFile();
|
|
|
$('#ai-trans-show-file').attr('src', '');
|
|
|
},
|
|
|
@@ -228,6 +229,7 @@ const AITrans = function() {
|
|
|
});
|
|
|
});
|
|
|
const transDetail = async function(callback) {
|
|
|
+ console.log(1);
|
|
|
if (transResultObj.rela_type === 'bills') {
|
|
|
$('#ai-trans-title').html(`AI识别部位(${transResultObj.rela_node.b_code} ${transResultObj.rela_node.name})`);
|
|
|
} else if (transResultObj.rela_type === 'pos') {
|