Browse Source

deploy

master
Soleilw 3 months ago
parent
commit
fd55961381

+ 1
- 0
dist/132.229607a2.async.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/132.24152c98.async.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/487.9c8c309f.async.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/487.a300482d.async.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/496.3bebec96.async.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/index.html View File

</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.5e50c73d.js"></script>
<script src="/umi.ab1cd040.js"></script>
</body> </body>
</html> </html>

+ 1
- 0
dist/p__Advertisement__Putin__index.3571ecf6.async.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/p__Advertisement__Putin__index.9e7ac714.async.js
File diff suppressed because it is too large
View File


+ 1
- 0
dist/p__Information__Section__index.a75bbd79.async.js
File diff suppressed because it is too large
View File


+ 0
- 1
dist/p__Information__Section__index.cc7f355e.async.js
File diff suppressed because it is too large
View File


dist/p__Permission__Role__index.a45d0a71.async.js
File diff suppressed because it is too large
View File


dist/umi.ab1cd040.js
File diff suppressed because it is too large
View File


+ 1
- 0
src/apis/types/information.d.ts View File

type section = { type section = {
id?: Number, id?: Number,
name?: String, name?: String,
code?: String,
cover_img?: String, cover_img?: String,
parent_id?: Number, parent_id?: Number,
description?: String, description?: String,

+ 6
- 3
src/components/Render/Main/Advertisement/Putin/create/index.tsx View File

setDetail(res.data) setDetail(res.data)
return res.data; return res.data;
} else { } else {
setUploadedFilephotoName('')
setDetail(null)
return { return {
area_id: null, area_id: null,
title: '', title: '',
{ {
detail ? detail ?
<Col span={24} style={{ display: 'flex' }}> <Col span={24} style={{ display: 'flex' }}>
<UploadModel multiple={false} form_name="image_url" image_length={1} uploadTxt="上传封面图" image_type={3} onUploadComplete={handleFileUploadedphoto}></UploadModel>
<UploadModel multiple={false} form_name="image_url" image_length={1} uploadTxt="上传封面图" image_type={3} onUploadComplete={handleFileUploadedphoto}></UploadModel>
{uploadedFilephotoName ? <Image src={`${Imageprefix}${uploadedFilephotoName}`} style={{ marginLeft: '16px', marginTop: '32px', width: '100px', height: '100px' }}></Image> : <Image src={`${Imageprefix}${detail?.image_url}`} style={{ marginLeft: '16px', marginTop: '32px', width: '100px', height: '100px' }}></Image>} {uploadedFilephotoName ? <Image src={`${Imageprefix}${uploadedFilephotoName}`} style={{ marginLeft: '16px', marginTop: '32px', width: '100px', height: '100px' }}></Image> : <Image src={`${Imageprefix}${detail?.image_url}`} style={{ marginLeft: '16px', marginTop: '32px', width: '100px', height: '100px' }}></Image>}
</Col> : <> </Col> : <>
<Col span={24} style={{ display: 'flex' }}> <Col span={24} style={{ display: 'flex' }}>
rules={[{ required: true, message: '请输入说明' }]} rules={[{ required: true, message: '请输入说明' }]}
/> />
<ProFormText <ProFormText
label="跳转网址"
label="跳转网址,小程序内部路径,以/pages/开头,如/pages/index/index, 外部网址需以http://或https://开头, 没有链接就填 //"
name="target_url" name="target_url"
placeholder="请输入跳转网址" placeholder="请输入跳转网址"
rules={[{ required: true, message: '请输入跳转网址' }]} rules={[{ required: true, message: '请输入跳转网址' }]}
<ProFormSelect <ProFormSelect
showSearch showSearch
name="company_id" name="company_id"
label="选择企业"
label="选择企业,没有企业选人才市场"
placeholder="请选择企业" placeholder="请选择企业"
fieldProps={{ fieldProps={{
fieldNames: selectfieldCompanyNames fieldNames: selectfieldCompanyNames
}} }}
rules={[{ required: true, message: '请选择企业' }]}
request={(keyword) => request={(keyword) =>
getCompanyList({ page: 1, pagesize: 100, keyword: keyword.keyWords }).then(res => { getCompanyList({ page: 1, pagesize: 100, keyword: keyword.keyWords }).then(res => {
return res.data.list; return res.data.list;

+ 19
- 5
src/components/Render/Main/Advertisement/Putin/table/index.tsx View File

import { import {
ProTable, ProFormSelect ProTable, ProFormSelect
} from '@ant-design/pro-components'; } from '@ant-design/pro-components';
import { Button, Image, ConfigProvider, Tag } from 'antd';
import { GetAdvertscheduleList, getCompanyList, GetAdvertareaList} from '@/apis/api';
import { Button, Popconfirm, ConfigProvider, Tag,message } from 'antd';
import { GetAdvertscheduleList, getCompanyList, GetAdvertareaList, PostAdvertscheduleDel} from '@/apis/api';
const selectfieldNames = { label: 'full_name', value: 'id' }; const selectfieldNames = { label: 'full_name', value: 'id' };
const selectfieldAreaNames = { label: 'name', value: 'id' }; const selectfieldAreaNames = { label: 'name', value: 'id' };


setId(record.id) setId(record.id)
dispatch({ type: 'openModel/getOpenModal', payload: true }) dispatch({ type: 'openModel/getOpenModal', payload: true })
}}>编辑</Button>, }}>编辑</Button>,
<Button key='2' type='link' onClick={() => {

}}>删除</Button>
<Popconfirm
title="是否删除"
onConfirm={(e) => {
PostAdvertscheduleDel({ id: record.id }).then(res => {
message.success('删除成功')
actionRef.current.reload();
})
}}
okText="删除"
cancelText="取消"
>
<a
key="delete"
>
删除
</a>
</Popconfirm>
], ],
}, },
]} ]}

