ci/cd
This commit is contained in:
@@ -75,7 +75,6 @@
|
||||
:lazy="true"
|
||||
ref="singleTable"
|
||||
v-loading="loading"
|
||||
@select="handleSelect"
|
||||
v-tabh
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
@@ -320,15 +319,15 @@ const handleMoreDelete = (adapterIds) => {
|
||||
};
|
||||
|
||||
//勾选table数据行事件
|
||||
const handleSelect = async (selection) => {
|
||||
if (selection.length !== 0) {
|
||||
disabled.value = false;
|
||||
adapterIds.value = selection.map((item) => item.adapterId).join();
|
||||
adapterNameList.value = selection.map((item) => item.adapterName).join();
|
||||
} else {
|
||||
disabled.value = true;
|
||||
}
|
||||
};
|
||||
// const handleSelect = async (selection) => {
|
||||
// if (selection.length !== 0) {
|
||||
// disabled.value = false;
|
||||
// adapterIds.value = selection.map((item) => item.adapterId).join();
|
||||
// adapterNameList.value = selection.map((item) => item.adapterName).join();
|
||||
// } else {
|
||||
// disabled.value = true;
|
||||
// }
|
||||
// };
|
||||
|
||||
//取消
|
||||
const handleCancel = () => {
|
||||
@@ -371,6 +370,16 @@ const handleSizeChange = async (val) => {
|
||||
await getList();
|
||||
};
|
||||
|
||||
//重置搜索
|
||||
const handleReset = () => {
|
||||
console.log("重置~~");
|
||||
};
|
||||
|
||||
// 导出
|
||||
const handleExport = () => {
|
||||
console.log("导出~~");
|
||||
};
|
||||
|
||||
//点击页码进行分页功能
|
||||
const handleCurrentChange = async (val) => {
|
||||
pageInfo.pageNum = val;
|
||||
|
||||
@@ -67,7 +67,6 @@
|
||||
:lazy="true"
|
||||
ref="singleTable"
|
||||
v-loading="loading"
|
||||
@select="handleSelect"
|
||||
v-tabh
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
@@ -110,11 +109,11 @@
|
||||
{{ scope.row.remark || "--" }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="240" align="center">
|
||||
<el-table-column label="操作" width="350" align="center">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
size="small"
|
||||
v-perm="['query:adapter:edit']"
|
||||
@click="handleEdit(scope.row.adapterId)"
|
||||
link
|
||||
@@ -122,7 +121,7 @@
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
size="small"
|
||||
@click="handleEdit(scope.row)"
|
||||
link
|
||||
>编辑
|
||||
@@ -130,11 +129,19 @@
|
||||
<el-button
|
||||
v-if="scope.row.createDataAdapter"
|
||||
type="primary"
|
||||
size="mini"
|
||||
size="small"
|
||||
@click="handleDesign(scope.row)"
|
||||
link
|
||||
>设计
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="scope.row.createDataAdapter"
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="handlePublish(scope.row.portalId)"
|
||||
link
|
||||
>上线
|
||||
</el-button>
|
||||
<popover-delete
|
||||
:name="scope.row.portalName"
|
||||
:type="'接口'"
|
||||
@@ -324,6 +331,7 @@ import {
|
||||
getPortalDetail,
|
||||
updatePortal,
|
||||
deletePortal,
|
||||
publishPortal,
|
||||
} from "@/api/custom-query/portal.js";
|
||||
import Tag from "@/components/Tag.vue";
|
||||
import { ElMessage, ElMessageBox } from "element-plus";
|
||||
@@ -581,7 +589,21 @@ const routerToAdapter = (adapterId, portalId) => {
|
||||
});
|
||||
};
|
||||
|
||||
//提交
|
||||
// 发布接口
|
||||
const handlePublish = async (portalId) => {
|
||||
try {
|
||||
const { code, msg } = await publishPortal({
|
||||
portalId,
|
||||
});
|
||||
if (code === 1000) {
|
||||
ElMessage({ type: "success", message: "发布成功" });
|
||||
}
|
||||
} catch (err) {
|
||||
console.log("Publish Failed:", err);
|
||||
}
|
||||
};
|
||||
|
||||
// 提交
|
||||
const handleSubmit = async (instance) => {
|
||||
await instance.validate((success, fields) => {
|
||||
if (success) {
|
||||
@@ -673,6 +695,11 @@ const handleSelectQueryDetail = async (queryId) => {
|
||||
}
|
||||
};
|
||||
|
||||
//重置搜索
|
||||
const handleReset = () => {
|
||||
console.log("重置~~");
|
||||
};
|
||||
|
||||
// 适配器来源切换
|
||||
const handleAdapterRadioChange = () => {
|
||||
form.dataAdapter.type = null;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<el-col :span="6">
|
||||
<div class="home-top-right">
|
||||
<el-image :src="coffee" style="height: 100px"/>
|
||||
<span>SmartOpsWeb </span>
|
||||
<span>FateVerse 缘境系统</span>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
:rules="rules"
|
||||
label-width="65px"
|
||||
>
|
||||
<h3>SmartOpsWeb</h3>
|
||||
<h3>FateVerse</h3>
|
||||
<el-form-item prop="username" label="账号">
|
||||
<el-input v-model="loginForm.username" :prefix-icon="User" ></el-input>
|
||||
</el-form-item>
|
||||
|
||||
@@ -255,7 +255,7 @@ const handleEdit = async (configId) => {
|
||||
}
|
||||
//导出excel
|
||||
const handleExport = () => {
|
||||
downLoadExcel('/admin/config/export', {...queryParams})
|
||||
downLoadExcel('/config/export', {...queryParams})
|
||||
}
|
||||
|
||||
//勾选table数据行的 Checkbox
|
||||
|
||||
@@ -72,7 +72,7 @@ const data = reactive({
|
||||
currentRender: ({row, index}) => {
|
||||
return (
|
||||
<div>
|
||||
<el-Button type={'primary'} link
|
||||
<el-Button type={'primary'} link
|
||||
onClick={()=>handleEdit(row)}
|
||||
>
|
||||
编辑
|
||||
@@ -83,7 +83,7 @@ const data = reactive({
|
||||
}
|
||||
}
|
||||
],
|
||||
api: '/admin/ip/back',
|
||||
api: '/ip/back',
|
||||
params: {}
|
||||
},
|
||||
// search
|
||||
@@ -181,7 +181,7 @@ const search = (val) => {
|
||||
if(val.dateValue) {
|
||||
params.startTime = val.dateValue[0]
|
||||
params.endTime = val.dateValue[1]
|
||||
}
|
||||
}
|
||||
delete params.dateValue
|
||||
data.tableConfig.params = params
|
||||
tableIns.value.refresh()
|
||||
@@ -208,11 +208,11 @@ const handleCancel = () => {
|
||||
|
||||
const handleExport = () => {
|
||||
const baseQuery = tableIns.value.getQuery()
|
||||
downLoadExcel('/admin/ip/back/export', {...baseQuery, ...data.tableConfig.params})
|
||||
downLoadExcel('/ip/back/export', {...baseQuery, ...data.tableConfig.params})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -558,7 +558,7 @@ const handleDictDataSubmit = async (instance) => {
|
||||
|
||||
//导出excel
|
||||
const handleExport = () => {
|
||||
downLoadExcel("/admin/dict/type/export", {...queryType});
|
||||
downLoadExcel("/dict/type/export", {...queryType});
|
||||
};
|
||||
|
||||
//切换每页显示条数
|
||||
|
||||
@@ -172,7 +172,7 @@ const handleCancel = () => {
|
||||
}
|
||||
|
||||
const handleExport = () => {
|
||||
downLoadExcel('/admin/ip/back/export', {...queryParams})
|
||||
downLoadExcel('/ip/back/export', {...queryParams})
|
||||
}
|
||||
|
||||
//切换每页显示条数
|
||||
|
||||
Reference in New Issue
Block a user