|
@@ -1,5 +1,6 @@
|
|
|
import config from '@config/index';
|
|
|
import {getLabelIndex,fullfillText} from '@common/js/func.js';
|
|
|
+import {formatContinueDots} from '@utils/tools.js';
|
|
|
|
|
|
//多选标签选中确定处理
|
|
|
export const confirm = (state,action) =>{
|
|
@@ -228,7 +229,8 @@ export function insertLabelData(state,action){
|
|
|
const searchStr = res.searchStr;
|
|
|
const {index,data,isReplace,span,searchInEnd}=action;
|
|
|
const showText = res.saveText[index];
|
|
|
- const spreadLabels = data.tagType==4?fullfillText(data.questionMapping).newArr:[data];
|
|
|
+ let searchLabels = data.tagType==4?fullfillText(data.questionMapping).newArr:[data];
|
|
|
+ const spreadLabels = formatContinueDots(searchLabels);
|
|
|
let reg = searchInEnd?new RegExp(searchStr+"$"):new RegExp("^"+searchStr);
|
|
|
const newText=showText.replace(reg,'')||' ';
|
|
|
if(!isReplace){
|