|
@@ -17,6 +17,10 @@
|
|
|
<a @click="() => edit(record)">编辑</a>
|
|
<a @click="() => edit(record)">编辑</a>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template v-if="column.dataIndex === 'queryType'">
|
|
|
|
|
+ <span v-show="text=='0'">SQL</span>
|
|
|
|
|
+ <span v-show="text=='1'">接口</span>
|
|
|
|
|
+ </template>
|
|
|
</template>
|
|
</template>
|
|
|
</a-table>
|
|
</a-table>
|
|
|
|
|
|
|
@@ -34,10 +38,23 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
<a-row class="top-row">
|
|
<a-row class="top-row">
|
|
|
- <a-col :span="2"> 查询SQL</a-col>
|
|
|
|
|
|
|
+ <a-col :span="2"> 查询类型</a-col>
|
|
|
<a-col :span="22">
|
|
<a-col :span="22">
|
|
|
|
|
+ <a-radio-group v-model:value="record.queryType">
|
|
|
|
|
+ <a-radio-button value="0">SQL</a-radio-button>
|
|
|
|
|
+ <a-radio-button value="1">接口</a-radio-button>
|
|
|
|
|
+ </a-radio-group>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row class="top-row">
|
|
|
|
|
+ <a-col v-show="record.queryType=='0'" :span="2"> 查询SQL</a-col>
|
|
|
|
|
+ <a-col v-show="record.queryType=='1'" :span="2"> 查询接口</a-col>
|
|
|
|
|
+ <a-col v-show="record.queryType=='0'" :span="22">
|
|
|
<a-textarea v-model:value="record.querySql" :rows="8"></a-textarea>
|
|
<a-textarea v-model:value="record.querySql" :rows="8"></a-textarea>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
+ <a-col v-show="record.queryType=='1'" :span="22">
|
|
|
|
|
+ <a-input v-model:value="record.querySql" placeholder="示例(全局搜索后端“/queryTest”):/setting/engine/queryTest" ></a-input>
|
|
|
|
|
+ </a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
<a-button class="addBtn" @click="addChild">新增子项</a-button>
|
|
<a-button class="addBtn" @click="addChild">新增子项</a-button>
|
|
|
<a-table size="small" :columns="columnsZi" :data-source="dataZi" bordered :pagination="false">
|
|
<a-table size="small" :columns="columnsZi" :data-source="dataZi" bordered :pagination="false">
|
|
@@ -112,7 +129,12 @@ const columns = [
|
|
|
width: '20%',
|
|
width: '20%',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- title: '查询服务SQL',
|
|
|
|
|
|
|
+ title: '查询服务类型',
|
|
|
|
|
+ dataIndex: 'queryType',
|
|
|
|
|
+ width: '20%',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '查询服务SQL/接口',
|
|
|
dataIndex: 'querySql',
|
|
dataIndex: 'querySql',
|
|
|
width: '30%',
|
|
width: '30%',
|
|
|
},
|
|
},
|
|
@@ -169,6 +191,7 @@ export default {
|
|
|
this.record = {
|
|
this.record = {
|
|
|
queryName: '',
|
|
queryName: '',
|
|
|
queryCode: '',
|
|
queryCode: '',
|
|
|
|
|
+ queryType: '',
|
|
|
querySql: '',
|
|
querySql: '',
|
|
|
queryColumnList: [
|
|
queryColumnList: [
|
|
|
{
|
|
{
|