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