mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化开发者服务添加功能
This commit is contained in:
parent
7d9c683f2f
commit
b13d1a09f6
@ -42,7 +42,18 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" >
|
||||
|
||||
|
||||
<div class="form-group row" v-if="addServiceInfo.isInstance == 'T'" >
|
||||
<label class="col-sm-2 col-form-label">调用服务</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addServiceInfo.url">
|
||||
<option selected disabled value="">必填,请选择调用服务</option>
|
||||
<option v-for="(item,index) in addServiceInfo.services" :key="index" :value="item.statusCd">{{item.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" v-else>
|
||||
<label class="col-sm-2 col-form-label">调用地址</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="addServiceInfo.url" type="text" placeholder="选填,请填写调用地址"
|
||||
|
||||
@ -19,14 +19,18 @@
|
||||
timeout: '60',
|
||||
retryCount: '3',
|
||||
provideAppId: '8000418002',
|
||||
services:[]
|
||||
|
||||
}
|
||||
},
|
||||
_initMethod: function () {
|
||||
|
||||
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('addService', 'openAddServiceModal', function () {
|
||||
vc.getDict('c_service',"url",function(_data){
|
||||
vc.component.addServiceInfo.services = _data;
|
||||
});
|
||||
$('#addServiceModel').modal('show');
|
||||
});
|
||||
},
|
||||
@ -211,12 +215,13 @@
|
||||
businessTypeCd: 'API',
|
||||
seq: '1',
|
||||
messageQueueName: '',
|
||||
isInstance: 'Y',
|
||||
url: 'http://order-service/orderApi/service',
|
||||
isInstance: 'T',
|
||||
url: 'http://community-service',
|
||||
method: '',
|
||||
timeout: '60',
|
||||
retryCount: '3',
|
||||
provideAppId: '8000418002',
|
||||
services:[]
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@ -40,7 +40,16 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" >
|
||||
<div class="form-group row" v-if="editServiceInfo.isInstance == 'T'" >
|
||||
<label class="col-sm-2 col-form-label">调用服务</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="editServiceInfo.url">
|
||||
<option selected disabled value="">必填,请选择调用服务</option>
|
||||
<option v-for="(item,index) in editServiceInfo.services" :key="index" :value="item.statusCd">{{item.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" v-else>
|
||||
<label class="col-sm-2 col-form-label">调用地址</label>
|
||||
<div class="col-sm-10">
|
||||
<input v-model="editServiceInfo.url" type="text" placeholder="选填,请填写调用地址"
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
timeout: '60',
|
||||
retryCount: '3',
|
||||
provideAppId: '8000418002',
|
||||
services:[]
|
||||
|
||||
}
|
||||
},
|
||||
@ -24,9 +25,11 @@
|
||||
_initEvent: function () {
|
||||
vc.on('editService', 'openEditServiceModal', function (_params) {
|
||||
vc.component.refreshEditServiceInfo();
|
||||
vc.getDict('c_service',"url",function(_data){
|
||||
vc.component.editServiceInfo.services = _data;
|
||||
});
|
||||
$('#editServiceModel').modal('show');
|
||||
vc.copyObject(_params, vc.component.editServiceInfo);
|
||||
//vc.component.editServiceInfo.communityId = vc.getCurrentCommunity().communityId;
|
||||
|
||||
});
|
||||
},
|
||||
@ -203,13 +206,13 @@
|
||||
businessTypeCd: 'API',
|
||||
seq: '1',
|
||||
messageQueueName: '',
|
||||
isInstance: 'Y',
|
||||
url: 'http://order-service/orderApi/service',
|
||||
isInstance: 'T',
|
||||
url: 'http://community-service',
|
||||
method: '',
|
||||
timeout: '60',
|
||||
retryCount: '3',
|
||||
provideAppId: '8000418002',
|
||||
|
||||
services:[]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user