Commit a8aaeab0 authored by TZW's avatar TZW

ccc

parent 557da31f
...@@ -182,7 +182,7 @@ function InitForm(props) { ...@@ -182,7 +182,7 @@ function InitForm(props) {
}} }}
> >
<FormRender <FormRender
fields={fields.filter((it) => it.valueType != 'option')} fields={fields?.filter((it) => it.valueType != 'option')}
colProps={colProps} colProps={colProps}
proformRef={proformRef} proformRef={proformRef}
/> />
......
This diff is collapsed.
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-31 15:14:34 * @Last Modified time: 2023-01-31 17:43:42
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -1077,7 +1077,7 @@ function Failure(props) { ...@@ -1077,7 +1077,7 @@ function Failure(props) {
valueType: 'radio', valueType: 'radio',
options: [ options: [
{ label: '通过', value: '1' }, { label: '通过', value: '1' },
{ label: '不通过', value: '2' }, { label: '不通过', value: '0' },
], ],
formItemProps: { formItemProps: {
rules: [ rules: [
...@@ -1160,7 +1160,7 @@ function Failure(props) { ...@@ -1160,7 +1160,7 @@ function Failure(props) {
valueType: 'radio', valueType: 'radio',
options: [ options: [
{ label: '通过', value: '1' }, { label: '通过', value: '1' },
{ label: '不通过', value: '2' }, { label: '不通过', value: '0' },
], ],
formItemProps: { formItemProps: {
rules: [ rules: [
...@@ -1240,7 +1240,7 @@ function Failure(props) { ...@@ -1240,7 +1240,7 @@ function Failure(props) {
valueType: 'radio', valueType: 'radio',
options: [ options: [
{ label: '通过', value: '1' }, { label: '通过', value: '1' },
{ label: '不通过', value: '2' }, { label: '不通过', value: '0' },
], ],
formItemProps: { formItemProps: {
rules: [ rules: [
...@@ -1320,7 +1320,7 @@ function Failure(props) { ...@@ -1320,7 +1320,7 @@ function Failure(props) {
valueType: 'radio', valueType: 'radio',
options: [ options: [
{ label: '通过', value: '1' }, { label: '通过', value: '1' },
{ label: '不通过', value: '2' }, { label: '不通过', value: '0' },
], ],
formItemProps: { formItemProps: {
rules: [ rules: [
......
...@@ -80,7 +80,7 @@ function getcolumns(setdrawer, bus) { ...@@ -80,7 +80,7 @@ function getcolumns(setdrawer, bus) {
<span <span
style={{ style={{
color: `${ color: `${
row.nextTrackDate.valueOf() < dayjs().format('YYYY-MM-DD').valueOf() row?.nextTrackDate?.valueOf() < dayjs().format('YYYY-MM-DD').valueOf()
? '#f50' ? '#f50'
: 'rgba(0, 0, 0, 0.85)' : 'rgba(0, 0, 0, 0.85)'
}`, }`,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-31 09:20:37 * @Last Modified time: 2023-01-31 15:46:59
*/ */
import * as React from 'react'; import * as React from 'react';
......
...@@ -179,6 +179,7 @@ function getcolumns(setDrawer, ifs, formRef) { ...@@ -179,6 +179,7 @@ function getcolumns(setDrawer, ifs, formRef) {
width: 120, width: 120,
valueType: 'treeSelect', valueType: 'treeSelect',
dataIndex: 'departmentName', dataIndex: 'departmentName',
search: false,
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
key: 'departmentId', key: 'departmentId',
options: { options: {
...@@ -188,6 +189,22 @@ function getcolumns(setDrawer, ifs, formRef) { ...@@ -188,6 +189,22 @@ function getcolumns(setDrawer, ifs, formRef) {
}, },
}, },
}, },
{
title: '部门名称',
width: 120,
valueType: 'select',
dataIndex: 'departmentName',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
key: 'departmentId',
options: {
path: '/auth/sysDepartment/query/all/department/selection',
},
fieldProps: {
showSearch: true,
},
hideInForm: true,
hideInTable: true,
},
{ {
title: '角色名称', title: '角色名称',
dataIndex: 'roleNames', dataIndex: 'roleNames',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment