|
@@ -144,7 +144,6 @@ export default {
|
|
|
let reg = /^[a-zA-Z0-9:.,?!@]{0,100}[#$^]?$/;
|
|
|
let checkFrequency = (rule, value, callback) => {
|
|
|
let pycode = this.$refs.pycode.value;
|
|
|
- console.log(pycode);
|
|
|
if (!reg.test(pycode && pycode.trim())) {
|
|
|
callback('术语拼音仅支持字母、数字和标点符号');
|
|
|
} else {
|
|
@@ -372,14 +371,13 @@ export default {
|
|
|
return params;
|
|
|
},
|
|
|
onSubmit() {
|
|
|
- // console.log(this.$route.params,'this.$route.params')
|
|
|
const { currentPage, isEdit } = this.$route.params;
|
|
|
let numberpage = 1;
|
|
|
if (isEdit) {
|
|
|
numberpage = currentPage;
|
|
|
}
|
|
|
- // console.log(this.isValidate);
|
|
|
- if (this.isValidate === false || this.isTrans === false) return; // 术语名称已存在
|
|
|
+ // if (this.isValidate === false || this.isTrans === false) return; // 术语名称已存在
|
|
|
+ if (this.isValidate === false) return; // 术语名称已存在ss
|
|
|
let goOn = true;
|
|
|
if (this.form.labelType === '药物过敏原') {
|
|
|
this.$refs.drugAllergensForm.$refs.drugAllergensForm &&
|
|
@@ -424,7 +422,10 @@ export default {
|
|
|
if (!goOn) return;
|
|
|
this.saveDisable = true;
|
|
|
let params = this._getParams();
|
|
|
- // console.log(params, '==========');
|
|
|
+ if (this.isTrans === false) {
|
|
|
+ this.saveDisable = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
api.saveEntity(params).then(res => {
|
|
|
if (res.data.code === '0') {
|
|
|
this.$message({
|