sige 1 year ago
parent
commit
bf1ac784ee
  1. 12
      src/components/ServiceConfigurationParamValueObjectEdit.vue

12
src/components/ServiceConfigurationParamValueObjectEdit.vue

@ -15,6 +15,12 @@
size="small" class="w-full !border-none" size="small" class="w-full !border-none"
v-model:value="record.value" v-model:value="record.value"
></a-input-number> ></a-input-number>
<!-- Double -->
<a-input-number v-if="'java.lang.Double' === record.type"
size="small" class="w-full !border-none" :step="0.01"
v-model:value="record.value"
></a-input-number>
</template> </template>
</template> </template>
</a-table> </a-table>
@ -46,12 +52,14 @@ onMounted(mounted);
// on mounted // on mounted
async function mounted() { async function mounted() {
tableData.value = await setupTableData(props.structClassName);
let structClassName = props.structClassName;
tableData.value = await setupTableData(structClassName);
} }
// setup tree data // setup tree data
async function setupTableData(structClassName, path=[]) { async function setupTableData(structClassName, path=[]) {
let baseTypes = ['java.lang.Integer'];
console.log(`setup for : ${0===path.length ? '' : path.join('.')+'.'}${structClassName}`);
let baseTypes = ['java.lang.Integer','java.lang.Double'];
let client = ApiClient.getClient(); let client = ApiClient.getClient();
try { try {

Loading…
Cancel
Save