|
@@ -48,23 +48,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="描述" size="default">
|
|
|
- <el-select
|
|
|
- style="width: 100%"
|
|
|
+ <el-input
|
|
|
v-model="tableForm.columnDescribe"
|
|
|
- class="input-shadow"
|
|
|
- filterable
|
|
|
- default-first-option
|
|
|
- clearable
|
|
|
- placeholder="请选择"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in tableOptionser"
|
|
|
- :key="item.v ? item.v : item.planDepartureApt"
|
|
|
- :label="item.k ? item.k : item.planDepartureApt"
|
|
|
- :value="item.v ? item.v : item.planDepartureApt"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ placeholder="请输入描述"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -132,23 +119,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="数据类型" size="default">
|
|
|
- <el-select
|
|
|
- style="width: 100%"
|
|
|
+ <el-input
|
|
|
v-model="tableForm.dataType"
|
|
|
- class="input-shadow"
|
|
|
- filterable
|
|
|
- default-first-option
|
|
|
- clearable
|
|
|
- placeholder="请选择"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in tableOptionser"
|
|
|
- :key="item.v ? item.v : item.planDepartureApt"
|
|
|
- :label="item.k ? item.k : item.planDepartureApt"
|
|
|
- :value="item.v ? item.v : item.planDepartureApt"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ placeholder="请输入数据类型"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -260,7 +234,16 @@ const flag = ref<Boolean>(false); //弹窗开关
|
|
|
const type = ref<String>(""); //判断是否删除
|
|
|
const msgTitle = ref<String>("新增查询项"); //弹窗标题
|
|
|
const tableColsCopys = reactive<Object>({}); //弹窗
|
|
|
-const tableOptionser = ref<Array>([]); //弹窗下拉
|
|
|
+const tableOptionser = ref<Array>([
|
|
|
+ {
|
|
|
+ k: "是",
|
|
|
+ v: "1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ k: "否",
|
|
|
+ v: "0",
|
|
|
+ },
|
|
|
+]); //弹窗下拉
|
|
|
const tableForm = reactive({
|
|
|
queryTemplateColumnSetID: "",
|
|
|
queryTemplateID: route.query.queryTemplateID,
|
|
@@ -356,14 +339,15 @@ const btnClick = (row, index, param) => {
|
|
|
tableForm.columnName = index.columnName;
|
|
|
tableForm.columnLabel = index.columnLabel;
|
|
|
tableForm.columnDescribe = index.columnDescribe;
|
|
|
- tableForm.needSort = index.needSort;
|
|
|
- tableForm.needFilters = index.needFilters;
|
|
|
- tableForm.needShow = index.needShow;
|
|
|
- tableForm.needGroup = index.needGroup;
|
|
|
+ tableForm.needSort = index.needSort === "需要" ? "1" : "0";
|
|
|
+ tableForm.needFilters = index.needFilters === "需要" ? "1" : "0";
|
|
|
+ tableForm.needShow = index.needShow === "需要" ? "1" : "0";
|
|
|
+ tableForm.needGroup = index.needGroup === "需要" ? "1" : "0";
|
|
|
tableForm.dataType = index.dataType;
|
|
|
- tableForm.listqueryTemplateID = index.listqueryTemplateID;
|
|
|
- tableForm.needCount = index.needCount;
|
|
|
- tableForm.orderNumber = index.orderNumber;
|
|
|
+ tableForm.listqueryTemplateID =
|
|
|
+ index.listqueryTemplateID === "需要" ? "1" : "0";
|
|
|
+ tableForm.needCount = index.needCount === "需要" ? "1" : "0";
|
|
|
+ tableForm.orderNumber = index.orderNumber === "需要" ? "1" : "0";
|
|
|
tableForm.needSearch = index.needSearch;
|
|
|
} else if (param === 3) {
|
|
|
msgTitle.value = "删除查询项";
|