|
@@ -49,7 +49,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="6">
|
|
|
+ <!-- <el-col :span="6">
|
|
|
<el-form-item label="服务名称" size="default">
|
|
|
<el-select
|
|
|
v-model="ruleForm.serviceID"
|
|
@@ -64,7 +64,7 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col :span="6">
|
|
|
<el-form-item
|
|
|
label="每页显示"
|
|
@@ -152,7 +152,7 @@ const preserFormer = async () => {
|
|
|
const res = await GeneralDataReception({
|
|
|
serviceId: SERVICE_ID.sysQueryTabId,
|
|
|
dataContent: JSON.stringify(params),
|
|
|
- btnAuth: 'add_query_template_button',
|
|
|
+ btnAuth: "add_query_template_button",
|
|
|
});
|
|
|
if (Number(res.code) === 0) {
|
|
|
ElMessage.success(`成功`);
|
|
@@ -168,14 +168,6 @@ const preserFormer = async () => {
|
|
|
}
|
|
|
// router.push({ path: "/systemSettings/queryTemplate" });
|
|
|
};
|
|
|
-const getDataSourceList = async () => {
|
|
|
- const dataSourceLists = await getSelectOption(13);
|
|
|
- dataSourceList.value = dataSourceLists.map((item) => {
|
|
|
- item[item.setlabel] = item.k;
|
|
|
- item[item.setvalue] = item.v;
|
|
|
- return item;
|
|
|
- });
|
|
|
-};
|
|
|
const getSelectOption = async (ID) => {
|
|
|
try {
|
|
|
const listValues = await myQuery(ID);
|
|
@@ -185,6 +177,14 @@ const getSelectOption = async (ID) => {
|
|
|
return [];
|
|
|
}
|
|
|
};
|
|
|
+const getDataSourceList = async () => {
|
|
|
+ const dataSourceLists = await getSelectOption("13");
|
|
|
+ dataSourceList.value = dataSourceLists.map((item) => {
|
|
|
+ item[item.setlabel] = item.k;
|
|
|
+ item[item.setvalue] = item.v;
|
|
|
+ return item;
|
|
|
+ });
|
|
|
+};
|
|
|
const queryServiceList = async (ID) => {
|
|
|
const serviceLists = await getSelectOption(DATACONTENT_ID.sysServiceTable);
|
|
|
serviceList.value = serviceLists.map((item) => {
|