|
@@ -1,112 +1,47 @@
|
|
|
<template>
|
|
|
<div class="airportInfo scroll-y">
|
|
|
- <Minheader
|
|
|
- :is-statuser="true"
|
|
|
- :is-Preser="true"
|
|
|
- :is-Measure="true"
|
|
|
- @preserForm="preserForm"
|
|
|
- >
|
|
|
+ <Minheader :is-statuser="true" :is-Preser="true" :is-Measure="true" @preserForm="preserForm">
|
|
|
<template #header>
|
|
|
<div class="status flex-wrap">
|
|
|
<div class="manageTitle">新增查询模板</div>
|
|
|
</div>
|
|
|
- </template></Minheader
|
|
|
- >
|
|
|
+ </template>
|
|
|
+ </Minheader>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="ruleForm" :rules="formRules" ref="queryTemplateAddForm">
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item
|
|
|
- label="查询模板名称"
|
|
|
- size="default"
|
|
|
- prop="queryTemplateName"
|
|
|
- :rules="formRules.isNotNull"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="ruleForm.queryTemplateName"
|
|
|
- placeholder="请输入查询模板名称"
|
|
|
- />
|
|
|
+ <el-form-item label="查询模板名称" size="default" prop="queryTemplateName" :rules="formRules.isNotNull">
|
|
|
+ <el-input v-model="ruleForm.queryTemplateName" placeholder="请输入查询模板名称" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item
|
|
|
- label="数据源"
|
|
|
- prop="dataSourceID"
|
|
|
- size="default"
|
|
|
- :rules="formRules.isNotNull"
|
|
|
- >
|
|
|
- <el-select
|
|
|
- v-model="ruleForm.dataSourceID"
|
|
|
- placeholder="请选择"
|
|
|
- clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in dataSourceList"
|
|
|
- :key="item.dataSourceID"
|
|
|
- :label="item.dataSourceName"
|
|
|
- :value="item.dataSourceID"
|
|
|
- />
|
|
|
+ <el-form-item label="数据源" prop="dataSourceID" size="default" :rules="formRules.isNotNull">
|
|
|
+ <el-select v-model="ruleForm.dataSourceID" placeholder="请选择" clearable>
|
|
|
+ <el-option v-for="item in dataSourceList" :key="item.dataSourceID" :label="item.dataSourceName" :value="item.dataSourceID" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item
|
|
|
- label="服务名称"
|
|
|
- prop="serviceID"
|
|
|
- size="default"
|
|
|
- :rules="formRules.isNotNull"
|
|
|
- >
|
|
|
- <el-select
|
|
|
- v-model="ruleForm.serviceID"
|
|
|
- placeholder="请选择"
|
|
|
- clearable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in serviceList"
|
|
|
- :key="item.serviceID"
|
|
|
- :label="item.serviceName"
|
|
|
- :value="item.serviceID"
|
|
|
- />
|
|
|
+ <el-form-item label="服务名称" prop="serviceID" size="default">
|
|
|
+ <el-select v-model="ruleForm.serviceID" placeholder="请选择" clearable>
|
|
|
+ <el-option v-for="item in serviceList" :key="item.serviceID" :label="item.serviceName" :value="item.serviceID" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item
|
|
|
- label="每页显示"
|
|
|
- prop="pageRows"
|
|
|
- size="default"
|
|
|
- :rules="formRules.isNotNull"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="ruleForm.pageRows"
|
|
|
- size="medium"
|
|
|
- placeholder="请输入每页显示行数"
|
|
|
- type="number"
|
|
|
- clearable
|
|
|
- />
|
|
|
+ <el-form-item label="每页显示" prop="pageRows" size="default" :rules="formRules.isNotNull">
|
|
|
+ <el-input v-model="ruleForm.pageRows" size="medium" placeholder="请输入每页显示行数" type="number" clearable />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
<el-form-item label="查询模板描述" size="default">
|
|
|
- <el-input
|
|
|
- v-model="ruleForm.queryTemplateDescribe"
|
|
|
- placeholder="请输入查询模板描述"
|
|
|
- />
|
|
|
+ <el-input v-model="ruleForm.queryTemplateDescribe" placeholder="请输入查询模板描述" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
- <el-form-item
|
|
|
- label="查询语句"
|
|
|
- size="default"
|
|
|
- prop="queryTemplate"
|
|
|
- :rules="formRules.isNotNull"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- :autosize="{ minRows: 24, maxRows: 24 }"
|
|
|
- type="textarea"
|
|
|
- v-model="ruleForm.queryTemplate"
|
|
|
- placeholder="请输入查询语句"
|
|
|
- />
|
|
|
+ <el-form-item label="查询语句" size="default" prop="queryTemplate" :rules="formRules.isNotNull">
|
|
|
+ <el-input :autosize="{ minRows: 24, maxRows: 24 }" type="textarea" v-model="ruleForm.queryTemplate" placeholder="请输入查询语句" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|