Commit 3f732e45 authored by 田翔's avatar 田翔

fix: 去除打印

parent 6c094dbc
Pipeline #84505 waiting for manual action with stages
......@@ -5,11 +5,9 @@ const SearchBar = props => {
const { items, buttons, onCommit, formProps } = props;
const [form, setForm] = useState(null);
const getForm = f => {
console.log(f);
setForm(f);
};
const handleFinish = values => {
console.log(values, 'value');
onCommit(values);
};
useEffect(() => {
......
......@@ -48,12 +48,8 @@ const GlobalHeaderRight = props => {
let className = styles.right;
const value = useContext(RouteContext);
useEffect(() => {
// console.log(pathname, props.routes, props.history, 'location');
// console.log(flattenRoutes(props.routes), 'flate');
let list = getBreadcrumbs();
// console.log(list, 'list');
setBreadCrumbsRoutes(list);
// console.log(value.breadcrumb.routes, 'value');
setDosRouter(pathname);
}, [pathname]);
......
......@@ -19,15 +19,11 @@ const MapScope = props => {
const mapID = useRef();
const mouseToolID = useRef();
useEffect(() => {
console.log(document.getElementById(mapId), '进入组件');
setAreaName([]);
if (document.getElementById(mapId)) {
console.log(mapID, '底图参数');
if (!mapID.current) {
// 1.加载底图
console.log(mapId, '底图33333');
let m = new window.AMap.Map(mapId);
console.log(m, '底图');
mapID.current = m;
// 2.加载管网配置
if (!extent) {
......@@ -61,9 +57,8 @@ const MapScope = props => {
console.log('params', params);
const wmsOption = {
tileSize: 512,
url: `${location.origin}/Cityinterface/rest/services/MapServer.svc/${
pipenetCofig.servicename
}/GeoServerProxy/wms`,
url: `${location.origin}/Cityinterface/rest/services/MapServer.svc/${pipenetCofig.servicename
}/GeoServerProxy/wms`,
blend: false,
params: params,
zooms: [2, 20],
......@@ -87,7 +82,7 @@ const MapScope = props => {
console.log(extent, 'extent');
extent && mapID.current.setCenter(exetent2AmapPoint(extent));
// distinct && onCascderChange([distinct]);
window.AMap.plugin('AMap.DistrictSearch', function() {
window.AMap.plugin('AMap.DistrictSearch', function () {
let districtSearch = new AMap.DistrictSearch({
// 关键字对应的行政区级别,country表示国家
level: 'country',
......@@ -96,27 +91,24 @@ const MapScope = props => {
});
// 搜索所有省/直辖市信息
districtSearch.search('中国', function(status, result) {
districtSearch.search('中国', function (status, result) {
// 查询成功时,result即为对应的行政区信息
console.log(result, '行政区划信息');
setOptions(result.districtList[0].districtList);
});
});
}
}, [props]);
const resetmap = () => {};
const resetmap = () => { };
const getInitConfig = () => {};
const getInitConfig = () => { };
const onSubmit = () => {
console.log(currentExtent);
console.log(currentAreaName);
confirmModal && confirmModal(currentExtent, currentAreaName, flag);
let mouseTool = mouseToolID.current;
mouseTool.close(true);
let map = mapID.current;
map.clearMap();
};
const handleSearch = () => {};
const handleSearch = () => { };
const onTangleClick = () => {
// if(!mouseTool){
// let tool = new AMap.MouseTool(map)
......@@ -131,7 +123,7 @@ const MapScope = props => {
// 同Polygon的Option设置
});
console.log(mouseTool, '进入选择范围');
mouseTool.on('draw', function(event) {
mouseTool.on('draw', function (event) {
mouseTool.close(false);
// console.log(event.obj.getBounds(),"矩形对象")
let bounds = event.obj.getBounds();
......@@ -153,7 +145,7 @@ const MapScope = props => {
'3': 'district',
};
let level = dic[value.length.toString];
AMap.plugin('AMap.DistrictSearch', function() {
AMap.plugin('AMap.DistrictSearch', function () {
// 创建行政区查询对象
let district = new AMap.DistrictSearch({
// 返回行政区边界坐标等具体信息
......@@ -162,7 +154,7 @@ const MapScope = props => {
level: level,
});
district.search(`${value[value.length - 1]}`, function(status, result) {
district.search(`${value[value.length - 1]}`, function (status, result) {
// 获取朝阳区的边界信息
let bounds = result.districtList[0].boundaries;
......
......@@ -27,7 +27,6 @@ const PictureWallProvider = props => {
}
});
setImgBed(arr);
console.log(data, arr, '666666666666666666666');
}
})
.catch(err => {
......
......@@ -168,7 +168,6 @@ const AddModal = props => {
}, [visible]);
const dragCallBack = arr => {
console.log(arr);
if (arr && !isFirst) {
setSelectData(arr);
}
......
......@@ -254,7 +254,6 @@ const StandingBook = props => {
newArr.push(item);
dataList.push(item);
});
console.log(arr);
arr.全部 = res.data.root;
setAllData(arr);
setShowSearchStyle(false);
......@@ -274,7 +273,6 @@ const StandingBook = props => {
});
}, [flag]);
const formateArrDataA = (initialArr, name) => {
console.log(initialArr);
console.log(name);
// 判定传参是否符合规则
if (!(initialArr instanceof Array)) {
......@@ -357,11 +355,9 @@ const StandingBook = props => {
});
}
}
console.log(aa);
// const maxOrder = aa.reduce((pre, cur) => (pre.order > cur.order ? pre.order : cur.order));
// setMaxLength(maxOrder + 1);
let arr = formateArrDataA(aa, 'type');
console.log(arr);
setShowSearchStyle(true);
// setAllData(arr);
setSearchData(arr);
......
......@@ -35,7 +35,7 @@ import {
loadUnattachedTables,
LoadLedgers,
} from '@/services/tablemanager/tablemanager';
import { FormDesigner } from 'panda-xform';
// import { FormDesigner } from 'panda-xform';
import { useHistory } from 'react-router-dom';
import FieldEditor from './fieldEditor';
import AffiliateAdd from '../components/Field/affiliateAdd';
......@@ -184,8 +184,6 @@ const AddModal = props => {
relationForm: {},
};
setTablesSchema(tablesSchema);
console.log(arr);
console.log(newArr);
setKeepTreeFirst(bb);
setTreeData(aa);
......@@ -556,7 +554,7 @@ const AddModal = props => {
{/* <Spin tip="loading..." spinning={treeLoading}> */}
<div className={styles.containerBox}>
<div style={{ width: '100%', height: 'calc(100% - 63px)', padding: '10px' }}>
{formObj && <FormDesigner ref={formRef} tableName={formObj} />}
{/* {formObj && <FormDesigner ref={formRef} tableName={formObj} />} */}
</div>
</div>
{/* </Spin> */}
......
......@@ -37,7 +37,7 @@ const { Option } = Select;
const { TextArea } = Input;
const AddFlowsModal = props => {
const {
callBackSubmit = () => {},
callBackSubmit = () => { },
type,
visible,
onClose,
......@@ -148,22 +148,15 @@ const AddFlowsModal = props => {
let a2;
let a3 = [];
initialArr.data.map(i => {
// console.log(i.groupType)
a2 = i.groupType;
// console.log(a2)
// console.log(i.root)
a1 = i.root;
a1.map(j => {
j.group = a2;
// console.log(j)
});
aa.push(i.root);
});
// console.log(aa)
aa.map(p => {
// console.log(p)
p.map(o => {
// console.log(o)
a3.push(o);
});
});
......@@ -210,9 +203,6 @@ const AddFlowsModal = props => {
callBackSubmit();
// setLoading(true);
let aa = form.getFieldsValue().FlowName;
console.log(aa);
console.log(inputValue);
console.log(strr);
if (type == 'add') {
let index = aa.lastIndexOf('\\');
aa = aa.substring(index + 1, aa.length);
......@@ -340,7 +330,6 @@ const AddFlowsModal = props => {
const groupArr = (initialArr, name) => {
let list = {};
console.log(initialArr);
initialArr.data.map(i => {
console.log(i);
let ar = [];
......
......@@ -71,7 +71,7 @@ import eventChooseImg from '@/assets/images/workOptions/事件选中.png';
const { Option } = Select;
const AddModal = props => {
const {
callBackSubmit = () => {},
callBackSubmit = () => { },
visible,
type,
formObj,
......@@ -1012,8 +1012,6 @@ const AddModal = props => {
nameArr.push(initialArr[i][`${name}`]);
}
}
console.log(nameArr);
console.log(initialArr);
//新建一个包含多个list的结果对象
let tempObj = {};
let aa = [];
......@@ -1033,7 +1031,6 @@ const AddModal = props => {
}
}
console.log(aa);
// tempObj.内置字段 = aa;
for (let key in tempObj) {
let arr = [];
......@@ -1073,7 +1070,6 @@ const AddModal = props => {
};
// const formateArrDataA1 = (initialArr, name) => {
// console.log(initialArr);
// let aa = [];
// let a1 = [];
// let a2;
......@@ -1418,7 +1414,7 @@ const AddModal = props => {
</Button>
</Space>
}
// confirmLoading={loading}
// confirmLoading={loading}
>
<Spin tip="loading..." spinning={modalLoading}>
{modalLoading ? null : (
......@@ -1597,10 +1593,10 @@ const AddModal = props => {
>
{treeData
? treeData.map((item, index) => (
<Option key={index} value={item}>
{item}
</Option>
))
<Option key={index} value={item}>
{item}
</Option>
))
: ''}
</Select>
</Item>
......@@ -1626,10 +1622,10 @@ const AddModal = props => {
>
{standingTable
? standingTable.map((item, index) => (
<Option key={index} value={item.text}>
{item.text}
</Option>
))
<Option key={index} value={item.text}>
{item.text}
</Option>
))
: ''}
</Select>
</Item>
......@@ -1977,8 +1973,8 @@ const AddModal = props => {
内置使用,使用第三方完整功能,仅调用接口、表结构和流程,工单系统中无法使用
</div>
}
// title="标准使用,使用标准工单系统,可通过勾选 前端/手持,来控制是否展示事件的填报入口,勾选即展示;
// 内置使用,使用第三方完整功能,仅调用接口、表结构和流程,工单系统中无法使用。"
// title="标准使用,使用标准工单系统,可通过勾选 前端/手持,来控制是否展示事件的填报入口,勾选即展示;
// 内置使用,使用第三方完整功能,仅调用接口、表结构和流程,工单系统中无法使用。"
>
<InfoCircleOutlined
style={{
......
......@@ -10,7 +10,7 @@ import styles from './incident.less';
const CheckboxGroup = Checkbox.Group;
const { TabPane } = Tabs;
const ChangeAddFlows = props => {
const { callBackSubmit = () => {}, pickItem, visible, filed11, newCheckedList } = props;
const { callBackSubmit = () => { }, pickItem, visible, filed11, newCheckedList } = props;
const [value, setValue] = useState('');
const [checkValue, setCheckValue] = useState([]);
const [title, setTitle] = useState([]);
......@@ -271,7 +271,6 @@ const ChangeAddFlows = props => {
}, [filed1]);
const formateArrDataA1 = (initialArr, name) => {
console.log(initialArr);
let aa = [];
let a1 = [];
let a2;
......
......@@ -335,11 +335,9 @@ const incident = () => {
}).then(res => {
setTreeLoading(false);
if (res.code === 0) {
console.log(res.data);
setKeepIdValue(res.data);
// setMaxLength(res.data.root.length + 1)
let arr = formateArrDataA(res.data, 'businessType');
console.log(arr);
let newArr = [];
let newapp = [];
let newabb = [];
......@@ -348,39 +346,25 @@ const incident = () => {
Object.keys(arr).map((item, index) => {
newArr.push(item);
});
console.log(arr);
Object.values(arr).map((item, index) => {
newapp.push(item);
});
console.log(newapp);
newapp.map((item, index) => {
console.log(item);
item.map((item1, index) => {
newabb.push(item1.root);
console.log(item1.root);
});
});
console.log(newabb);
newabb.map((item, index) => {
console.log(item);
aa.push(item);
});
console.log(aa);
aa.map((item, index) => {
console.log(item);
item.map((item1, index) => {
console.log(item1);
zz.push({ ...item1 });
});
});
console.log(zz);
let arrr = formateArrDataA(zz, 'businessType');
console.log(arrr);
setTableData(arrr);
console.log(history.location.state);
if (history.location.state) {
console.log(history);
console.log(history.location.state.rember);
setPickItem(newArr[history.location.state.rember]);
setRember(history.location.state.rember);
setRember1(newArr[history.location.state.rember]);
......@@ -388,9 +372,6 @@ const incident = () => {
setPickItem(newArr[rember]);
setRember1(newArr[0]);
}
console.log(rember);
console.log(newArr[rember]);
console.log(newArr, 'newArr');
if (!newArr[rember]) {
setRember(0);
setPickItem(newArr[0]);
......@@ -454,8 +435,6 @@ const incident = () => {
});
};
const formateArrDataA = (initialArr, name) => {
console.log(initialArr);
console.log(name);
// 判定传参是否符合规则
if (!(initialArr instanceof Array)) {
return '请传入正确格式的数组';
......@@ -524,9 +503,6 @@ const incident = () => {
};
const sort = () => {
setSortVisible(true);
console.log(tableData);
console.log(pickItem);
console.log(tableData[pickItem]);
setSortData(tableData[pickItem]);
};
......@@ -550,7 +526,6 @@ const incident = () => {
const onOK = prop => {
setSortVisible(false);
let aa = prop.str.toString();
console.log(aa);
CM_Event_ReOrder(aa).then(res => {
if (res.msg === 'Ok') {
notification.success({
......@@ -576,7 +551,6 @@ const incident = () => {
const editOk = () => {
let aa = addForm.getFieldsValue().newBusinessType;
console.log(aa);
CM_Event_EditBusinessType({
oldBusinessType: pickItem,
newBusinessType: aa,
......
......@@ -396,7 +396,6 @@ const DatabaseInitialization = props => {
setProduct(arr);
setKeepValue(arr);
}
console.log(aa);
let newArr = Array.from(new Set(aa));
setKeepStatus(gg);
console.log(newArr);
......
......@@ -16,7 +16,7 @@ import {
import { SaveUpload, UpdateModelInfo } from '@/services/drawBoardManage/api';
const EditTemplate = props => {
const { visible, treeData, obj, pickItem, callBackSubmit = () => {}, onCancel } = props;
const { visible, treeData, obj, pickItem, callBackSubmit = () => { }, onCancel } = props;
const [addTemplateForm] = Form.useForm();
const [selectValue, setSelectValue] = useState('');
const [file, setFile] = useState('');
......@@ -58,8 +58,6 @@ const EditTemplate = props => {
let aa = {};
aa.width = addTemplateForm.getFieldsValue().imageWidth.toString();
aa.height = addTemplateForm.getFieldsValue().imageHeight.toString();
console.log(aa);
console.log(file);
const formData = new FormData();
formData.append('ModelName', addTemplateForm.getFieldsValue().ModelFile);
formData.append('ModelType', obj.ModelTypeName);
......@@ -149,10 +147,10 @@ const EditTemplate = props => {
>
{treeData
? treeData.map((item, index) => (
<Option key={item.id} value={item.name}>
{item.name}
</Option>
))
<Option key={item.id} value={item.name}>
{item.name}
</Option>
))
: ''}
</Select>
</Form.Item>
......
......@@ -160,7 +160,6 @@ const AddProjectModal = props => {
// 添加瓦片
const addTile = () => {
let aa = cardData.find(i => i.schemename == formObj.schemename);
console.log(aa);
let arrNew = [];
aa.baseMapDetail.map(i => {
arrNew.push(i.zoom);
......
......@@ -319,7 +319,6 @@ const IotConfig = props => {
const PingIot1 = () => {
setLoading(true);
let aa = form.getFieldsValue().IotAddress;
console.log(aa);
PingIOTPlatform({
ip: aa,
}).then(res => {
......
......@@ -197,7 +197,6 @@ const AddModal = props => {
{
validator: (rule, value) => {
let aa = form.getFieldValue().UpstreamPathTemplate;
console.log(aa);
console.log(aa.indexOf('/PandaCore/GateWay'));
if (!aa.startsWith('/')) {
return Promise.reject('必须以/开头');
......
......@@ -418,10 +418,7 @@ const Integrate = () => {
}
});
}
console.log(aa);
setKeepSystemName(aa);
console.log(resnew.data);
console.log(resnew.data, 'resnew.dataresnew.dataresnew.data');
setTableData(resnew.data);
} else {
notification.error({
......
......@@ -24,7 +24,6 @@ const getQueryVariable = name => {
return result != null ? result[2] : '';
};
console.log(getAuthority(), 'getAuthority()');
let Authorized = RenderAuthorize(getAuthority());
// Reload the rights component
......
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