|
|
|
|
@ -1371,96 +1371,87 @@ var Edit = function Edit(_ref) {
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
gutter: [10, 0],
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
flex: 14,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, objectSpread2_default()(objectSpread2_default()({
|
|
|
|
|
placement: "bottom",
|
|
|
|
|
title: function title() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u53EF\u5728", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/account/certification",
|
|
|
|
|
className: "c-blue",
|
|
|
|
|
children: "\u8BA4\u8BC1\u4FE1\u606F"
|
|
|
|
|
}), "\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"]
|
|
|
|
|
})]
|
|
|
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, objectSpread2_default()(objectSpread2_default()({
|
|
|
|
|
placement: "bottom",
|
|
|
|
|
title: function title() {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: "\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: ["\u53EF\u5728", /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
|
|
|
href: "/account/certification",
|
|
|
|
|
className: "c-blue",
|
|
|
|
|
children: "\u8BA4\u8BC1\u4FE1\u606F"
|
|
|
|
|
}), "\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"]
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, toolTipProps), {}, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u9662\u7CFB/\u90E8\u95E8",
|
|
|
|
|
name: "department",
|
|
|
|
|
wrapperCol: {
|
|
|
|
|
span: 10
|
|
|
|
|
},
|
|
|
|
|
extra: !schoolLoading && formValue.department && !(departmentList !== null && departmentList !== void 0 && departmentList.find(function (item) {
|
|
|
|
|
return item.name === formValue.department;
|
|
|
|
|
})) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Editmodules.schoolHintWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: Editmodules.colorCDCDCD,
|
|
|
|
|
children: formValue.department ? "\u672A\u627E\u5230\u5305\u542B\u201C".concat(formValue.department, "\u201D\u7684\u9AD8\u6821\uFF0C") : '未找到院系,'
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "".concat(Editmodules.color0152d9, " current"),
|
|
|
|
|
onClick: handleApplyDepartment,
|
|
|
|
|
children: "\u7533\u8BF7\u65B0\u589E"
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
// rules={[{
|
|
|
|
|
// // required: true,
|
|
|
|
|
// message: '请先选择院系/部门'
|
|
|
|
|
// }]}
|
|
|
|
|
,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
|
|
|
|
|
size: "large",
|
|
|
|
|
onChange: function onChange(value) {
|
|
|
|
|
var _departmentList$find2;
|
|
|
|
|
form.setFieldsValue({
|
|
|
|
|
school_major_id: ''
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, toolTipProps), {}, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u9662\u7CFB/\u90E8\u95E8",
|
|
|
|
|
name: "department",
|
|
|
|
|
wrapperCol: {
|
|
|
|
|
span: 10
|
|
|
|
|
},
|
|
|
|
|
extra: !schoolLoading && formValue.department && !(departmentList !== null && departmentList !== void 0 && departmentList.find(function (item) {
|
|
|
|
|
return item.name === formValue.department;
|
|
|
|
|
})) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Editmodules.schoolHintWrap,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: Editmodules.colorCDCDCD,
|
|
|
|
|
children: formValue.department ? "\u672A\u627E\u5230\u5305\u542B\u201C".concat(formValue.department, "\u201D\u7684\u9AD8\u6821\uFF0C") : '未找到院系,'
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "".concat(Editmodules.color0152d9, " current"),
|
|
|
|
|
onClick: handleApplyDepartment,
|
|
|
|
|
children: "\u7533\u8BF7\u65B0\u589E"
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
// rules={[{
|
|
|
|
|
// // required: true,
|
|
|
|
|
// message: '请先选择院系/部门'
|
|
|
|
|
// }]}
|
|
|
|
|
,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(auto_complete/* default */.Z, {
|
|
|
|
|
size: "large",
|
|
|
|
|
onChange: function onChange(value) {
|
|
|
|
|
var _departmentList$find2;
|
|
|
|
|
form.setFieldsValue({
|
|
|
|
|
school_major_id: ''
|
|
|
|
|
});
|
|
|
|
|
var findSchoolId = schoolList.find(function (item) {
|
|
|
|
|
return item.name === (formValue === null || formValue === void 0 ? void 0 : formValue.school);
|
|
|
|
|
}).id;
|
|
|
|
|
var findDepartmentId = (_departmentList$find2 = departmentList.find(function (item) {
|
|
|
|
|
return item.name === value;
|
|
|
|
|
})) === null || _departmentList$find2 === void 0 ? void 0 : _departmentList$find2.id;
|
|
|
|
|
_school_majors(findSchoolId, findDepartmentId);
|
|
|
|
|
setFilterDepartmentList(departmentList.filter(function (item) {
|
|
|
|
|
return item.name.includes(value);
|
|
|
|
|
}));
|
|
|
|
|
},
|
|
|
|
|
children: filterDepartmentList.map(function (item, key) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
|
|
|
value: item.name,
|
|
|
|
|
children: item.name
|
|
|
|
|
}, key);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}))
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
flex: 10,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u4E13\u4E1A",
|
|
|
|
|
name: "school_major_id",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
size: "large",
|
|
|
|
|
style: {
|
|
|
|
|
width: '185px'
|
|
|
|
|
},
|
|
|
|
|
children: specialityList.map(function (item, key) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
|
|
|
value: item.id,
|
|
|
|
|
children: item.name
|
|
|
|
|
}, key);
|
|
|
|
|
})
|
|
|
|
|
var findSchoolId = schoolList.find(function (item) {
|
|
|
|
|
return item.name === (formValue === null || formValue === void 0 ? void 0 : formValue.school);
|
|
|
|
|
}).id;
|
|
|
|
|
var findDepartmentId = (_departmentList$find2 = departmentList.find(function (item) {
|
|
|
|
|
return item.name === value;
|
|
|
|
|
})) === null || _departmentList$find2 === void 0 ? void 0 : _departmentList$find2.id;
|
|
|
|
|
_school_majors(findSchoolId, findDepartmentId);
|
|
|
|
|
setFilterDepartmentList(departmentList.filter(function (item) {
|
|
|
|
|
return item.name.includes(value);
|
|
|
|
|
}));
|
|
|
|
|
},
|
|
|
|
|
children: filterDepartmentList.map(function (item, key) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
|
|
|
value: item.name,
|
|
|
|
|
children: item.name
|
|
|
|
|
}, key);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u4E13\u4E1A",
|
|
|
|
|
name: "school_major_id",
|
|
|
|
|
wrapperCol: {
|
|
|
|
|
span: 10
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
|
|
|
|
|
size: "large",
|
|
|
|
|
children: specialityList.map(function (item, key) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Option, {
|
|
|
|
|
value: item.id,
|
|
|
|
|
children: item.name
|
|
|
|
|
}, key);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
|
|
|
|
label: "\u6635\u79F0",
|
|
|
|
|
name: "nickname",
|