|
@@ -2,7 +2,7 @@
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
* @Date: 2023-03-03 11:30:33
|
|
* @Date: 2023-03-03 11:30:33
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
- * @LastEditTime: 2023-05-11 14:14:10
|
|
|
|
|
|
+ * @LastEditTime: 2023-05-12 11:09:29
|
|
* @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
|
|
* @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
*/
|
|
@@ -30,7 +30,7 @@ import './style.less';
|
|
|
|
|
|
|
|
|
|
const IconFont = createFromIconfontCN({
|
|
const IconFont = createFromIconfontCN({
|
|
- scriptUrl: '//at.alicdn.com/t/c/font_1927152_4nm5kxbv4m3.js',
|
|
|
|
|
|
+ scriptUrl: '//at.alicdn.com/t/c/font_1927152_p7y3y2t8lg.js',
|
|
});
|
|
});
|
|
|
|
|
|
const AddIconFont = createFromIconfontCN({
|
|
const AddIconFont = createFromIconfontCN({
|
|
@@ -39,7 +39,7 @@ const AddIconFont = createFromIconfontCN({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-export default function MonAssessmentProjectMana() {
|
|
|
|
|
|
+export default function NonAssessmentProjectMana() {
|
|
|
|
|
|
const [tableDataFilterParams, set_tableDataFilterParams] = useState<any | undefined>();
|
|
const [tableDataFilterParams, set_tableDataFilterParams] = useState<any | undefined>();
|
|
const [tableDataSearchKeywords, set_tableDataSearchKeywords] = useState<string>('');
|
|
const [tableDataSearchKeywords, set_tableDataSearchKeywords] = useState<string>('');
|
|
@@ -145,6 +145,8 @@ export default function MonAssessmentProjectMana() {
|
|
ceiling: formVal.ceiling
|
|
ceiling: formVal.ceiling
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ let flag = true;
|
|
|
|
+
|
|
if (type == 'ADD') {
|
|
if (type == 'ADD') {
|
|
const resp = await addData({ ...result });
|
|
const resp = await addData({ ...result });
|
|
if (resp) {
|
|
if (resp) {
|
|
@@ -170,10 +172,12 @@ export default function MonAssessmentProjectMana() {
|
|
if (resp) {
|
|
if (resp) {
|
|
tableRef.current?.reload();
|
|
tableRef.current?.reload();
|
|
message.success('操作成功!');
|
|
message.success('操作成功!');
|
|
|
|
+ }else{
|
|
|
|
+ flag = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- return true;
|
|
|
|
|
|
+ return flag;
|
|
}
|
|
}
|
|
|
|
|
|
const [dicData, set_dicData] = useState<any[]>([]);
|
|
const [dicData, set_dicData] = useState<any[]>([]);
|
|
@@ -242,7 +246,7 @@ export default function MonAssessmentProjectMana() {
|
|
return (
|
|
return (
|
|
<ModalForm
|
|
<ModalForm
|
|
title={`${type == 'EDIT' ? '编辑' : '新增'}${type == 'SCORE'?'评分项':'非考核项目'}`}
|
|
title={`${type == 'EDIT' ? '编辑' : '新增'}${type == 'SCORE'?'评分项':'非考核项目'}`}
|
|
- className='MonAssessmentProjectMana-ModalForm'
|
|
|
|
|
|
+ className='NonAssessmentProjectMana-ModalForm'
|
|
width={352}
|
|
width={352}
|
|
initialValues={type == 'EDIT' ? { ...record } :type == 'SCORE'?{...scoreInitList}:{}}
|
|
initialValues={type == 'EDIT' ? { ...record } :type == 'SCORE'?{...scoreInitList}:{}}
|
|
trigger={
|
|
trigger={
|
|
@@ -307,7 +311,7 @@ export default function MonAssessmentProjectMana() {
|
|
}}
|
|
}}
|
|
/>
|
|
/>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
- <span className='delIcon' onClick={() => delGroupIndic(item, index)}><IconFont type="iconshanchu" /></span>
|
|
|
|
|
|
+ <span className='delIcon' onClick={() => delGroupIndic(item, index)}><IconFont type="iconshanchu" /></span>
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|
|
})
|
|
})
|
|
@@ -425,7 +429,7 @@ export default function MonAssessmentProjectMana() {
|
|
}, [])
|
|
}, [])
|
|
|
|
|
|
return (
|
|
return (
|
|
- <BMSPagecontainer className='BilingProjectMana' title={false}>
|
|
|
|
|
|
+ <BMSPagecontainer className='NonAssessmentProjectMana' title={false}>
|
|
<div className='toolBar'>
|
|
<div className='toolBar'>
|
|
<div className='filter'>
|
|
<div className='filter'>
|
|
<div className='filterItem'>
|
|
<div className='filterItem'>
|