song-tianyang 2021-09-23 16:22:35 +08:00 committed by song-tianyang
parent 8d53378626
commit fbfab6b1f3
4 changed files with 18 additions and 7 deletions

View File

@ -34,7 +34,7 @@ public class TCPServer implements Runnable {
}
public boolean isSocketOpen(){
if (this.serverSocket != null && !this.serverSocket.isClosed() &&this.servicer != null) {
if (this.serverSocket != null && !this.serverSocket.isClosed()) {
return true;
}else {
return false;

View File

@ -600,7 +600,7 @@
update api_test_case
set original_status=status,
status = 'Trash',delete_time = #{deleteTime},delete_user_id = #{deleteUserId}
where id IN
where status != 'Trash' AND id IN
<foreach collection="ids" item="v" separator="," open="(" close=")">
#{v}
</foreach>

View File

@ -109,7 +109,7 @@
},
created() {
if(!this.environment.config.preProcessor){
this.environment.config.preProcessor = createComponent("JDBCPreProcessor");
this.environment.config.preProcessor = createComponent("JSR223PreProcessor");
}
if(!this.environment.config.postProcessor){
this.environment.config.postProcessor = createComponent("JSR223PostProcessor");
@ -125,7 +125,7 @@
watch: {
environment: function (o) {
if(!this.environment.config.preProcessor){
this.environment.config.preProcessor = createComponent("JDBCPreProcessor");
this.environment.config.preProcessor = createComponent("JSR223PreProcessor");
if(!this.environment.config.preProcessor.script){
this.environment.config.preProcessor.script = "";
}

View File

@ -39,10 +39,10 @@
</el-col>
</el-row>
<template v-if="!hidden&&pickValue.properties && !isArray">
<json-schema-editor v-for="(item,key,index) in pickValue.properties" :value="{[key]:item}" :parent="pickValue" :key="index" :deep="deep+1" :root="false" class="children" :lang="lang" :custom="custom" @changeAllItemsType="changeAllItemsType"/>
<template v-if="!hidden&&pickValue.properties && !isArray && reloadItemOver">
<json-schema-editor v-for="(item,key,index) in pickValue.properties" :value="{[key]:item}" :parent="pickValue" :key="index" :deep="deep+1" :root="false" class="children" :lang="lang" :custom="custom" @changeAllItemsType="changeAllItemsType" @reloadItems="reloadItems"/>
</template>
<template v-if="isArray">
<template v-if="isArray && reloadItemOver">
<!-- <json-schema-editor :value="{items:pickValue.items}" :deep="deep+1" disabled isItem :root="false" class="children" :lang="lang" :custom="custom"/>-->
<json-schema-editor v-for="(item,key,index) in pickValue.items" :value="{[key]:item}" :parent="pickValue" :key="index" :deep="deep+1" :root="false" class="children" :lang="lang" :custom="custom" @changeAllItemsType="changeAllItemsType"/>
</template>
@ -199,6 +199,7 @@
hidden: false,
countAdd: 1,
modalVisible: false,
reloadItemOver: true,
advancedValue: {},
addProp: {},//
customProps: [],
@ -322,6 +323,7 @@
required.length === 0 && this.$delete(this.parent, 'required')
}
}
this.parentReloadItems();
},
_joinName() {
return `feild_${this.deep}_${this.countAdd++}_${getUUID().substring(0, 5)}`
@ -349,6 +351,15 @@
for (const item of this.customProps) {
this.$set(this.pickValue, item.key, item.value)
}
},
parentReloadItems(){
this.$emit("reloadItems");
},
reloadItems(){
this.reloadItemOver = false;
this.$nextTick(() => {
this.reloadItemOver = true;
})
}
}
}