index.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. export const projectData = {
  2. props: {
  3. // 视图数据源
  4. tableData: {
  5. type: Array,
  6. default: () => {
  7. return []
  8. }
  9. },
  10. // 分页信息
  11. queryParams: {
  12. type: Object,
  13. default: () => {
  14. return {
  15. current: 1,
  16. size: 10
  17. }
  18. }
  19. },
  20. // 栏位
  21. column: {
  22. type: Array,
  23. default: () => {
  24. return []
  25. }
  26. },
  27. //专利号
  28. projectId: {
  29. default: 0
  30. },
  31. //选择专利
  32. refresh: {
  33. default: false
  34. },
  35. patentNoList: {
  36. type: Array,
  37. default: () => {
  38. return []
  39. }
  40. },
  41. outside: {
  42. default: false
  43. },
  44. },
  45. data() {
  46. return {
  47. }
  48. },
  49. mounted() {
  50. },
  51. methods: {
  52. // 点击专利号
  53. handleClick(row, index) {
  54. var location = (index + 1) + ((this.queryParams.current - 1) * this.queryParams.size)
  55. this.$emit('clickPatentNo', row, location)
  56. },
  57. changeSelect(patent) {
  58. const index1 = this.patentNoList.indexOf(patent.patentNo)
  59. if (index1 === -1) {
  60. this.patentNoList.push(patent.patentNo)
  61. } else {
  62. this.patentNoList.splice(index1, 1)
  63. }
  64. this.$emit('addSelect', patent.patentNo)
  65. }
  66. },
  67. }
  68. import { mapGetters } from "vuex"
  69. export const handleData = {
  70. // mixins: [highlight],
  71. props: {
  72. },
  73. data() {
  74. return {
  75. //专利类型
  76. patentType: {
  77. 1: '发明',
  78. 8: '发明',
  79. 2: '实用新型',
  80. 9: '实用新型',
  81. 3: '外观',
  82. 4: '授权发明'
  83. },
  84. // 专利状态
  85. simpleStatus: {
  86. 1: '有效',
  87. 2: '无效',
  88. 3: '审中',
  89. },
  90. // 法律状态(暂定)
  91. legalStatus: {
  92. 1: '有效',
  93. 2: '无效',
  94. 3: '审中',
  95. },
  96. }
  97. },
  98. computed: {
  99. ...mapGetters(['highlight'])
  100. },
  101. mounted() {
  102. },
  103. methods: {
  104. getCustomView(row,field){
  105. var data = row.customFields
  106. if(data && data.length>0){
  107. var fieldId = field.value
  108. var fieldType = field.type
  109. var obj = data.find(item=>{
  110. return item.field == fieldId && item.fieldType == fieldType
  111. })
  112. if(obj){
  113. var arr = obj.fieldValueVOS
  114. var text = arr.map(item=>item.value).join('<br>')
  115. return this.getViewDom(text, null)
  116. }
  117. return ''
  118. }
  119. return ''
  120. },
  121. getView(row, key, type, prop, data) {
  122. var obj = {
  123. type: type ? type : 'String',
  124. value: key
  125. }
  126. if (row) {
  127. const change2 = row.change2
  128. const change = row.change
  129. switch (key) {
  130. case "title":
  131. // prop = !change ? "content" : "contentOut"
  132. // obj.type = 'Object'
  133. var arr = row.title
  134. if (!arr) {
  135. text = ''
  136. break
  137. }
  138. if (!change) {
  139. var obj = arr.find(item => {
  140. return item.if_origin
  141. })
  142. var text = ''
  143. if (obj) {
  144. text = obj.text_content
  145. }
  146. } else {
  147. var obj = arr.find(item => {
  148. return !item.if_origin && item.language == 'CN'
  149. })
  150. var text = ''
  151. if (obj) {
  152. text = obj.text_content
  153. }
  154. }
  155. break
  156. case "abstractStr":
  157. // prop = !change2 ? "content" : "contentOut"
  158. // obj.type = 'Object'
  159. var arr = row.abstractStr
  160. if (!arr) {
  161. text = ''
  162. break
  163. }
  164. if (!change2) {
  165. var obj = arr.find(item => {
  166. return item.if_origin
  167. })
  168. var text = ''
  169. if (obj) {
  170. text = obj.text_content
  171. }
  172. } else {
  173. var obj = arr.find(item => {
  174. return !item.if_origin && item.language == 'CN'
  175. })
  176. var text = ''
  177. if (obj) {
  178. text = obj.text_content
  179. }
  180. }
  181. break;
  182. case "mipc"://ipc
  183. case 'inventor'://发明人
  184. case 'applicant'://申请人
  185. case 'rightHolder'://权利人
  186. let ipcArr = []
  187. for (let k in row[key]) {
  188. ipcArr.push(row[key][k])
  189. }
  190. // row[`${key}2`] = ipcArr
  191. // obj.value = `${key}2`
  192. // obj.type = 'Array'
  193. // var text = this.$commonJS.getColumnData(row, obj, prop, data)
  194. var text = ipcArr.join('<br>')
  195. break;
  196. case 'legalStatus'://法律状态
  197. case 'simpleStatus'://专利状态
  198. case 'patentType'://专利类型
  199. var text = this[key][row[key]]
  200. break;
  201. default:
  202. var text = this.$commonJS.getColumnData(row, obj, prop, data)
  203. break
  204. }
  205. // var text = this.$commonJS.getColumnData(row, obj, prop, data)
  206. // console.log(text,key);
  207. return this.getViewDom(text, type)
  208. }
  209. },
  210. getViewDom(text, field,) {
  211. if (!text) {
  212. return ""
  213. }
  214. // var obj = null
  215. // switch (field) {
  216. // case '权利要求原文':
  217. // obj = text.find(item => {
  218. // return item.if_origin
  219. // })
  220. // if(obj){
  221. // var currentText = obj.text_content
  222. // text = currentText.replace(/(\t)+/g,'<br/>')
  223. // }else{
  224. // text = ''
  225. // }
  226. // break;
  227. // case '权利要求译文':
  228. // obj = text.find(item => {
  229. // return item.if_origin == false
  230. // })
  231. // if(obj){
  232. // var currentText = obj.text_content
  233. // text = currentText.replace(/(\t)+/g,'<br/>')
  234. // }else{
  235. // text = ''
  236. // }
  237. // break;
  238. // case '说明书文本原文':
  239. // obj = text.find(item => {
  240. // return item.if_origin
  241. // })
  242. // if(obj){
  243. // text = obj.text_content.replace(/(\r\n)+/g,'<br/>').replace(/(\t)+/g,'<br/>')
  244. // }else {
  245. // text = ''
  246. // }
  247. // break;
  248. // case '说明书文本译文':
  249. // obj = text.find(item => {
  250. // return item.if_origin == false
  251. // })
  252. // if(obj){
  253. // text = obj.text_content.replace(/(\r\n){1}/g,'<br/>').replace(/(\t)+/g,'<br/>')
  254. // }else {
  255. // text = ''
  256. // }
  257. // break;
  258. // default:
  259. // break;
  260. // }
  261. if (!text) {
  262. return ""
  263. }
  264. if (this.patent && this.patent.patentNo && field) {
  265. // SET_PATENT_OPINION_CONTRAST
  266. var arr = ['piZhuContrastList', 'contrastList', 'opinionContrastList']
  267. arr.forEach((item, index) => {
  268. if (this.highlight[item].length > 0) {
  269. text = this.getObject(item, index, text, field)
  270. }
  271. });
  272. }
  273. if (!this.highlight.patentHightLight.ifEnable || !text) {
  274. return text
  275. }
  276. try {
  277. this.highlight.patentHightLight.configs.map(item => {
  278. const keywords = item.keywords.split(';')
  279. for (let keyword of keywords) {
  280. if (!keyword) {
  281. continue
  282. }
  283. let sText = text
  284. let num = -1
  285. const rStr = new RegExp(keyword, "g")
  286. const rHtml = new RegExp("\<.*?\>", "ig")
  287. const sKey = `<span style="background: ${item.color};color: #fff">${keyword}</span>`
  288. const aHtml = sText.match(rHtml)
  289. sText = sText.replace(rHtml, '{~}')
  290. sText = sText.replace(rStr, sKey)
  291. sText = sText.replace(/{~}/g, () => {
  292. num++
  293. return aHtml[num]
  294. })
  295. text = sText
  296. }
  297. })
  298. } catch (e) {
  299. }
  300. // console.log(text);
  301. return text
  302. },
  303. getObject(key, index, text, field) {
  304. var arr1 = ['color', 'Type', 'Id', 'column', 'index', 'text', 'remark', 'temNode', 'selectType']
  305. var obj = {
  306. // 'piZhuContrastList': ['color', 'scratchType', 'id', 'scratchField', 'position', 'text', 'remark'],
  307. 'piZhuContrastList': ['markColor', 'markType', 'id', 'markSelectField', 'markSite', 'markSelectText', 'markNoteText'],
  308. 'contrastList': ['markColor', 'markType', 'id', 'fieldName', 'position', 'evidenceText'],
  309. // 'opinionContrastList': ['color', 'scratchType', 'id', 'scratchField', 'position', 'content'],
  310. 'opinionContrastList': ['markColor', 'markType', 'id', 'scratchField', 'position', 'content'],
  311. }
  312. var selectType = ['p', 'c', 'o']
  313. var row = this.highlight[key]
  314. if (row.length > 0) {
  315. for (let i = 0; i < row.length; i++) {
  316. if (row[i].patentNo == this.patent.patentNo || (key == 'contrastList'&& (this.patent.patentNo != this.signPatentNo) && this.evidence && row[i].literatureId == this.evidence.id)) {
  317. if (row[i][obj[key][3]].indexOf(field) != -1) {
  318. var a = {}
  319. a.Type = 1
  320. obj[key].forEach((item, index1) => {
  321. if (item) {
  322. if (arr1[index1] == 'index') {
  323. a[arr1[index1]] = Number(row[i][item])
  324. } else {
  325. a[arr1[index1]] = row[i][item]
  326. }
  327. }
  328. });
  329. a.temNode = text
  330. a.selectType = selectType[index]
  331. text = this.AddClass1(a);
  332. }
  333. }
  334. }
  335. return text
  336. }
  337. },
  338. //切换原文译文
  339. handleChange(row, key) {
  340. if(!this.haveTranslatedText(row, key)){
  341. this.$message.warning('无译文')
  342. return
  343. }
  344. switch (key) {
  345. case "title":
  346. this.$set(row, 'change', !row.change)
  347. break
  348. case "abstractStr":
  349. this.$set(row, 'change2', !row.change2)
  350. // row.change2 = !row.change2
  351. break
  352. }
  353. },
  354. //判断是否有译文
  355. haveTranslatedText(row,key){
  356. var arr = row[key]
  357. if (!arr) {
  358. return ''
  359. }
  360. var obj = arr.find(item => {
  361. return !item.if_origin && item.language == 'CN'
  362. })
  363. var text = ''
  364. if (obj) {
  365. text = obj.text_content
  366. }
  367. return text
  368. },
  369. },
  370. }
  371. export const highlight = {
  372. data() {
  373. return {
  374. }
  375. },
  376. computed: {
  377. // piZhuContrastList() {
  378. // return this.$store.state.highlight.piZhuContrastList
  379. // },
  380. // contrastList() {
  381. // return this.$store.state.highlight.contrastList
  382. // },
  383. // opinionContrastList() {
  384. // return this.$store.state.highlight.opinionContrastList
  385. // },
  386. },
  387. mounted() {
  388. window.mouseenter1 = this.mouseenter1
  389. window.mouseleave1 = this.mouseleave1
  390. },
  391. methods: {
  392. mouseenter1(e, id, selectType) {
  393. var dom = document.getElementsByClassName(id)
  394. var message = this.getMessage(id, selectType)
  395. // 普通for循环可以拿到dom节点,forEach是拿不到dom节点
  396. for (let i = 0; i < dom.length - 1; i++) {
  397. dom[i].classList.add('greenColor')
  398. this.getChildNodesAdd(dom[i].childNodes)
  399. }
  400. // e.target是获取当前的,dom获取的是所有的class相同的节点
  401. e.target.parentNode.classList.add("pizhuLightHeigh");
  402. if (message.remark) {
  403. e.target.parentNode.appendChild(this.addPara(message.remark, e));
  404. }
  405. },
  406. getMessage(id, selectType) {
  407. var Id = id.substring(1, id.length)
  408. var messageItem = {}
  409. if (selectType == 'p') {//批注
  410. var messageItem = this.highlight.piZhuContrastList.find(item => {
  411. return item.id == Id
  412. })
  413. } else if (selectType == 'c') {//对比
  414. var messageItem = this.highlight.contrastList.find(item => {
  415. return item.id == Id
  416. })
  417. } else if (selectType == 'o') {//
  418. var messageItem = this.highlight.opinionContrastList.find(item => {
  419. return item.id == Id
  420. })
  421. }
  422. return messageItem
  423. },
  424. // 添加背景色
  425. getChildNodesAdd(dom) {
  426. if (dom.length > 0) {
  427. for (let m = 0; m < dom.length; m++) {
  428. if (dom[m].nodeType == 1) {
  429. dom[m].classList.add('greenColor')
  430. }
  431. if (dom[m].childNodes.length > 0) {
  432. this.getChildNodesAdd(dom[m].childNodes)
  433. }
  434. }
  435. }
  436. },
  437. addPara(val, e) {
  438. //创建div标签
  439. var p = document.createElement("div");
  440. //添加class
  441. p.classList.add('showPiZhu')
  442. if (e.clientY - 200 < 200 && e.clientX + 200 > document.documentElement.clientWidth) {
  443. p.setAttribute('style', 'left:-200px')
  444. } else if ((e.clientX + 200 > document.documentElement.clientWidth && e.clientY + 200 > document.documentElement.clientHeight) || e.clientX + 200 > document.documentElement.clientWidth) {
  445. p.setAttribute('style', 'bottom:25px;left:-200px;')
  446. } else if ((e.clientY + 200 > document.documentElement.clientHeight && e.clientX - 200 < 200) || (e.clientY + 200 > document.documentElement.clientHeight && e.clientX - 200 > 200)) {
  447. p.setAttribute('style', 'bottom:20px;left:10px')
  448. }
  449. //创建文本节点
  450. var text = document.createTextNode(val);
  451. //将文本节点追加到元素节点中
  452. p.appendChild(text);
  453. return p
  454. },
  455. mouseleave1(e, id, selectType) {
  456. var dom = document.getElementsByClassName(id)
  457. e.target.parentNode.classList.remove("pizhuLightHeigh");
  458. var message = this.getMessage(id, selectType)
  459. if (message.remark) {
  460. document.getElementsByClassName('showPiZhu')[0].remove()
  461. }
  462. for (let i = 0; i < dom.length - 1; i++) {
  463. dom[i].classList.remove('greenColor')
  464. this.getChildNodesRemove(dom[i].childNodes)
  465. }
  466. },
  467. // 删除背景色
  468. getChildNodesRemove(dom) {
  469. if (dom.length > 0) {
  470. for (let m = 0; m < dom.length; m++) {
  471. if (dom[m].nodeType == 1) {
  472. dom[m].classList.remove('greenColor')
  473. }
  474. if (dom[m].childNodes.length > 0) {
  475. this.getChildNodesRemove(dom[m].childNodes)
  476. }
  477. }
  478. }
  479. },
  480. AddClass1(selectObject) {
  481. let el = selectObject.temNode;
  482. // 将当前页面获取到的字符串进行处理,返回当前页面所有的标签及文本
  483. var splitStrings = this.SplitHtmlTag1(el);
  484. let bgColor = selectObject.color;
  485. if (!bgColor) {
  486. selectObject.color = 'yellow'
  487. }
  488. // 添加线及高亮(2:波浪线,0:下划线,1:高亮)
  489. var style = ''
  490. switch (selectObject.Type + '') {
  491. case '0'://下划线
  492. style = `text-decoration-line: underline;text-decoration-color: ${selectObject.color}`
  493. break;
  494. case '1'://高亮
  495. style = `background-color:${selectObject.color}`
  496. break;
  497. case '2'://波浪线
  498. style = `text-decoration-line: underline;text-decoration-style: wavy ;text-decoration-color: ${selectObject.color}`
  499. break;
  500. case '5'://加粗
  501. style = `font-weight: bold;`
  502. break;
  503. }
  504. let startTag = `<span class="${selectObject.selectType + selectObject.Id}" id="${selectObject.selectType + selectObject.Id}" style="${style}">`
  505. //图标
  506. var a = 'icon-xinxi3'
  507. switch (selectObject.selectType) {
  508. case 'p'://批注
  509. a = 'iconfont icon-xinxi3'
  510. break;
  511. case 'c'://对比
  512. a = 'el-icon-location-outline'
  513. break;
  514. case 'o'://陈述意见
  515. a = 'iconfont icon-xinxi2'
  516. break;
  517. case 'r'://特征
  518. break
  519. }
  520. var imgTag = `<span class="${selectObject.selectType + selectObject.Id}" style="background-color:white !important;"><i class="${a}" style="vertical-align: super;background-color:white !important;" onclick="vm.selectMark('${selectObject.selectType + selectObject.Id}','${selectObject.selectType}')" onmouseenter="mouseenter1(event,'${selectObject.selectType + selectObject.Id}','${selectObject.selectType}')" onmouseleave="mouseleave1(event,'${selectObject.selectType + selectObject.Id}','${selectObject.selectType}')"></i></span>`
  521. if (selectObject.selectType == 'r') {//特征
  522. imgTag = `<span class="${selectObject.selectType + selectObject.Id}" style="background-color:white !important;"><i class="el-icon-delete" style="vertical-align: super;background-color:white !important;" onclick="deleteFeature('${selectObject.selectType + selectObject.Id}','${selectObject.selectType}')"></i></span>`
  523. }
  524. if(!selectObject.selectType){
  525. imgTag = ''
  526. }
  527. let endTag = '</span>';
  528. let elText = '';
  529. splitStrings.forEach(function (item) {
  530. if (item.type == 'text') {
  531. elText = elText + item.text;
  532. }
  533. });
  534. let Indexs = [];
  535. let i = 0
  536. if (selectObject.index < 0) {
  537. let pattern = new RegExp(selectObject.text.replace(/[\r\n]/g, "").replace(/\ +/g, ""), "g");
  538. while ((match = pattern.exec(elText)) != null) {
  539. Indexs[i] = match;
  540. i++;
  541. }
  542. } else {
  543. Indexs[i] = [selectObject.text];
  544. Indexs[i].index = selectObject.index;
  545. }
  546. Indexs.forEach(function (match) {
  547. let currentIndex = 0;
  548. let temSplitStrings = new Array();
  549. splitStrings.forEach(function (item) {
  550. if (item.type == 'text') {
  551. if (item.text) {
  552. if (match.index >= currentIndex && match.index < (currentIndex + item.text.length)) {
  553. if ((match.index + match[0].length) <= (currentIndex + item.text.length) && item.text.indexOf(match[0]) != -1) {
  554. if (match.index > currentIndex) {
  555. temSplitStrings.push({ text: item.text.substring(0, match.index - currentIndex), type: 'text' });
  556. }
  557. temSplitStrings.push({ text: startTag, type: 'tag' });
  558. temSplitStrings.push({ text: match[0], type: 'text' });
  559. temSplitStrings.push({ text: imgTag, type: 'tag' });
  560. // }
  561. temSplitStrings.push({ text: endTag, type: 'tag' });
  562. if ((match.index + match[0].length) < (currentIndex + item.text.length)) {
  563. temSplitStrings.push({ text: item.text.substring((match.index + match[0].length) - currentIndex), type: 'text' });
  564. }
  565. } else {
  566. if (item.text.indexOf(match[0]) != -1) {
  567. if (match.index > currentIndex) {
  568. temSplitStrings.push({ text: item.text.substring(0, match.index - currentIndex), type: 'text' });
  569. }
  570. if (temSplitStrings.length > 1) {
  571. temSplitStrings.push({ text: startTag, type: 'tag' });
  572. } else {
  573. temSplitStrings.push({ text: startTag, type: 'tag' });
  574. }
  575. temSplitStrings.push({ text: item.text.substring(match.index - currentIndex), type: 'text' });
  576. temSplitStrings.push({ text: endTag, type: 'tag' });
  577. } else {
  578. // console.log(temSplitStrings,match.index,item.text,currentIndex,match[0])
  579. // debugger
  580. temSplitStrings.push({ text: item.text.substring(0, match.index - currentIndex), type: 'text' });
  581. temSplitStrings.push({ text: startTag, type: 'tag' });
  582. temSplitStrings.push({ text: item.text.substring(match.index - currentIndex, item.text.length), type: 'text' });
  583. // temSplitStrings.push({ text: imgTag, type: 'tag' });
  584. temSplitStrings.push({ text: endTag, type: 'tag' });
  585. // return false
  586. // temSplitStrings.push(item);
  587. }
  588. }
  589. } else {
  590. if ((match.index + match[0].length) <= (currentIndex + item.text.length) && (match.index + match[0].length) > currentIndex) {
  591. temSplitStrings.push({ text: startTag, type: 'tag' });
  592. temSplitStrings.push({ text: item.text.substring(0, match.index + match[0].length - currentIndex), type: 'text' });
  593. temSplitStrings.push({ text: imgTag, type: 'tag' });
  594. temSplitStrings.push({ text: endTag, type: 'tag' });
  595. if ((match.index + match[0].length) < (currentIndex + item.text.length)) {
  596. temSplitStrings.push({ text: item.text.substring((match.index + match[0].length - currentIndex)), type: 'text' });
  597. }
  598. } else {
  599. if (match.index < currentIndex && (match.index + match[0].length) >= (currentIndex + item.text.length)) {
  600. temSplitStrings.push({ text: startTag, type: 'tag' });
  601. temSplitStrings.push(item);
  602. temSplitStrings.push({ text: endTag, type: 'tag' });
  603. } else {
  604. temSplitStrings.push(item);
  605. }
  606. }
  607. }
  608. currentIndex = currentIndex + item.text.length;
  609. } else {
  610. temSplitStrings.push(item);
  611. }
  612. } else {
  613. temSplitStrings.push(item);
  614. }
  615. });
  616. splitStrings = temSplitStrings;
  617. });
  618. let temInnerHtml = '';
  619. splitStrings.forEach(function (item) {
  620. temInnerHtml = temInnerHtml + item.text;
  621. });
  622. return temInnerHtml;
  623. },
  624. SplitHtmlTag1(el) {
  625. let temInnerHtml = el.trim();
  626. let pattern = /<[^>]+>/g;
  627. let Indexs = [];
  628. let i = 0
  629. var match = null
  630. while ((match = pattern.exec(temInnerHtml)) != null) {
  631. Indexs[i] = match;
  632. i++;
  633. }
  634. var splitStrings = new Array();
  635. i = 0;
  636. var currentIndex = 0;
  637. for (var index = 0; index < Indexs.length; index++) {
  638. if (Indexs[index].index > currentIndex) {
  639. splitStrings[i] = { "text": temInnerHtml.substring(currentIndex, Indexs[index].index), "type": "text" };
  640. i++;
  641. splitStrings[i] = { "text": Indexs[index][0], "type": "tag" };
  642. i++;
  643. } else {
  644. splitStrings[i] = { "text": Indexs[index][0], "type": "tag" };
  645. i++;
  646. }
  647. currentIndex = Indexs[index].index + Indexs[index][0].length;
  648. }
  649. if (currentIndex < temInnerHtml.length) {
  650. splitStrings[i] = { "text": temInnerHtml.substring(currentIndex, temInnerHtml.length), "type": "text" };
  651. }
  652. return splitStrings;
  653. },
  654. },
  655. }