|
|
@ -90,7 +90,7 @@ |
|
|
|
<a-form-item label="队伍人数" v-bind="validateInfos.teamNumber"> |
|
|
|
<a-form-item label="队伍人数" v-bind="validateInfos.teamNumber"> |
|
|
|
<a-input-number v-model:value="formData.teamNumber" placeholder="请输入队伍人数" |
|
|
|
<a-input-number v-model:value="formData.teamNumber" placeholder="请输入队伍人数" |
|
|
|
style="width: 100%" :disabled="disabled"/> |
|
|
|
style="width: 100%" :disabled="disabled"/> |
|
|
|
<a-button @click="showModel">设置</a-button> |
|
|
|
<a-button @click="showModel">队伍比值配置</a-button> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :span="12" v-if="formData.entryForm==='Y'"> |
|
|
|
<a-col :span="12" v-if="formData.entryForm==='Y'"> |
|
|
@ -101,9 +101,7 @@ |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-row v-if="formData.entryForm ==='Y'"> |
|
|
|
<a-row v-if="formData.entryForm ==='Y'"> |
|
|
|
<a-col :span="12"> |
|
|
|
<a-col :span="12"> |
|
|
|
<a-form-item label="队伍第1编号" > |
|
|
|
<a-form-item label="队伍第1编号" > |
|
|
@ -175,6 +173,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--> |
|
|
|
|
|
|
|
|
|
|
|
<a-row> |
|
|
|
<a-row> |
|
|
|
|
|
|
|
|
|
|
@ -341,10 +340,12 @@ import {Form} from 'ant-design-vue'; |
|
|
|
import { JVxeTable } from '/@/components/jeecg/JVxeTable'; |
|
|
|
import { JVxeTable } from '/@/components/jeecg/JVxeTable'; |
|
|
|
import { JVxeTypes, JVxeColumn} from '/@/components/jeecg/JVxeTable/types'; |
|
|
|
import { JVxeTypes, JVxeColumn} from '/@/components/jeecg/JVxeTable/types'; |
|
|
|
const dataSource = ref([]) |
|
|
|
const dataSource = ref([]) |
|
|
|
const columns = ref<any>([ |
|
|
|
// 列配置,控制表格显示的列 |
|
|
|
|
|
|
|
const columns = ref<JVxeColumn[]>([ |
|
|
|
|
|
|
|
// { key: 'num', title: '序号', width: 80, type: JVxeTypes.normal }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '单行文本', |
|
|
|
title: '比值', |
|
|
|
key: 'input', |
|
|
|
key: 'raito', |
|
|
|
type: JVxeTypes.input, |
|
|
|
type: JVxeTypes.input, |
|
|
|
width: 180, |
|
|
|
width: 180, |
|
|
|
defaultValue: '', |
|
|
|
defaultValue: '', |
|
|
@ -354,14 +355,14 @@ const columns = ref<any>([ |
|
|
|
required: true, // 必填 |
|
|
|
required: true, // 必填 |
|
|
|
message: '请输入${title}', // 显示的文本 |
|
|
|
message: '请输入${title}', // 显示的文本 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
// { |
|
|
|
pattern: /^[a-z|A-Z][a-z|A-Z\d_-]*$/, // 正则 |
|
|
|
// pattern: /^[a-z|A-Z][a-z|A-Z\d_-]*$/, // 正则 |
|
|
|
message: '必须以字母开头,可包含数字、下划线、横杠', |
|
|
|
// message: '必须以字母开头,可包含数字、下划线、横杠', |
|
|
|
}, |
|
|
|
// }, |
|
|
|
{ |
|
|
|
// { |
|
|
|
unique: true, |
|
|
|
// unique: true, |
|
|
|
message: '${title}不能重复', |
|
|
|
// message: '${title}不能重复', |
|
|
|
}, |
|
|
|
// }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
handler({ cellValue, row, column }, callback, target) { |
|
|
|
handler({ cellValue, row, column }, callback, target) { |
|
|
|
// cellValue 当前校验的值 |
|
|
|
// cellValue 当前校验的值 |
|
|
@ -422,7 +423,7 @@ const props = defineProps({ |
|
|
|
const [register, { openModal }] = useModal(); |
|
|
|
const [register, { openModal }] = useModal(); |
|
|
|
// const [register, { closeModal, setModalProps,openModal }] = useModalInner(); |
|
|
|
// const [register, { closeModal, setModalProps,openModal }] = useModalInner(); |
|
|
|
const showModel = () => { |
|
|
|
const showModel = () => { |
|
|
|
console.log(1111) |
|
|
|
// console.log(1111) |
|
|
|
openModal() |
|
|
|
openModal() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|