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,18 +404,49 @@ ...@@ -404,18 +404,49 @@
</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">
<el-input <div
size="mini" style="
type="textarea" display: flex;
:autosize="{ minRows: 2 }" height: 100%;
placeholder="请输入内容" flex-direction: column;
v-if=" justify-content: center;
scope.row.advice_name == null && align-items: center;
scope.row.ischeck == 1 &&
scope.row.isShow == true
" "
v-model="scope.row.description" >
></el-input> <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
size="mini"
type="textarea"
:autosize="{ minRows: 2 }"
placeholder="请输入内容"
v-if="
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model="scope.row.description"
></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