| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994 |
- /**
- * springHandle.js
- * 事件处理界面
- * emial: yaoqiang@chinausky.com
- * create: 2018-12-08
- */
- Ext.Loader.setConfig({
- enabled: true
- });
- Ext.Loader.setPath('Ext.ux', '../../res/extjs/examples/ux');
- Ext.require([
- 'Ext.grid.*',
- 'Ext.data.*',
- 'Ext.ux.RowExpander',
- 'Ext.selection.CheckboxModel'
- ]);
- var company_code;
- var FilterWin;
- var myStore = null;
- var myStore1 = null;
- var V_LOGINNAME = '', V_PASSWORD = '';
- var menuidx = '';
- var mouseon;
- var editMaintenancePresentation;
- var examineStatus;
- var mouseoff;
- var menu_click;
- var modifywin;
- var examin_win;
- var sm = Ext.create('Ext.selection.CheckboxModel');
- var sm1 = Ext.create('Ext.selection.CheckboxModel');
- Ext.define('CheckRecord2', {
- extend: 'Ext.data.Model',
- // fields: [
- // {name:'id', type:'string'},
- // {name:'xh', type:'int'},
- // {name:'wx_name', type:'string'},
- // {name:'spot_address', type:'string'},
- // {name:'sj_type_name', type:'string'},
- // {name:'y_complete_time', type:'string'},
- // {name:'cl_type_name', type:'string'},
- // {name:'cl_time', type:'string'},
- // {name:'dqzt', type:'string'},
- // {name:'person_liable_name', type:'string'},
- // {name:'phone', type:'string'},
- // {name:'zrs', type:'int'},
- // {name:'jrsj', type:'int'},
- // {name:'cssj', type:'int'},
- // {name:'jrjj', type:'int'},
- // {name:'name', type:'string'},
- // {name:'zrrid', type:'int'},
- // ]
- fields: [
- {name: 'id', type: 'int'},
- {name: 'company', type: 'string'},
- {name: 'companyCode', type: 'string'},
- {name: 'fireSataionName', type: 'string'},
- {name: 'addr', type: 'string'},
- {name: 'phone', type: 'string'},
- {name: 'area', type: 'string'},
- {name: 'type', type: 'int'},
- {name: 'status', type: 'int'},
- {name: 'baifirehosenozzle', type: 'int'},
- {name: 'firehose', type: 'int'},
- {name: 'abc', type: 'int'},
- {name: 'turnouts', type: 'int'},
- {name: 'firehat', type: 'int'},
- {name: 'firefightersboots', type: 'int'},
- {name: 'entrytool', type: 'int'},
- {name: 'firecar', type: 'int'},
- {name: 'zd', type: 'string'},
- {name: 'zz', type: 'string'},
- {name: 'stationMaster', type: 'string'},
- {name: 'stationMasterPhoen', type: 'string'},
- {name: 'insertTime', type: 'string'},
- {name: 'dd', type: 'string'}
- ]
- });
- Ext.define('CheckRecord3', {
- extend: 'Ext.data.Model',
- fields: [
- {name: 'jlid', type: 'string'},
- {name: 'dwid', type: 'string'},
- {name: 'xh', type: 'int'},
- {name: 'spot_name', type: 'string'},
- {name: 'spot_address', type: 'string'},
- {name: 'wcqk', type: 'string'},
- {name: 'wc_time', type: 'string'},
- {name: 'wbr', type: 'string'},
- // {name:'completion_status', type:'string'},
- ]
- });
- function exportbtn_click() {
- baseUrl = document.getElementById('basePath').value;
- V_LOGINNAME = $("#V_LOGINNAME").val();
- V_PASSWORD = $("#V_PASSWORD").val();
- wx_name = document.getElementById('wx_name').value;
- person_liable = document.getElementById('person_liable').value;
- sj_type = document.getElementById('sj_type').value;
- cl_type = document.getElementById('cl_type').value;
- cl_time_k = document.getElementById('cl_time_k').value;
- cl_time_j = document.getElementById('cl_time_j').value;
- // alert(plan_name);
- var fields = '';
- var array = ['xh', 'wx_name', 'sj_type_name', 'y_complete_time', 'cl_time', 'dqzt', 'person_liable_name', 'phone', 'clzt'];
- var name = ['序号', '报修任务名称', '报修类型', '应完成时间', '实际完成时间', '当前状态', '相关责任人', '联系电话', '处理状态'];
- for (var i = 0; i < 9; i++) {
- if (i > 0)
- fields += ',';
- fields += '{id:"' + array[i] + '",title:"' + name[i] + '",shown:"' + true + '"}';
- }
- var query = new Object();
- query.V_LOGINNAME = V_LOGINNAME;
- query.V_PASSWORD = V_PASSWORD;
- query.wx_name = wx_name;
- query.person_liable = person_liable;
- query.cl_time_k = cl_time_k;
- query.cl_time_j = cl_time_j;
- query.sj_type = sj_type;
- query.cl_type = cl_type;
- query.EXPORT_FILE = '巡检记录列表';
- query.fields = '[' + fields + ']';
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/excel/view/EventProcessingExcel",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'dormExport') {
- ConfirmStore = json.RESULT;
- var elemIF = document.createElement("iframe");
- elemIF.src = baseUrl + json.filename;
- elemIF.style.display = "none";
- document.body.appendChild(elemIF);
- }
- }
- });
- }
- Ext.onReady(function () {
- var baseUrl = document.getElementById('basePath').value;
- var theme = document.getElementById('theme').value;
- var chkIcon = '<img src="' + baseUrl + 'res/img/common/check.gif"/>'
- var unchkIcon = '<img src="' + baseUrl + 'res/img/common/uncheck.gif"/>'
- // company_code = document.getElementById('company_code').value;
- $("#V_LOGINNAME").val(sessionStorage.getItem('V_LOGINNAME'));
- $("#V_PASSWORD").val(sessionStorage.getItem('V_PASSWORD'));
- V_LOGINNAME = $("#V_LOGINNAME").val();
- V_PASSWORD = $("#V_PASSWORD").val();
- var countPerPage = 15;
- var maxHeight = 10000;
- var chkBoolean = function (flag) {
- if (flag)
- return chkIcon;
- return unchkIcon;
- }
- var queryJson = new Object();
- queryJson.V_LOGINNAME = V_LOGINNAME;
- queryJson.V_PASSWORD = V_PASSWORD;
- // queryJson.COMMSTATUS = 'NO';
- if ((company_code != null) && (company_code != 'null') && (company_code.length > 0))
- queryJson.company_code = company_code;
- var states1 = Ext.create('Ext.data.Store', {
- fields: ['status', 'name'],
- data: [
- // {"status":-1, "name":"全选"},
- {"status": "待开通", "name": "待开通"},
- {"status": "已开通", "name": "已开通"},
- {"status": "已锁定", "name": "已锁定"},
- {"status": "注销", "name": "注销"},
- ]
- });
- myStore = Ext.create('Ext.data.Store', {
- model: 'CheckRecord2',
- pageSize: countPerPage,
- proxy: {
- type: 'ajax',
- actionMethods: {
- create: 'POST',
- read: 'POST', // by default GET
- update: 'POST',
- destroy: 'POST'
- },
- url: baseUrl + 'FireStationController/queryFireStation',
- reader: {
- type: 'json',
- root: 'RESULT',
- totalProperty: 'totalCount'
- },
- extraParams: {
- queryJson: Ext.JSON.encode(queryJson)
- }
- },
- // sorters:[{
- // property:'data_time',
- // direction:'DESC'
- // }],
- remoteSort: true
- });
- var data = Ext.Date.format(new Date(), 'm/d/Y');
- var show_page = function () {
- var wx_name = document.getElementById('springHandle_title2_input').value;
- var person_liable = document.getElementById('springHandle_title3_input1').value;
- var cl_time_j = document.getElementById('springHandle_title3_input2').value;
- var cl_time_k = document.getElementById('springHandle_title3_input3').value;
- var cl_type = document.getElementById('springHandle_title3_input4').value;
- var sj_type = document.getElementById('springHandle_title3_input5').value;
- var query = new Object();
- if (wx_name.length > 0) {
- query.wx_name = wx_name;
- $("#wx_name").val(wx_name);
- }
- if (person_liable.length > 0) {
- query.person_liable = person_liable;
- $("#person_liable").val(person_liable);
- }
- if (cl_time_j.length > 0) {
- query.cl_time_j = cl_time_j;
- $("#cl_time_j").val(cl_time_j);
- }
- if (cl_time_k.length > 0) {
- query.cl_time_k = cl_time_k;
- $("#cl_time_k").val(cl_time_k);
- }
- if (cl_type.length > 0) {
- query.cl_type = cl_type;
- $("#cl_type").val(cl_type);
- }
- if (sj_type.length > 0) {
- query.sj_type = sj_type;
- $("#sj_type").val(sj_type);
- }
- query.V_LOGINNAME = V_LOGINNAME;
- query.V_PASSWORD = V_PASSWORD;
- var jsonstr = Ext.JSON.encode(query);
- myStore.getProxy().extraParams = {
- queryJson: jsonstr
- };
- Ext.getCmp('SpringHandleListPageToolbar').moveFirst();
- }
- var reset1 = function () {
- document.getElementById('springHandle_title2_input').value = '';
- document.getElementById('springHandle_title3_input1').value = '';
- document.getElementById('springHandle_title3_input2').value = '';
- document.getElementById('springHandle_title3_input3').value = '';
- document.getElementById('springHandle_title3_input4').value = '';
- document.getElementById('springHandle_title3_input5').value = '';
- $("#wx_name").val('');
- $("#person_liable").val('');
- $("#cl_time_j").val('');
- $("#cl_time_k").val('');
- $("#cl_type").val('');
- $("#sj_type").val('');
- show_page();
- }
- var highcharts1 = function () {
- var baifenbiywc = parseFloat(baifenbiywcbxrw);
- var baifenbicswc = parseFloat(baifenbicswcbxrw);
- var baifenbishwtgwc = parseFloat(baifenbishwtgwcbxrw);
- var baifenbiwcl = parseFloat(baifenbiwclbxrw);
- var baifenbiwsh = parseFloat(baifenbiwshbxrw);
- $('#container4').highcharts({
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false,
- type: 'pie'
- },
- credits: {
- enabled: false
- },
- exporting: {enabled: false},
- title: {
- text: '报修任务总数:' + xjbxcsnum
- },
- tooltip: {
- formatter: function () {
- return '<b>' + this.series.name + '</b>: ' + Highcharts.numberFormat(this.percentage, 1) + '%'
- }
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {point.percentage:.1f} %',
- style: {
- color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
- }
- },
- showInLegend: true
- }
- },
- series: [{
- name: '百分比',
- colorByPoint: true,
- data: [{
- name: '已完成',
- y: baifenbiywc,
- sliced: true,
- selected: true
- }, {
- name: '超时完成',
- y: baifenbicswc
- }, {
- name: '审核未通过',
- y: baifenbishwtgwc
- }, {
- name: '未处理',
- y: baifenbiwcl
- }, {
- name: '未审核',
- y: baifenbiwsh
- }]
- }]
- });
- }
- var highcharts2 = function () {
- var huidan15 = parseFloat(baifenbihuidan15);
- $('#container5').highcharts({
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false,
- type: 'pie'
- },
- credits: {
- enabled: false
- },
- exporting: {enabled: false},
- title: {
- text: '巡检维保报修总数:' + xjbxcsnum
- },
- tooltip: {
- pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {point.percentage:.1f} %',
- style: {
- color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
- }
- },
- showInLegend: true
- }
- },
- series: [{
- name: '百分比',
- colorByPoint: true,
- data: [{
- name: '巡检报修',
- y: huidan15,
- sliced: true,
- selected: true
- }, {
- name: '维保报修',
- y: 100 - huidan15
- }]
- }]
- });
- }
- var highcharts3 = function () {
- var ysmbaifenbi = parseFloat(xjysmbaifenbi);
- var wsmbaifenbi = parseFloat(xjwsmbaifenbi);
- $('#container6').highcharts({
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false,
- type: 'pie'
- },
- credits: {
- enabled: false
- },
- exporting: {enabled: false},
- title: {
- text: '应扫码次数' + xjysmcsnum + '个'
- },
- tooltip: {
- pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {point.percentage:.1f} %',
- style: {
- color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
- }
- },
- showInLegend: true
- }
- },
- series: [{
- name: '百分比',
- colorByPoint: true,
- data: [{
- name: '已扫码次数',
- y: ysmbaifenbi,
- sliced: true,
- selected: true
- }, {
- name: '未扫码次数',
- y: wsmbaifenbi
- }]
- }]
- });
- }
- var draw_confirm = function (start_data, end_data, project_date) {
- var start_data = start_data;
- var end_data = end_data;
- var project_date = project_date;
- var woker_talk = document.getElementById('woker_talkbx');
- var div1 = document.createElement('div');
- div1.style.width = 580;
- div1.style.height = 600;
- woker_talk.appendChild(div1);
- var title = document.createElement('h2');
- title.style.fontSize = '14px';
- title.style.textAlign = 'center';
- title.style.fontWeight = 'bold';
- title.innerHTML = '数据统计分析';
- div1.appendChild(title);
- var title2 = document.createElement('h3');
- title2.style.textAlign = 'left';
- title2.style.fontSize = '14px';
- title2.style.fontWeight = 'bold';
- title2.innerHTML = '1 数据分析';
- div1.appendChild(title2);
- var title88 = document.createElement('h4');
- title88.style.textAlign = 'left';
- title88.style.fontSize = '14px';
- title88.style.fontWeight = 'bold';
- title88.innerHTML = '1.1 资源及工作内容';
- div1.appendChild(title88);
- var title3 = document.createElement('div');
- title3.style.textAlign = 'left';
- title3.style.fontSize = '14px';
- title3.style.marginTop = '10px';
- title3.style.marginBottom = '10px';
- title3.style.textIndent = '2em';
- title3.style.fontWeight = 'bold';
- title3.innerHTML = '人员:' + xjrysl + '个';
- div1.appendChild(title3);
- var title34 = document.createElement('div');
- title34.style.textAlign = 'left';
- title34.style.fontSize = '14px';
- title34.style.marginBottom = '10px';
- title34.style.textIndent = '2em';
- title34.style.fontWeight = 'bold';
- title34.innerHTML = '报修总次数:' + xjbxcsnum + '个';
- div1.appendChild(title34);
- // var title32 = document.createElement('div');
- // title32.style.textAlign='left';
- // title32.style.fontSize='14px';
- // title32.style.marginBottom='10px';
- // title32.style.textIndent='2em';
- // title32.style.fontWeight='bold';
- // title32.innerHTML='班组:'+xjbz+'个';
- // div1.appendChild(title32);
- // var title4 = document.createElement('h4');
- // title4.style.textAlign='left';
- // title4.style.fontSize='14px';
- // title4.style.fontWeight='bold';
- // title4.innerHTML='1.2 工作内容';
- // div1.appendChild(title4);
- var title9 = document.createElement('div');
- title9.style.textAlign = 'left';
- title9.style.fontSize = '14px';
- title9.style.marginTop = '10px';
- title9.style.marginBottom = '10px';
- title9.style.textIndent = '2em';
- title9.style.fontWeight = 'bold';
- title9.innerHTML = '已完成的报修任务:' + xjrwnum + '个';
- div1.appendChild(title9);
- var title91 = document.createElement('div');
- title91.style.textAlign = 'left';
- title91.style.fontSize = '14px';
- title91.style.marginBottom = '10px';
- title91.style.textIndent = '2em';
- title91.style.fontWeight = 'bold';
- title91.innerHTML = '超时完成的报修任务:' + xjdwnum + '个';
- div1.appendChild(title91);
- var title32 = document.createElement('div');
- title32.style.textAlign = 'left';
- title32.style.fontSize = '14px';
- title32.style.marginBottom = '10px';
- title32.style.textIndent = '2em';
- title32.style.fontWeight = 'bold';
- title32.innerHTML = '审核未通过的报修任务:' + xjysmcsnum + '个';
- div1.appendChild(title32);
- var title33 = document.createElement('div');
- title33.style.textAlign = 'left';
- title33.style.fontSize = '14px';
- title33.style.marginBottom = '10px';
- title33.style.textIndent = '2em';
- title33.style.fontWeight = 'bold';
- title33.innerHTML = '未审核的报修任务:' + wshbxnum + '个';
- div1.appendChild(title33);
- var title34 = document.createElement('div');
- title34.style.textAlign = 'left';
- title34.style.fontSize = '14px';
- title34.style.marginBottom = '10px';
- title34.style.textIndent = '2em';
- title34.style.fontWeight = 'bold';
- title34.innerHTML = '未处理的报修任务:' + zrrnum + '个';
- div1.appendChild(title34);
- var title10 = document.createElement('h4');
- title10.style.textAlign = 'left';
- title10.style.fontSize = '14px';
- title10.style.fontWeight = 'bold';
- title10.innerHTML = '1.2任务进度情况';
- div1.appendChild(title10);
- var title21_highcharts = document.createElement('div');
- title21_highcharts.style.marginTop = '20px';
- title21_highcharts.style.marginBottom = '46px';
- title21_highcharts.setAttribute('id', 'container4');
- title21_highcharts.style.textAlign = 'center';
- div1.appendChild(title21_highcharts);
- // var title11 = document.createElement('h4');
- // title11.style.textAlign='left';
- // title11.style.fontSize='14px';
- // title11.style.fontWeight='bold';
- // title11.innerHTML='1.3出勤率分析';
- // div1.appendChild(title11);
- // var title11_highcharts = document.createElement('div');
- // title11_highcharts.style.marginTop='20px';
- // title11_highcharts.style.marginBottom='46px';
- // title11_highcharts.setAttribute('id','container6');
- // title11_highcharts.style.textAlign='center';
- // div1.appendChild(title11_highcharts);
- var div2 = document.createElement('div');
- div2.style.width = 580;
- div2.style.height = 600;
- woker_talk.appendChild(div2);
- var patrolh41 = document.createElement('h4');
- patrolh41.style.textAlign = 'left';
- patrolh41.style.fontSize = '14px';
- patrolh41.style.fontWeight = 'bold';
- patrolh41.innerHTML = '1.4巡检维保报修占比';
- div2.appendChild(patrolh41);
- var patrolh41_highcharts = document.createElement('div');
- patrolh41_highcharts.style.marginTop = '20px';
- patrolh41_highcharts.style.marginBottom = '46px';
- patrolh41_highcharts.setAttribute('id', 'container5');
- patrolh41_highcharts.style.textAlign = 'center';
- div2.appendChild(patrolh41_highcharts);
- var sta2 = document.createElement('table');
- sta2.style.marginTop = '10px';
- sta2.width = '100%';
- sta2.style.marginBottom = '20px';
- sta2.style.borderRight = '1px solid #BEBEBE';
- sta2.style.borderBottom = '1px solid #BEBEBE';
- div2.appendChild(sta2);
- var tr14 = document.createElement('tr');
- sta2.appendChild(tr14);
- var th5 = document.createElement('th');
- th5.width = '20%';
- th5.style.textAlign = 'center';
- th5.innerHTML = '报修任务名称';
- th5.style.fontSize = '14px';
- th5.style.borderLeft = '1px solid #BEBEBE';
- th5.style.borderTop = '1px solid #BEBEBE';
- tr14.appendChild(th5);
- var th6 = document.createElement('th');
- th6.width = '20%';
- th6.style.textAlign = 'center';
- th6.innerHTML = '任务来源';
- th6.style.fontSize = '14px';
- th6.style.borderLeft = '1px solid #BEBEBE';
- th6.style.borderTop = '1px solid #BEBEBE';
- tr14.appendChild(th6);
- var th7 = document.createElement('th');
- th7.width = '25%';
- th7.style.textAlign = 'center';
- th7.innerHTML = '上报人';
- th7.style.fontSize = '14px';
- th7.style.borderLeft = '1px solid #BEBEBE';
- th7.style.borderTop = '1px solid #BEBEBE';
- tr14.appendChild(th7);
- var th8 = document.createElement('th');
- th8.width = '35%';
- th8.style.textAlign = 'center';
- th8.innerHTML = '任务状态';
- th8.style.fontSize = '14px';
- th8.style.borderLeft = '1px solid #BEBEBE';
- th8.style.borderTop = '1px solid #BEBEBE';
- tr14.appendChild(th8);
- if (ConfirmStore15.length > 0) {
- if (ConfirmStore15.length == 1) {
- var tr13 = document.createElement('tr');
- sta2.appendChild(tr13);
- var td_details_num = document.createElement('td');
- td_details_num.width = '20%';
- td_details_num.style.textAlign = 'center';
- td_details_num.style.borderLeft = '1px solid #BEBEBE';
- td_details_num.style.borderTop = '1px solid #BEBEBE';
- td_details_num.innerHTML = ConfirmStore15[0].wx_name;
- td_details_num.style.fontSize = '14px';
- tr13.appendChild(td_details_num);
- var td_details_name = document.createElement('td');
- td_details_name.width = '20%';
- td_details_name.style.textAlign = 'center';
- td_details_name.innerHTML = ConfirmStore15[0].wx_laiyuan;
- td_details_name.style.borderLeft = '1px solid #BEBEBE';
- td_details_name.style.borderTop = '1px solid #BEBEBE';
- td_details_name.style.fontSize = '14px';
- tr13.appendChild(td_details_name);
- var td_details_specifications = document.createElement('td');
- td_details_specifications.width = '25%';
- td_details_specifications.style.textAlign = 'center';
- td_details_specifications.innerHTML = ConfirmStore15[0].bxrzr_name;
- td_details_specifications.style.fontSize = '14px';
- td_details_specifications.style.borderLeft = '1px solid #BEBEBE';
- td_details_specifications.style.borderTop = '1px solid #BEBEBE';
- tr13.appendChild(td_details_specifications);
- var td_details_device_num = document.createElement('td');
- td_details_device_num.width = '35%';
- td_details_device_num.style.textAlign = 'center';
- td_details_device_num.innerHTML = ConfirmStore15[0].renwu_zt;
- td_details_device_num.style.fontSize = '14px';
- td_details_device_num.style.borderLeft = '1px solid #BEBEBE';
- td_details_device_num.style.borderTop = '1px solid #BEBEBE';
- tr13.appendChild(td_details_device_num);
- } else {
- for (var i = 0; i < ConfirmStore15.length; i++) {
- var tr13 = document.createElement('tr');
- sta2.appendChild(tr13);
- var td_details_num = document.createElement('td');
- td_details_num.width = '20%';
- td_details_num.style.textAlign = 'center';
- td_details_num.innerHTML = ConfirmStore15[i].wx_name;
- td_details_num.style.fontSize = '14px';
- td_details_num.style.borderLeft = '1px solid #BEBEBE';
- td_details_num.style.borderTop = '1px solid #BEBEBE';
- tr13.appendChild(td_details_num);
- var td_details_name = document.createElement('td');
- td_details_name.width = '20%';
- td_details_name.style.textAlign = 'center';
- td_details_name.innerHTML = ConfirmStore15[i].wx_laiyuan;
- td_details_name.style.fontSize = '14px';
- td_details_name.style.borderLeft = '1px solid #BEBEBE';
- td_details_name.style.borderTop = '1px solid #BEBEBE';
- tr13.appendChild(td_details_name);
- var td_details_specifications = document.createElement('td');
- td_details_specifications.width = '25%';
- td_details_specifications.style.textAlign = 'center';
- td_details_specifications.innerHTML = ConfirmStore15[i].bxrzr_name;
- td_details_specifications.style.fontSize = '14px';
- td_details_specifications.style.borderLeft = '1px solid #BEBEBE';
- td_details_specifications.style.borderTop = '1px solid #BEBEBE';
- tr13.appendChild(td_details_specifications);
- var td_details_device_num = document.createElement('td');
- td_details_device_num.width = '35%';
- td_details_device_num.style.textAlign = 'center';
- td_details_device_num.innerHTML = ConfirmStore15[i].renwu_zt;
- td_details_device_num.style.fontSize = '14px';
- td_details_device_num.style.borderLeft = '1px solid #BEBEBE';
- td_details_device_num.style.borderTop = '1px solid #BEBEBE';
- tr13.appendChild(td_details_device_num);
- }
- }
- }
- // var patrolh42 = document.createElement('h4');
- // patrolh42.style.textAlign='left';
- // patrolh42.style.fontSize='14px';
- // patrolh42.style.fontWeight='bold';
- // patrolh42.innerHTML='1.6点位扫码完成度';
- // div2.appendChild(patrolh42);
- // var sta3 = document.createElement('table');
- // sta3.style.marginTop='10px';
- // sta3.width='100%';
- // sta3.style.marginBottom='20px';
- // sta3.style.borderRight ='1px solid #BEBEBE';
- // sta3.style.borderBottom ='1px solid #BEBEBE';
- // div2.appendChild(sta3);
- // var tr15 = document.createElement('tr');
- // sta3.appendChild(tr15);
- // var thlast = document.createElement('th');
- // thlast.width='20%';
- // thlast.style.textAlign='center';
- // thlast.innerHTML='计划名称';
- // thlast.style.fontSize='14px';
- // thlast.style.borderLeft ='1px solid #BEBEBE';
- // thlast.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(thlast);
- // var th9 = document.createElement('th');
- // th9.width='20%';
- // th9.style.textAlign='center';
- // th9.innerHTML='点位名称';
- // th9.style.fontSize='14px';
- // th9.style.borderLeft ='1px solid #BEBEBE';
- // th9.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th9);
- // var th10 = document.createElement('th');
- // th10.width='20%';
- // th10.style.textAlign='center';
- // th10.innerHTML='负责班组';
- // th10.style.fontSize='14px';
- // th10.style.borderLeft ='1px solid #BEBEBE';
- // th10.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th10);
- // var th11 = document.createElement('th');
- // th11.width='10%';
- // th11.style.textAlign='center';
- // th11.innerHTML='负责人';
- // th11.style.fontSize='14px';
- // th11.style.borderLeft ='1px solid #BEBEBE';
- // th11.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th11);
- // var th12 = document.createElement('th');
- // th12.width='10%';
- // th12.style.textAlign='center';
- // th12.innerHTML='应扫码次数';
- // th12.style.fontSize='14px';
- // th12.style.borderLeft ='1px solid #BEBEBE';
- // th12.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th12);
- // var th13 = document.createElement('th');
- // th13.width='10%';
- // th13.style.textAlign='center';
- // th13.innerHTML='已扫码次数';
- // th13.style.fontSize='14px';
- // th13.style.borderLeft ='1px solid #BEBEBE';
- // th13.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th13);
- // var th14 = document.createElement('th');
- // th14.width='10%';
- // th14.style.textAlign='center';
- // th14.innerHTML='完成度';
- // th14.style.fontSize='14px';
- // th14.style.borderLeft ='1px solid #BEBEBE';
- // th14.style.borderTop ='1px solid #BEBEBE';
- // tr15.appendChild(th14);
- // if(ConfirmStore16.length>0){
- // if(ConfirmStore16.length==1){
- // var tr16 = document.createElement('tr');
- // sta3.appendChild(tr16);
- // var td_details_numlast = document.createElement('td');
- // td_details_numlast.width='20%';
- // td_details_numlast.style.textAlign='center';
- // td_details_numlast.style.borderLeft ='1px solid #BEBEBE';
- // td_details_numlast.style.borderTop ='1px solid #BEBEBE';
- // td_details_numlast.innerHTML=ConfirmStore16[0].plan_name;
- // td_details_numlast.style.fontSize='14px';
- // tr16.appendChild(td_details_numlast);
- // var td_details_num = document.createElement('td');
- // td_details_num.width='20%';
- // td_details_num.style.textAlign='center';
- // td_details_num.style.borderLeft ='1px solid #BEBEBE';
- // td_details_num.style.borderTop ='1px solid #BEBEBE';
- // td_details_num.innerHTML=ConfirmStore16[0].dianwei_name;
- // td_details_num.style.fontSize='14px';
- // tr16.appendChild(td_details_num);
- // var td_details_name= document.createElement('td');
- // td_details_name.width='20%';
- // td_details_name.style.textAlign='center';
- // td_details_name.innerHTML= ConfirmStore16[0].banzu_name;
- // td_details_name.style.borderLeft ='1px solid #BEBEBE';
- // td_details_name.style.borderTop ='1px solid #BEBEBE';
- // td_details_name.style.fontSize='14px';
- // tr16.appendChild(td_details_name);
- // var td_person= document.createElement('td');
- // td_person.width='10%';
- // td_person.style.textAlign='center';
- // td_person.innerHTML= ConfirmStore16[0].renzeren_name;
- // td_person.style.borderLeft ='1px solid #BEBEBE';
- // td_person.style.borderTop ='1px solid #BEBEBE';
- // td_person.style.fontSize='14px';
- // tr16.appendChild(td_person);
- // var td_details_specifications = document.createElement('td');
- // td_details_specifications.width='10%';
- // td_details_specifications.style.textAlign='center';
- // td_details_specifications.innerHTML=ConfirmStore16[0].ywc_num1;
- // td_details_specifications.style.fontSize='14px';
- // td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
- // td_details_specifications.style.borderTop ='1px solid #BEBEBE';
- // tr16.appendChild(td_details_specifications);
- // var td_details_device_num = document.createElement('td');
- // td_details_device_num.width='10%';
- // td_details_device_num.style.textAlign='center';
- // td_details_device_num.innerHTML=ConfirmStore16[0].ywc_num2;
- // td_details_device_num.style.fontSize='14px';
- // td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
- // td_details_device_num.style.borderTop ='1px solid #BEBEBE';
- // tr16.appendChild(td_details_device_num);
- // var td_wanchengdu= document.createElement('td');
- // td_wanchengdu.width='10%';
- // td_wanchengdu.style.textAlign='center';
- // td_wanchengdu.innerHTML= ConfirmStore16[0].com_du+'%';
- // td_wanchengdu.style.borderLeft ='1px solid #BEBEBE';
- // td_wanchengdu.style.borderTop ='1px solid #BEBEBE';
- // td_wanchengdu.style.fontSize='14px';
- // tr16.appendChild(td_wanchengdu);
- // }else{
- // for(var i=0;i<ConfirmStore16.length;i++){
- // var tr16 = document.createElement('tr');
- // sta3.appendChild(tr16);
- // var td_details_numlast = document.createElement('td');
- // td_details_numlast.width='20%';
- // td_details_numlast.style.textAlign='center';
- // td_details_numlast.style.borderLeft ='1px solid #BEBEBE';
- // td_details_numlast.style.borderTop ='1px solid #BEBEBE';
- // td_details_numlast.innerHTML=ConfirmStore16[i].plan_name;
- // td_details_numlast.style.fontSize='14px';
- // tr16.appendChild(td_details_numlast);
- // var td_details_num = document.createElement('td');
- // td_details_num.width='20%';
- // td_details_num.style.textAlign='center';
- // td_details_num.style.borderLeft ='1px solid #BEBEBE';
- // td_details_num.style.borderTop ='1px solid #BEBEBE';
- // td_details_num.innerHTML=ConfirmStore16[i].dianwei_name;
- // td_details_num.style.fontSize='14px';
- // tr16.appendChild(td_details_num);
- // var td_details_name= document.createElement('td');
- // td_details_name.width='20%';
- // td_details_name.style.textAlign='center';
- // td_details_name.innerHTML= ConfirmStore16[i].banzu_name;
- // td_details_name.style.borderLeft ='1px solid #BEBEBE';
- // td_details_name.style.borderTop ='1px solid #BEBEBE';
- // td_details_name.style.fontSize='14px';
- // tr16.appendChild(td_details_name);
- // var td_person= document.createElement('td');
- // td_person.width='10%';
- // td_person.style.textAlign='center';
- // td_person.innerHTML= ConfirmStore16[i].renzeren_name;
- // td_person.style.borderLeft ='1px solid #BEBEBE';
- // td_person.style.borderTop ='1px solid #BEBEBE';
- // td_person.style.fontSize='14px';
- // tr16.appendChild(td_person);
- // var td_details_specifications = document.createElement('td');
- // td_details_specifications.width='10%';
- // td_details_specifications.style.textAlign='center';
- // td_details_specifications.innerHTML=ConfirmStore16[i].ywc_num1;
- // td_details_specifications.style.fontSize='14px';
- // td_details_specifications.style.borderLeft ='1px solid #BEBEBE';
- // td_details_specifications.style.borderTop ='1px solid #BEBEBE';
- // tr16.appendChild(td_details_specifications);
- // var td_details_device_num = document.createElement('td');
- // td_details_device_num.width='10%';
- // td_details_device_num.style.textAlign='center';
- // td_details_device_num.innerHTML=ConfirmStore16[i].ywc_num2;
- // td_details_device_num.style.fontSize='14px';
- // td_details_device_num.style.borderLeft ='1px solid #BEBEBE';
- // td_details_device_num.style.borderTop ='1px solid #BEBEBE';
- // tr16.appendChild(td_details_device_num);
- // var td_wanchengdu= document.createElement('td');
- // td_wanchengdu.width='10%';
- // td_wanchengdu.style.textAlign='center';
- // td_wanchengdu.innerHTML= ConfirmStore16[i].com_du+'%';
- // td_wanchengdu.style.borderLeft ='1px solid #BEBEBE';
- // td_wanchengdu.style.borderTop ='1px solid #BEBEBE';
- // td_wanchengdu.style.fontSize='14px';
- // tr16.appendChild(td_wanchengdu);
- // }
- // var tr_dianwei_wanchengdu_num1 = document.createElement('tr');
- // sta3.appendChild(tr_dianwei_wanchengdu_num1);
- // var td_dianwei_wanchengdu_num1 = document.createElement('td');
- //// td_details_device_num1.width='30%';
- // td_dianwei_wanchengdu_num1.style.textAlign='center';
- // td_dianwei_wanchengdu_num1.colSpan='4';
- // td_dianwei_wanchengdu_num1.innerHTML='合计';
- // td_dianwei_wanchengdu_num1.style.fontSize='14px';
- // td_dianwei_wanchengdu_num1.style.borderLeft ='1px solid #BEBEBE';
- // td_dianwei_wanchengdu_num1.style.borderTop ='1px solid #BEBEBE';
- // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num1);
- // var td_dianwei_wanchengdu_num2 = document.createElement('td');
- // td_dianwei_wanchengdu_num2.width='10%';
- // td_dianwei_wanchengdu_num2.style.textAlign='center';
- // td_dianwei_wanchengdu_num2.innerHTML=heji3;
- // td_dianwei_wanchengdu_num2.style.fontSize='14px';
- // td_dianwei_wanchengdu_num2.style.borderLeft ='1px solid #BEBEBE';
- // td_dianwei_wanchengdu_num2.style.borderTop ='1px solid #BEBEBE';
- // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num2);
- // var td_dianwei_wanchengdu_num3 = document.createElement('td');
- // td_dianwei_wanchengdu_num3.width='10%';
- // td_dianwei_wanchengdu_num3.style.textAlign='center';
- // td_dianwei_wanchengdu_num3.innerHTML=heji4;
- // td_dianwei_wanchengdu_num3.style.fontSize='14px';
- // td_dianwei_wanchengdu_num3.style.borderLeft ='1px solid #BEBEBE';
- // td_dianwei_wanchengdu_num3.style.borderTop ='1px solid #BEBEBE';
- // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num3);
- // var td_dianwei_wanchengdu_num4 = document.createElement('td');
- // td_dianwei_wanchengdu_num4.width='10%';
- // td_dianwei_wanchengdu_num4.style.textAlign='center';
- // td_dianwei_wanchengdu_num4.innerHTML=baifenbiresult16+'%';
- // td_dianwei_wanchengdu_num4.style.fontSize='14px';
- // td_dianwei_wanchengdu_num4.style.borderLeft ='1px solid #BEBEBE';
- // td_dianwei_wanchengdu_num4.style.borderTop ='1px solid #BEBEBE';
- // tr_dianwei_wanchengdu_num1.appendChild(td_dianwei_wanchengdu_num4);
- // }
- // }
- var patrolh43 = document.createElement('h4');
- patrolh43.style.textAlign = 'left';
- patrolh43.style.fontSize = '14px';
- patrolh43.style.fontWeight = 'bold';
- patrolh43.innerHTML = '1.5报修任务完成情况';
- div2.appendChild(patrolh43);
- var sta4 = document.createElement('table');
- sta4.style.marginTop = '10px';
- sta4.width = '100%';
- sta4.style.marginBottom = '20px';
- sta4.style.borderRight = '1px solid #BEBEBE';
- sta4.style.borderBottom = '1px solid #BEBEBE';
- div2.appendChild(sta4);
- var tr17 = document.createElement('tr');
- sta4.appendChild(tr17);
- var th15 = document.createElement('th');
- th15.width = '40%';
- th15.style.textAlign = 'center';
- th15.innerHTML = '负责人';
- th15.style.fontSize = '14px';
- th15.style.borderLeft = '1px solid #BEBEBE';
- th15.style.borderTop = '1px solid #BEBEBE';
- tr17.appendChild(th15);
- var th16 = document.createElement('th');
- th16.width = '20%';
- th16.style.textAlign = 'center';
- th16.innerHTML = '应完成任务个数';
- th16.style.fontSize = '14px';
- th16.style.borderLeft = '1px solid #BEBEBE';
- th16.style.borderTop = '1px solid #BEBEBE';
- tr17.appendChild(th16);
- var th17 = document.createElement('th');
- th17.width = '20%';
- th17.style.textAlign = 'center';
- th17.innerHTML = '已完成任务个数';
- th17.style.fontSize = '14px';
- th17.style.borderLeft = '1px solid #BEBEBE';
- th17.style.borderTop = '1px solid #BEBEBE';
- tr17.appendChild(th17);
- var th18 = document.createElement('th');
- th18.width = '20%';
- th18.style.textAlign = 'center';
- th18.innerHTML = '完成度';
- th18.style.fontSize = '14px';
- th18.style.borderLeft = '1px solid #BEBEBE';
- th18.style.borderTop = '1px solid #BEBEBE';
- tr17.appendChild(th18);
- if (ConfirmStore17.length > 0) {
- if (ConfirmStore17.length == 1) {
- var tr18 = document.createElement('tr');
- sta4.appendChild(tr18);
- var td_dianwei_name2 = document.createElement('td');
- td_dianwei_name2.width = '40%';
- td_dianwei_name2.style.textAlign = 'center';
- td_dianwei_name2.style.borderLeft = '1px solid #BEBEBE';
- td_dianwei_name2.style.borderTop = '1px solid #BEBEBE';
- td_dianwei_name2.innerHTML = ConfirmStore17[0].rezeren_name;
- td_dianwei_name2.style.fontSize = '14px';
- tr18.appendChild(td_dianwei_name2);
- var td_saoma_num3 = document.createElement('td');
- td_saoma_num3.width = '20%';
- td_saoma_num3.style.textAlign = 'center';
- td_saoma_num3.innerHTML = ConfirmStore17[0].ywcbx_num;
- td_saoma_num3.style.borderLeft = '1px solid #BEBEBE';
- td_saoma_num3.style.borderTop = '1px solid #BEBEBE';
- td_saoma_num3.style.fontSize = '14px';
- tr18.appendChild(td_saoma_num3);
- var td_baoxiucishu = document.createElement('td');
- td_baoxiucishu.width = '20%';
- td_baoxiucishu.style.textAlign = 'center';
- td_baoxiucishu.innerHTML = ConfirmStore17[0].ywcbx_num1;
- td_baoxiucishu.style.borderLeft = '1px solid #BEBEBE';
- td_baoxiucishu.style.borderTop = '1px solid #BEBEBE';
- td_baoxiucishu.style.fontSize = '14px';
- tr18.appendChild(td_baoxiucishu);
- var td_baoxiupinlv = document.createElement('td');
- td_baoxiupinlv.width = '20%';
- td_baoxiupinlv.style.textAlign = 'center';
- td_baoxiupinlv.innerHTML = ConfirmStore17[0].wcd_baifenbi + '%';
- td_baoxiupinlv.style.fontSize = '14px';
- td_baoxiupinlv.style.borderLeft = '1px solid #BEBEBE';
- td_baoxiupinlv.style.borderTop = '1px solid #BEBEBE';
- tr18.appendChild(td_baoxiupinlv);
- } else {
- for (var i = 0; i < ConfirmStore17.length; i++) {
- var tr18 = document.createElement('tr');
- sta4.appendChild(tr18);
- var td_dianwei_name2 = document.createElement('td');
- td_dianwei_name2.width = '40%';
- td_dianwei_name2.style.textAlign = 'center';
- td_dianwei_name2.style.borderLeft = '1px solid #BEBEBE';
- td_dianwei_name2.style.borderTop = '1px solid #BEBEBE';
- td_dianwei_name2.innerHTML = ConfirmStore17[i].rezeren_name;
- td_dianwei_name2.style.fontSize = '14px';
- tr18.appendChild(td_dianwei_name2);
- var td_saoma_num3 = document.createElement('td');
- td_saoma_num3.width = '20%';
- td_saoma_num3.style.textAlign = 'center';
- td_saoma_num3.innerHTML = ConfirmStore17[i].ywcbx_num;
- td_saoma_num3.style.borderLeft = '1px solid #BEBEBE';
- td_saoma_num3.style.borderTop = '1px solid #BEBEBE';
- td_saoma_num3.style.fontSize = '14px';
- tr18.appendChild(td_saoma_num3);
- var td_baoxiucishu = document.createElement('td');
- td_baoxiucishu.width = '20%';
- td_baoxiucishu.style.textAlign = 'center';
- td_baoxiucishu.innerHTML = ConfirmStore17[i].ywcbx_num1;
- td_baoxiucishu.style.borderLeft = '1px solid #BEBEBE';
- td_baoxiucishu.style.borderTop = '1px solid #BEBEBE';
- td_baoxiucishu.style.fontSize = '14px';
- tr18.appendChild(td_baoxiucishu);
- var td_baoxiupinlv = document.createElement('td');
- td_baoxiupinlv.width = '20%';
- td_baoxiupinlv.style.textAlign = 'center';
- td_baoxiupinlv.innerHTML = ConfirmStore17[i].wcd_baifenbi + '%';
- td_baoxiupinlv.style.fontSize = '14px';
- td_baoxiupinlv.style.borderLeft = '1px solid #BEBEBE';
- td_baoxiupinlv.style.borderTop = '1px solid #BEBEBE';
- tr18.appendChild(td_baoxiupinlv);
- }
- var tr19 = document.createElement('tr');
- sta4.appendChild(tr19);
- var td_dianwei_name17 = document.createElement('td');
- td_dianwei_name17.width = '40%';
- td_dianwei_name17.style.textAlign = 'center';
- td_dianwei_name17.style.borderLeft = '1px solid #BEBEBE';
- td_dianwei_name17.style.borderTop = '1px solid #BEBEBE';
- td_dianwei_name17.innerHTML = '合计';
- td_dianwei_name17.style.fontSize = '14px';
- tr19.appendChild(td_dianwei_name17);
- var td_saoma_num17 = document.createElement('td');
- td_saoma_num17.width = '20%';
- td_saoma_num17.style.textAlign = 'center';
- td_saoma_num17.innerHTML = heji1;
- td_saoma_num17.style.borderLeft = '1px solid #BEBEBE';
- td_saoma_num17.style.borderTop = '1px solid #BEBEBE';
- td_saoma_num17.style.fontSize = '14px';
- tr19.appendChild(td_saoma_num17);
- var td_baoxiucishu17 = document.createElement('td');
- td_baoxiucishu17.width = '20%';
- td_baoxiucishu17.style.textAlign = 'center';
- td_baoxiucishu17.innerHTML = heji2;
- td_baoxiucishu17.style.borderLeft = '1px solid #BEBEBE';
- td_baoxiucishu17.style.borderTop = '1px solid #BEBEBE';
- td_baoxiucishu17.style.fontSize = '14px';
- tr19.appendChild(td_baoxiucishu17);
- var td_baoxiupinlv17 = document.createElement('td');
- td_baoxiupinlv17.width = '20%';
- td_baoxiupinlv17.style.textAlign = 'center';
- td_baoxiupinlv17.innerHTML = baifenbiresult15 + '%';
- td_baoxiupinlv17.style.fontSize = '14px';
- td_baoxiupinlv17.style.borderLeft = '1px solid #BEBEBE';
- td_baoxiupinlv17.style.borderTop = '1px solid #BEBEBE';
- tr19.appendChild(td_baoxiupinlv17);
- }
- }
- }
- var print_detail = function () {
- var div1_label1 = document.getElementById('woker_talkbx').innerHTML;
- // var div2_label1 = document.getElementById('patrolAnalysis_div2_label1').innerHTML;
- var hkey_key;
- var hkey_root = 'HKEY_CURRENT_USER';
- var hkey_path = '\\Software\\Micorsoft\\Internet Explorer\\PageSetup\\';
- var print_win = window.open('打印窗口', '_blank');
- var div = document.createElement('div');
- div.setAttribute('width', '100%');
- div.setAttribute('height', '100%');
- var div_print = document.createElement('div');
- div_print.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
- div_print.innerHTML = div1_label1;
- div.appendChild(div_print);
- // var div_print1 = document.createElement('div');
- // div_print1.setAttribute('style', 'width:595px;height:842px;padding:20px;margin:0px auto 0px auto');
- // div_print1.innerHTML=div2_label1;
- // div.appendChild(div_print1);
- print_win.document.write(div.innerHTML);
- print_win.document.close();
- try {
- var RegWsh = new ActiveXObject('WScript.Shell');
- hkey_key = 'header';
- RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, '');
- hkey_key = 'footer';
- RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, '');
- } catch (e) {
- }
- print_win.print();
- print_win.close();
- }
- var show_detail_data = function (start_data, end_data, project_date) {
- var start_data = start_data;
- var end_data = end_data;
- var build_code = build_code;
- var project_date = project_date;
- Ext.create('Ext.window.Window', {
- id: 'project_data_winbaoxiu',
- title: '工作分析',
- height: maxHeight - 50,
- width: 650,
- maximizable: true,
- layout: 'fit',
- modal: true,
- buttons: [
- {
- text: '导出',
- handler: function () {
- print_detail();
- }
- }, {
- text: '关闭',
- handler: function () {
- Ext.getCmp('project_data_winbaoxiu').destroy();
- }
- }
- ],
- closeAction: 'destroy',
- html: '<div style="overflow-y:auto;height:580px;width:640px;"><div id="woker_talkbx"></div></div>'
- }).show();
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.start_data = start_data;
- query.end_data = end_data;
- query.type = 'baoxiu';
- Ext.MessageBox.wait('Loading', '生成中…');
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/spotoperationrecord/getxjfenxi",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getxjfenxi') {
- ConfirmStore15 = json.RESULT15;
- ConfirmStore17 = json.RESULT17;
- // ConfirmStore4 = json.RESULT4;
- heji1 = json.heji1;
- heji2 = json.heji2;
- xjrysl = json.xjrysl;
- xjbz = json.xjbz;
- zrrnum = json.zrrnum;
- wshbxnum = json.wshbxnum;
- xjrwnum = json.xjrwnum;
- xjdwnum = json.xjdwnum;
- xjysmcsnum = json.xjysmcsnum;
- xjbxcsnum = json.xjbxcsnum;
- xjwksbaifenbi = json.xjwksbaifenbi;
- baifenbishwtgwcbxrw = json.baifenbishwtgwcbxrw;
- baifenbicswcbxrw = json.baifenbicswcbxrw;
- baifenbiywcbxrw = json.baifenbiywcbxrw;
- xjwksnum = json.xjwksnum;
- xjjxznum = json.xjjxznum;
- xjcsnum = json.xjcsnum;
- xjywcnum = json.xjywcnum;
- xjysmbaifenbi = json.xjysmbaifenbi;
- xjwsmbaifenbi = json.xjwsmbaifenbi;
- baifenbiwclbxrw = json.baifenbiwclbxrw;
- baifenbiwshbxrw = json.baifenbiwshbxrw;
- baifenbiresult16 = json.baifenbiresult16;
- baifenbiresult17 = json.baifenbiresult17;
- baifenbiresult15 = json.baifenbiresult15;
- baifenbihuidan15 = json.baifenbihuidan15;
- Ext.MessageBox.hide();
- draw_confirm(query.start_data, query.end_data, project_date);
- // highcharts();
- highcharts1();
- highcharts2();
- highcharts3();
- // highcharts4();
- }
- }
- });
- }
- FilterWin = Ext.create('Ext.form.Panel', {
- id: 'SpringHandleFilterForm',
- labelWidth: 55,
- defaultType: 'textfield',
- bodyPadding: 15,
- items: [{
- xtype: 'datefield',
- fieldLabel: "开始日期",
- minValue: '07/07/2017',
- minText: "当前日期选择应大于2017-07-07",
- format: "Y-m-d",
- value: Ext.util.Format.date(Ext.Date.add(new Date(), Ext.Date.MONTH, -1), "Y-m-01"),
- columnWidth: 0.5,
- id: 'start_date',
- name: "start_date",
- editable: false,//只读约束
- allowBlank: false,
- blankText: "不能为空",
- anchor: '95%'
- }, {
- xtype: 'datefield',
- fieldLabel: "结束日期",
- minValue: '07/07/2017',
- minText: "当前日期选择应大于2017-07-07",
- format: "Y-m-d",
- value: Ext.util.Format.date(new Date(new Date(new Date().getUTCFullYear(), new Date().getMonth(), 1) - 86400000), "Y-m-d"),
- columnWidth: 0.5,
- id: 'end_date',
- name: "end_date",
- editable: false,//只读约束
- allowBlank: false,
- blankText: "不能为空",
- anchor: '95%'
- },
- {
- id: 'ff_queryJson',
- name: 'queryJson',
- hidden: true
- }],
- buttons: [{
- text: '下一步',
- iconCls: 'ok_btn',
- handler: function () {
- var form = this.up('form').getForm();
- if (form.isValid()) {
- var start_date = Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m-d');
- var end_date = Ext.util.Format.date(Ext.getCmp('end_date').getValue(), 'Y-m-d');
- var project_date = Ext.util.Format.date(Ext.getCmp('start_date').getValue(), 'Y-m');
- show_detail_data(start_date, end_date, project_date);
- this.up('window').hide();
- }
- }
- }]
- });
- var filterwin = function () {
- Ext.create('Ext.window.Window', {
- title: '工作分析',
- height: 300,
- width: 350,
- layout: 'fit',
- items: FilterWin,
- closeAction: 'hide'
- }).show();
- };
- mouseon = function (obj) {
- var id = obj.id;
- $("#" + id).removeClass(id);
- $("#" + id).addClass(id + '_on');
- }
- mouseoff = function (obj) {
- var mid = "springHandle_";
- for (var i = 1; i < 5; i++) {
- var id = "springHandle_title" + i + "_div";
- $("#" + id).removeClass(id + '_on');
- $("#" + id).addClass(id);
- }
- if (menuidx == 'm1') {
- mid += 'title1_div';
- $("#" + mid).removeClass(mid);
- $("#" + mid).addClass(mid + '_on');
- } else if (menuidx == 'm2') {
- mid += 'title2_div';
- $("#" + mid).removeClass(mid);
- $("#" + mid).addClass(mid + '_on');
- } else if (menuidx == 'm3') {
- mid += 'title3_div';
- $("#" + mid).removeClass(mid);
- $("#" + mid).addClass(mid + '_on');
- } else if (menuidx == 'm4') {
- mid += 'title4_div';
- $("#" + mid).removeClass(mid);
- $("#" + mid).addClass(mid + '_on');
- }
- }
- menu_click = function (obj) {
- var id = obj.id;
- if (id == 'springHandle_title1_div') {
- menuidx = 'm1';
- show_page();
- } else if (id == 'springHandle_title2_div') {
- menuidx = 'm2';
- reset1();
- }/* else if (id == 'springHandle_title3_div') {
- menuidx = 'm3';
- exportbtn_click();
- } else if (id == 'springHandle_title4_div') {
- menuidx = 'm4';
- filterwin();
- }*/
- }
- var maintenancedevice = function () {
- var maintenance_look_device = document.getElementById('inspectorsCheck_look_device');
- var img = document.createElement('img');
- img.width = 400;
- img.height = 400;
- img.src = baseUrl + ConfirmStore[0].picture_route;
- // img.src = ConfirmStore[0].picture_route;
- img.setAttribute('class', 'maintenance_look_device_img');
- maintenance_look_device.appendChild(img);
- var div4 = document.createElement('div');
- div4.style.textAlign = 'center';
- div4.innerHTML = ConfirmStore[0].remarks;
- maintenance_look_device.appendChild(div4);
- }
- var editMaintenance = function (spot_id) {
- var spot_id = spot_id;
- Ext.create('Ext.window.Window', {
- id: 'inspectorsCheck_data_win1',
- height: 500,
- width: 400,
- layout: 'fit',
- modal: true,
- buttons: [
- {
- text: '关闭',
- handler: function () {
- Ext.getCmp('inspectorsCheck_data_win1').destroy();
- }
- }
- ],
- closeAction: 'destroy',
- html: '<div id="inspectorsCheck_look_device"></div>'
- }).show();
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.id = spot_id;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/inspectionpoints/getList1",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getInspectionPointsList') {
- ConfirmStore = json.RESULT;
- maintenancedevice(ConfirmStore);
- }
- }
- });
- }
- var maintenancePresentation = function (zyzp_status) {
- var maintenanceCheck_look_Presentation = document.getElementById('springHandle_look_Presentation');
- var div = document.createElement('div');
- div.setAttribute('class', 'SpringHandleDiv');
- div.innerHTML = '报修类型';
- maintenanceCheck_look_Presentation.appendChild(div);
- var div1 = document.createElement('div');
- div1.setAttribute('class', 'SpringHandleDiv1');
- div1.innerHTML = ConfirmStore[0].sj_tytpe_name;
- maintenanceCheck_look_Presentation.appendChild(div1);
- var div2 = document.createElement('div');
- div2.setAttribute('class', 'SpringHandleDiv2');
- div2.innerHTML = '发起账号';
- maintenanceCheck_look_Presentation.appendChild(div2);
- var div3 = document.createElement('div');
- div3.setAttribute('class', 'SpringHandleDiv3');
- // div3.innerHTML='管理员账号';
- div3.innerHTML = ConfirmStore[0].phone;
- maintenanceCheck_look_Presentation.appendChild(div3);
- var div4 = document.createElement('div');
- div4.setAttribute('class', 'SpringHandleDiv4');
- div4.innerHTML = '应完成时间';
- maintenanceCheck_look_Presentation.appendChild(div4);
- var div5 = document.createElement('div');
- div5.setAttribute('class', 'SpringHandleDiv5');
- // div5.innerHTML='2019-03-04 13:48:07';
- div5.innerHTML = ConfirmStore[0].y_complete_time;
- maintenanceCheck_look_Presentation.appendChild(div5);
- var div6 = document.createElement('div');
- div6.setAttribute('class', 'SpringHandleDiv6');
- div6.innerHTML = '备注';
- maintenanceCheck_look_Presentation.appendChild(div6);
- var div7 = document.createElement('div');
- div7.setAttribute('class', 'SpringHandleDiv7');
- // div7.innerHTML='玻璃不知道被谁砸坏了,需要联系物业更换玻璃';
- div7.innerHTML = ConfirmStore[0].zp_remarks;
- maintenanceCheck_look_Presentation.appendChild(div7);
- var div8 = document.createElement('div');
- div8.setAttribute('class', 'SpringHandleDiv8');
- div8.innerHTML = '责任人';
- maintenanceCheck_look_Presentation.appendChild(div8);
- var div9 = document.createElement('div');
- div9.setAttribute('class', 'SpringHandleDiv9');
- // div9.innerHTML='张某';
- div9.innerHTML = ConfirmStore[0].name;
- maintenanceCheck_look_Presentation.appendChild(div9);
- var div10 = document.createElement('div');
- div10.setAttribute('class', 'SpringHandleDiv10');
- div10.innerHTML = '发起时间';
- maintenanceCheck_look_Presentation.appendChild(div10);
- var div11 = document.createElement('div');
- div11.setAttribute('class', 'SpringHandleDiv11');
- // div11.innerHTML='2019-03-04 13:48:07';
- div11.innerHTML = ConfirmStore[0].sbsj;
- maintenanceCheck_look_Presentation.appendChild(div11);
- }
- var maintenancePresentation0 = function (zyzp_status) {
- var maintenanceCheck_look_Presentation = document.getElementById('springHandle_look_Presentation');
- var date = new Date;
- var times = date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds(); //时
- var dates = Ext.util.Format.date(date, 'Y-m-d');
- var div12 = document.createElement('div');
- div12.setAttribute('class', 'SpringHandleDiv12');
- div12.innerHTML = '报修类型';
- maintenanceCheck_look_Presentation.appendChild(div12);
- var select = document.createElement('select');
- select.setAttribute('class', 'SpringHandleSelect');
- select.setAttribute('id', 'springHandle_select_id');
- maintenanceCheck_look_Presentation.appendChild(select);
- var option6 = document.createElement('option');
- option6.innerHTML = '请选择';
- option6.setAttribute('value', '0');
- select.appendChild(option6);
- var option7 = document.createElement('option');
- option7.innerHTML = '故障';
- option7.setAttribute('value', '1');
- select.appendChild(option7);
- var option8 = document.createElement('option');
- option8.innerHTML = '隐患';
- option8.setAttribute('value', '2');
- select.appendChild(option8);
- var option9 = document.createElement('option');
- option9.innerHTML = '其他';
- option9.setAttribute('value', '3');
- select.appendChild(option9);
- var div13 = document.createElement('div');
- div13.setAttribute('class', 'SpringHandleDiv13');
- div13.innerHTML = '应完成时间';
- maintenanceCheck_look_Presentation.appendChild(div13);
- var input = document.createElement('input');
- input.setAttribute('class', 'springHandleInput');
- input.setAttribute('id', 'springHandle_input_id');
- input.setAttribute('type', 'text');
- input.setAttribute('readonly', 'true');
- input.setAttribute('value', dates);
- maintenanceCheck_look_Presentation.appendChild(input);
- var endDate = laydate.render({
- elem: '#springHandle_input_id'
- });
- var input1 = document.createElement('input');
- input1.setAttribute('class', 'springHandleInput1');
- input1.setAttribute('id', 'springHandle_input1_id');
- input1.setAttribute('type', 'text');
- input1.setAttribute('readonly', 'true');
- input1.setAttribute('value', times);
- maintenanceCheck_look_Presentation.appendChild(input1);
- var endTime = laydate.render({
- elem: '#springHandle_input1_id',
- type: 'time'
- });
- var div14 = document.createElement('div');
- div14.setAttribute('class', 'SpringHandleDiv14');
- div14.innerHTML = '备注';
- maintenanceCheck_look_Presentation.appendChild(div14);
- var textarea = document.createElement('textarea');
- textarea.setAttribute('class', 'SpringHandleTextarea');
- textarea.setAttribute('id', 'springHandle_textarea_id');
- maintenanceCheck_look_Presentation.appendChild(textarea);
- var div15 = document.createElement('div');
- div15.setAttribute('class', 'SpringHandleDiv15');
- div15.innerHTML = '责任人';
- maintenanceCheck_look_Presentation.appendChild(div15);
- var select1 = document.createElement('select');
- select1.setAttribute('class', 'SpringHandleSelect1');
- select1.setAttribute('id', 'springHandle_select1_id');
- maintenanceCheck_look_Presentation.appendChild(select1);
- for (var i = 0; i < ConfirmStore1.length; i++) {
- var option10 = document.createElement('option');
- option10.innerHTML = ConfirmStore1[i].name;
- option10.setAttribute('value', ConfirmStore1[i].zrrid);
- select1.appendChild(option10);
- }
- }
- editMaintenancePresentation = function (status, id) {
- var zyzp_status = status;
- var spot_id = id;
- if (zyzp_status == 0) {
- Ext.create('Ext.window.Window', {
- title: '人员指派',
- id: 'springHandle_peison_win',
- height: 300,
- width: 500,
- modal: true,
- layout: 'fit',
- buttons: [
- {
- text: '确定',
- handler: function () {
- var date = new Date;
- var times = date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds(); //时
- var dates = Ext.util.Format.date(date, 'Y-m-d');
- var lx = document.getElementById('springHandle_select_id').value;
- var data3a = document.getElementById('springHandle_input_id').value;
- var data3b = document.getElementById('springHandle_input1_id').value;
- var bz = document.getElementById('springHandle_textarea_id').value;
- var zrr = document.getElementById('springHandle_select1_id').value;
- var query = new Object();
- if (lx.length > 0) {
- query.sj_type = lx;
- }
- if (data3b.length > 0 && data3a.length > 0) {
- query.y_complete_time = data3a + " " + data3b;
- }
- // if(){
- // query.data3a = data3a;
- // }
- if (bz.length > 0) {
- query.zp_remarks = bz;
- }
- if (zrr.length > 0) {
- query.person_liable = zrr;
- }
- // if(spot_id.length>0){
- query.id = spot_id;
- // }
- query.V_LOGINNAME = V_LOGINNAME;
- query.V_PASSWORD = V_PASSWORD;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/updatezp",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'updateEventProcessingzp') {
- if (json.success == true) {
- Ext.Msg.alert('操作成功', '已指派', function (btn, txt) {
- Ext.getCmp('SpringHandleListPanel').getStore().reload();
- });
- } else {
- Ext.Msg.alert('操作失败', json.MSG, function (btn, txt) {
- Ext.getCmp('SpringHandleListPanel').getStore().reload();
- });
- }
- }
- }
- });
- Ext.getCmp('springHandle_peison_win').destroy();
- }
- }, {
- text: '关闭',
- handler: function () {
- Ext.getCmp('springHandle_peison_win').destroy();
- }
- }
- ],
- closeAction: 'destroy',
- html: '<div style="overflow-y:auto;height:240px;width:500px;background:#002c59;"><div id="springHandle_look_Presentation"></div></div>'
- }).show();
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.jlid = spot_id;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/getwxzrr",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getwxzrr') {
- ConfirmStore1 = json.RESULT;
- maintenancePresentation0(zyzp_status);
- }
- }
- });
- } else {
- Ext.create('Ext.window.Window', {
- title: '人员指派',
- height: 300,
- width: 500,
- modal: true,
- layout: 'fit',
- closeAction: 'destroy',
- html: '<div style="overflow-y:auto;height:270px;width:500px;background:#002c59;"><div id="springHandle_look_Presentation"></div></div>'
- }).show();
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.id = spot_id;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/getAssignJlList",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getAssignJlList') {
- ConfirmStore = json.RESULT;
- maintenancePresentation(zyzp_status);
- }
- }
- });
- }
- }
- var examineStatusHtml = function () {
- var springHandleHtml2 = document.getElementById('springHandleHtml2');
- var div16 = document.createElement('div');
- div16.setAttribute('class', 'SpringHandleHtml2Div16');
- div16.innerHTML = '处理状态';
- springHandleHtml2.appendChild(div16);
- // if(ConfirmStore[0].cl_type==2){
- var div17 = document.createElement('div');
- div17.setAttribute('class', 'SpringHandleHtml2Div17');
- div17.innerHTML = '未审核';
- springHandleHtml2.appendChild(div17);
- // }else if(ConfirmStore[0].cl_type==3){
- // var div17 = document.createElement('div');
- // div17.setAttribute('class','SpringHandleHtml2Div1713');
- // div17.innerHTML='审核未通过';
- // springHandleHtml2.appendChild(div17);
- // }else if(ConfirmStore[0].cl_type==4){
- // var div17 = document.createElement('div');
- // div17.setAttribute('class','SpringHandleHtml2Div17');
- // div17.innerHTML='已完成';
- // springHandleHtml2.appendChild(div17);
- // }else if(ConfirmStore[0].cl_type==5){
- // var div17 = document.createElement('div');
- // div17.setAttribute('class','SpringHandleHtml2Div1713');
- // div17.innerHTML='超时完成';
- // springHandleHtml2.appendChild(div17);
- // }
- var div18 = document.createElement('div');
- div18.setAttribute('class', 'SpringHandleHtml2Div18');
- div18.innerHTML = '责任人';
- springHandleHtml2.appendChild(div18);
- var div19 = document.createElement('div');
- div19.setAttribute('class', 'SpringHandleHtml2Div19');
- div19.innerHTML = ConfirmStore[0].person_liable_name;
- springHandleHtml2.appendChild(div19);
- var div20 = document.createElement('div');
- div20.setAttribute('class', 'SpringHandleHtml2Div20');
- div20.innerHTML = '发起账号';
- springHandleHtml2.appendChild(div20);
- var div21 = document.createElement('div');
- div21.setAttribute('class', 'SpringHandleHtml2Div21');
- div21.innerHTML = ConfirmStore[0].phone;
- springHandleHtml2.appendChild(div21);
- var div22 = document.createElement('div');
- div22.setAttribute('class', 'SpringHandleHtml2Div22');
- div22.innerHTML = '应处理时间';
- springHandleHtml2.appendChild(div22);
- var div23 = document.createElement('div');
- div23.setAttribute('class', 'SpringHandleHtml2Div23');
- div23.innerHTML = ConfirmStore[0].y_complete_time;
- springHandleHtml2.appendChild(div23);
- var div24 = document.createElement('div');
- div24.setAttribute('class', 'SpringHandleHtml2Div24');
- div24.innerHTML = '上报时间';
- springHandleHtml2.appendChild(div24);
- var div25 = document.createElement('div');
- div25.setAttribute('class', 'SpringHandleHtml2Div25');
- div25.innerHTML = ConfirmStore[0].sbsj;
- springHandleHtml2.appendChild(div25);
- }
- var examineStatusHtml1 = function () {
- var springHandleHtml2 = document.getElementById('springHandleHtml3');
- var div16 = document.createElement('div');
- div16.setAttribute('class', 'SpringHandleHtml2Div16');
- div16.innerHTML = '处理状态';
- springHandleHtml2.appendChild(div16);
- var div17 = document.createElement('div');
- div17.setAttribute('class', 'SpringHandleHtml2Div1713');
- div17.innerHTML = '审核未通过';
- springHandleHtml2.appendChild(div17);
- var div18 = document.createElement('div');
- div18.setAttribute('class', 'SpringHandleHtml2Div18');
- div18.innerHTML = '责任人';
- springHandleHtml2.appendChild(div18);
- var div19 = document.createElement('div');
- div19.setAttribute('class', 'SpringHandleHtml2Div19');
- div19.innerHTML = ConfirmStore[0].person_liable_name;
- springHandleHtml2.appendChild(div19);
- var div20 = document.createElement('div');
- div20.setAttribute('class', 'SpringHandleHtml2Div20');
- div20.innerHTML = '发起账号';
- springHandleHtml2.appendChild(div20);
- var div21 = document.createElement('div');
- div21.setAttribute('class', 'SpringHandleHtml2Div21');
- div21.innerHTML = ConfirmStore[0].phone;
- springHandleHtml2.appendChild(div21);
- var div22 = document.createElement('div');
- div22.setAttribute('class', 'SpringHandleHtml2Div22');
- div22.innerHTML = '应处理时间';
- springHandleHtml2.appendChild(div22);
- var div23 = document.createElement('div');
- div23.setAttribute('class', 'SpringHandleHtml2Div23');
- div23.innerHTML = ConfirmStore[0].y_complete_time;
- springHandleHtml2.appendChild(div23);
- var div24 = document.createElement('div');
- div24.setAttribute('class', 'SpringHandleHtml2Div24');
- div24.innerHTML = '上报时间';
- springHandleHtml2.appendChild(div24);
- var div25 = document.createElement('div');
- div25.setAttribute('class', 'SpringHandleHtml2Div25');
- div25.innerHTML = ConfirmStore[0].sbsj;
- springHandleHtml2.appendChild(div25);
- }
- var examineStatusHtml2 = function () {
- var springHandleHtml2 = document.getElementById('springHandleHtml4');
- var div16 = document.createElement('div');
- div16.setAttribute('class', 'SpringHandleHtml2Div16');
- div16.innerHTML = '处理状态';
- springHandleHtml2.appendChild(div16);
- var div17 = document.createElement('div');
- div17.setAttribute('class', 'SpringHandleHtml2Div17');
- div17.innerHTML = '已完成';
- springHandleHtml2.appendChild(div17);
- var div18 = document.createElement('div');
- div18.setAttribute('class', 'SpringHandleHtml2Div18');
- div18.innerHTML = '责任人';
- springHandleHtml2.appendChild(div18);
- var div19 = document.createElement('div');
- div19.setAttribute('class', 'SpringHandleHtml2Div19');
- div19.innerHTML = ConfirmStore[0].person_liable_name;
- springHandleHtml2.appendChild(div19);
- var div20 = document.createElement('div');
- div20.setAttribute('class', 'SpringHandleHtml2Div20');
- div20.innerHTML = '发起账号';
- springHandleHtml2.appendChild(div20);
- var div21 = document.createElement('div');
- div21.setAttribute('class', 'SpringHandleHtml2Div21');
- div21.innerHTML = ConfirmStore[0].phone;
- springHandleHtml2.appendChild(div21);
- var div22 = document.createElement('div');
- div22.setAttribute('class', 'SpringHandleHtml2Div22');
- div22.innerHTML = '应处理时间';
- springHandleHtml2.appendChild(div22);
- var div23 = document.createElement('div');
- div23.setAttribute('class', 'SpringHandleHtml2Div23');
- div23.innerHTML = ConfirmStore[0].y_complete_time;
- springHandleHtml2.appendChild(div23);
- var div24 = document.createElement('div');
- div24.setAttribute('class', 'SpringHandleHtml2Div24');
- div24.innerHTML = '上报时间';
- springHandleHtml2.appendChild(div24);
- var div25 = document.createElement('div');
- div25.setAttribute('class', 'SpringHandleHtml2Div25');
- div25.innerHTML = ConfirmStore[0].sbsj;
- springHandleHtml2.appendChild(div25);
- }
- var examineStatusHtml3 = function () {
- var springHandleHtml2 = document.getElementById('springHandleHtml5');
- var div16 = document.createElement('div');
- div16.setAttribute('class', 'SpringHandleHtml2Div16');
- div16.innerHTML = '处理状态';
- springHandleHtml2.appendChild(div16);
- var div17 = document.createElement('div');
- div17.setAttribute('class', 'SpringHandleHtml2Div1713');
- div17.innerHTML = '超时完成';
- springHandleHtml2.appendChild(div17);
- var div18 = document.createElement('div');
- div18.setAttribute('class', 'SpringHandleHtml2Div18');
- div18.innerHTML = '责任人';
- springHandleHtml2.appendChild(div18);
- var div19 = document.createElement('div');
- div19.setAttribute('class', 'SpringHandleHtml2Div19');
- div19.innerHTML = ConfirmStore[0].person_liable_name;
- springHandleHtml2.appendChild(div19);
- var div20 = document.createElement('div');
- div20.setAttribute('class', 'SpringHandleHtml2Div20');
- div20.innerHTML = '发起账号';
- springHandleHtml2.appendChild(div20);
- var div21 = document.createElement('div');
- div21.setAttribute('class', 'SpringHandleHtml2Div21');
- div21.innerHTML = ConfirmStore[0].phone;
- springHandleHtml2.appendChild(div21);
- var div22 = document.createElement('div');
- div22.setAttribute('class', 'SpringHandleHtml2Div22');
- div22.innerHTML = '应处理时间';
- springHandleHtml2.appendChild(div22);
- var div23 = document.createElement('div');
- div23.setAttribute('class', 'SpringHandleHtml2Div23');
- div23.innerHTML = ConfirmStore[0].y_complete_time;
- springHandleHtml2.appendChild(div23);
- var div24 = document.createElement('div');
- div24.setAttribute('class', 'SpringHandleHtml2Div24');
- div24.innerHTML = '上报时间';
- springHandleHtml2.appendChild(div24);
- var div25 = document.createElement('div');
- div25.setAttribute('class', 'SpringHandleHtml2Div25');
- div25.innerHTML = ConfirmStore[0].sbsj;
- springHandleHtml2.appendChild(div25);
- }
- var springHandlePanel1Html = function () {
- var springHandlePanel1 = document.getElementById('springHandlePanel1');
- var div26 = document.createElement('div');
- div26.id = 'div26_id_springHandlePanel1';
- div26.setAttribute('class', 'SpringHandleHtml2Div26');
- div26.innerHTML = '结果照片';
- springHandlePanel1.appendChild(div26);
- var springHandlePanel1title = document.createElement('img');
- springHandlePanel1title.setAttribute('class', 'SpringHandlePanel1Title');
- // springHandlePanel1title.src='../../res/img/common/shangchaun.png';
- springHandlePanel1title.src = ConfirmStore[0].picture_path;
- springHandlePanel1.appendChild(springHandlePanel1title);
- var div27 = document.createElement('div');
- div27.setAttribute('class', 'SpringHandleHtml2Div27');
- div27.innerHTML = '结果备注';
- springHandlePanel1.appendChild(div27);
- var div28 = document.createElement('div');
- div28.setAttribute('class', 'SpringHandleHtml2Div28');
- div28.innerHTML = ConfirmStore[0].jg_remarks;
- springHandlePanel1.appendChild(div28);
- var div29 = document.createElement('div');
- div29.setAttribute('class', 'SpringHandleHtml2Div29');
- div29.innerHTML = '处理时间';
- springHandlePanel1.appendChild(div29);
- var div30 = document.createElement('div');
- div30.setAttribute('class', 'SpringHandleHtml2Div30');
- div30.innerHTML = ConfirmStore[0].cl_time;
- springHandlePanel1.appendChild(div30);
- var div31 = document.createElement('div');
- div31.setAttribute('class', 'SpringHandleHtml2Div31');
- div31.innerHTML = '审核结果';
- springHandlePanel1.appendChild(div31);
- var div32 = document.createElement('div');
- div32.setAttribute('class', 'SpringHandleHtml2Div32');
- div32.innerHTML = '无';
- springHandlePanel1.appendChild(div32);
- var div33 = document.createElement('div');
- div33.setAttribute('class', 'SpringHandleHtml2Div33');
- div33.innerHTML = '审核时间';
- springHandlePanel1.appendChild(div33);
- var div34 = document.createElement('div');
- div34.setAttribute('class', 'SpringHandleHtml2Div34');
- div34.innerHTML = '无';
- springHandlePanel1.appendChild(div34);
- var div35 = document.createElement('div');
- div35.setAttribute('class', 'SpringHandleHtml2Div35');
- div35.innerHTML = '审核';
- springHandlePanel1.appendChild(div35);
- var select36 = document.createElement('select');
- select36.setAttribute('class', 'SpringHandleSelect36');
- select36.setAttribute('id', 'springHandle_select36_id');
- // select36.setAttribute('onchange',"changeon(this)");
- springHandlePanel1.appendChild(select36);
- var option6 = document.createElement('option');
- option6.innerHTML = '请选择';
- option6.setAttribute('value', '0');
- select36.appendChild(option6);
- var option7 = document.createElement('option');
- option7.innerHTML = '审核不通过';
- option7.setAttribute('value', '3');
- select36.appendChild(option7);
- var option8 = document.createElement('option');
- option8.innerHTML = '完成';
- option8.setAttribute('value', '4');
- select36.appendChild(option8);
- var option9 = document.createElement('option');
- option9.innerHTML = '超时完成';
- option9.setAttribute('value', '5');
- select36.appendChild(option9);
- var div37 = document.createElement('div');
- div37.setAttribute('class', 'SpringHandleHtml2Div37');
- div37.innerHTML = '备注';
- springHandlePanel1.appendChild(div37);
- var textarea2 = document.createElement('textarea');
- textarea2.setAttribute('class', 'SpringHandleTextarea2');
- textarea2.setAttribute('id', 'springHandle_textarea2_id');
- springHandlePanel1.appendChild(textarea2);
- }
- var springHandlePanel2Html = function () {
- var springHandlePanel2 = document.getElementById('springHandlePanel2');
- if (ConfirmStore[0].data1 == '0') {
- var div26 = document.createElement('div');
- div26.id = 'div26_id_springHandlePanel2';
- div26.setAttribute('class', 'SpringHandleHtml2Div26');
- div26.innerHTML = '结果照片';
- springHandlePanel2.appendChild(div26);
- var springHandlePanel1title = document.createElement('img');
- springHandlePanel1title.setAttribute('class', 'SpringHandlePanel1Title');
- springHandlePanel1title.src = '../../res/img/common/wutu.png';
- // springHandlePanel1title.src=ConfirmStore[0].picture_path;
- springHandlePanel2.appendChild(springHandlePanel1title);
- var div27 = document.createElement('div');
- div27.setAttribute('class', 'SpringHandleHtml2Div27');
- div27.innerHTML = '结果备注';
- springHandlePanel2.appendChild(div27);
- var div28 = document.createElement('div');
- div28.setAttribute('class', 'SpringHandleHtml2Div28');
- div28.innerHTML = "无";
- springHandlePanel2.appendChild(div28);
- var div29 = document.createElement('div');
- div29.setAttribute('class', 'SpringHandleHtml2Div29');
- div29.innerHTML = '处理时间';
- springHandlePanel2.appendChild(div29);
- var div30 = document.createElement('div');
- div30.setAttribute('class', 'SpringHandleHtml2Div30');
- div30.innerHTML = "无";
- springHandlePanel2.appendChild(div30);
- var div31 = document.createElement('div');
- div31.setAttribute('class', 'SpringHandleHtml2Div31');
- div31.innerHTML = '审核结果';
- springHandlePanel2.appendChild(div31);
- var div32 = document.createElement('div');
- div32.setAttribute('class', 'SpringHandleHtml2Div32');
- div32.innerHTML = '无';
- springHandlePanel2.appendChild(div32);
- var div33 = document.createElement('div');
- div33.setAttribute('class', 'SpringHandleHtml2Div33');
- div33.innerHTML = '审核时间';
- springHandlePanel2.appendChild(div33);
- var div34 = document.createElement('div');
- div34.setAttribute('class', 'SpringHandleHtml2Div34');
- div34.innerHTML = '无';
- springHandlePanel2.appendChild(div34);
- } else if (ConfirmStore[0].data1 == '1') {
- var div26 = document.createElement('div');
- div26.id = 'div26_id_springHandlePanel2';
- div26.setAttribute('class', 'SpringHandleHtml2Div26');
- div26.innerHTML = '结果照片';
- springHandlePanel2.appendChild(div26);
- var springHandlePanel1title = document.createElement('img');
- springHandlePanel1title.setAttribute('class', 'SpringHandlePanel1Title');
- // springHandlePanel1title.src='../../res/img/common/wutu.png';
- springHandlePanel1title.src = ConfirmStore[0].picture_path;
- springHandlePanel2.appendChild(springHandlePanel1title);
- var div27 = document.createElement('div');
- div27.setAttribute('class', 'SpringHandleHtml2Div27');
- div27.innerHTML = '结果备注';
- springHandlePanel2.appendChild(div27);
- var div28 = document.createElement('div');
- div28.setAttribute('class', 'SpringHandleHtml2Div28');
- div28.innerHTML = ConfirmStore[0].jg_remarks;
- springHandlePanel2.appendChild(div28);
- var div29 = document.createElement('div');
- div29.setAttribute('class', 'SpringHandleHtml2Div29');
- div29.innerHTML = '处理时间';
- springHandlePanel2.appendChild(div29);
- var div30 = document.createElement('div');
- div30.setAttribute('class', 'SpringHandleHtml2Div30');
- div30.innerHTML = ConfirmStore[0].cl_time;
- springHandlePanel2.appendChild(div30);
- var div31 = document.createElement('div');
- div31.setAttribute('class', 'SpringHandleHtml2Div31');
- div31.innerHTML = '审核结果';
- springHandlePanel2.appendChild(div31);
- var div32 = document.createElement('div');
- div32.setAttribute('class', 'SpringHandleHtml2Div32');
- div32.innerHTML = '无';
- springHandlePanel2.appendChild(div32);
- var div33 = document.createElement('div');
- div33.setAttribute('class', 'SpringHandleHtml2Div33');
- div33.innerHTML = '审核时间';
- springHandlePanel2.appendChild(div33);
- var div34 = document.createElement('div');
- div34.setAttribute('class', 'SpringHandleHtml2Div34');
- div34.innerHTML = '无';
- springHandlePanel2.appendChild(div34);
- var div35 = document.createElement('div');
- div35.setAttribute('class', 'SpringHandleHtml2Div35');
- div35.innerHTML = '审核';
- springHandlePanel2.appendChild(div35);
- var select36 = document.createElement('select');
- select36.setAttribute('class', 'SpringHandleSelect36');
- select36.setAttribute('id', 'springHandle_select36_id2');
- // select36.setAttribute('onchange',"changeon(this)");
- springHandlePanel2.appendChild(select36);
- var option6 = document.createElement('option');
- option6.innerHTML = '请选择';
- option6.setAttribute('value', '0');
- select36.appendChild(option6);
- var option7 = document.createElement('option');
- option7.innerHTML = '审核不通过';
- option7.setAttribute('value', '3');
- select36.appendChild(option7);
- var option8 = document.createElement('option');
- option8.innerHTML = '完成';
- option8.setAttribute('value', '4');
- select36.appendChild(option8);
- var option9 = document.createElement('option');
- option9.innerHTML = '超时完成';
- option9.setAttribute('value', '5');
- select36.appendChild(option9);
- var div37 = document.createElement('div');
- div37.setAttribute('class', 'SpringHandleHtml2Div37');
- div37.innerHTML = '备注';
- springHandlePanel2.appendChild(div37);
- var textarea2 = document.createElement('textarea');
- textarea2.setAttribute('class', 'SpringHandleTextarea2');
- textarea2.setAttribute('id', 'springHandle_textarea2_id2');
- springHandlePanel2.appendChild(textarea2);
- }
- }
- var springHandlePanel3Html = function () {
- var springHandlePanel3 = document.getElementById('springHandlePanel3');
- var divhiddle = document.createElement('div');
- divhiddle.id = 'div26_id_springHandlePanel3';
- divhiddle.setAttribute('class', 'SpringHandleHtml3DivHiddle');
- springHandlePanel3.appendChild(divhiddle);
- for (var i = 0; i < ConfirmStore.length; i++) {
- var divpanel3 = document.createElement('div');
- divpanel3.setAttribute('class', 'SpringHandleHtml3DivPanel3');
- springHandlePanel3.appendChild(divpanel3);
- var div26 = document.createElement('div');
- div26.setAttribute('class', 'SpringHandleHtml2Div26');
- div26.innerHTML = '结果照片';
- divpanel3.appendChild(div26);
- var springHandlePanel1title = document.createElement('img');
- springHandlePanel1title.setAttribute('class', 'SpringHandlePanel1Title');
- springHandlePanel1title.src = ConfirmStore[i].picture_path;
- divpanel3.appendChild(springHandlePanel1title);
- var div27 = document.createElement('div');
- div27.setAttribute('class', 'SpringHandleHtml2Div27');
- div27.innerHTML = '结果备注';
- divpanel3.appendChild(div27);
- var div28 = document.createElement('div');
- div28.setAttribute('class', 'SpringHandleHtml2Div28');
- div28.innerHTML = ConfirmStore[i].jg_remarks;
- divpanel3.appendChild(div28);
- var div29 = document.createElement('div');
- div29.setAttribute('class', 'SpringHandleHtml2Div29');
- div29.innerHTML = '处理时间';
- divpanel3.appendChild(div29);
- var div30 = document.createElement('div');
- div30.setAttribute('class', 'SpringHandleHtml2Div30');
- div30.innerHTML = ConfirmStore[i].cl_time;
- divpanel3.appendChild(div30);
- var div31 = document.createElement('div');
- div31.setAttribute('class', 'SpringHandleHtml2Div31');
- div31.innerHTML = '审核结果';
- divpanel3.appendChild(div31);
- var div32 = document.createElement('div');
- div32.setAttribute('class', 'SpringHandleHtml2Div32');
- div32.innerHTML = ConfirmStore[i].cl_type_name;
- divpanel3.appendChild(div32);
- var div33 = document.createElement('div');
- div33.setAttribute('class', 'SpringHandleHtml2Div33');
- div33.innerHTML = '审核时间';
- divpanel3.appendChild(div33);
- var div34 = document.createElement('div');
- div34.setAttribute('class', 'SpringHandleHtml2Div34');
- div34.innerHTML = ConfirmStore[i].sh_time;
- divpanel3.appendChild(div34);
- var div35 = document.createElement('div');
- div35.setAttribute('class', 'SpringHandleHtml3Div35');
- div35.innerHTML = '备注';
- divpanel3.appendChild(div35);
- var div36 = document.createElement('div');
- div36.setAttribute('class', 'SpringHandleHtml3Div36');
- div36.innerHTML = ConfirmStore[i].sh_remarks;
- divpanel3.appendChild(div36);
- }
- }
- var springHandlePanel4Html = function () {
- var springHandlePanel3 = document.getElementById('springHandlePanel4');
- var divhiddle = document.createElement('div');
- divhiddle.id = 'div26_id_springHandlePanel4';
- divhiddle.setAttribute('class', 'SpringHandleHtml3DivHiddle');
- springHandlePanel3.appendChild(divhiddle);
- for (var i = 0; i < ConfirmStore.length; i++) {
- var divpanel3 = document.createElement('div');
- divpanel3.setAttribute('class', 'SpringHandleHtml3DivPanel3');
- springHandlePanel3.appendChild(divpanel3);
- var div26 = document.createElement('div');
- div26.setAttribute('class', 'SpringHandleHtml2Div26');
- div26.innerHTML = '结果照片';
- divpanel3.appendChild(div26);
- var springHandlePanel1title = document.createElement('img');
- springHandlePanel1title.setAttribute('class', 'SpringHandlePanel1Title');
- springHandlePanel1title.src = ConfirmStore[i].picture_path;
- divpanel3.appendChild(springHandlePanel1title);
- var div27 = document.createElement('div');
- div27.setAttribute('class', 'SpringHandleHtml2Div27');
- div27.innerHTML = '结果备注';
- divpanel3.appendChild(div27);
- var div28 = document.createElement('div');
- div28.setAttribute('class', 'SpringHandleHtml2Div28');
- div28.innerHTML = ConfirmStore[i].jg_remarks;
- divpanel3.appendChild(div28);
- var div29 = document.createElement('div');
- div29.setAttribute('class', 'SpringHandleHtml2Div29');
- div29.innerHTML = '处理时间';
- divpanel3.appendChild(div29);
- var div30 = document.createElement('div');
- div30.setAttribute('class', 'SpringHandleHtml2Div30');
- div30.innerHTML = ConfirmStore[i].cl_time;
- divpanel3.appendChild(div30);
- var div31 = document.createElement('div');
- div31.setAttribute('class', 'SpringHandleHtml2Div31');
- div31.innerHTML = '审核结果';
- divpanel3.appendChild(div31);
- var div32 = document.createElement('div');
- div32.setAttribute('class', 'SpringHandleHtml2Div32');
- div32.innerHTML = ConfirmStore[i].cl_type_name;
- divpanel3.appendChild(div32);
- var div33 = document.createElement('div');
- div33.setAttribute('class', 'SpringHandleHtml2Div33');
- div33.innerHTML = '审核时间';
- divpanel3.appendChild(div33);
- var div34 = document.createElement('div');
- div34.setAttribute('class', 'SpringHandleHtml2Div34');
- div34.innerHTML = ConfirmStore[i].sh_time;
- divpanel3.appendChild(div34);
- var div35 = document.createElement('div');
- div35.setAttribute('class', 'SpringHandleHtml3Div35');
- div35.innerHTML = '备注';
- divpanel3.appendChild(div35);
- var div36 = document.createElement('div');
- div36.setAttribute('class', 'SpringHandleHtml3Div36');
- div36.innerHTML = ConfirmStore[i].sh_remarks;
- divpanel3.appendChild(div36);
- }
- }
- var springHandlePanel3Ajax = function (id) {
- if (document.getElementById('springHandlePanel3') != undefined)
- document.getElementById('springHandlePanel3').innerHTML = "";
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.event_processing_id = id;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/getFeedback",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getFeedback') {
- ConfirmStore = json.RESULT;
- springHandlePanel3Html();
- }
- }
- });
- }
- var piebar2 = Ext.create('Ext.panel.Panel', {
- id: 'springHandleHtml2',
- width: '100%',
- height: 150,
- region: 'north',
- layout: 'form',
- defaults: {
- border: false
- }
- });
- var piebar3 = Ext.create('Ext.panel.Panel', {
- id: 'springHandleHtml3',
- width: '100%',
- height: 150,
- region: 'north',
- layout: 'form',
- defaults: {
- border: false
- }
- });
- var piebar4 = Ext.create('Ext.panel.Panel', {
- id: 'springHandleHtml4',
- width: '100%',
- height: 150,
- region: 'north',
- layout: 'form',
- defaults: {
- border: false
- }
- });
- var piebar5 = Ext.create('Ext.panel.Panel', {
- id: 'springHandleHtml5',
- width: '100%',
- height: 150,
- region: 'north',
- layout: 'form',
- defaults: {
- border: false
- }
- });
- var panel1 = Ext.create('Ext.panel.Panel', {
- id: 'springHandlePanel1',
- width: 490,
- height: 400,
- layout: 'form',
- defaults: {
- border: false
- }
- });
- var panel2 = Ext.create('Ext.panel.Panel', {
- id: 'springHandlePanel2',
- width: 490,
- height: 400,
- layout: 'form',
- defaults: {
- border: false
- }
- });
- var panel3 = Ext.create('Ext.panel.Panel', {
- width: 490,
- height: 360,
- layout: 'fit',
- bodyStyle: 'overflow-x:hidden;overflow-y:auto',
- defaults: {
- border: false
- },
- html: '<div style="height:360px;width:490px;"><div id="springHandlePanel3"></div></div>'
- });
- var panel4 = Ext.create('Ext.panel.Panel', {
- width: 490,
- height: 360,
- layout: 'fit',
- bodyStyle: 'overflow-x:hidden;overflow-y:auto',
- defaults: {
- border: false
- },
- html: '<div style="height:360px;width:490px;"><div id="springHandlePanel4"></div></div>'
- });
- var reset11 = function () {
- document.getElementById('springHandle_textarea2_id').value = '';
- document.getElementById('springHandle_select36_id').value = '0';
- Ext.getCmp('SpringHandleListPageToolbar').moveFirst();
- }
- var reset12 = function () {
- document.getElementById('springHandle_textarea2_id2').value = '';
- document.getElementById('springHandle_select36_id2').value = '0';
- Ext.getCmp('SpringHandleListPageToolbar').moveFirst();
- }
- var examinwin = function (id) {
- Ext.create('Ext.window.Window', {
- title: '处理状态',
- height: 600,
- width: 500,
- modal: true,
- layout: 'border',
- items: [piebar2,
- Ext.create('Ext.tab.Panel', {
- activeTab: 0,
- items: [
- {
- title: '处理反馈',
- items: [panel1]
- }
- ]
- })
- ],
- buttons: [
- {
- text: '确定',
- iconCls: 'ok_btn',
- handler: function () {
- var date = new Date;
- var times = date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds(); //时
- var dates = Ext.util.Format.date(date, 'Y-m-d');
- var shid = document.getElementById('springHandle_select36_id');
- var shIndex = shid.selectedIndex;
- var sh = shid.options[shIndex].value;
- var bz = document.getElementById('springHandle_textarea2_id').value;
- // alert(bz);
- var query = new Object();
- if (sh.length > 0) {
- query.cl_type = sh;
- }
- if (bz.length > 0) {
- query.sh_remarks = bz;
- }
- query.id = id;
- query.V_LOGINNAME = V_LOGINNAME;
- query.V_PASSWORD = V_PASSWORD;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/updatesh",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'updateEventProcessingsh') {
- if (json.success == true) {
- Ext.Msg.alert('操作成功', '已审核', function (btn, txt) {
- reset11();
- });
- } else {
- Ext.Msg.alert('操作失败', json.MSG, function (btn, txt) {
- reset11();
- });
- }
- }
- }
- });
- this.up('window').hide();
- }
- }, {
- text: '关闭',
- handler: function () {
- this.up('window').hide();
- }
- }
- ],
- closeAction: 'hide'
- }).show();
- }
- var examinwin1 = function (id) {
- Ext.create('Ext.window.Window', {
- title: '处理状态',
- height: 600,
- width: 500,
- modal: true,
- layout: 'border',
- items: [piebar3, Ext.create('Ext.tab.Panel', {
- activeTab: 0,
- items: [
- {
- itemId: 'chulifankui',
- title: '处理反馈',
- items: [panel2]
- }
- ,
- {
- itemId: 'shenhejilu',
- title: '反馈与审核记录',
- items: [panel3]
- }
- ],
- listeners: {
- 'tabchange': function (t, n) {
- var item = n.itemId;
- if (item == 'shenhejilu') {
- // if(document.getElementById('div26_id_springHandlePanel3')==undefined)
- springHandlePanel3Ajax(id);
- }
- }
- }
- })],
- buttons: [
- {
- text: '确定',
- iconCls: 'ok_btn',
- handler: function () {
- var date = new Date;
- var times = date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds(); //时
- var dates = Ext.util.Format.date(date, 'Y-m-d');
- var shid = document.getElementById('springHandle_select36_id2');
- var shIndex = shid.selectedIndex;
- var sh = shid.options[shIndex].value;
- var bz = document.getElementById('springHandle_textarea2_id2').value;
- // alert(bz);
- var query = new Object();
- if (sh.length > 0) {
- query.cl_type = sh;
- }
- if (bz.length > 0) {
- query.sh_remarks = bz;
- }
- query.id = id;
- query.V_LOGINNAME = V_LOGINNAME;
- query.V_PASSWORD = V_PASSWORD;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/updatesh",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'updateEventProcessingsh') {
- if (json.success == true) {
- Ext.Msg.alert('操作成功', '已审核', function (btn, txt) {
- reset12();
- });
- } else {
- Ext.Msg.alert('操作失败', json.MSG, function (btn, txt) {
- reset12();
- });
- }
- }
- }
- });
- this.up('window').hide();
- }
- }, {
- text: '关闭',
- handler: function () {
- this.up('window').hide();
- }
- }
- ],
- closeAction: 'hide'
- }).show();
- }
- var examinwin2 = function () {
- Ext.create('Ext.window.Window', {
- title: '处理状态',
- height: 600,
- width: 500,
- modal: true,
- layout: 'border',
- items: [piebar4,
- Ext.create('Ext.tab.Panel', {
- activeTab: 0,
- items: [
- {
- title: '反馈与审核记录',
- items: [panel3]
- }
- ]
- })
- ],
- buttons: [
- {
- text: '关闭',
- handler: function () {
- this.up('window').hide();
- }
- }
- ],
- closeAction: 'hide'
- }).show();
- }
- var examinwin3 = function () {
- Ext.create('Ext.window.Window', {
- title: '处理状态',
- height: 600,
- width: 500,
- modal: true,
- layout: 'border',
- items: [piebar5,
- Ext.create('Ext.tab.Panel', {
- activeTab: 0,
- items: [
- {
- title: '反馈与审核记录',
- items: [panel4]
- }
- ]
- })
- ],
- buttons: [
- {
- text: '关闭',
- handler: function () {
- this.up('window').hide();
- }
- }
- ],
- closeAction: 'hide'
- }).show();
- }
- examineStatus = function (status, id) {
- var zyzp_status = status;
- var spot_id = id;
- // alert(spot_id);
- if (zyzp_status == 0) {
- if (document.getElementById('springHandleHtml5') != undefined)
- document.getElementById('springHandleHtml5').innerHTML = "";
- if (document.getElementById('springHandlePanel1') != undefined)
- document.getElementById('springHandlePanel1').innerHTML = "";
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.id = spot_id;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/getNotAudited",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getNotAudited') {
- ConfirmStore = json.RESULT;
- examinwin(spot_id);
- examineStatusHtml();
- if (document.getElementById('div26_id_springHandlePanel1') == undefined)
- springHandlePanel1Html();
- }
- }
- });
- } else if (zyzp_status == 1) {
- if (document.getElementById('springHandleHtml3') != undefined)
- document.getElementById('springHandleHtml3').innerHTML = "";
- if (document.getElementById('springHandlePanel2') != undefined)
- document.getElementById('springHandlePanel2').innerHTML = "";
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.id = spot_id;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/getNotAudited",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getNotAudited') {
- ConfirmStore = json.RESULT;
- examinwin1(spot_id);
- examineStatusHtml1();
- if (document.getElementById('div26_id_springHandlePanel2') == undefined)
- springHandlePanel2Html();
- }
- }
- });
- } else if (zyzp_status == 2) {
- if (document.getElementById('springHandlePanel3') != undefined)
- document.getElementById('springHandlePanel3').innerHTML = "";
- if (document.getElementById('springHandleHtml4') != undefined)
- document.getElementById('springHandleHtml4').innerHTML = "";
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.event_processing_id = spot_id;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/getFeedback",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getFeedback') {
- ConfirmStore = json.RESULT;
- examinwin2();
- examineStatusHtml2();
- if (document.getElementById('div26_id_springHandlePanel3') == undefined)
- springHandlePanel3Html();
- }
- }
- });
- } else if (zyzp_status == 3) {
- if (document.getElementById('springHandleHtml5') != undefined)
- document.getElementById('springHandleHtml5').innerHTML = "";
- if (document.getElementById('springHandlePanel4') != undefined)
- document.getElementById('springHandlePanel4').innerHTML = "";
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.event_processing_id = spot_id;
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/getFeedback",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- if (json.action == 'getFeedback') {
- ConfirmStore = json.RESULT;
- examinwin3();
- examineStatusHtml3();
- if (document.getElementById('div26_id_springHandlePanel4') == undefined)
- springHandlePanel4Html();
- }
- }
- });
- }
- }
- var inspectorsCheckHtml2 = function () {
- var maintenanceCheckHtml21 = document.getElementById('shangbao_xiangqing');
- var title = document.createElement('div');
- title.setAttribute('class', 'SpringHandleTitle');
- title.innerHTML = '上报人员';
- maintenanceCheckHtml21.appendChild(title);
- var title1 = document.createElement('div');
- title1.setAttribute('class', 'SpringHandleTitle1');
- // title1.innerHTML='韩锐';
- title1.innerHTML = ConfirmStore[0].name;
- maintenanceCheckHtml21.appendChild(title1);
- var title2 = document.createElement('div');
- title2.setAttribute('class', 'SpringHandleTitle2');
- title2.innerHTML = '上报时间';
- maintenanceCheckHtml21.appendChild(title2);
- var title3 = document.createElement('div');
- title3.setAttribute('class', 'SpringHandleTitle3');
- // title3.innerHTML='2019-03-04 13:48:07';
- title3.innerHTML = ConfirmStore[0].sbsj;
- maintenanceCheckHtml21.appendChild(title3);
- var title4 = document.createElement('div');
- title4.setAttribute('class', 'SpringHandleTitle4');
- title4.innerHTML = '现场照片';
- maintenanceCheckHtml21.appendChild(title4);
- var title5 = document.createElement('img');
- title5.setAttribute('class', 'SpringHandleTitle5');
- title5.src = '../../res/img/common/shangchaun.png';
- title5.src = ConfirmStore[0].report_photos;
- maintenanceCheckHtml21.appendChild(title5);
- var title6 = document.createElement('div');
- title6.setAttribute('class', 'SpringHandleTitle6');
- title6.innerHTML = '备注';
- maintenanceCheckHtml21.appendChild(title6);
- var title7 = document.createElement('div');
- title7.setAttribute('class', 'SpringHandleTitle7');
- // title7.innerHTML='玻璃不知道被谁砸坏了,需要联系物业更换玻璃';
- title7.innerHTML = ConfirmStore[0].dwsb_remarks;
- maintenanceCheckHtml21.appendChild(title7);
- }
- modifywin = function (id) {
- Ext.create('Ext.window.Window', {
- title: '站点详情',
- height: 300,
- width: 500,
- modal: true,
- layout: 'fit',
- closeAction: 'destroy',
- html: '<div style="overflow-y:auto;height:270px;width:500px;background:#002c59;"><div id="shangbao_xiangqing"></div></div>'
- }).show();
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- query.V_PASSWORD = $("#V_PASSWORD").val();
- query.id = id;
- alert(id);
- $.ajax({
- type: 'POST',
- url: baseUrl + 'FireStationController/queryFireStation',
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- // if(json.action=='getVProjectNameList'){
- ConfirmStore = json.RESULT;
- inspectorsCheckHtml2();
- // }
- }
- });
- }
- var piedarHtml2 = function () {
- var date = new Date;
- var dates = Ext.util.Format.date(date, 'Y-m-d');
- var preDate = new Date(date.getTime() - 24 * 60 * 60 * 1000);
- var dates2 = Ext.util.Format.date(preDate, 'Y-m-d');
- var maintenanceCheckHtml = document.getElementById('inspectorsCheckHtml');
- // var title = document.createElement('div');
- // title.setAttribute('class','MaintenancePersonTitle');
- // title.innerHTML='巡检记录';
- // maintenanceCheckHtml.appendChild(title);
- var title2 = document.createElement('div');
- title2.setAttribute('class', 'springHandle_title2_div_font');
- title2.innerHTML = '任务名称';
- maintenanceCheckHtml.appendChild(title2);
- var input = document.createElement('input');
- input.setAttribute('class', 'springHandle_input_class');
- input.setAttribute('id', 'springHandle_title2_input');
- input.setAttribute('type', 'text');
- input.setAttribute('value', '');
- maintenanceCheckHtml.appendChild(input);
- var title3 = document.createElement('div');
- title3.setAttribute('class', 'springHandle_title3_div_font');
- title3.innerHTML = '责任人';
- maintenanceCheckHtml.appendChild(title3);
- var select = document.createElement('select');
- select.setAttribute('class', 'springHandle_input1_class');
- select.setAttribute('id', 'springHandle_title3_input1');
- maintenanceCheckHtml.appendChild(select);
- var option2 = document.createElement('option');
- option2.innerHTML = '所有人';
- option2.setAttribute('value', '0');
- select.appendChild(option2);
- for (var i = 0; i < ConfirmStore1.length; i++) {
- var option3 = document.createElement('option');
- option3.innerHTML = ConfirmStore1[i].name;
- option3.setAttribute('value', ConfirmStore1[i].zrrid);
- select.appendChild(option3);
- }
- var title4 = document.createElement('div');
- title4.setAttribute('class', 'springHandle_title1_div');
- title4.setAttribute('id', 'springHandle_title1_div');
- title4.setAttribute('onmouseover', "mouseon(this)");
- title4.setAttribute('onmouseout', "mouseoff(this)");
- title4.setAttribute('onclick', "menu_click(this)");
- maintenanceCheckHtml.appendChild(title4);
- var title5 = document.createElement('div');
- title5.setAttribute('class', 'springHandle_title2_div');
- title5.setAttribute('id', 'springHandle_title2_div');
- title5.setAttribute('onmouseover', "mouseon(this)");
- title5.setAttribute('onmouseout', "mouseoff(this)");
- title5.setAttribute('onclick', "menu_click(this)");
- maintenanceCheckHtml.appendChild(title5);
- var input2 = document.createElement('input');
- input2.setAttribute('class', 'springHandle_input2_class');
- input2.setAttribute('id', 'springHandle_title3_input2');
- input2.setAttribute('type', 'text');
- input2.setAttribute('readonly', 'true');
- input2.setAttribute('value', dates);
- maintenanceCheckHtml.appendChild(input2);
- var title8 = document.createElement('div');
- title8.setAttribute('class', 'springHandle_title8_div');
- title8.innerHTML = '~';
- maintenanceCheckHtml.appendChild(title8);
- var input3 = document.createElement('input');
- input3.setAttribute('class', 'springHandle_input3_class');
- input3.setAttribute('id', 'springHandle_title3_input3');
- input3.setAttribute('type', 'text');
- input3.setAttribute('readonly', 'true');
- input3.setAttribute('value', dates2);
- maintenanceCheckHtml.appendChild(input3);
- //设置开始时间
- var startDate = laydate.render({
- elem: '#springHandle_title3_input3',
- done: function (value, date) {
- if (value !== '') {
- endDate.config.min.year = date.year;
- endDate.config.min.month = date.month - 1;
- endDate.config.min.date = date.date;
- } else {
- endDate.config.min.year = '';
- endDate.config.min.month = '';
- endDate.config.min.date = '';
- }
- }
- });
- //设置结束时间
- var endDate = laydate.render({
- elem: '#springHandle_title3_input2',
- done: function (value, date) {
- if (value !== '') {
- startDate.config.max.year = date.year;
- startDate.config.max.month = date.month - 1;
- startDate.config.max.date = date.date;
- } else {
- startDate.config.max.year = '';
- startDate.config.max.month = '';
- startDate.config.max.date = '';
- }
- }
- });
- var title7 = document.createElement('div');
- title7.setAttribute('class', 'springHandle_title7_div');
- title7.innerHTML = '完成时间';
- maintenanceCheckHtml.appendChild(title7);
- var select1 = document.createElement('select');
- select1.setAttribute('class', 'springHandle_input4_class');
- select1.setAttribute('id', 'springHandle_title3_input4');
- maintenanceCheckHtml.appendChild(select1);
- var option0 = document.createElement('option');
- option0.innerHTML = '所有';
- option0.setAttribute('value', '0');
- select1.appendChild(option0);
- var option1 = document.createElement('option');
- option1.innerHTML = '未处理';
- option1.setAttribute('value', '1');
- select1.appendChild(option1);
- var option2 = document.createElement('option');
- option2.innerHTML = '未审核';
- option2.setAttribute('value', '2');
- select1.appendChild(option2);
- var option3 = document.createElement('option');
- option3.innerHTML = '审核未通过';
- option3.setAttribute('value', '3');
- select1.appendChild(option3);
- var option4 = document.createElement('option');
- option4.innerHTML = '已完成';
- option4.setAttribute('value', '4');
- select1.appendChild(option4);
- var option5 = document.createElement('option');
- option5.innerHTML = '超时完成';
- option5.setAttribute('value', '5');
- select1.appendChild(option5);
- var title9 = document.createElement('div');
- title9.setAttribute('class', 'springHandle_title9_div');
- title9.innerHTML = '处理状态';
- maintenanceCheckHtml.appendChild(title9);
- var title28 = document.createElement('div');
- title28.setAttribute('class', 'springHandle_title28_div');
- title28.innerHTML = '站点类型';
- maintenanceCheckHtml.appendChild(title28);
- var select2 = document.createElement('select');
- select2.setAttribute('class', 'springHandle_input5_class');
- select2.setAttribute('id', 'springHandle_title3_input5');
- maintenanceCheckHtml.appendChild(select2);
- var option6 = document.createElement('option');
- option6.innerHTML = '所有';
- option6.setAttribute('value', '0');
- select2.appendChild(option6);
- var option7 = document.createElement('option');
- option7.innerHTML = '故障';
- option7.setAttribute('value', '1');
- select2.appendChild(option7);
- var option8 = document.createElement('option');
- option8.innerHTML = '隐患';
- option8.setAttribute('value', '2');
- select2.appendChild(option8);
- var option9 = document.createElement('option');
- option9.innerHTML = '其他';
- option9.setAttribute('value', '3');
- select2.appendChild(option9);
- var title10 = document.createElement('div');
- title10.setAttribute('class', 'springHandle_title20_div');
- maintenanceCheckHtml.appendChild(title10);
- var title11 = document.createElement('div');
- title11.setAttribute('class', 'springHandle_title11_div');
- maintenanceCheckHtml.appendChild(title11);
- var title12 = document.createElement('div');
- title12.setAttribute('class', 'springHandle_title12_div');
- maintenanceCheckHtml.appendChild(title12);
- var title13 = document.createElement('div');
- title13.setAttribute('class', 'springHandle_title13_div');
- maintenanceCheckHtml.appendChild(title13);
- var title14 = document.createElement('div');
- title14.setAttribute('class', 'springHandle_title14_div');
- title14.innerHTML = ConfirmStore[0].jrjj;
- maintenanceCheckHtml.appendChild(title14);
- var title15 = document.createElement('div');
- title15.setAttribute('class', 'springHandle_title15_div');
- title15.innerHTML = ConfirmStore[0].cssj;
- maintenanceCheckHtml.appendChild(title15);
- var title16 = document.createElement('div');
- title16.setAttribute('class', 'springHandle_title16_div');
- title16.innerHTML = ConfirmStore[0].jrsj;
- maintenanceCheckHtml.appendChild(title16);
- var title17 = document.createElement('div');
- title17.setAttribute('class', 'springHandle_title17_div');
- title17.innerHTML = ConfirmStore[0].zrs;
- maintenanceCheckHtml.appendChild(title17);
- }
- //获取头部数据
- var piedarHtml = function () {
- var query = new Object();
- query.V_LOGINNAME = $("#V_LOGINNAME").val();
- $.ajax({
- type: 'POST',
- url: baseUrl + "iot/xjeventprocessing/getList",
- data: {
- queryJson: Ext.JSON.encode(query)
- },
- success: function (result) {
- var json = eval('(' + result + ')');
- // if (json.action == 'getEventProcessingList') {
- ConfirmStore = json.RESULT;
- ConfirmStore1 = json.RESULT1;
- piedarHtml2();
- }
- });
- }
- var SpringHandleListPanel = Ext.create('Ext.grid.Panel', {
- header: {
- height: 0,
- border: '0px solid #000000'
- },
- id: 'SpringHandleListPanel',
- store: myStore,
- columns: [
- {header: 'ID', dataIndex: 'id', hidden: true, menuDisabled: true},
- {header: '序号', dataIndex: 'xh', width: 77, menuDisabled: true},
- {header: '微型消防站名称', dataIndex: 'fireSataionName', width: 270, align: 'center', menuDisabled: true},
- {header: '所属单位', dataIndex: 'company', width: 250, align: 'center', menuDisabled: true},
- {header: '地址', dataIndex: 'addr', width: 290, align: 'center', menuDisabled: true},
- {header: '站长', dataIndex: 'stationMaster', width: 240, align: 'center', menuDisabled: true},
- {header: '站长电话', dataIndex: 'stationMasterPhoen', width: 300, align: 'center', menuDisabled: true},
- {
- text: '站点详情',
- xtype: 'actioncolumn',
- width: 140,
- sortable: false,
- align: 'center',
- menuDisabled: true,
- items: [{
- icon: '../../res/img/common/chakanbtn.png',
- tooltip: '站点',
- handler: function (grid, rowIndex, colIndex) {
- var rec = grid.getStore().getAt(rowIndex);
- $("#checkRecord_id").val(rec.get("id"));
- modifywin(rec.get("id"));
- }
- }]
- },
- {header: '操作', dataIndex: 'stationMasterPhoen', width: 100, align: 'center', menuDisabled: true},
- ],
- columnLines: true,
- height: maxHeight,
- width: '100%',
- bbar: new Ext.PagingToolbar({
- store: myStore,
- id: 'SpringHandleListPageToolbar',
- displayInfo: true,
- pageSize: countPerPage,
- prependButtons: true,
- displayMsg: '显示第 {0}条到 {1}条记录,总共 {2}条',
- emptyMsg: "没有记录",
- firstText: '第一页',
- prevText: '前一页',
- nextText: '后一页',
- lastText: '最后一页',
- refreshText: '刷新',
- }),
- border: false,
- iconCls: 'icon-grid'
- });
- var piebar = Ext.create('Ext.panel.Panel', {
- id: 'inspectorsCheckHtml',
- width: '100%',
- height: 250,
- region: 'north',
- layout: 'form',
- defaults: {
- border: false
- }
- });
- new Ext.create('Ext.panel.Panel', {
- width: '100%',
- id: 'InspectorsCheckPiebar',
- layout: 'border',
- items: [
- piebar, SpringHandleListPanel
- ],
- renderTo: Ext.getBody()
- });
- piedarHtml();
- myStore.reload();
- maxHeight = document.documentElement.clientHeight;
- Ext.getCmp('InspectorsCheckPiebar').setHeight(maxHeight);
- });
|