| | |
| | | <Property name="label">更新人</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="imgId"> |
| | | <PropertyDef name="imgPath"> |
| | | <Property></Property> |
| | | <Property name="label">鸟瞰图id</Property> |
| | | <Property name="label">图路径</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="imgName"> |
| | | <Property></Property> |
| | |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onClick">/**
 |
| | | <ClientEvent name="onClick"> |
| | | /**
 |
| | | * 预览图片
 |
| | | */
 |
| | | showImg = function(){
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | var imgName = cur.get("imgId");
 |
| | | var imgName = cur.get("imgName");
 |
| | | if(!imgName){
 |
| | | $alert("没有上传视频信息,无法预览。");
 |
| | | $alert("没有上传鸟瞰图信息,无法预览。");
 |
| | | return;
 |
| | | }
 |
| | | var id = cur.get("id");
 |
| | | var imgPath = cur.get("imgPath");
 |
| | | 
 |
| | | view.get("#iFrameImg").set("path", "./basic/file/dept-img?id=" + id);
 |
| | | view.get("#iFrameImg").set("path", "/file/dept-img?imgPath=" + imgPath);
 |
| | | view.get("#dialogImg").show();
 |
| | | 
 |
| | | };</ClientEvent> |
| | |
| | | <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 |
| | | </ClientEvent> |
| | | <Property name="caption">刷新</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </ToolBarButton> |
| | |
| | | view.get("#dialogMain").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | <Property name="caption">保存</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | |
| | | <Container> |
| | | <Button layoutConstraint="left"> |
| | | <Property name="action">uploadFileImg</Property> |
| | | <Property name="caption">鸟瞰图上传...</Property> |
| | | <Property name="caption">鸟瞰图上传</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-cloud-upload</Property> |
| | | </Button> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="width">10px</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">showImg();</ClientEvent> |
| | | <Property name="caption">鸟瞰图预览</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-picture-o</Property> |
| | | </Button> |
| | | </Container> |
| | | <Link> |
| | |
| | | </Container> |
| | | </CustomDropDown> |
| | | <UploadAction id="uploadFileImg"> |
| | | <ClientEvent name="onFileUploaded">var imgId = arg.returnValue;
 |
| | | <ClientEvent name="onFileUploaded">var imgPath = arg.returnValue;
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("imgId",imgId);
 |
| | | data.set("imgPath",imgPath);
 |
| | | data.set("imgName",arg.file.name);</ClientEvent> |
| | | <Property name="fileResolver">fileUploadManage#imgFile</Property> |
| | | <Property name="maxFileSize">50MB</Property> |