<template>
  <app-base>
    <div id="content"></div>
  </app-base>
</template>

<script>
import Comp from "./comp"
import {HttpResetClass} from 'vue-client'

export default {

    ready() {

      // 设置模板为测试,,
      global.canvas = "TestDataComponent";
      global.myjson = Object.assign(global.myjson, {
        // TestDataComponent: {"template":{"Row":"@1*","Background":"@#f5f7f9","Column":"@300,1*","children":[{"type":"Dock","Name":"@左边","Background":"@#ffffff","StrokeStyle":"@#dce0e3","Classes":"@BorderRect","children":[{"Bottom":"@1","PaddingLeft":"@5","PaddingRight":"@5","StrokeStyle":"@#dce0e3","Column":"@*,*","PaddingBottom":"@4","children":[{"type":"Button","Text":"@查询","@Click":"stat.Popup($SearchPlan$,stat,this,e.draw)","Slots":{"item":{"type":"Image","Path":"this.MouseIn:$searchhover$,$searchnormal$","Classes":"@SearchButtonImg"}}},{"type":"Stack","PaddingBottom":"@4","PaddingTop":"@8"}],"type":"Grid","Name":"@上边","Classes":"@BorderRect","PaddingTop":"@3","Row":"@*,*","Pos":"@Top"},{"children":[{"type":"Scroll","Slots":{"item":{"type":"List","Data":"stat.Data.meterbook.list.data","Name":"@安检计划","@Change":"stat.Call($openBook$, e.Value.self)","Slots":{"item":{"children":[{"PaddingTop":"@20","PaddingLeft":"@10","@DragOver":"stat.DragOver()","children":[{"ColSpan":"@2","Font":"@15px 微软雅黑","Text":"data.f_book_name","type":"Text"},{"type":"Button","Classes":"@BorderRound","Name":"@编辑","@Click":"stat.Call($editBook$,data.self),stat.ShowModal($upPlan$,$编辑抄表册$,$editBookSave$,$cancel$)","Slots":{"item":{"Path":"@edit","type":"Image","Name":"Button_Image"}}},{"Slots":{"item":{"Name":"Button_Image","type":"Image","Path":"@delete"}},"type":"Button","Classes":"@BorderRound","Name":"@删除","@Click":"stat.Call($deleteBook$,data.self),stat.ShowModal($deleteMsg$,$$,$delete$,$cancel$)"},{"Top":"@12","FillStyle":"@#4792de","Text":"$所属公司：{data.f_filiale_name}$","type":"Text","ColSpan":"@2"},{"Top":"@10","children":[{"Classes":"@BorderRound","PaddingBottom":"@2","PaddingTop":"@2","Font":"@12px 微软雅黑","FillStyle":"@#4792de","StrokeStyle":"@#cfdce8","Background":"@#ffffff","Radius":"@8","Text":"data.f_inputtor","type":"Text","ColSpan":"@3","PaddingRight":"@5","PaddingLeft":"@5"}],"type":"Stack","ColSpan":"@2","HAlign":"@Right"},{"type":"Text","Text":"$创建人: {data.f_operator}$","Top":"@12","ColSpan":"@2","Classes":"@NormalFontLighter"},{"type":"Text","Top":"@12","Left":"@10","Classes":"@NormalFontLighter","Text":"@人数"},{"Classes":"@NormalFontHeavy","ColSpan":"@1","Name":"@总数","type":"Text","HAlign":"@Center","Text":"data.num","Top":"@12"},{"Classes":"@NormalFontLighter","Text":"@公司","type":"Text","Top":"@12"},{"Top":"@12","Text":"data.f_orgname","Left":"@5","type":"Text","Classes":"@NormalFontHeavy"},{"Text":"@部门","Classes":"@NormalFontLighter","Left":"@10","Top":"@12","type":"Text"},{"Text":"data.f_depname","Top":"@12","Classes":"@NormalFontHeavy","HAlign":"@Right","type":"Text"},{"type":"Text","Text":"@备注","Top":"@12"},{"type":"Text","Top":"@12","ColSpan":"@3","Text":"data.f_book_remark"}],"type":"Grid","PaddingRight":"@10","Row":"@*,*,*,*,*","PaddingBottom":"@20","Column":"@42,1*,42,1*","@Drop":"stat.Call($moveOneBook$,data.id,stat.GetDrag())"},{"StrokeStyle":"@#dce0e3","Classes":"@BorderRect","Left":"@5","type":"Stack","Right":"@5"}],"type":"Stack","Background":"data.id==stat.Data.SelectedPlan: $#d8eafb$, this.MouseIn: $#f5f6f7$, $$","PaddingBottom":"@1","Width":"@300","Original":"@V"}}}}},{"Classes":"@BorderRect","Left":"@5","type":"Stack","Right":"@5","StrokeStyle":"@#dfe4e7"},{"Column":"@1*,1*","children":[{"type":"Text","Text":"$共{stat.Data.meterbook.list.count}条$"},{"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","HAlign":"@Right","@Change":"stat.Call($loadMore$,$meterbook$)","Slots":{"item":{"children":[{"type":"Image","VAlign":"@Bottom","Path":"@doubledown"},{"Left":"@4","Text":"@更多","type":"Text"}],"type":"Stack","Name":"LoadMoreButton_Stack"}}}],"type":"Grid","Row":"@1*","PaddingLeft":"@20","PaddingRight":"@20","PaddingTop":"@10","PaddingBottom":"@10"},{"Right":"@5","type":"Stack","Left":"@5","Classes":"@BorderRect","StrokeStyle":"@#dfe4e7"},{"type":"Button","HAlign":"@Center","Top":"@20","Classes":"@BorderRound","Bottom":"@20","@Click":"stat.ShowModal($NewPlan$,$添加抄表册$,$addNewBook$,$cancel$)","Slots":{"item":{"Name":"Button_Image","Path":"this.MouseIn:$addnewhover$,$addnew$","type":"Image"}}}],"type":"Grid","Pos":"@Center","Classes":"@NormalFontlight","Column":"@1*","Row":"@1*,0,*,0,*"}]},{"Background":"@#f5f7f9","Classes":"@BorderRect","Name":"@右边","children":[{"type":"Stack","Classes":"@BorderRect","HAlign":"@Right","Pos":"@Top","Background":"@#ffffff","StrokeStyle":"@#dce0e3","Name":"@工具条","children":[{"type":"Stack","Top":"@4","Bottom":"@4","children":[{"type":"Button","Right":"@10","Text":"@导入","Classes":"@Button2","@Click":"stat.Call($upLoad$)"},{"Text":"@导出","Classes":"@Button2","Right":"@24","@Click":"stat.Call($downFile$)","type":"Button"}]}]},{"Pos":"@Center","Row":"@1*,1*","children":[{"children":[{"children":[{"type":"Text","VAlign":"@Center","Text":"@册内用户"},{"Value":"stat.Data.bookuser.search.model.f_user_name","@Change":"stat.Call($setProperty$, $bookuser$, $f_user_name$, e.Value)","type":"Input","Left":"@10","Width":"@150","PlaceHolder":"@客户姓名","Classes":"@BorderRect"},{"Width":"@150","@Change":"stat.Call($setProperty$, $bookuser$, $f_address$, e.Value)","type":"Input","Classes":"@BorderRect","PlaceHolder":"@客户地址","Value":"stat.Data.bookuser.search.model.f_address","Left":"@10"},{"type":"Input","Value":"stat.Data.bookuser.search.model.f_user_phone","Width":"@150","Left":"@10","PlaceHolder":"@客户电话","@Change":"stat.Call($setProperty$, $bookuser$, $f_user_phone$, e.Value)"},{"Slots":{"item":{"type":"Image","Name":"SearchButton_Image","Classes":"@SearchButtonImg"}},"type":"Button","Classes":"@SearchButton BorderRound","Left":"@10","@Click":"stat.Call($searchBookUser$)"},{"type":"Text","Text":"stat.Data.selectBook.f_book_name","VAlign":"@Center","HAlign":"@Center","PaddingLeft":"@20"}],"type":"Stack","Bottom":"@17"},{"Slots":{"head":{"children":[{"children":[{"@Change":"stat.Call($setCheckAll$, $bookuser$)","type":"CheckBox"},{"type":"Text","Left":"@9","Text":"@全选"}],"type":"Stack","Classes":"@DataGridHead","HAlign":"@Center"},{"Classes":"@DataGridHead","type":"Text","Text":"@客户姓名"},{"Text":"@客户地址","Classes":"@DataGridHead","type":"Text"},{"Classes":"@DataGridHead","Text":"@客户电话","type":"Text"}],"type":"Grid","Row":"@1*"},"item":{"children":[{"type":"CheckBox","IsSelected":"stat.Data.bookuser.check.Call($isChecked$, data.f_userfiles_id)","Classes":"@DataGridBody","HAlign":"@Center","@Change":"stat.Call($setCheck$, $bookuser$, data.f_userfiles_id)"},{"type":"Text","Text":"data.f_user_name","Classes":"@DataGridBody"},{"Text":"data.f_address","type":"Text","Classes":"@DataGridBody"},{"Classes":"@DataGridBody","Text":"data.f_user_phone","type":"Text"}],"type":"Grid","Row":"@1*"}},"type":"DataGrid","Data":"stat.Data.bookuser.list.data","Classes":"@BorderRect","Column":"@100,150,300,200","@DragStart":"stat.SetDrag($in$)","@DragOver":"stat.DragOver()","@Drop":"stat.Call($userInToBook$,stat.Data.selectBook.id,stat.GetDrag())"},{"Top":"@12","Row":"@1*","Column":"@*,*,1*,*","PaddingTop":"@5","Classes":"@NormalFontlight","children":[{"type":"Text","Text":"@"},{"Left":"@20","type":"Text","VAlign":"@Center","Text":"$共{stat.Data.bookuser.list.count}条$"},{"type":"Text","Text":"@ "},{"type":"Button","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$bookuser$)","Slots":{"item":{"type":"Stack","Name":"LoadMoreButton_Stack","children":[{"type":"Image","VAlign":"@Bottom","Path":"@doubledown"},{"Left":"@4","Text":"@更多","type":"Text"}]}}}],"type":"Grid"}],"type":"Grid","Column":"@1*","PaddingBottom":"@20","Classes":"@BorderRect","PaddingLeft":"@10","Row":"@*,1*,*","StrokeStyle":"@#dfe4e7","PaddingRight":"@24","PaddingTop":"@12"},{"StrokeStyle":"@#dfe4e7","Classes":"@BorderRect","children":[{"Bottom":"@17","children":[{"type":"Text","Text":"@未在册内用户","VAlign":"@Center"},{"Left":"@10","Width":"@150","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_user_name$, e.Value)","type":"Input","PlaceHolder":"@客户姓名","Value":"stat.Data.notinbookuser.search.model.f_user_name","Classes":"@BorderRect"},{"Classes":"@BorderRect","Left":"@10","Width":"@150","PlaceHolder":"@客户地址","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_address$, e.Value)","type":"Input","Value":"stat.Data.notinbookuser.search.model.f_address"},{"Left":"@10","@Change":"stat.Call($setProperty$, $notinbookuser$, $f_user_phone$, e.Value)","type":"Input","Width":"@150","PlaceHolder":"@客户电话","Value":"stat.Data.notinbookuser.search.model.f_user_phone"},{"Left":"@10","Classes":"@SearchButton BorderRound","@Click":"stat.Call($searchNotInBookUser$)","Slots":{"item":{"type":"Image","Name":"SearchButton_Image","Classes":"@SearchButtonImg"}},"type":"Button"}],"type":"Stack"},{"Classes":"@BorderRect","Data":"stat.Data.notinbookuser.list.data","Column":"@100,150,300,200","@Drop":"stat.Call($userOutBook$,stat.Data.selectBook.id,stat.GetDrag())","@DragStart":"stat.SetDrag($out$)","@DragOver":"stat.DragOver()","Slots":{"head":{"type":"Grid","Row":"@*","children":[{"type":"Stack","Classes":"@DataGridHead","children":[{"type":"CheckBox","@Change":"stat.Call($setCheckAll$, $notinbookuser$)"},{"Left":"@9","type":"Text","Text":"@全选"}]},{"Text":"@客户姓名","type":"Text","Classes":"@DataGridHead"},{"Text":"@客户地址","Classes":"@DataGridHead","type":"Text"},{"Classes":"@DataGridHead","type":"Text","Text":"@客户电话"}]},"item":{"type":"Grid","Row":"@*","children":[{"HAlign":"@Center","IsSelected":"stat.Data.notinbookuser.check.Call($isChecked$, data.f_userfiles_id)","@Change":"stat.Call($setCheck$, $notinbookuser$, data.f_userfiles_id)","type":"CheckBox","Classes":"@DataGridBody","VAlign":"@Center"},{"Text":"data.f_user_name","Classes":"@DataGridBody","type":"Text"},{"type":"Text","Text":"data.f_address","Classes":"@DataGridBody"},{"Classes":"@DataGridBody","Text":"data.f_user_phone","type":"Text"}]}},"type":"DataGrid"},{"Classes":"@NormalFontlight","Top":"@12","Row":"@1*","children":[{"type":"Text","Text":"@"},{"Left":"@20","Text":"$共{stat.Data.notinbookuser.list.count}条$","type":"Text"},{"type":"Text","Text":"@ "},{"Slots":{"item":{"children":[{"type":"Image","Path":"@doubledown","VAlign":"@Bottom"},{"Left":"@4","Text":"@更多","type":"Text"}],"type":"Stack"}},"type":"Button","Text":"@加载更多","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$notinbookuser$)"}],"type":"Grid","Column":"@*,*,1*,*"}],"type":"Grid","Row":"@*,1*,*","Column":"@1*","PaddingLeft":"@10","PaddingBottom":"@20","PaddingRight":"@24","PaddingTop":"@12"}],"type":"Grid","Column":"@1*"}],"type":"Dock"}],"type":"Grid"},"Drag":{"upPlan":{"type":"Grid","Column":"@*","Row":"@*","children":[{"Background":"@#ffffff","Classes":"@NormalFontlight","PaddingTop":"@20","Row":"@*,*","Column":"@80,170,80,170","children":[{"VAlign":"@Center","type":"Text","Text":"@* 抄表册名","Right":"@10","HAlign":"@Right"},{"type":"Input","Value":"stat.Data.editBookInfo.f_book_name","@Change":"stat.Call($editBookInfos$,$f_book_name$,e.Value)"},{"type":"Text","Text":"@抄表员","Right":"@10","HAlign":"@Right","VAlign":"@Center"},{"type":"Select","Data":"stat.Data.inputtorInfo","Classes":"@SelectWhite BorderRound","Selected":"stat.Data.editBookInfo.f_inputtor","@Change":"stat.Call($editBookInfos$,$f_inputtor$,e.Value)"},{"HAlign":"@Right","VAlign":"@Center","type":"Text","Top":"@10","Text":"@所属公司","Right":"@10"},{"type":"Select","Classes":"@SelectWhite BorderRound","Top":"@10","Selected":"stat.Data.editBookInfo.f_filiale_name","Data":"stat.Data.orgInfo","@Change":"stat.Call($editBookInfos$,$f_filiale_name$,e.Value)"},{"type":"Text","Top":"@10","Text":"@备注","Right":"@10","HAlign":"@Right","VAlign":"@Center"},{"@Change":"stat.Call($editBookInfos$,$f_book_remark$,e.Value)","type":"Input","Value":"stat.Data.editBookInfo.f_book_remark","Top":"@10"}],"PaddingBottom":"@20","PaddingLeft":"@20","PaddingRight":"@36","type":"Grid"}]},"SearchPlan":{"children":[{"Row":"@*,*,*,*,*,*","children":[{"Classes":"@GridLabel","Text":"@抄表册名","type":"Text","PaddingBottom":"@6"},{"type":"Input","Value":"stat.Data.meterbook.search.model.f_book_name","@Change":"stat.Call($setProperty$, $meterbook$, $f_book_name$, e.Value)"},{"Text":"@抄表员","Classes":"@GridLabel","PaddingBottom":"@6","PaddingTop":"@6","type":"Text"},{"@Change":"stat.Call($setProperty$, $meterbook$, $f_inputtor$, e.Value)","type":"Input","PaddingTop":"@6","Value":"stat.Data.meterbook.search.model.f_inputtor"},{"type":"Stack","Top":"@20","ColSpan":"@2","HAlign":"@Center","children":[{"type":"Button","Classes":"@Button2","Right":"@50","Text":"@取消","@Click":"stat.RestorePopup(this,e.draw)"},{"@Click":"stat.Call($searchMeterBook$),stat.RestorePopup(this,e.draw)","type":"Button","FillStyle":"@#ffffff","Classes":"@Button","Text":"@查询"}]}],"PaddingBottom":"@10","PaddingTop":"@10","Classes":"@BorderRound NormalFont PopupSearch","PaddingLeft":"@10","type":"Grid","PaddingRight":"@20","Column":"@70,170"}],"type":"Grid","Column":"@1*","Classes":"@PopupSearch PopupShadow","Row":"@1*"},"drag":{"Text":"@","type":"Text"},"start":{"Path":"@drag","type":"Image"},"NewPlan":{"Column":"@*","Row":"@*","children":[{"type":"Grid","PaddingLeft":"@20","Pos":"@Center","Row":"@*,*,*","PaddingRight":"@36","Classes":"@NormalFontlight","Column":"@80,170,80,170,80,170","PaddingBottom":"@20","children":[{"Right":"@10","Text":"@* 抄表册名称","HAlign":"@Right","VAlign":"@Center","type":"Text"},{"@Change":"stat.Call($addNewBookInfo$, $f_book_name$, e.Value)","type":"Input"},{"HAlign":"@Right","VAlign":"@Center","Right":"@10","type":"Text","Text":"@抄表员"},{"Classes":"@SelectWhite BorderRound","Data":"stat.Data.inputtorInfo","@Change":"stat.Call($addNewBookInfo$, $f_inputtor$, e.Value)","type":"Select"},{"HAlign":"@Right","VAlign":"@Center","Right":"@10","Text":"@所属公司","type":"Text"},{"@Change":"stat.Call($addNewBookInfo$, $f_filiale_name$, e.Value)","type":"Select","Classes":"@SelectWhite BorderRound","Data":"stat.Data.orgInfo"},{"PaddingBottom":"@6","Right":"@10","Text":"@公司","Top":"@10","HAlign":"@Right","VAlign":"@Center","type":"Text","PaddingTop":"@6"},{"type":"Text","Top":"@10","Text":"stat.Data.loginInfo.data.orgs","HAlign":"@Center","VAlign":"@Center"},{"HAlign":"@Right","VAlign":"@Center","type":"Text","Top":"@10","Right":"@10","Text":"@部门"},{"HAlign":"@Center","type":"Text","VAlign":"@Center","Top":"@10","Text":"stat.Data.loginInfo.data.deps"},{"Text":"@登陆人","HAlign":"@Right","VAlign":"@Center","type":"Text","Right":"@10","Top":"@10"},{"Text":"stat.Data.loginInfo.data.name","type":"Text","Top":"@10","HAlign":"@Center","VAlign":"@Center"},{"Top":"@10","Text":"@备注","PaddingTop":"@6","PaddingBottom":"@6","HAlign":"@Right","VAlign":"@Center","type":"Text","Right":"@10"},{"ColSpan":"@5","Top":"@10","@Change":"stat.Call($addNewBookInfo$, $f_book_remark$, e.Value)","type":"Input"}],"Background":"@#ffffff","PaddingTop":"@20"}],"type":"Grid"},"deleteMsg":{"children":[{"children":[{"PaddingLeft":"@100","PaddingRight":"@100","type":"Text","PaddingTop":"@70","PaddingBottom":"@70","VAlign":"@Center","Text":"$确认删除{stat.Data.deleteBookInfo.f_book_name}？$","HAlign":"@Center"}],"type":"Grid","Column":"@*","Background":"@#ffffff","Classes":"@NormalFontlight","HAlign":"@Center","VAlign":"@Center","Row":"@*"}],"type":"Grid","Column":"@*","Row":"@*"}}}
        TestDataComponent:
          {"template":{"type":"Grid","Column":"@300,1*","Row":"@1*","Background":"@#f5f7f9","children":[{"type":"Dock","Classes":"@BorderRect","Name":"@左边","Background":"@#ffffff","StrokeStyle":"@#dce0e3","children":[{"type":"Grid","Name":"@上边","Column":"@*,1*,*","Pos":"@Top","Bottom":"@1","PaddingRight":"@5","PaddingBottom":"@4","PaddingLeft":"@5","StrokeStyle":"@#dce0e3","Classes":"@BorderRect","children":[{"Slots":{"item":{"Path":"this.MouseIn:$searchhover$,$searchnormal$","Classes":"@SearchButtonImg","type":"Image"}},"type":"Button","Text":"@查询","@Click":"stat.Popup($SearchPlan$,stat,this,e.draw)"},{"type":"Stack","PaddingTop":"@8","PaddingBottom":"@4"},{"Classes":"@BorderRound","PaddingTop":"@5","@Click":"stat.Call($listBack$)","Slots":{"item":{"Path":"@back","type":"Image","Name":"Button_Image"}},"type":"Button"}],"PaddingTop":"@3","Row":"@*,*"},{"type":"Grid","Column":"@1*","Row":"@30,1*,0,*,0","Pos":"@Center","Classes":"@NormalFontlight","children":[{"type":"Text","Text":"stat.Data.selectCommunityInfo","VAlign":"@Center","HAlign":"@Center"},{"type":"Scroll","Slots":{"item":{"@Change":"stat.Call($checkCom$, e.Value.self)","Slots":{"item":{"type":"Stack","PaddingBottom":"@1","Width":"@300","Original":"@V","children":[{"PaddingTop":"@20","Column":"@42,1*,42,1*","PaddingLeft":"@10","PaddingRight":"@10","PaddingBottom":"@20","Row":"@20,20,20","children":[{"type":"Text","Font":"@15px 微软雅黑","Text":"data.name","ColSpan":"@4"},{"ColSpan":"@1","type":"Text","FillStyle":"@#4792de","Text":"@省份"},{"ColSpan":"@1","Text":"data.province","type":"Text","Classes":"@NormalFontHeavy"},{"FillStyle":"@#4792de","type":"Text","Text":"@地区"},{"type":"Text","Text":"data.district"},{"Text":"@街道","type":"Text","FillStyle":"@#4792de"},{"type":"Text","Text":"data.street"}],"type":"Grid"},{"StrokeStyle":"@#dce0e3","type":"Stack","Classes":"@BorderRect","Left":"@5","Right":"@5"}]}},"type":"List","Name":"@安检计划","Data":"stat.Data.listInfo"}}},{"StrokeStyle":"@#dfe4e7","Classes":"@BorderRect","Left":"@5","type":"Stack","Right":"@5"},{"type":"Grid","Row":"@1*","PaddingLeft":"@20","PaddingRight":"@20","PaddingTop":"@10","PaddingBottom":"@10","Column":"@1*,1*","children":[{"type":"Text","Text":"@"},{"type":"Button","HAlign":"@Right","FillStyle":"this.MouseIn:$#000000$,$#666666$","@Click":"stat.Call($loadMore$,$community$)","Slots":{"item":{"type":"Stack","Name":"LoadMoreButton_Stack","children":[{"Path":"@doubledown","type":"Image","VAlign":"@Bottom"},{"Text":"@更多","type":"Text","Left":"@4"}]}}}]},{"type":"Stack","StrokeStyle":"@#dfe4e7","Right":"@5","Left":"@5","Classes":"@BorderRect"}]}]},{"Classes":"@BorderRect","Name":"@右边","children":[{"type":"Grid","StrokeStyle":"@#dce0e3","PaddingLeft":"@5","Pos":"@Top","Column":"@1*,1*,*","Background":"@#ffffff","PaddingRight":"@5","PaddingBottom":"@4","Bottom":"@1","Classes":"@BorderRect","Row":"@*","PaddingTop":"@3","children":[{"type":"Text","Name":"@占位","Text":"@ "},{"type":"Text","Pos":"@Center","Text":"stat.Data.selectShow","VAlign":"@Center"},{"type":"Button","HAlign":"@Right","Text":"@打印","Classes":"@Button","@Click":"stat.Call($toHtml$)"}]},{"Row":"@1*","Background":"@#F7F7F7","Column":"@1*","Pos":"@Center","children":[{"type":"Scroll","Height":"@800","HAlign":"@Center","VAlign":"@Center","PaddingLeft":"@1","PaddingTop":"@1","Width":"@1000","Slots":{"item":{"SingleWidth":"@120","HAlign":"@Center","VAlign":"@Center","type":"DynamicTable","Data":"stat.Data.towerInfo","TierHeight":"@90"}}}],"type":"Grid"}],"type":"Dock","Background":"@#f5f7f9"}]},"Drag":{"deleteMsg":{"Row":"@*","children":[{"children":[{"PaddingTop":"@70","PaddingBottom":"@70","VAlign":"@Center","Text":"$确认删除{stat.Data.deleteBookInfo.f_book_name}？$","HAlign":"@Center","PaddingLeft":"@100","PaddingRight":"@100","type":"Text"}],"type":"Grid","Column":"@*","Background":"@#ffffff","Classes":"@NormalFontlight","HAlign":"@Center","VAlign":"@Center","Row":"@*"}],"type":"Grid","Column":"@*"},"upPlan":{"Row":"@*","children":[{"type":"Grid","PaddingBottom":"@20","PaddingRight":"@36","children":[{"HAlign":"@Right","VAlign":"@Center","type":"Text","Text":"@* 抄表册名","Right":"@10"},{"Value":"stat.Data.editBookInfo.f_book_name","@Change":"stat.Call($editBookInfos$,$f_book_name$,e.Value)","type":"Input"},{"HAlign":"@Right","VAlign":"@Center","type":"Text","Text":"@抄表员","Right":"@10"},{"type":"Select","Data":"stat.Data.inputtorInfo","Classes":"@SelectWhite BorderRound","Selected":"stat.Data.editBookInfo.f_inputtor","@Change":"stat.Call($editBookInfos$,$f_inputtor$,e.Value)"},{"type":"Text","Top":"@10","Text":"@所属公司","Right":"@10","HAlign":"@Right","VAlign":"@Center"},{"Top":"@10","Selected":"stat.Data.editBookInfo.f_filiale_name","Data":"stat.Data.orgInfo","@Change":"stat.Call($editBookInfos$,$f_filiale_name$,e.Value)","type":"Select","Classes":"@SelectWhite BorderRound"},{"Text":"@备注","Right":"@10","HAlign":"@Right","VAlign":"@Center","type":"Text","Top":"@10"},{"type":"Input","Value":"stat.Data.editBookInfo.f_book_remark","Top":"@10","@Change":"stat.Call($editBookInfos$,$f_book_remark$,e.Value)"}],"Classes":"@NormalFontlight","Column":"@80,170,80,170","PaddingLeft":"@20","PaddingTop":"@20","Row":"@*,*","Background":"@#ffffff"}],"type":"Grid","Column":"@*"},"SearchPlan":{"Classes":"@PopupSearch PopupShadow","children":[{"PaddingBottom":"@10","PaddingRight":"@20","children":[{"type":"Text","PaddingBottom":"@6","Classes":"@GridLabel","Text":"@小区名称"},{"Value":"stat.Data.community.search.model.name","@Change":"stat.Call($setProperty$, $community$, $name$, e.Value)","type":"Input"},{"Classes":"@GridLabel","type":"Text","PaddingBottom":"@6","PaddingTop":"@6","Text":"@街       道"},{"PaddingTop":"@6","@Change":"stat.Call($setProperty$, $community$, $street$, e.Value)","type":"Input","Value":"stat.Data.community.search.model.street"},{"type":"Stack","Top":"@20","ColSpan":"@2","HAlign":"@Center","children":[{"Text":"@取消","Classes":"@Button2","@Click":"stat.RestorePopup(this,e.draw)","type":"Button","Right":"@50"},{"type":"Button","Classes":"@Button","Text":"@查询","FillStyle":"@#ffffff","@Click":"stat.Call($searchCommunity$),stat.RestorePopup(this,e.draw)"}]}],"Classes":"@BorderRound NormalFont PopupSearch","type":"Grid","PaddingLeft":"@10","Row":"@*,*,*,*,*,*","PaddingTop":"@10","Column":"@70,170"}],"type":"Grid","Row":"@1*","Column":"@1*"},"drag":{"type":"Text","Text":"@"},"start":{"type":"Image","Path":"@drag"},"NewPlan":{"Column":"@*","Row":"@*","children":[{"PaddingRight":"@36","type":"Grid","Column":"@80,170,80,170,80,170","Background":"@#ffffff","PaddingTop":"@20","PaddingLeft":"@20","PaddingBottom":"@20","children":[{"VAlign":"@Center","type":"Text","Right":"@10","Text":"@* 抄表册名称","HAlign":"@Right"},{"@Change":"stat.Call($addNewBookInfo$, $f_book_name$, e.Value)","type":"Input"},{"Text":"@抄表员","HAlign":"@Right","VAlign":"@Center","Right":"@10","type":"Text"},{"type":"Select","Classes":"@SelectWhite BorderRound","Data":"stat.Data.inputtorInfo","@Change":"stat.Call($addNewBookInfo$, $f_inputtor$, e.Value)"},{"HAlign":"@Right","VAlign":"@Center","Right":"@10","Text":"@所属公司","type":"Text"},{"Classes":"@SelectWhite BorderRound","Data":"stat.Data.orgInfo","@Change":"stat.Call($addNewBookInfo$, $f_filiale_name$, e.Value)","type":"Select"},{"PaddingTop":"@6","PaddingBottom":"@6","Right":"@10","Text":"@公司","Top":"@10","HAlign":"@Right","VAlign":"@Center","type":"Text"},{"Top":"@10","Text":"stat.Data.loginInfo.data.orgs","HAlign":"@Center","VAlign":"@Center","type":"Text"},{"Text":"@部门","HAlign":"@Right","VAlign":"@Center","type":"Text","Top":"@10","Right":"@10"},{"HAlign":"@Center","type":"Text","VAlign":"@Center","Top":"@10","Text":"stat.Data.loginInfo.data.deps"},{"Text":"@登陆人","HAlign":"@Right","VAlign":"@Center","type":"Text","Right":"@10","Top":"@10"},{"VAlign":"@Center","Text":"stat.Data.loginInfo.data.name","type":"Text","Top":"@10","HAlign":"@Center"},{"PaddingTop":"@6","PaddingBottom":"@6","HAlign":"@Right","VAlign":"@Center","type":"Text","Right":"@10","Top":"@10","Text":"@备注"},{"type":"Input","ColSpan":"@5","Top":"@10","@Change":"stat.Call($addNewBookInfo$, $f_book_remark$, e.Value)"}],"Classes":"@NormalFontlight","Pos":"@Center","Row":"@*,*,*"}],"type":"Grid"}}}
      });
      loadWasm().then(() => {
        global.stat = new Comp()

        if (this.$login) {
          global.stat.loginInfo = this.$login.f
          console.log('登录信息', this.$login.f)
          console.log('stat',global.stat)
          console.log('login',global.stat.loginInfo)
        }
        global.stat.ready().then(() => {
          console.log(global.stat)
          run()
        })
      })
    }


}
</script>
