Commit 94f898d9 by wangshuangqing

诊断描述添加校验 必填

parent e742d60e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wsq * @Author: wsq
* @Date: 2022-04-22 15:20:58 * @Date: 2022-04-22 15:20:58
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2023-02-23 17:15:33 * @LastEditTime: 2023-02-23 17:41:56
* @Description: * @Description:
--> -->
<template> <template>
...@@ -404,6 +404,25 @@ ...@@ -404,6 +404,25 @@
</el-table-column> </el-table-column>
<el-table-column prop="description" label="诊断描述" width="150"> <el-table-column prop="description" label="诊断描述" width="150">
<template #default="scope"> <template #default="scope">
<div
style="
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
"
>
<div style="display: flex">
<span
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
style="color: red"
>*</span
>
<el-input <el-input
size="mini" size="mini"
type="textarea" type="textarea"
...@@ -416,6 +435,18 @@ ...@@ -416,6 +435,18 @@
" "
v-model="scope.row.description" v-model="scope.row.description"
></el-input> ></el-input>
</div>
<span
style="font-size: 12px; color: red"
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true &&
scope.row.description == ''
"
>请输入内容</span
>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="inspectRemarks" label="备注" width="150"> <el-table-column prop="inspectRemarks" label="备注" width="150">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment