组件域概念

This commit is contained in:
吴学文 2020-03-12 21:33:46 +08:00
parent b418efc7b2
commit a8dd6f16c3
25 changed files with 100 additions and 89 deletions

View File

@ -38,6 +38,9 @@
<script src="/js/plugins/summernote/summernote-bs4.min.js"></script>
<script src="/js/plugins/summernote/summernote-zh-CN.min.js"></script>
<script src="/js/plugins/xss/xss.min.js"></script>
<link href="/css/jquery.step.css" rel="stylesheet"/>
<script src="/js/jquery.step.min.js" ></script>
</head>
<body>
<vc:create name="bodyTop"></vc:create>

View File

@ -1,4 +1,4 @@
<div >
<div>
<div class="row">
<div class="col-lg-12">
<div class="ibox">
@ -15,41 +15,45 @@
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th>应用Id</th>
<th>应用名称</th>
<!-- <th>秘钥</th>-->
<th>白名单</th>
<th>黑名单</th>
<!-- <th>备注</th>-->
<th class="text-right">操作</th>
<tr>
<th>应用Id</th>
<th>应用名称</th>
<!-- <th>秘钥</th>-->
<th>白名单</th>
<th>黑名单</th>
<!-- <th>备注</th>-->
<th class="text-right">操作</th>
</tr>
</tr>
</thead>
<tbody>
<tr v-for="app in appManageInfo.apps">
<td>{{app.appId}}</td>
<td>{{app.name}}</td>
<!-- <td>{{app.securityCode}}</td>-->
<td>{{app.whileListIp}}</td>
<td>{{app.blackListIp}}</td>
<!-- <td>{{app.remark}}</td>-->
<td><div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openEditAppModel(app)">修改</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openDeleteAppModel(app)">删除</button>
</div></td>
<td>{{app.appId}}</td>
<td>{{app.name}}</td>
<!-- <td>{{app.securityCode}}</td>-->
<td>{{app.whileListIp}}</td>
<td>{{app.blackListIp}}</td>
<!-- <td>{{app.remark}}</td>-->
<td>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openEditAppModel(app)">修改</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openDeleteAppModel(app)">删除</button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
@ -59,11 +63,8 @@
</div>
</div>
<vc:create name="addApp"
callBackListener=""
callBackFunction=""
></vc:create>
<vc:create name="editApp"></vc:create>
<vc:create name="deleteApp"></vc:create>
<vc:create name="addApp" callBackListener="" callBackFunction="" domain="devComponents"></vc:create>
<vc:create name="editApp" domain="devComponents"></vc:create>
<vc:create name="deleteApp" domain="devComponents"></vc:create>
</div>
</div>

View File

