Commit 94f898d9 by wangshuangqing

诊断描述添加校验 必填

parent e742d60e
......@@ -2,7 +2,7 @@
* @Author: wsq
* @Date: 2022-04-22 15:20:58
* @LastEditors: wsq
* @LastEditTime: 2023-02-23 17:15:33
* @LastEditTime: 2023-02-23 17:41:56
* @Description:
-->
<template>
......@@ -404,18 +404,49 @@
</el-table-column>
<el-table-column prop="description" label="诊断描述" width="150">
<template #default="scope">
<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
<div
style="
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
"
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>
</el-table-column>
<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