|
@@ -14,7 +14,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="诊断依据描述:" prop="description" class="description">
|
|
|
+ <el-form-item label="诊断依据描述:" class="description">
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入诊断依据描述" v-model.trim="form.description"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="诊断依据内容:" prop="remind" class="discDesc is-required">
|
|
@@ -106,13 +106,8 @@
|
|
|
}
|
|
|
this.setRules()
|
|
|
},
|
|
|
- watch:{
|
|
|
- },
|
|
|
components:{
|
|
|
DiagBaseType
|
|
|
- },
|
|
|
- computed:{
|
|
|
-
|
|
|
},
|
|
|
methods:{
|
|
|
formatData(data){ //转换字段名
|
|
@@ -210,11 +205,9 @@
|
|
|
}
|
|
|
}, trigger: 'blur'
|
|
|
}];
|
|
|
- that.rules[keyTxt + '.eqValue'] = [{
|
|
|
- validator: (rule, value, callback) => {
|
|
|
- if (value === '') {
|
|
|
- callback(new Error('不能为空~'));
|
|
|
- } else if (value.length > 200) {
|
|
|
+ that.rules[keyTxt + '.eqValue'] = [{required: true, message: '不能为空~',trigger: 'blur'},{
|
|
|
+ validator: (rule, value, callback) => {console.log(112,value)
|
|
|
+ if (value&&value.length > 200) {
|
|
|
callback(new Error('不能超过200字'));
|
|
|
} else {
|
|
|
callback();
|