@ -1,11 +1,11 @@
<div class="wrapper wrapper-content animated fadeInRight ecommerce">
<div class="wrapper wrapper-content animated fadeInRight ecommerce">
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>查询条件</h5>
<div class="ibox-tools" style="top:10px;">
<!-- <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
<!-- <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
v-on:click="_moreCondition()">更多
</button>-->
</div>
@ -16,24 +16,24 @@
<div class="col-sm-4">
<div class="form-group">
<input type="text" placeholder="请输入服务名称"
v-model="serviceManageInfo.conditions.serviceName" class=" form-control">
v-model="serviceManageInfo.conditions.serviceName" class=" form-control">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<input type="text" placeholder="请输入服务编码"
v-model="serviceManageInfo.conditions.serviceCode" class=" form-control">
v-model="serviceManageInfo.conditions.serviceCode" class=" form-control">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input type="text" placeholder="请输入调用地址"
v-model="serviceManageInfo.conditions.serviceUrl" class=" form-control">
v-model="serviceManageInfo.conditions.serviceUrl" class=" form-control">
</div>
</div>
<div class="col-sm-1">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryServiceMethod()"><i
class="glyphicon glyphicon-search" ></i> 查询
class="glyphicon glyphicon-search"></i> 查询
</button>
</div>
@ -58,52 +58,52 @@
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny"
data-page-size="15"
style="table-layout: fixed;word-break:break-all;"
>
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15"
style="table-layout: fixed;word-break:break-all;">
<thead>
<tr>
<th class="text-center">服务ID</th>
<th class="text-center">服务名称</th>
<th class="text-center">服务编码</th>
<th class="text-center">消息队列</th>
<th class="text-center">调用地址</th>
<th class="text-center">调用方式</th>
<th class="text-center">操作</th>
<tr>
<th class="text-center">服务ID</th>
<th class="text-center">服务名称</th>
<th class="text-center">服务编码</th>
<th class="text-center">消息队列</th>
<th class="text-center">调用地址</th>
<th class="text-center">调用方式</th>
<th class="text-center">操作</th>
</tr>
</tr>
</thead>
<tbody>
<tr v-for="service in serviceManageInfo.services">
<td class="text-center">{{service.serviceId}}</td>
<td class="text-center">{{service.name}}</td>
<td class="text-center">{{service.serviceCode}}</td>
<td class="text-center">{{service.messageQueueName}}</td>
<td class="text-center">{{service.url}}</td>
<td class="text-center">{{service.method}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openEditServiceModel(service)">
修改
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openDeleteServiceModel(service)">
删除
</button>
</div>
</td>
<tr v-for="service in serviceManageInfo.services">
<td class="text-center">{{service.serviceId}}</td>
<td class="text-center">{{service.name}}</td>
<td class="text-center">{{service.serviceCode}}</td>
<td class="text-center">{{service.messageQueueName}}</td>
<td class="text-center">{{service.url}}</td>
<td class="text-center">{{service.method}}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openEditServiceModel(service)">
修改
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openDeleteServiceModel(service)">
删除
</button>
</div>
</td>
</tr>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
@ -119,11 +119,8 @@
></vc:create>-->
<vc:create name="addService"
callBackListener=""
callBackFunction=""
></vc:create>
<vc:create name="editService"></vc:create>
<vc:create name="deleteService"></vc:create>
<vc:create name="addService" callBackListener="" callBackFunction="" domain="devComponents"></vc:create>
<vc:create name="editService" domain="devComponents"></vc:create>
<vc:create name="deleteService" domain="devComponents"></vc:create>
</div>
</div>

View File

@ -130,9 +130,10 @@
<vc:create name="chooseApp"
emitChooseApp="serviceRegisterManage"
emitLoadData="serviceRegisterManage"
domain="devComponents"
></vc:create>
<vc:create name="editServiceRegister"></vc:create>
<vc:create name="deleteServiceRegister"></vc:create>
<vc:create name="editServiceRegister" domain="devComponents"></vc:create>
<vc:create name="deleteServiceRegister" domain="devComponents"></vc:create>
</div>

View File

@ -63,11 +63,14 @@
<vc:create name="addApp"
callBackListener="viewAppInfo"
callBackFunction="chooseApp"
domain="devComponents"
></vc:create>
<vc:create name="chooseApp"
emitChooseApp="viewAppInfo"
emitLoadData="viewAppInfo"
domain="devComponents"
></vc:create>
</div>

View File

@ -84,6 +84,7 @@
<vc:create name="addService"
callBackListener="viewServiceInfo"
callBackFunction="chooseService"
domain="devComponents"
></vc:create>

View File

@ -348,7 +348,12 @@
let _htmlBody = '';
let _jsBody = '';
if (!vcFramework.isNotNull(_cacheComponent)) {
var filePath = '/components/' + _componentName + '/' + _componentName;
let _domain = 'components';
if(_tree.vcCreate.hasAttribute("domain")){
_domain = _tree.vcCreate.getAttribute("domain");
}
var filePath = '/'+_domain+'/' + _componentName + '/' + _componentName;
var htmlFilePath = filePath + ".html";
var jsFilePath = filePath + ".js";
//加载html 页面
@ -476,7 +481,7 @@
dealJsPropTypesDefault = function (typeValue) {
let startPos = typeValue.indexOf("=") + 1;
let endPos = typeValue.length();
let endPos = typeValue.length;
if (typeValue.indexOf(",") > 0) {
endPos = typeValue.indexOf(",");
} else if (typeValue.indexOf("//") > 0) {