|
@@ -94,7 +94,7 @@
|
|
>
|
|
>
|
|
<a-form :labelCol="{ span: 6 }">
|
|
<a-form :labelCol="{ span: 6 }">
|
|
<a-form-item label="学校编码" v-bind="validateInfos.code">
|
|
<a-form-item label="学校编码" v-bind="validateInfos.code">
|
|
- <a-input v-model:value="schoolInfo.code"></a-input>
|
|
|
|
|
|
+ <a-input :disabled="schoolInfo.id" v-model:value="schoolInfo.code"></a-input>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item label="学校名称" v-bind="validateInfos.name">
|
|
<a-form-item label="学校名称" v-bind="validateInfos.name">
|
|
<a-input v-model:value="schoolInfo.name"></a-input>
|
|
<a-input v-model:value="schoolInfo.name"></a-input>
|
|
@@ -154,10 +154,10 @@ const schoolInfo = reactive<BaseSchoolInfo>({
|
|
const schoolRules = {
|
|
const schoolRules = {
|
|
code: [{ required: true, message: "请填写学校编码" }],
|
|
code: [{ required: true, message: "请填写学校编码" }],
|
|
name: [{ required: true, message: "请填写学校名称" }],
|
|
name: [{ required: true, message: "请填写学校名称" }],
|
|
- contacts: [{ required: true, message: "请填写负责人" }],
|
|
|
|
- region: [{ required: true, message: "请填写学校地区" }],
|
|
|
|
|
|
+ // contacts: [{ required: true, message: "请填写负责人" }],
|
|
|
|
+ // region: [{ required: true, message: "请填写学校地区" }],
|
|
telephone: [
|
|
telephone: [
|
|
- { required: true, message: "请填写联系方式" },
|
|
|
|
|
|
+ // { required: true, message: "请填写联系方式" },
|
|
{ pattern: /\d{11}/, message: "请填写正确联系方式" },
|
|
{ pattern: /\d{11}/, message: "请填写正确联系方式" },
|
|
],
|
|
],
|
|
};
|
|
};
|
|
@@ -176,15 +176,15 @@ const query = reactive<FetchSchoolListQuery>({
|
|
|
|
|
|
/** table配置 */
|
|
/** table配置 */
|
|
const columns: TableColumnType[] = [
|
|
const columns: TableColumnType[] = [
|
|
- { title: "序号", dataIndex: "index", align: "center" },
|
|
|
|
- { title: "学校ID", dataIndex: "id" },
|
|
|
|
|
|
+ { title: "序号", dataIndex: "index", align: "center", width: 60 },
|
|
|
|
+ { title: "学校ID", dataIndex: "id", width: 80, ellipsis: true },
|
|
{ title: "学校名称", dataIndex: "name", ellipsis: true },
|
|
{ title: "学校名称", dataIndex: "name", ellipsis: true },
|
|
- { title: "地区", dataIndex: "region",maxWidth: 300 },
|
|
|
|
- { title: "状态", dataIndex: "enable", align: "center" },
|
|
|
|
- { title: "负责人", dataIndex: "contacts", ellipsis: true },
|
|
|
|
- { title: "联系方式", dataIndex: "telephone" },
|
|
|
|
- { title: "更新时间", dataIndex: "updateTime", ellipsis: true },
|
|
|
|
- { title: "操作", dataIndex: "operation" },
|
|
|
|
|
|
+ { title: "地区", dataIndex: "region", ellipsis: true },
|
|
|
|
+ { title: "状态", dataIndex: "enable", align: "center", width: 60 },
|
|
|
|
+ { title: "负责人", dataIndex: "contacts", width: 120, ellipsis: true },
|
|
|
|
+ { title: "联系方式", dataIndex: "telephone", width: 140, ellipsis: true },
|
|
|
|
+ { title: "更新时间", dataIndex: "updateTime", width: 200, ellipsis: true },
|
|
|
|
+ { title: "操作", dataIndex: "operation", width: 220 },
|
|
];
|
|
];
|
|
|
|
|
|
/** 学校列表信息 */
|
|
/** 学校列表信息 */
|