问题修复
This commit is contained in:
parent
f80b7a7e32
commit
5683f543f6
|
|
@ -197,7 +197,11 @@
|
||||||
:placeholder="props.addAndEditFormType == 3 ? '' : '请输入整改人'"
|
:placeholder="props.addAndEditFormType == 3 ? '' : '请输入整改人'"
|
||||||
/>
|
/>
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
<up-form-item prop="rectTime" label="整改日期">
|
<up-form-item
|
||||||
|
prop="rectTime"
|
||||||
|
label="整改日期"
|
||||||
|
:required="addAndEditModel.correctionImgList.length > 0"
|
||||||
|
>
|
||||||
<up-input
|
<up-input
|
||||||
readonly
|
readonly
|
||||||
border="none"
|
border="none"
|
||||||
|
|
@ -330,7 +334,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, ref, watch, onMounted } from 'vue'
|
import { reactive, ref, watch, onMounted, computed } from 'vue'
|
||||||
import { debounce } from 'lodash-es' // 引入防抖函数
|
import { debounce } from 'lodash-es' // 引入防抖函数
|
||||||
import { useCommon } from '@/hooks/useCommon.js'
|
import { useCommon } from '@/hooks/useCommon.js'
|
||||||
import { getProcedureApi } from '@/services/common.js'
|
import { getProcedureApi } from '@/services/common.js'
|
||||||
|
|
@ -410,6 +414,10 @@ const addAndEditModel = reactive({
|
||||||
rectStatus: 0,
|
rectStatus: 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const isRequired = computed(() => {
|
||||||
|
return addAndEditModel.correctionImgList.length > 0
|
||||||
|
})
|
||||||
|
|
||||||
// 校验规则
|
// 校验规则
|
||||||
const addAndEditModelRules = ref({
|
const addAndEditModelRules = ref({
|
||||||
proName: [
|
proName: [
|
||||||
|
|
@ -436,6 +444,14 @@ const addAndEditModelRules = ref({
|
||||||
trigger: ['blur', 'change'],
|
trigger: ['blur', 'change'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
rectTime: [
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
required: isRequired,
|
||||||
|
message: '请选择整改日期',
|
||||||
|
trigger: ['blur', 'change'],
|
||||||
|
},
|
||||||
|
],
|
||||||
checkUserName: [
|
checkUserName: [
|
||||||
{
|
{
|
||||||
trigger: ['blur', 'change'],
|
trigger: ['blur', 'change'],
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,11 @@
|
||||||
:placeholder="props.addAndEditFormType == 3 ? '' : '请输入整改人'"
|
:placeholder="props.addAndEditFormType == 3 ? '' : '请输入整改人'"
|
||||||
/>
|
/>
|
||||||
</up-form-item>
|
</up-form-item>
|
||||||
<up-form-item prop="rectTime" label="整改日期">
|
<up-form-item
|
||||||
|
prop="rectTime"
|
||||||
|
label="整改日期"
|
||||||
|
:required="addAndEditModel.correctionImgList.length > 0"
|
||||||
|
>
|
||||||
<up-input
|
<up-input
|
||||||
readonly
|
readonly
|
||||||
border="none"
|
border="none"
|
||||||
|
|
@ -332,7 +336,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, ref, watch, onMounted } from 'vue'
|
import { reactive, ref, watch, onMounted, computed } from 'vue'
|
||||||
import { debounce } from 'lodash-es' // 引入防抖函数
|
import { debounce } from 'lodash-es' // 引入防抖函数
|
||||||
import { useCommon } from '@/hooks/useCommon.js'
|
import { useCommon } from '@/hooks/useCommon.js'
|
||||||
import { getProjectApi, getMajorApi, getProcedureApi } from '@/services/common.js'
|
import { getProjectApi, getMajorApi, getProcedureApi } from '@/services/common.js'
|
||||||
|
|
@ -411,6 +415,10 @@ const addAndEditModel = reactive({
|
||||||
rectStatus: 0,
|
rectStatus: 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const isRequired = computed(() => {
|
||||||
|
return addAndEditModel.correctionImgList.length > 0
|
||||||
|
})
|
||||||
|
|
||||||
// 校验规则
|
// 校验规则
|
||||||
const addAndEditModelRules = ref({
|
const addAndEditModelRules = ref({
|
||||||
proName: [
|
proName: [
|
||||||
|
|
@ -448,6 +456,14 @@ const addAndEditModelRules = ref({
|
||||||
trigger: ['blur', 'change'],
|
trigger: ['blur', 'change'],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
rectTime: [
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
required: isRequired,
|
||||||
|
message: '请选择整改日期',
|
||||||
|
trigger: ['blur', 'change'],
|
||||||
|
},
|
||||||
|
],
|
||||||
vioPlace: [
|
vioPlace: [
|
||||||
{
|
{
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue