|
|
|
|
@ -430,7 +430,6 @@ const delData = () => {
|
|
|
|
|
constructionDataFormVisible.value = true;
|
|
|
|
|
};
|
|
|
|
|
const editDataSource = (e) => {
|
|
|
|
|
console.log(e);
|
|
|
|
|
if (e.responseType === '1' || !e.responseType) {
|
|
|
|
|
constructionDataFormVisible.value = true;
|
|
|
|
|
constructionDataForm.value = e;
|
|
|
|
|
@ -573,7 +572,12 @@ const findTier = () => {
|
|
|
|
|
const sqlFindTier = () => {
|
|
|
|
|
addSQLForm.value.designDataFieldList = [];
|
|
|
|
|
if (addSQLForm.value.isPage) {
|
|
|
|
|
querySql1({ sql: addSQLForm.value.SQL, linkId: addSQLForm.value.db, pageSize: 10, pageNum: 1 }).then((res) => {
|
|
|
|
|
querySql1({
|
|
|
|
|
sql: addSQLForm.value.SQL.replace(/\n/g, ' '),
|
|
|
|
|
linkId: addSQLForm.value.db,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
pageNum: 1
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
let data = res.data || {};
|
|
|
|
|
Object.keys(data.rows?.[0]).forEach(key => {
|
|
|
|
|
addSQLForm.value.designDataFieldList.push({
|
|
|
|
|
|