Commit d32e3df6 authored by 皮倩雯's avatar 皮倩雯

新接口全部替换

parent ea6ddc62
Pipeline #31472 skipped with stages
...@@ -326,13 +326,11 @@ const WebDic = () => { ...@@ -326,13 +326,11 @@ const WebDic = () => {
}; };
// 提交-删除 // 提交-删除
const submitDelete = () => { const submitDelete = () => {
get(`${CITY_SERVICE}/OMS.svc/D_DeleteDataDictionary`, { DeleteDataDictionary({
_version: 9999,
_dc: new Date().getTime(),
nodeID: select.nodeID, nodeID: select.nodeID,
}) })
.then(res => { .then(res => {
if (res.success) { if (res.code===0) {
getData(select.parentID); getData(select.parentID);
if (select.parentID === '-1') { if (select.parentID === '-1') {
setSubData([]); setSubData([]);
......
...@@ -335,16 +335,18 @@ const InitDataBase = props => { ...@@ -335,16 +335,18 @@ const InitDataBase = props => {
setCardLoading(true); setCardLoading(true);
const obj = form.getFieldsValue(); const obj = form.getFieldsValue();
getConnectionTest({ getConnectionTest({
_version: 9999, // _version: 9999,
_dc: new Date().getTime(), // _dc: new Date().getTime(),
ip: obj.ip, // ip: obj.ip,
dbName: obj.dbName, // dbName: obj.dbName,
userName: obj.userName, // userName: obj.userName,
password: obj.password, // password: obj.password,
Type:"SQLServer",
name:obj.dbName,
}) })
.then(res => { .then(res => {
setCardLoading(false); setCardLoading(false);
if (res.GetMe === true) { if (res.code === 0) {
notification.success({ notification.success({
message: '提示', message: '提示',
duration: 3, duration: 3,
......
...@@ -68,8 +68,6 @@ const ProjectManage = () => { ...@@ -68,8 +68,6 @@ const ProjectManage = () => {
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'action',
key: 'action',
width: 250, width: 250,
ellipsis: true, ellipsis: true,
render: (text, record) => ( render: (text, record) => (
...@@ -127,6 +125,7 @@ const ProjectManage = () => { ...@@ -127,6 +125,7 @@ const ProjectManage = () => {
handleShowModal("editVisible", true) handleShowModal("editVisible", true)
} }
const TestDesc = (record) => { const TestDesc = (record) => {
console.log(record)
if(record.ThemeName) if(record.ThemeName)
TestPush({ TestPush({
theme:record.ThemeName, theme:record.ThemeName,
...@@ -249,6 +248,7 @@ const ProjectManage = () => { ...@@ -249,6 +248,7 @@ const ProjectManage = () => {
item: item item: item
}) })
}) })
console.log('mesList',mesList);
setDataList(mesList) setDataList(mesList)
} }
} }
...@@ -297,7 +297,7 @@ const ProjectManage = () => { ...@@ -297,7 +297,7 @@ const ProjectManage = () => {
</div> </div>
<div className={styles.list_view}> <div className={styles.list_view}>
<Table columns={columns} dataSource={dataList} pagination={{ pageSize: '10' }} /> <Table columns={columns} dataSource={dataList} pagination={{ pageSize: '10' }} rowKey='ID'/>
</div> </div>
<EditModal <EditModal
visible={visibleParams.editVisible} visible={visibleParams.editVisible}
......
...@@ -69,12 +69,14 @@ const EditModal = props => { ...@@ -69,12 +69,14 @@ const EditModal = props => {
useEffect(() => { useEffect(() => {
if (template.ThemeName) { if (template.ThemeName) {
console.log(template);
form.setFieldsValue({ form.setFieldsValue({
name: template.MsgType, name: template.MsgType,
isStart: template.IsStarted === "0" ? "关闭" : "开启", isStart: template.IsStarted === "0" ? "关闭" : "开启",
to_person: template.PushGroup, to_person: template.PushGroup,
push_plan: template.MsgType, push_plan: template.MsgType,
push_mode: template.PushMode.split(","), push_mode: template.PushMode === null ? '' : template.PushMode.split(","),
app_template: template.AppTemplateID, app_template: template.AppTemplateID,
app_path: template.AppFunctionPath, app_path: template.AppFunctionPath,
wx_template: parseInt(template.PublicTemplateID), wx_template: parseInt(template.PublicTemplateID),
...@@ -85,10 +87,10 @@ const EditModal = props => { ...@@ -85,10 +87,10 @@ const EditModal = props => {
message_template: template.MsgTemplateID, message_template: template.MsgTemplateID,
}) })
setCurrentTrench({ setCurrentTrench({
isAPPShow: template.PushMode.split(",").indexOf("平台弹框") > -1 ? true : false, isAPPShow: template.PushMode && template.PushMode.split(",").indexOf("平台弹框") > -1 ? true : false,
isWXShow: template.PushMode.split(",").indexOf("公众号推送") > -1 ? true : false, isWXShow: template.PushMode && template.PushMode.split(",").indexOf("公众号推送") > -1 ? true : false,
isWEBShow: template.PushMode.split(",").indexOf("平台弹框") > -1 ? true : false, isWEBShow: template.PushMode &&template.PushMode.split(",").indexOf("平台弹框") > -1 ? true : false,
isMessageShow: template.PushMode.split(",").indexOf("短信推送") > -1 ? true : false, isMessageShow: template.PushMode &&template.PushMode.split(",").indexOf("短信推送") > -1 ? true : false,
}) })
} }
...@@ -270,7 +272,7 @@ const EditModal = props => { ...@@ -270,7 +272,7 @@ const EditModal = props => {
<VisibleRoleModal <VisibleRoleModal
onSubmit={onPushSubmit} onSubmit={onPushSubmit}
title={"推送人员"} title={"推送人员"}
/> />
</Item> </Item>
<Item <Item
......
...@@ -16,6 +16,7 @@ const EditGroup = props => { ...@@ -16,6 +16,7 @@ const EditGroup = props => {
}, [itemObj]); }, [itemObj]);
const onSubmit = props => { const onSubmit = props => {
setLoading(true); setLoading(true);
console.log(itemObj)
setRoleGroupName({ setRoleGroupName({
subSystemValue: itemObj.visibleValue || itemObj.subSystemValue, subSystemValue: itemObj.visibleValue || itemObj.subSystemValue,
oldName: itemObj.groupflag, oldName: itemObj.groupflag,
...@@ -23,7 +24,7 @@ const EditGroup = props => { ...@@ -23,7 +24,7 @@ const EditGroup = props => {
}) })
.then(res => { .then(res => {
setLoading(false); setLoading(false);
if (res.msg==='') { if (res.code===0) {
form.resetFields(); form.resetFields();
notification.success({ notification.success({
message: '提示', message: '提示',
......
...@@ -146,7 +146,7 @@ const SiteManage = () => { ...@@ -146,7 +146,7 @@ const SiteManage = () => {
.then(res => { .then(res => {
const list = []; const list = [];
// eslint-disable-next-line no-unused-expressions // eslint-disable-next-line no-unused-expressions
res.success && res.code===0 &&
res.root.forEach(item => { res.root.forEach(item => {
list.push({ ...defaultConfig, ...item }); list.push({ ...defaultConfig, ...item });
}); });
...@@ -365,6 +365,7 @@ const SiteManage = () => { ...@@ -365,6 +365,7 @@ const SiteManage = () => {
} }
//编辑分组 //编辑分组
const editorGroup = (e,record) => { const editorGroup = (e,record) => {
console.log(record,'1212')
e.stopPropagation(); e.stopPropagation();
setItemObj(record); setItemObj(record);
setGroupVisible(true); setGroupVisible(true);
......
...@@ -97,7 +97,7 @@ const UserModal = props => { ...@@ -97,7 +97,7 @@ const UserModal = props => {
res => { res => {
let list = [] let list = []
if (res.data && res.data.length > 0) { if (res.data && res.data.length > 0) {
console.log(res.data)
res.data.map((item, index) => { res.data.map((item, index) => {
list.push({ list.push({
GroupId: +item.OUID, GroupId: +item.OUID,
...@@ -109,6 +109,7 @@ const UserModal = props => { ...@@ -109,6 +109,7 @@ const UserModal = props => {
} }
setSelectList(lodash.cloneDeep(list)); setSelectList(lodash.cloneDeep(list));
console.log(lodash.cloneDeep(list));
setUpdatePageUser(updatePageUser + 1) setUpdatePageUser(updatePageUser + 1)
} }
) )
...@@ -149,7 +150,7 @@ const UserModal = props => { ...@@ -149,7 +150,7 @@ const UserModal = props => {
.then(res => { .then(res => {
if (res.msg==='') { if (res.code===0) {
setSelectList([]); setSelectList([]);
setUpdateCheck(updateCheck + 1); setUpdateCheck(updateCheck + 1);
confirmModal(itemObj.roleID) confirmModal(itemObj.roleID)
......
...@@ -348,7 +348,7 @@ const SiteManage = props => { ...@@ -348,7 +348,7 @@ const SiteManage = props => {
.then(res => { .then(res => {
handleShowModal('btnLoading', false); handleShowModal('btnLoading', false);
if (res.msg==='') { if (res.code===0) {
setSelectList([]); setSelectList([]);
setUpdate1(update1 + 1); setUpdate1(update1 + 1);
notification.success({ notification.success({
......
...@@ -435,7 +435,7 @@ const SiteManageV2 = () => { ...@@ -435,7 +435,7 @@ const SiteManageV2 = () => {
.then(res => { .then(res => {
handleShowModal('btnLoading', false); handleShowModal('btnLoading', false);
if (res.msg==='') { if (res.code===0) {
setSelectList([]); setSelectList([]);
setUpdateCheck(updateCheck + 1); setUpdateCheck(updateCheck + 1);
notification.success({ notification.success({
......
...@@ -24,7 +24,7 @@ const AuthModal = props => { ...@@ -24,7 +24,7 @@ const AuthModal = props => {
UserId: currentUser.userID UserId: currentUser.userID
}).then( }).then(
res => { res => {
if(res.code == 0){ if(res.code === 0){
setSelctValue(res.data) setSelctValue(res.data)
} }
} }
...@@ -36,7 +36,7 @@ const AuthModal = props => { ...@@ -36,7 +36,7 @@ const AuthModal = props => {
const onSubmit = () => { const onSubmit = () => {
AddUserAuthSetting({userId:currentUser.userID}).then( AddUserAuthSetting({userId:currentUser.userID}).then(
res =>{ res =>{
if(res.code == 0){ if(res.code === 0){
message.info("提交成功") message.info("提交成功")
} }
} }
......
...@@ -87,7 +87,7 @@ const UserManage = () => { ...@@ -87,7 +87,7 @@ const UserManage = () => {
const [form] = Form.useForm(); const [form] = Form.useForm();
const { Item } = Form; const { Item } = Form;
const [selectValue,setSelctValue] = useState(1)//用户鉴权 const [selectValue,setSelctValue] = useState(0)//用户鉴权
const [width, setWidth] = useState(50); const [width, setWidth] = useState(50);
const [treeLoading, setTreeLoading] = useState(false); const [treeLoading, setTreeLoading] = useState(false);
...@@ -361,6 +361,7 @@ const UserManage = () => { ...@@ -361,6 +361,7 @@ const UserManage = () => {
onConfirm={() => authUser(record)} onConfirm={() => authUser(record)}
> >
<LockOutlined <LockOutlined
onClick={() => jianquan(record)}
style={{ fontSize: '16px', color: '#1890ff' }} style={{ fontSize: '16px', color: '#1890ff' }}
/> />
</Popconfirm> </Popconfirm>
...@@ -534,7 +535,6 @@ const UserManage = () => { ...@@ -534,7 +535,6 @@ const UserManage = () => {
// 树节点变化(即props不为空)时才请求,避免重复请求 // 树节点变化(即props不为空)时才请求,避免重复请求
if (props[0]) { if (props[0]) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(props[0]);
getOneOUUserListNew(props[0] || currentSelectOrg) getOneOUUserListNew(props[0] || currentSelectOrg)
.then(res => { .then(res => {
setCurrentOrgOperate(false); // 重置禁用当前机构操作为false setCurrentOrgOperate(false); // 重置禁用当前机构操作为false
...@@ -740,20 +740,33 @@ const UserManage = () => { ...@@ -740,20 +740,33 @@ const UserManage = () => {
}; };
// 用户鉴权 // 用户鉴权
useEffect(() => { // useEffect(() => {
currentUser.userID // currentUser.userID
GetUserAuthSet({ // GetUserAuthSet({
UserId: currentUser.userID // UserId: currentUser.userID
}).then( // }).then(
res => { // res => {
if(res.code == 0){ // if(res.code == 0){
setSelctValue(res.data) // setSelctValue(res.data)
console.log(selectValue); // console.log(selectValue);
console.log(res.data); // console.log(res.data);
} // }
// }
// )
// }, [currentUser])
const jianquan = record=>{
GetUserAuthSet({
UserId: record.userID
}).then(
res => {
if(res.code == 0){
setSelctValue(res.data)
console.log(selectValue);
console.log(res.data);
} }
) }
}, [currentUser]) )
}
const onTypeChange = (value) => { const onTypeChange = (value) => {
console.log(value); console.log(value);
setSelctValue(value) setSelctValue(value)
......
...@@ -132,6 +132,9 @@ ...@@ -132,6 +132,9 @@
display: flex; display: flex;
width: 100%; width: 100%;
position: relative; position: relative;
.ant-table.ant-table-bordered > .ant-table-container {
min-width: calc(100vw - 582px);
}
.orgContainer{ .orgContainer{
height: calc(100vh - 74px); height: calc(100vh - 74px);
width: 340px; width: 340px;
......
...@@ -9,6 +9,7 @@ export const DeleteDataDictionary = params => ...@@ -9,6 +9,7 @@ export const DeleteDataDictionary = params =>
export const EditDataDictionary = params => export const EditDataDictionary = params =>
get(`${PUBLISH_SERVICE}/DataManger/EditDataDictionary`, params); get(`${PUBLISH_SERVICE}/DataManger/EditDataDictionary`, params);
//获取数据字典
export const GetKeyValue = params => export const GetKeyValue = params =>
get(`${PUBLISH_SERVICE}/DataManger/GetKeyValue`, params); get(`${PUBLISH_SERVICE}/DataManger/GetKeyValue`, params);
export const AddKeyValue = params => export const AddKeyValue = params =>
......
...@@ -27,9 +27,10 @@ export const getConnRecordNew = params => ...@@ -27,9 +27,10 @@ export const getConnRecordNew = params =>
get(`${PUBLISH_SERVICE}/DBManager/GetConnRecord`, params); get(`${PUBLISH_SERVICE}/DBManager/GetConnRecord`, params);
// 测试连接 // 测试连接
export const getConnectionTest = params => // export const getConnectionTest = params =>
get(`${CITY_SERVICE}/OMS.svc/S_GetConnectionTest`, params); // get(`${CITY_SERVICE}/OMS.svc/S_GetConnectionTest`, params);
export const getConnectionTest = params =>
get(`${PUBLISH_SERVICE}/DBManager/GetConnectionTest`, params);
// 保存数据库连接 // 保存数据库连接
// export const saveConnection = params => // export const saveConnection = params =>
// get(`${CITY_SERVICE}/OMS.svc/S_SaveConnection`, params); // get(`${CITY_SERVICE}/OMS.svc/S_SaveConnection`, params);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: * @Description:
* @Author: leizhe * @Author: leizhe
* @Date: 2021-05-27 16:31:05 * @Date: 2021-05-27 16:31:05
* @LastEditTime: 2021-07-07 17:50:49 * @LastEditTime: 2021-07-12 17:04:25
* @LastEditors: leizhe * @LastEditors: leizhe
*/ */
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index'; import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
......
...@@ -35,7 +35,7 @@ axios.interceptors.request.use( function (request){ ...@@ -35,7 +35,7 @@ axios.interceptors.request.use( function (request){
request.headers.Authorization = 'Bearer ' + token request.headers.Authorization = 'Bearer ' + token
} }
if(pandaPublish){ if(pandaPublish){
if(request.url!='/PandaOMS/OMS/OMSLogin'&&request.url!='/Publish/OMS/FileCenter/SaveMobileApk'&&request.url!='/Publish/OMS/GateWayConfig') if(request.url!='/PandaOMS/OMS/OMSLogin'&&request.url!='/Publish/OMS/FileCenter/SaveMobileApk'&&request.url!='/Publish/GCK/Basis/GateWayConfig')
request.url=getWay+request.url request.url=getWay+request.url
} }
return request return request
......
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