380 lines
16 KiB
HTML
380 lines
16 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<title>竞赛数据接口</title>
|
||
<link href="/Assets/layui/css/bootstrap.min.css" rel="stylesheet" />
|
||
<link href="/Assets/layui/css/materialdesignicons.min.css" rel="stylesheet" />
|
||
<link rel="stylesheet" href="/Assets/layui/js/bootstrap-multitabs/multitabs.min.css" />
|
||
<link href="/Assets/layui/css/style.min.css" rel="stylesheet" />
|
||
<script type="text/javascript">
|
||
var str = localStorage.getItem("man");
|
||
console.log(str);
|
||
var obj = JSON.parse(str);
|
||
console.log(obj);
|
||
|
||
function test() {
|
||
var array1 = [2, 4, 1, 3];
|
||
var array2 = [6, 8, 7, 5];
|
||
var array3 = array1.concat(array2);
|
||
var array4 = array2.concat(array1);
|
||
console.log("目前array1的数据是:");
|
||
console.log(array1);
|
||
console.log("目前array2的数据是:");
|
||
console.log(array2);
|
||
console.log("连接数组后,目前array3的数据是:");
|
||
console.log(array3);
|
||
for (var i = 0; i < array3.length; i++) {
|
||
console.log(i + ": " + array3[i]);
|
||
}
|
||
console.log("连接数组后,目前array4的数据是:");
|
||
console.log(array4);
|
||
|
||
|
||
// 测试Array数组的join方法
|
||
// 以逗号或竖线为分隔符,将原先数组的所有元素拼接成一个字符串
|
||
var arrayToStr1 = array3.join(",");
|
||
var arrayToStr2 = array4.join("|");
|
||
console.log("以逗号为分隔符,拼接后的字符串1是: " + arrayToStr1);
|
||
console.log("以竖线为分隔符,拼接后的字符串2是: " + arrayToStr2);
|
||
|
||
array3.splice(0);
|
||
console.log("删除所有元素后,目前array3的数据是:");
|
||
console.log(array3);
|
||
}
|
||
test();
|
||
</script>
|
||
</head>
|
||
<body style="padding:20px;">
|
||
<h2 style="text-align:center;">竞赛数据接口 接口不断完善更新中...</h2>
|
||
<h3>获取图片测试</h3>
|
||
<div>http://172.16.1.154:50005/api/UploadFile/get_images</div>
|
||
<h3>获取服务器时间</h3>
|
||
<div> http://172.16.1.254:10091/api/Exam/Time</div>
|
||
|
||
<h3>App考试</h3>
|
||
<h4>1、用户考试信息保存</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/Exam/Edit
|
||
</div>
|
||
<div>参数 user_id: 用户id</div>
|
||
<div>参数 exam_code:试卷编码(01-12),任务背景1: 01 ,任务背景9:09,任务背景12:12</div>
|
||
<div>参数 data: 考试对象json字符串</div>
|
||
<div>具体考试对象如下:</div>
|
||
<div>
|
||
power_unit string 供电单位,
|
||
user_name string 用电户名称,
|
||
contact_man string 联系人,
|
||
contact_mobile string 联系方式,
|
||
user_no string 用户编号,
|
||
taiqu_no string 台区编号,
|
||
address string 用电地址,
|
||
id_card string 证件号码,
|
||
need_type string 需求类型,
|
||
user_type string 用电户分类,
|
||
power_voltage_client string 供电电压(现场勘察),
|
||
city_type string 城乡类别(特殊边远地区、农村、城市),
|
||
use_power_type string 用电类别(乡村居民生活用电,城镇居民生活用电),
|
||
temp_power_flag string 临时用电标志,
|
||
apply_capacity string 申请容量,
|
||
is_start_power string 是否可供电,
|
||
verify_capacity string 核定合计用电容量,
|
||
is_new_point string 是否新增接入点,
|
||
is_config_project string 是否有配套工程,
|
||
has_project_flag string 有工程标志,
|
||
zhuangong_flag string 转供标志,
|
||
if_jiakong string 是否架空,
|
||
fuhe_nature string 负荷性质,
|
||
check_man string 勘察人员,
|
||
check_date string 勘察日期,
|
||
is_fee_control string 是否费控用户,
|
||
check_idea string 勘察意见,
|
||
power_type string 电源类型,
|
||
power_nature string 电源性质,
|
||
power_phase string 电源相数,
|
||
power_voltage_powerplan string 供电电压(电源方案),
|
||
in_line_type string 进线方式,
|
||
protect_type string 保护方式,
|
||
power_capacity string 供电容量,
|
||
station_line_taiqu string 变电站/线路/台区,
|
||
in_line_no string 进线杆号/电缆分支箱,
|
||
property_split string 产权分界点,
|
||
measure_name string 计量点名称,
|
||
measure_type string 计量点分类,
|
||
measure_nature string 计量点性质,
|
||
measure_way string 计量方式,
|
||
main_use string 主用途类型,
|
||
inline_type_measure string 接线方式(计量点),
|
||
voltage_level string 电压等级,
|
||
is_fill_meter string 是否装表,
|
||
device_type string 计量装置分类,
|
||
measure_capacity string 计量点容量,
|
||
own_side string 计量点所属侧,
|
||
power_factor_type string 参与功率因数计算方式,
|
||
shop_attrtype string 市场化属性,
|
||
price_calc_way string 电量计算方式,
|
||
rate_reduce_flag string 定比扣减标志,
|
||
exec_price string 执行电价,
|
||
is_stop_power string 是否可停电,
|
||
price_type string 定价策略类型,
|
||
fee_compute_type string 基本电费计算方式,
|
||
power_factor_checktype string 功率因素考核方式,
|
||
fee_hangye_type string 电价行业类别,
|
||
fee string 电价,
|
||
is_peak_flag string 是否执行峰谷标志,
|
||
power_factor_stand string 功率因数标准,
|
||
accept_type string 受电点类型,
|
||
accept_name string 受电点名称,
|
||
power_count string 电源数目,
|
||
have_self_power string 有无自备电源,
|
||
meter_category string 类别,
|
||
meter_type string 类型,
|
||
active_power_level string 有功准确度等级,
|
||
power_current string 电流,
|
||
power_voltage_meter string 电压(电能表),
|
||
inline_type_meter string 接线方式,
|
||
refer_flag string 参考表标志,
|
||
indicator_type string 电能表示数类型,
|
||
transform_plan string 互感器方案
|
||
|
||
</div>
|
||
|
||
<h4>2、app用户考试缓存信息查询</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/Exam/Query
|
||
</div>
|
||
<div>参数 user_id: 用户id</div>
|
||
<div>参数 exam_code:试卷编码(01-12),任务背景1: 01 ,任务背景9:09,任务背景12:12</div>
|
||
|
||
<h4>3、三维查询app考试结果信息</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/Exam/QueryResult?user_id=3201732844279466&exam_code=01
|
||
</div>
|
||
<div>参数 user_id: 用户id</div>
|
||
<div>参数 exam_code:试卷编码(01-12),任务背景1: 01 ,任务背景9:09,任务背景12:12</div>
|
||
<div>返回值</div>
|
||
<div>
|
||
CountTotal : 总数量
|
||
CountSuccess :正确数量
|
||
CountFail:错误数量
|
||
SuccessRate: 正确率
|
||
FailRate: 错误率
|
||
</div>
|
||
<div> ListError: 错误列表详情 Field:字段,Dsc:描述,Answer:答案值,User:用户值 ,Msg:消息 </div>
|
||
<div>
|
||
ListRight: 正确列表详情(仅查看用)
|
||
</div>
|
||
|
||
|
||
<h4>4、用户app信息缓存添加</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/Exam/AddCache
|
||
</div>
|
||
<div>参数 user_id: 用户id</div>
|
||
<div>参数 batch_id: 批次id</div>
|
||
<div>参数 type:类型(必填)</div>
|
||
<div>参数 type_sub:子类型</div>
|
||
<div>参数 page:页面</div>
|
||
<div>参数 step:步骤(整型)</div>
|
||
<div>参数 data: 考试对象json字符串</div>
|
||
|
||
<h4>5、用户app信息缓存查询</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/Exam/QueryCache
|
||
</div>
|
||
<div>参数 user_id: 用户id</div>
|
||
<div>参数 batch_id: 批次id</div>
|
||
<div>参数 type:类型(必填)</div>
|
||
<div>参数 type_sub:子类型</div>
|
||
<div>参数 page:页面</div>
|
||
<div>参数 step:步骤(整型)</div>
|
||
|
||
<h3>客户收资</h3>
|
||
|
||
<h4>1、添加客户收资</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ClientCollect/Add
|
||
</div>
|
||
<div>参数 data: {"user_name":"王飞","id_card":"320123","hangye_type":"乡村居民","power_voltage":"交流220V","power_type":"乡村居民生活用电","power_unit":"南京供电公司市区","city_type":"农村"}</div>
|
||
|
||
<div>参数 business_photo: 营业照 文件流</div>
|
||
<div>参数 house_photo:房产证 文件流</div>
|
||
<div>参数 sfz_front:身份证人像面 文件流</div>
|
||
<div>参数 sfz_back:身份证国徽面 文件流</div>
|
||
<div>参数 apply_book: 授权委托书 文件流</div>
|
||
<div>参数 operator_idcard:经办人身份证 文件流</div>
|
||
|
||
<h4>2、修改客户收资 (先查询单个对象,然后对查询出的对象的值进行修改,最后调用接口)</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ClientCollect/Update
|
||
</div>
|
||
<div>参数id: 收资id (添加接口返回的id)</div>
|
||
<div>参数 data: {"user_name":"王飞","id_card":"320123","hangye_type":"乡村居民","power_voltage":"交流220V","power_type":"乡村居民生活用电","power_unit":"南京供电公司市区","city_type":"农村"}</div>
|
||
<div>参数 business_photo: 营业照 文件流</div>
|
||
<div>参数 house_photo:房产证 文件流</div>
|
||
<div>参数 sfz_front:身份证人像面 文件流</div>
|
||
<div>参数 sfz_back:身份证国徽面 文件流</div>
|
||
<div>参数 apply_book: 授权委托书 文件流</div>
|
||
<div>参数 operator_idcard:经办人身份证 文件流</div>
|
||
|
||
<h4>3、获取单个客户收资</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ClientCollect/One
|
||
</div>
|
||
<div>参数id: 收资id(添加接口返回的id)</div>
|
||
|
||
<h3>联系人</h3>
|
||
<h4>1、添加客户联系人</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ContactInfo/Add
|
||
</div>
|
||
<div>参数: data: {"client_id":"客户收资id","contact_man":"联系人","contact_type":"联系人类型","contact_mobile":"18052043323"}</div>
|
||
|
||
<h4>2、删除单个联系人</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ContactInfo/Delete
|
||
</div>
|
||
<div>参数 id:联系信息id(查询接口返回的id)</div>
|
||
|
||
<h4>3、查询单个客户联系人列表</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ContactInfo/QueryByClient
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
|
||
<h4>4、添加或修改客户地址</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ClientCollect/UpdateAddress
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
<div>参数 address:结构化地址</div>
|
||
|
||
<h4>5、查询客户地址</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ClientCollect/QueryAddress
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
<div>返回 address:结构化地址</div>
|
||
|
||
<h4>4、修改申请容量</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/ClientCollect/UpdateApplyCapacity
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
<div>参数 apply_capacity:申请容量</div>
|
||
<div>备注 查询申请容量 请调用收资查询接口返回的apply_capacity</div>
|
||
|
||
<h3>供电方案</h3>
|
||
<h4>1、添加或修改供电方案</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/PlaceCheck/AddUpdate
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
<div>参数 data:{"verify_capacity":"核定容量","power_voltage":"供电电压","power_type":"负荷性质一类","if_has_project_flag":"无工程","if_jiakong":"是否架空","if_yulinbiao":"是否预领表","if_new_point":"是","power_plan_note":"供电方案说明","accept_power_time":"2024-11-14 13:31:42","zhuangong_flag":"转供标志"}</div>
|
||
|
||
<h4>2、查询供电方案</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/PlaceCheck/Query
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
|
||
|
||
<h3>受电点方案</h3>
|
||
<h4>1、添加或修改受电点方案</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/AcceptPowerPlan/AddUpdate
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
<div>参数 data:{"accept_type":"受电点类型","accept_name":"受电点名称","power_count":"电源数目","high_power_factor":1.0,"have_self_power":"有无自备电源","power_remark":"受电点备注","power_plan_note":"供电方案说明","price_type":"定价策略类型","power_factor_checktype":"功率因数考核方式","fee_compute_type":"基本电费计算方式","protocol_stand":"协议额定值"}</div>
|
||
|
||
<h4>2、查询受电点方案</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/AcceptPowerPlan/Query
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
|
||
<h3>电源方案</h3>
|
||
<h4>1、添加或修改电源方案</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/PowerPlan/AddUpdate
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
<div>参数 data:{"power_nature":"电源性质","power_type":"电源类型","power_capacity":"供电容量","power_voltage":"供电电压","in_line_type":"进线方式","power_phase":"电源相数","protect_type":"保护方式","relay_protect_type":"继电保护类型","property_split":"产权分界点","in_line_no":"进线杆号/电缆分支箱","power_remark":"电源备注","station_info":"站线台信息"}</div>
|
||
|
||
<h4>2、查询电源方案</h4>
|
||
<div>
|
||
地址:http://172.16.1.254:10091/api/PowerPlan/Query
|
||
</div>
|
||
<div>参数 client_id:客户收资id</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h3>整体须知</h3>
|
||
<h4>接口数据查询: get请求、接口数据修改 :post请求</h4>
|
||
<h4>接口返回格式</h4>
|
||
<div>格式内容:</div>
|
||
<div>
|
||
state: true 接口正常,false 接口异常
|
||
data: 接口返回结果
|
||
message: 接口异常时返回的消息
|
||
</div>
|
||
<br />
|
||
<h4>接口授权</h4>
|
||
<div>所有接口:必填HEADERS参数,写接口时预留好,后期好统一加上</div>
|
||
<div>
|
||
HEADERS参数:Authorization : Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiIyMDIxMTAxMzEzNTczOTIwMDczOTE0Iiwicm9sZSI6IjAiLCJuYmYiOjE3MzEyOTM5OTYsImV4cCI6MTczMTM4MDM5NiwiaWF0IjoxNzMxMjkzOTk2LCJpc3MiOiJ5b3VyX2lzc3VlciJ9.d7ymDYzNgCrwz1KVMlIbM_tZRY7E4MFEvZfeesAAeUM
|
||
</div>
|
||
|
||
<!--<div>参数:action:practicethink</div>
|
||
<div>参数:Id:房间id</div>
|
||
<div>
|
||
返回值:DeviceContent:模型参数
|
||
EnvTime 环境-时间、EnvRain 环境-雨、EnvSnow 环境-雪
|
||
EnvWindSpeed 环境-风速、EnvWindDir 环境-风向、EnvLight 环境-阳光亮度
|
||
</div>-->
|
||
<!--<br />
|
||
<h3>房间相关接口</h3>
|
||
<h4>1、查询单个房间</h4>
|
||
<div>
|
||
地址: http://172.16.1.254:48888/Handler/Practice.ashx?action=queryone
|
||
</div>
|
||
<div>参数:action:queryone</div>
|
||
<div>参数:Id:房间id</div>
|
||
<div>
|
||
返回:Name:房间名称,PracticeMode:训练模式(岗位训练、协同训练)
|
||
</div>
|
||
|
||
|
||
<h4>2、添加单个房间</h4>
|
||
<div>地址:http://172.16.1.254:48888/Handler/Practice.ashx?action=add</div>
|
||
<div>参数:Name:房间名称</div>
|
||
<div>参数:MissionModel:考核模式 考核、训练</div>
|
||
<div>参数:ThinkingId:想定id</div>
|
||
<div>返回: 返回房间id</div>-->
|
||
<!--====================== 111.229.30.246 ======================-->
|
||
<!--<h4>5、查询房间科目</h4>
|
||
<div>地址:http://111.229.30.246:48888/Handler/Practice.ashx?action=querypracticesubject&PracticeId=1699255777445</div>
|
||
<div>参数:PracticeId:房间id</div>
|
||
|
||
|
||
<br />
|
||
<h4>6、查询房间科目目标</h4>
|
||
<div>地址:http://111.229.30.246:48888/Handler/Practice.ashx?action=querypracticedest&PracticeId=1699255777445&PracticeSubjectId=1699255777445001</div>
|
||
<div>参数:PracticeId:房间id</div>
|
||
<div>参数:PracticeSubjectId:科目id</div>
|
||
|
||
<br />
|
||
<h4>7、查询房间科目席位</h4>
|
||
<div>地址:http://111.229.30.246:48888/Handler/Practice.ashx?action=querypracticeseat&PracticeId=1699255777445&PracticeSubjectId=1699255777445001&DestId=1699255777445009</div>
|
||
<div>参数:PracticeId:房间id</div>
|
||
<div>参数:PracticeSubjectId:科目id</div>
|
||
<div>参数:DestId:目标id</div>-->
|
||
|
||
|
||
<br />
|
||
</body>
|
||
</html>
|