+ 8
- 0
src/components/Render/Main/Information/Section/create/index.tsx View File

setUploadedFilephotoName('') setUploadedFilephotoName('')
return { return {
name: '', name: '',
code: '',
cover_img: '', cover_img: '',
parent_id: id.nextlevel, parent_id: id.nextlevel,
description: '', description: '',
setUploadedFilephotoName('') setUploadedFilephotoName('')
return { return {
name: '', name: '',
code: '',
cover_img: '', cover_img: '',
parent_id: -1, parent_id: -1,
description: '', description: '',
name="name" name="name"
placeholder="请输入栏目名称" placeholder="请输入栏目名称"
rules={[{ required: true, message: '请输入栏目名称' }]} rules={[{ required: true, message: '请输入栏目名称' }]}
/>
<ProFormText
label="栏目编码,用英文字母表示,编码不能与其他栏目编码重复"
name="code"
placeholder="请输入栏目编码,用英文字母表示,编码不能与其他栏目编码重复"
rules={[{ required: true, message: '请输入栏目编码,用英文字母表示,编码不能与其他栏目编码重复' }]}
/> />
<ProFormText <ProFormText
name="description" name="description"

+ 18
- 1
src/components/Render/Main/Information/Section/table/index.tsx View File

import { import {
ProTable, TableDropdown ProTable, TableDropdown
} from '@ant-design/pro-components'; } from '@ant-design/pro-components';
import { Button, Image, ConfigProvider, Popconfirm, message } from 'antd';
import { Button, Image, ConfigProvider, Popconfirm, message,Tag } from 'antd';
import { listSection, delSection } from '@/apis/api'; import { listSection, delSection } from '@/apis/api';
import { Imageprefix } from '@/constants'; import { Imageprefix } from '@/constants';


title: '栏目名称', title: '栏目名称',
dataIndex: 'name' dataIndex: 'name'
}, },
{
title: '栏目编码',
dataIndex: 'code'
},
{
title: '可见',
dataIndex: 'display',
search: false,
render: (_, record) => (<>
{
<>
{record.display === 1 ? <Tag color="green">可见</Tag> : <Tag>不可见</Tag>}
</>
}

</>),
},
{ {
title: '封面图', title: '封面图',
dataIndex: 'cover_img', dataIndex: 'cover_img',

+ 1
- 1
src/components/Render/Permission/Role/dispense/index.tsx View File

let res = await getPermissionListWithchilds() let res = await getPermissionListWithchilds()
setDetail(res.data) setDetail(res.data)
let resrole = await getRoleGetpermissionids({ id: id }) let resrole = await getRoleGetpermissionids({ id: id })
const nextSelectedTags = resrole.data.permissionIds.map(item => {
const nextSelectedTags = resrole.data.permissionIds && resrole.data.permissionIds.map(item => {
return Number(item) return Number(item)
}) })
setSelectedIds(nextSelectedTags); setSelectedIds(nextSelectedTags);

Loading…
Cancel
Save