Merge remote-tracking branch 'origin/main'

This commit is contained in:
赵霄
2023-09-19 09:47:10 +08:00
2 changed files with 12 additions and 4 deletions
+8
View File
@@ -438,6 +438,13 @@ export default {
message: res.dbFieldTxt + this.$t('cannotEmpty'), message: res.dbFieldTxt + this.$t('cannotEmpty'),
trigger: 'blur' trigger: 'blur'
}) })
} else if (res.fieldShowType === FieldType.DATE_SINGLE.value) {
// 解决第一次校验不消失的问题
rule.push({
required: true,
message: res.dbFieldTxt + this.$t('cannotEmpty'),
trigger: ['change', 'blur']
})
} else { } else {
rule.push({ rule.push({
required: true, required: true,
@@ -450,6 +457,7 @@ export default {
rules[res.dbFieldName] = rule rules[res.dbFieldName] = rule
} }
}) })
console.log(rules)
this.rules = rules this.rules = rules
this.isFormInline = true this.isFormInline = true
this.confirmLoading = false this.confirmLoading = false
@@ -112,7 +112,7 @@
</template> </template>
<!-- 企标编号 --> <!-- 企标编号 -->
<template v-slot:standard_no="{text, record}"> <template v-slot:standard_number="{text, record}">
<a-tooltip overlay-class-name="tooltip-style"> <a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template> <template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<a class="table-text can-click-table-text" @click="detailClick(record)" v-if="text || text === 0">{{ text }}</a> <a class="table-text can-click-table-text" @click="detailClick(record)" v-if="text || text === 0">{{ text }}</a>
@@ -214,7 +214,7 @@ export default {
loading: false, loading: false,
getTableHeaderFunc: getEnterpriseStandardTableHeader, getTableHeaderFunc: getEnterpriseStandardTableHeader,
getQueryConditionFunc: getEnterpriseStandardSearchForm, getQueryConditionFunc: getEnterpriseStandardSearchForm,
tableSlotField: ['standard_no', 'standard_name'], // 表格中需要插槽的字段 tableSlotField: ['standard_number', 'standard_name'], // 表格中需要插槽的字段
// url传参严格按照当前命名 // url传参严格按照当前命名
url: { url: {
list: '/laws/standard/enterprise/getCommonPage', // 表格数据 list: '/laws/standard/enterprise/getCommonPage', // 表格数据
@@ -412,7 +412,7 @@ export default {
return return
} }
this.collectionFlag = true this.collectionFlag = true
if (!!record.collectionFlag) { if (record.collectionFlag) {
const params = {} const params = {}
params.id = record.id params.id = record.id
// 说明已收藏,调取消收藏接口 // 说明已收藏,调取消收藏接口
@@ -455,7 +455,7 @@ export default {
userSelectChange (value) { userSelectChange (value) {
const params = {} const params = {}
params.standardId = this.currentShare.id params.standardId = this.currentShare.id
params.standardNum = this.currentShare.standard_no params.standardNumber = this.currentShare.standard_number
params.recipientId = value params.recipientId = value
shareStandard(params).then(res => { shareStandard(params).then(res => {
if (res.success) { if (res.success) {