浏览代码

常错词

newStyle
jyt 2 年前
父节点
当前提交
d19178fa8b
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. +8
    -1
      src/views/Receive/index.vue

+ 8
- 1
src/views/Receive/index.vue 查看文件

@@ -400,7 +400,7 @@
>
<el-form :model="form" ref="form" label-width="80px" :rules="rules">
<el-form-item label="常错词" prop="wrongWord">
<el-input v-model="form.wrongWord" disabled maxlength="8" autocomplete="off"></el-input>
<el-input v-model="form.wrongWord" :disabled="isNum" maxlength="8" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="正确词" prop="correctWord">
<el-input v-model="form.correctWord" maxlength="8" autocomplete="off"></el-input>
@@ -816,6 +816,7 @@ export default {
rec_index_todo: false,
rec_index_receflag: false,
rec_index_textyh: false,
isNum:false
};
},
created() {
@@ -1420,6 +1421,12 @@ export default {
this.form.wrongWord = onebest.replace(/<.*?>/gi, "");
this.dialogFormVisible = true;
this.argtextindex = index;

this.isNum = false;
let reg = /^[0-9]+$/
if (reg.test(this.form.wrongWord)) {
this.isNum = true
}
},
// 销讲词禁忌tab
recordclick(i) {


正在加载...
取消
保存