Commit 68d377b7 authored by 邓超's avatar 邓超

fix: 修改密码回显

parent d038ac70
...@@ -183,7 +183,7 @@ const NodeModal = props => { ...@@ -183,7 +183,7 @@ const NodeModal = props => {
<> <>
<Drawer <Drawer
title="节点配置" title="节点配置"
width={450} width={550}
onClose={handleCancel} onClose={handleCancel}
visible={visible} visible={visible}
bodyStyle={{ paddingBottom: 20 }} bodyStyle={{ paddingBottom: 20 }}
...@@ -208,11 +208,11 @@ const NodeModal = props => { ...@@ -208,11 +208,11 @@ const NodeModal = props => {
> >
节点信息 节点信息
</Divider> </Divider>
<Form form={form} labelCol={{ span: 6 }} wrapperCol={{ span: 17 }}> <Form form={form} labelCol={{ span: 5 }} wrapperCol={{ span: 19 }}>
<Form.Item <Form.Item
label="序号" label="排序"
name="SerialNo" name="SerialNo"
rules={[{ required: true, message: '请输入序号' }]} rules={[{ required: true, message: '请输入排序' }]}
> >
<Input placeholder="请输入序号" /> <Input placeholder="请输入序号" />
</Form.Item> </Form.Item>
...@@ -238,14 +238,14 @@ const NodeModal = props => { ...@@ -238,14 +238,14 @@ const NodeModal = props => {
> >
<Select placeholder="请选择节点类型"> <Select placeholder="请选择节点类型">
<Option value="1">开始节点</Option> <Option value="1">开始节点</Option>
<Option value="0">普通节点</Option> <Option value="0">经办节点</Option>
<Option value="2">结束节点</Option> <Option value="2">结束节点</Option>
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item label="检查前面在办" name="aheadHandle"> <Form.Item label="检查前面在办" name="aheadHandle">
<Select> <Select>
<Option value={1}>前面有在办不能移交</Option> <Option value={0}>前面有在办可以移交</Option>
<Option value={0}>前面有在办也能移交</Option> <Option value={1}>前面有在办不能移交(汇合节点)</Option>
</Select> </Select>
</Form.Item> </Form.Item>
<Form.Item label="节点办理方式" name="NodeHandling"> <Form.Item label="节点办理方式" name="NodeHandling">
...@@ -268,7 +268,7 @@ const NodeModal = props => { ...@@ -268,7 +268,7 @@ const NodeModal = props => {
承办管理 承办管理
</Divider> </Divider>
<Button <Button
style={{ marginBottom: '10px', marginLeft: '335px' }} style={{ marginBottom: '10px', marginLeft: '435px' }}
onClick={() => { onClick={() => {
setShowRoal(true); setShowRoal(true);
}} }}
......
...@@ -101,8 +101,9 @@ const InitDataBase = props => { ...@@ -101,8 +101,9 @@ const InitDataBase = props => {
Object.keys(dbForm).forEach(k => { Object.keys(dbForm).forEach(k => {
obj[k] = res[k]; obj[k] = res[k];
}); });
form.setFieldsValue(obj); console.log(obj, 'objohjfaosdjf');
setDbForm(val => ({ ...val, ...obj })); form.setFieldsValue({ ...obj, password: atob(obj.password) });
setDbForm(val => ({ ...val, ...obj, password: atob(obj.password) }));
setAllSqulDir(res.allSqlDir); setAllSqulDir(res.allSqlDir);
if (res.allSqlDir.some(item => item === inUse)) { if (res.allSqlDir.some(item => item === inUse)) {
setDefaultSqlDir(res.tableSQLDirName); setDefaultSqlDir(res.tableSQLDirName);
...@@ -235,7 +236,7 @@ const InitDataBase = props => { ...@@ -235,7 +236,7 @@ const InitDataBase = props => {
ip: obj.ip, ip: obj.ip,
dbName: obj.dbName, dbName: obj.dbName,
userName: obj.userName, userName: obj.userName,
password: obj.password, password: btoa(obj.password),
}); });
// setUpData(upData + 1); // setUpData(upData + 1);
getConnRecordData(); getConnRecordData();
......
...@@ -84,7 +84,7 @@ const AddModal = props => { ...@@ -84,7 +84,7 @@ const AddModal = props => {
form.setFieldsValue({ port: 3306 }); form.setFieldsValue({ port: 3306 });
break; break;
case 'edit': case 'edit':
form.setFieldsValue({ ...formObj }); form.setFieldsValue({ ...formObj, password: atob(formObj.password) });
if (!formObj.port) { if (!formObj.port) {
form.setFieldsValue({ port: 3306 }); form.setFieldsValue({ port: 3306 });
} }
...@@ -145,7 +145,7 @@ const AddModal = props => { ...@@ -145,7 +145,7 @@ const AddModal = props => {
<Input placeholder="请输入用户名" allowClear /> <Input placeholder="请输入用户名" allowClear />
</Item> </Item>
<Item label="密码" name="password" rules={[{ required: true, message: '请输入密码' }]}> <Item label="密码" name="password" rules={[{ required: true, message: '请输入密码' }]}>
<Input placeholder="请输入密码" allowClear /> <Input.Password placeholder="请输入密码" allowClear />
</Item> </Item>
</Form> </Form>
)} )}
......
...@@ -83,7 +83,7 @@ const AddModal = props => { ...@@ -83,7 +83,7 @@ const AddModal = props => {
form.resetFields(); form.resetFields();
break; break;
case 'edit': case 'edit':
form.setFieldsValue({ ...formObj }); form.setFieldsValue({ ...formObj, password: atob(formObj.password) });
break; break;
default: default:
break; break;
...@@ -135,7 +135,7 @@ const AddModal = props => { ...@@ -135,7 +135,7 @@ const AddModal = props => {
<Input placeholder="请输入用户名" allowClear /> <Input placeholder="请输入用户名" allowClear />
</Item> </Item>
<Item label="密码" name="password" rules={[{ required: true, message: '请输入密码' }]}> <Item label="密码" name="password" rules={[{ required: true, message: '请输入密码' }]}>
<Input placeholder="请输入密码" allowClear /> <Input.Password placeholder="请输入密码" allowClear />
</Item> </Item>
</Form> </Form>
)} )}
......
...@@ -83,7 +83,7 @@ const AddModal = props => { ...@@ -83,7 +83,7 @@ const AddModal = props => {
form.resetFields(); form.resetFields();
break; break;
case 'edit': case 'edit':
form.setFieldsValue({ ...formObj }); form.setFieldsValue({ ...formObj, password: atob(formObj.password) });
break; break;
default: default:
break; break;
...@@ -138,7 +138,7 @@ const AddModal = props => { ...@@ -138,7 +138,7 @@ const AddModal = props => {
<Input placeholder="请输入用户名" allowClear /> <Input placeholder="请输入用户名" allowClear />
</Item> </Item>
<Item label="密码" name="password" rules={[{ required: true, message: '请输入密码' }]}> <Item label="密码" name="password" rules={[{ required: true, message: '请输入密码' }]}>
<Input placeholder="请输入密码" allowClear /> <Input.Password placeholder="请输入密码" allowClear />
</Item> </Item>
</Form> </Form>
)} )}
......
...@@ -308,7 +308,7 @@ const DatabaseInitialization = props => { ...@@ -308,7 +308,7 @@ const DatabaseInitialization = props => {
ip: resdata.data.ip, ip: resdata.data.ip,
dbName: resdata.data.dbName, dbName: resdata.data.dbName,
userName: resdata.data.userName, userName: resdata.data.userName,
password: btoa(resdata.data.password), password: resdata.data.password,
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
if (res.data.DbInfo.ip == '127.0.0.1' || !res.data.DbInfo.ip) { if (res.data.DbInfo.ip == '127.0.0.1' || !res.data.DbInfo.ip) {
...@@ -337,7 +337,7 @@ const DatabaseInitialization = props => { ...@@ -337,7 +337,7 @@ const DatabaseInitialization = props => {
ip: resdata.data.ip, ip: resdata.data.ip,
dbName: resdata.data.dbName, dbName: resdata.data.dbName,
userName: resdata.data.userName, userName: resdata.data.userName,
password: resdata.data.password, password: atob(resdata.data.password),
}); });
GetDbChangeFirst(kk); GetDbChangeFirst(kk);
// 有License的情况下首次进入展示数据 // 有License的情况下首次进入展示数据
......
...@@ -33,7 +33,7 @@ const AddModal = props => { ...@@ -33,7 +33,7 @@ const AddModal = props => {
gsAppName: obj.servicename, gsAppName: obj.servicename,
gsUser: obj.user, gsUser: obj.user,
gsWorkspaceName: obj.workname, gsWorkspaceName: obj.workname,
gsPwd: obj.password, gsPwd: btoa(obj.password),
mapServerName: obj.name, mapServerName: obj.name,
solution: solutionNames, solution: solutionNames,
}; };
...@@ -149,7 +149,7 @@ const AddModal = props => { ...@@ -149,7 +149,7 @@ const AddModal = props => {
GISServerPort: obj.port, GISServerPort: obj.port,
gsAppName: obj.servicename, gsAppName: obj.servicename,
gsUser: obj.user, gsUser: obj.user,
gsPwd: obj.password, gsPwd: btoa(obj.password),
isGeoServer: true, isGeoServer: true,
_version: 9999, _version: 9999,
}; };
......
...@@ -100,7 +100,7 @@ const IotConfig = () => { ...@@ -100,7 +100,7 @@ const IotConfig = () => {
const getCurrentConfig = () => { const getCurrentConfig = () => {
GetDataBaseConfig().then(res => { GetDataBaseConfig().then(res => {
if (res.code === 0) { if (res.code === 0) {
GetDbProduct({ ...res.data, password: btoa(res.data.password) }).then(ress => { GetDbProduct({ ...res.data }).then(ress => {
console.log(ress.data.Project); console.log(ress.data.Project);
if (ress.data.Project.length > 0) { if (ress.data.Project.length > 0) {
console.log(ress.data.Project[ress.data.Project.length - 1].projectName); console.log(ress.data.Project[ress.data.Project.length - 1].projectName);
......
...@@ -105,7 +105,7 @@ const MessageConfig = () => { ...@@ -105,7 +105,7 @@ const MessageConfig = () => {
GetDataBaseConfig().then(resdata => { GetDataBaseConfig().then(resdata => {
if (resdata.code === 0) { if (resdata.code === 0) {
setCurrentDataBase(resdata.data); setCurrentDataBase({ ...resdata.data, password: atob(resdata.data.password) });
GetBasicInfo().then(reslist => { GetBasicInfo().then(reslist => {
if (reslist.code === 0) { if (reslist.code === 0) {
setcurrentSiteInfo(reslist.data); setcurrentSiteInfo(reslist.data);
......
...@@ -56,7 +56,7 @@ const AddModal = props => { ...@@ -56,7 +56,7 @@ const AddModal = props => {
} }
getValue.VideoManufacturer = Type; getValue.VideoManufacturer = Type;
addInsertVideoConfig(getValue).then(res => { addInsertVideoConfig({ ...getValue, LoginPwd: btoa(getValue.LoginPwd) }).then(res => {
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
onCancel(); onCancel();
setLoad(false); setLoad(false);
......
...@@ -32,7 +32,7 @@ const AddModal = props => { ...@@ -32,7 +32,7 @@ const AddModal = props => {
if (kind === 'add') { if (kind === 'add') {
form.resetFields(); form.resetFields();
} else { } else {
form.setFieldsValue({ ...obj }); form.setFieldsValue({ ...obj, LoginPwd: obj.LoginPwd ? atob(obj.LoginPwd) : '' });
} }
}, [visible]); }, [visible]);
const onSubmit = () => { const onSubmit = () => {
...@@ -52,7 +52,7 @@ const AddModal = props => { ...@@ -52,7 +52,7 @@ const AddModal = props => {
} }
getValue.VideoManufacturer = type; getValue.VideoManufacturer = type;
if (kind === 'add') { if (kind === 'add') {
addInsertVideoConfig(getValue).then(res => { addInsertVideoConfig({ ...getValue, LoginPwd: btoa(getValue.LoginPwd) }).then(res => {
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
onCancel(); onCancel();
setLoad(false); setLoad(false);
...@@ -77,6 +77,7 @@ const AddModal = props => { ...@@ -77,6 +77,7 @@ const AddModal = props => {
editInsertVideoConfig({ editInsertVideoConfig({
...getValue, ...getValue,
Id: obj.Id, Id: obj.Id,
LoginPwd: btoa(getValue.LoginPwd),
}).then(res => { }).then(res => {
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
onCancel(); onCancel();
......
...@@ -32,7 +32,7 @@ const AddDHModal = props => { ...@@ -32,7 +32,7 @@ const AddDHModal = props => {
if (kind === 'add') { if (kind === 'add') {
form.resetFields(); form.resetFields();
} else { } else {
form.setFieldsValue({ ...obj }); form.setFieldsValue({ ...obj, LoginPwd: obj.LoginPwd ? atob(obj.LoginPwd) : '' });
} }
}, [visible]); }, [visible]);
const onSubmit = () => { const onSubmit = () => {
...@@ -52,7 +52,7 @@ const AddDHModal = props => { ...@@ -52,7 +52,7 @@ const AddDHModal = props => {
} }
getValue.VideoManufacturer = type; getValue.VideoManufacturer = type;
if (kind === 'add') { if (kind === 'add') {
addInsertVideoConfig(getValue).then(res => { addInsertVideoConfig({ ...getValue, LoginPwd: btoa(getValue.LoginPwd) }).then(res => {
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
onCancel(); onCancel();
setLoad(false); setLoad(false);
...@@ -77,6 +77,7 @@ const AddDHModal = props => { ...@@ -77,6 +77,7 @@ const AddDHModal = props => {
editInsertVideoConfig({ editInsertVideoConfig({
...getValue, ...getValue,
Id: obj.Id, Id: obj.Id,
LoginPwd: btoa(getValue.LoginPwd),
}).then(res => { }).then(res => {
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
onCancel(); onCancel();
......
...@@ -31,7 +31,7 @@ const AddHKModal = props => { ...@@ -31,7 +31,7 @@ const AddHKModal = props => {
if (kind === 'add') { if (kind === 'add') {
form.resetFields(); form.resetFields();
} else { } else {
form.setFieldsValue({ ...obj }); form.setFieldsValue({ ...obj, LoginPwd: obj.LoginPwd ? atob(obj.LoginPwd) : '' });
} }
}, [visible]); }, [visible]);
const onSubmit = () => { const onSubmit = () => {
...@@ -51,7 +51,7 @@ const AddHKModal = props => { ...@@ -51,7 +51,7 @@ const AddHKModal = props => {
} }
getValue.VideoManufacturer = type; getValue.VideoManufacturer = type;
if (kind === 'add') { if (kind === 'add') {
addInsertVideoConfig(getValue).then(res => { addInsertVideoConfig({ ...getValue, LoginPwd: btoa(getValue.LoginPwd) }).then(res => {
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
onCancel(); onCancel();
setLoad(false); setLoad(false);
...@@ -76,6 +76,7 @@ const AddHKModal = props => { ...@@ -76,6 +76,7 @@ const AddHKModal = props => {
editInsertVideoConfig({ editInsertVideoConfig({
...getValue, ...getValue,
Id: obj.Id, Id: obj.Id,
LoginPwd: btoa(getValue.LoginPwd),
}).then(res => { }).then(res => {
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
onCancel(); onCancel();
......
...@@ -486,7 +486,7 @@ const videoManager = () => { ...@@ -486,7 +486,7 @@ const videoManager = () => {
rowKey={record => record.Id} rowKey={record => record.Id}
columns={columns} columns={columns}
dataSource={tableData} dataSource={tableData}
scroll={{ y: 'calc(100% - 210px)', x: 'max-content' }} scroll={{ y: 'calc(100% - 50px)', x: 'max-content' }}
onRow={record => ({ onRow={record => ({
onDoubleClick: event => { onDoubleClick: event => {
event.stopPropagation(); event.stopPropagation();
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
.tablebox { .tablebox {
height: calc(100% - 54px); height: calc(100% - 54px);
.ant-table-container {
height: 100%;
}
.ant-table-wrapper { .ant-table-wrapper {
height: 100%; height: 100%;
.ant-table { .ant-table {
......
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