<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model>
|
<DataType name="dtMain">
|
<Property name="creationType">com.ld.igds.models.AiSer</Property>
|
<PropertyDef name="id">
|
<Property></Property>
|
<Property name="label">SN</Property>
|
</PropertyDef>
|
<PropertyDef name="companyId">
|
<Property></Property>
|
<Property name="label">组织编码</Property>
|
</PropertyDef>
|
<PropertyDef name="deptId">
|
<Property></Property>
|
<Property name="label">所属分库</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("deptPR#loadParents").getResult()}</Property>
|
<Property name="keyProperty">id</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="name">
|
<Property></Property>
|
<Property name="label">设备名称</Property>
|
</PropertyDef>
|
<PropertyDef name="type">
|
<Property></Property>
|
<Property name="label">设备类型</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("aiSerPR#triggerAiSerType").getResult()}</Property>
|
<Property name="keyProperty">code</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="status">
|
<Property></Property>
|
<Property name="label">是否在线</Property>
|
<Property name="mapping">
|
<Property name="keyProperty">code</Property>
|
<Property name="valueProperty">name</Property>
|
<Property name="mapValues">
|
<Collection>
|
<Entity>
|
<Property name="code">Y</Property>
|
<Property name="name">是</Property>
|
</Entity>
|
<Entity>
|
<Property name="code">N</Property>
|
<Property name="name">否</Property>
|
</Entity>
|
</Collection>
|
</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="producer">
|
<Property name="label">厂商信息</Property>
|
</PropertyDef>
|
<PropertyDef name="remark">
|
<Property></Property>
|
<Property name="label">备注</Property>
|
</PropertyDef>
|
<PropertyDef name="updateTime">
|
<Property name="dataType">DateTime</Property>
|
<Property name="label">更新时间</Property>
|
</PropertyDef>
|
<PropertyDef name="errorMsg">
|
<Property name="label">异常信息</Property>
|
</PropertyDef>
|
</DataType>
|
<DataType name="dtParam">
|
<Property name="creationType">com.ld.igds.models.MWarnInfo</Property>
|
<PropertyDef name="type">
|
<Property></Property>
|
<Property name="label">类型</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("aiSerPR#triggerAiSerType").getResult()}</Property>
|
<Property name="keyProperty">code</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="id">
|
<Property></Property>
|
<Property name="label">SN</Property>
|
</PropertyDef>
|
<PropertyDef name="name">
|
<Property name="label">名称</Property>
|
</PropertyDef>
|
</DataType>
|
</Model>
|
<View layout="padding:5;regionPadding:5">
|
<ClientEvent name="onReady">addData = function(){
|
view.get("#dsMain").insert();
|
view.get("#dialogMain").set("caption","添加AI配置");
|

|
view.get("#dialogMain").show();
|
};</ClientEvent>
|
<Property name="packages">font-awesome,css-common</Property>
|
<Property name="cache">
|
<Property name="mode">clientSide</Property>
|
</Property>
|
<DataSet id="dsMain">
|
<Property name="parameter"></Property>
|
<Property name="dataType">[dtMain]</Property>
|
<Property name="dataProvider">aiSerPR#pageAllAiSer</Property>
|
<Property name="pageSize">15</Property>
|
</DataSet>
|
<DataSet id="dsParam">
|
<ClientEvent name="onReady">self.insert({});</ClientEvent>
|
<Property name="dataType">dtParam</Property>
|
</DataSet>
|
<Container layout="regionPadding:10" layoutConstraint="top">
|
<Property name="exClassName">bg-color</Property>
|
<Property name="height">55</Property>
|
<Property name="contentOverflow">hidden</Property>
|
<Label layoutConstraint="left">
|
<Property name="text">菜单栏:</Property>
|
</Label>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">addData();</ClientEvent>
|
<Property name="caption">新增</Property>
|
<Property name="exClassName">btn-normal</Property>
|
<Property name="iconClass">fa fa-plus</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">view.get("#dialogMain").set("caption","调整分机");
|
view.get("#dialogMain").show();</ClientEvent>
|
<Property name="caption">修改</Property>
|
<Property name="exClassName">btn-warm</Property>
|
<Property name="iconClass">fa fa-pencil</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
|
if(!data){
|
return;
|
}
|
view.get("#ajaxDel").set("parameter",data).execute(function(result){
|
if(result){
|
$alert(result);
|
return;
|
}else{
|
data.remove();
|
}
|
});</ClientEvent>
|
<Property name="caption">删除</Property>
|
<Property name="exClassName">btn-warn</Property>
|
<Property name="iconClass">fa fa-trash-o</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<Property name="caption">刷新缓存</Property>
|
<Property name="exClassName">btn-flush</Property>
|
<Property name="iconClass">fa fa-refresh</Property>
|
<Property name="action">ajaxRefreshCache</Property>
|
</Button>
|
</Container>
|
<Container layout="regionPadding:1" layoutConstraint="center">
|
<Property name="exClassName">bg-color</Property>
|
<AutoForm>
|
<Property name="cols">*,*,*,*</Property>
|
<Property name="dataSet">dsParam</Property>
|
<Property name="labelAlign">right</Property>
|
<Property name="labelSeparator">:</Property>
|
<Property name="labelWidth">100</Property>
|
<AutoFormElement>
|
<Property name="name">type</Property>
|
<Property name="property">type</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">id</Property>
|
<Property name="property">id</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">name</Property>
|
<Property name="property">name</Property>
|
<Editor/>
|
</AutoFormElement>
|
<Container layout="regionPadding:10">
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var param = view.get("#dsParam.data");
|
view.get("#dsMain").set("parameter",param.toJSON()).flushAsync();</ClientEvent>
|
<Property name="caption">查询</Property>
|
<Property name="exClassName">btn-normal</Property>
|
<Property name="iconClass">fa fa-search</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">view.get("#dsParam").setData({});</ClientEvent>
|
<Property name="caption">重置</Property>
|
<Property name="exClassName">btn-default</Property>
|
<Property name="iconClass">fa fa-refresh</Property>
|
</Button>
|
</Container>
|
</AutoForm>
|
<DataGrid layoutConstraint="center">
|
<ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
|
if(data){
|
view.get("#dialogMain").show();
|
}</ClientEvent>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="readOnly">true</Property>
|
<RowNumColumn>
|
<Property name="width">60</Property>
|
</RowNumColumn>
|
<DataColumn>
|
<Property name="property">deptId</Property>
|
<Property name="align">center</Property>
|
<Property name="name">deptId</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">id</Property>
|
<Property name="name">id</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="name">
|
<Property name="property">name</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn>
|
<Property name="property">type</Property>
|
<Property name="align">center</Property>
|
<Property name="name">type</Property>
|
</DataColumn>
|
<DataColumn>
|
<ClientEvent name="onRenderCell">arg.dom.style.background = arg.data.get("status")== 'Y' ?"":"#FF5722";
|
arg.processDefault = true;</ClientEvent>
|
<Property name="property">status</Property>
|
<Property name="align">center</Property>
|
<Property name="name">status</Property>
|
</DataColumn>
|
<DataColumn name="updateTime">
|
<Property name="property">updateTime</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
</DataGrid>
|
</Container>
|
<Container layoutConstraint="bottom">
|
<Property name="exClassName">bg-color</Property>
|
<DataPilot layoutConstraint="right">
|
<Property name="itemCodes">pageSize,pages</Property>
|
<Property name="dataSet">dsMain</Property>
|
</DataPilot>
|
</Container>
|
<Dialog id="dialogMain">
|
<ClientEvent name="onHide">//onDialogHide();</ClientEvent>
|
<Property name="width">900</Property>
|
<Property name="caption">AI服务器配置</Property>
|
<Property name="closeable">false</Property>
|
<Buttons>
|
<Button>
|
<ClientEvent name="onClick">var cur = view.get("#dsMain.data:#");
|
if(cur.validate() == 'ok'){
|
view.get("#updateMain").execute(function(){
|
view.get("#dialogMain").close();
|
});
|
}else{
|
$alert("数据校验失败!");
|
};</ClientEvent>
|
<Property name="caption">确定</Property>
|
<Property name="iconClass">fa fa-check</Property>
|
<Property name="exClassName">btn-normal</Property>
|
</Button>
|
<Button>
|
<ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
|
self.get("parent").hide();</ClientEvent>
|
<Property name="caption">取消</Property>
|
<Property name="iconClass">fa fa-times</Property>
|
<Property name="exClassName">btn-warn</Property>
|
</Button>
|
</Buttons>
|
<Children>
|
<AutoForm>
|
<Property name="dataSet">dsMain</Property>
|
<AutoFormElement>
|
<Property name="name">id</Property>
|
<Property name="property">id</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">deptId</Property>
|
<Property name="property">deptId</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">name</Property>
|
<Property name="property">name</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">type</Property>
|
<Property name="property">type</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">status</Property>
|
<Property name="property">status</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">updateTime</Property>
|
<Property name="property">updateTime</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:2">
|
<Property name="name">producer</Property>
|
<Property name="property">producer</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:2">
|
<Property name="name">remark</Property>
|
<Property name="property">remark</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<AjaxAction id="ajaxDel">
|
<Property name="service">aiSerPR#delAiSer</Property>
|
<Property name="confirmMessage">确定要删除吗?</Property>
|
<Property name="successMessage">删除成功!</Property>
|
</AjaxAction>
|
<AjaxAction id="ajaxRefreshCache">
|
<Property name="successMessage">刷新成功!</Property>
|
<Property name="confirmMessage">确定要刷新缓存么?</Property>
|
<Property name="service">aiSerPR#refreshCache</Property>
|
</AjaxAction>
|
<UpdateAction id="updateMain">
|
<Property name="dataResolver">aiSerPR#updateAiSer</Property>
|
<UpdateItem>
|
<Property name="dataPath">[#current]</Property>
|
<Property name="dataSet">dsMain</Property>
|
</UpdateItem>
|
</UpdateAction>
|
</View>
|
</ViewConfig>
|