forked from github/dataease
fix: eslint报错 数据参考修复
This commit is contained in:
parent
1b4a0cfb98
commit
3f086add3a
@ -1437,7 +1437,7 @@ export default {
|
|||||||
field_rename: 'Rename Field',
|
field_rename: 'Rename Field',
|
||||||
params_work: 'Effective only when editing SQL',
|
params_work: 'Effective only when editing SQL',
|
||||||
sql_variable_limit_1: '1、SQL variables can only be used in where conditions',
|
sql_variable_limit_1: '1、SQL variables can only be used in where conditions',
|
||||||
sql_variable_limit_2: "2、Example:select * from table_name where column_name1='${parm_name1}' and column_name2 in '${parm_name2}'",
|
sql_variable_limit_2: "2、Example:select * from table_name where column_name1='${param_name1}' and column_name2 in '${param_name2}'",
|
||||||
select_year: 'Select Year',
|
select_year: 'Select Year',
|
||||||
select_month: 'Select Month',
|
select_month: 'Select Month',
|
||||||
select_date: 'Select Date',
|
select_date: 'Select Date',
|
||||||
|
@ -1437,7 +1437,7 @@ export default {
|
|||||||
field_rename: '字段重命名',
|
field_rename: '字段重命名',
|
||||||
params_work: '僅在編輯 sql 時生效',
|
params_work: '僅在編輯 sql 時生效',
|
||||||
sql_variable_limit_1: '1、SQL變數只能在WHERE條件中使用',
|
sql_variable_limit_1: '1、SQL變數只能在WHERE條件中使用',
|
||||||
sql_variable_limit_2: "2、示例:select * from table_name where column_name1='${parm_name1}' and column_name2 in '${parm_name2}'",
|
sql_variable_limit_2: "2、示例:select * from table_name where column_name1='${param_name1}' and column_name2 in '${param_name2}'",
|
||||||
selesql_variable_limit_2ct_year: '選擇年',
|
selesql_variable_limit_2ct_year: '選擇年',
|
||||||
select_month: '選擇月',
|
select_month: '選擇月',
|
||||||
select_date: '選擇日期',
|
select_date: '選擇日期',
|
||||||
|
@ -1437,7 +1437,7 @@ export default {
|
|||||||
params_work: '仅在编辑sql时生效',
|
params_work: '仅在编辑sql时生效',
|
||||||
select_year: '选择年',
|
select_year: '选择年',
|
||||||
sql_variable_limit_1: '1、SQL 变量只能在 WHERE 条件中使用',
|
sql_variable_limit_1: '1、SQL 变量只能在 WHERE 条件中使用',
|
||||||
sql_variable_limit_2: "2、示例:select * from table_name where column_name1='${parm_name1}' and column_name2 in '${parm_name2}'",
|
sql_variable_limit_2: "2、示例:select * from table_name where column_name1='${param_name1}' and column_name2 in '${param_name2}'",
|
||||||
select_month: '选择月',
|
select_month: '选择月',
|
||||||
select_date: '选择日期',
|
select_date: '选择日期',
|
||||||
select_time: '选择时间',
|
select_time: '选择时间',
|
||||||
|
@ -263,7 +263,7 @@
|
|||||||
:title="dialogTitle"
|
:title="dialogTitle"
|
||||||
:visible.sync="showVariableMgm"
|
:visible.sync="showVariableMgm"
|
||||||
custom-class="de-user-drawer sql-dataset-drawer"
|
custom-class="de-user-drawer sql-dataset-drawer"
|
||||||
size="840px"
|
size="870px"
|
||||||
direction="rtl"
|
direction="rtl"
|
||||||
>
|
>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@ -868,7 +868,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
height: 62px;
|
height: 62px;
|
||||||
width: 792px;
|
width: 822px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: #e1eaff;
|
background: #e1eaff;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
>
|
>
|
||||||
<el-tree
|
<el-tree
|
||||||
ref="topTree"
|
ref="topTree"
|
||||||
:data="data"
|
:data="treeData"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
:highlight-current="true"
|
:highlight-current="true"
|
||||||
node-key="name"
|
node-key="name"
|
||||||
@ -109,7 +109,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
data: [],
|
treeData: [],
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: 'children',
|
children: 'children',
|
||||||
label: 'name'
|
label: 'name'
|
||||||
@ -126,7 +126,7 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
bus.$on('refresh-my-share-out', this.refreshMyShareOut)
|
bus.$on('refresh-my-share-out', this.refreshMyShareOut)
|
||||||
this.initData().then(res => {
|
this.initData().then(res => {
|
||||||
this.data = res.data
|
this.treeData = res.data
|
||||||
if (this.msgPanelIds && this.msgPanelIds.length > 0) {
|
if (this.msgPanelIds && this.msgPanelIds.length > 0) {
|
||||||
this.expandMsgNode(this.msgPanelIds)
|
this.expandMsgNode(this.msgPanelIds)
|
||||||
}
|
}
|
||||||
@ -188,7 +188,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getMsgNodes(panelIds) {
|
getMsgNodes(panelIds) {
|
||||||
this.data.forEach(item => {
|
this.treeData.forEach(item => {
|
||||||
if (item.children && item.children.length > 0) {
|
if (item.children && item.children.length > 0) {
|
||||||
item.children.forEach(node => {
|
item.children.forEach(node => {
|
||||||
if (panelIds.includes(node.id)) {
|
if (panelIds.includes(node.id)) {
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
v-if="showDomType === 'tree'"
|
v-if="showDomType === 'tree'"
|
||||||
:default-expanded-keys="expandedArray"
|
:default-expanded-keys="expandedArray"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
:data="tempTreeData || data"
|
:data="tempTreeData || treeData"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
|
|
||||||
@node-click="handleNodeClick"
|
@node-click="handleNodeClick"
|
||||||
@ -347,7 +347,7 @@ export default {
|
|||||||
link: false,
|
link: false,
|
||||||
type: 'root'
|
type: 'root'
|
||||||
}],
|
}],
|
||||||
data: [],
|
treeData: [],
|
||||||
sceneData: [],
|
sceneData: [],
|
||||||
fieldData: [],
|
fieldData: [],
|
||||||
originFieldData: [],
|
originFieldData: [],
|
||||||
@ -472,7 +472,7 @@ export default {
|
|||||||
this.tData = JSON.parse(modelInfo)
|
this.tData = JSON.parse(modelInfo)
|
||||||
const results = this.buildTree(this.tData)
|
const results = this.buildTree(this.tData)
|
||||||
this.defaultData = JSON.parse(JSON.stringify(results))
|
this.defaultData = JSON.parse(JSON.stringify(results))
|
||||||
this.data = JSON.parse(JSON.stringify(results))
|
this.treeData = JSON.parse(JSON.stringify(results))
|
||||||
}
|
}
|
||||||
queryAuthModel({ modelType: 'dataset' }, !userCache).then(res => {
|
queryAuthModel({ modelType: 'dataset' }, !userCache).then(res => {
|
||||||
localStorage.setItem('dataset-tree', JSON.stringify(res.data))
|
localStorage.setItem('dataset-tree', JSON.stringify(res.data))
|
||||||
@ -480,7 +480,7 @@ export default {
|
|||||||
this.tData = res.data
|
this.tData = res.data
|
||||||
const results = this.buildTree(this.tData)
|
const results = this.buildTree(this.tData)
|
||||||
this.defaultData = JSON.parse(JSON.stringify(results))
|
this.defaultData = JSON.parse(JSON.stringify(results))
|
||||||
this.data = JSON.parse(JSON.stringify(results))
|
this.treeData = JSON.parse(JSON.stringify(results))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -513,7 +513,7 @@ export default {
|
|||||||
name: val
|
name: val
|
||||||
}
|
}
|
||||||
authModel(queryCondition).then(res => {
|
authModel(queryCondition).then(res => {
|
||||||
this.data = this.buildTree(res.data)
|
this.treeData = this.buildTree(res.data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
buildTree(arrs) {
|
buildTree(arrs) {
|
||||||
@ -602,7 +602,7 @@ export default {
|
|||||||
groupTree({}).then(res => {
|
groupTree({}).then(res => {
|
||||||
const data = res.data
|
const data = res.data
|
||||||
|
|
||||||
this.data = data
|
this.treeData = data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -629,7 +629,7 @@ export default {
|
|||||||
this.dataSetBreads = this.dataSetBreads.slice(0, 1)
|
this.dataSetBreads = this.dataSetBreads.slice(0, 1)
|
||||||
const root = {
|
const root = {
|
||||||
id: null,
|
id: null,
|
||||||
children: JSON.parse(JSON.stringify(this.data))
|
children: JSON.parse(JSON.stringify(this.treeData))
|
||||||
}
|
}
|
||||||
this.getPathById(node.id, root, res => {
|
this.getPathById(node.id, root, res => {
|
||||||
if (res.length > 1) {
|
if (res.length > 1) {
|
||||||
@ -709,7 +709,7 @@ export default {
|
|||||||
this.keyWord = ''
|
this.keyWord = ''
|
||||||
this.isTreeSearch = false
|
this.isTreeSearch = false
|
||||||
if (bread.id) {
|
if (bread.id) {
|
||||||
const node = this.getNode(bread.id, this.data)
|
const node = this.getNode(bread.id, this.treeData)
|
||||||
if (node) {
|
if (node) {
|
||||||
this.tempTreeData = node.children
|
this.tempTreeData = node.children
|
||||||
}
|
}
|
||||||
@ -717,7 +717,7 @@ export default {
|
|||||||
this.tempTreeData = null
|
this.tempTreeData = null
|
||||||
}
|
}
|
||||||
|
|
||||||
this.data = JSON.parse(JSON.stringify(this.defaultData))
|
this.treeData = JSON.parse(JSON.stringify(this.defaultData))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
comBackLink(bread) {
|
comBackLink(bread) {
|
||||||
@ -795,7 +795,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (xItems && xItems.length > 1) {
|
if (xItems && xItems.length > 1) {
|
||||||
this.data.splice(e.newDraggableIndex, 1)
|
this.treeData.splice(e.newDraggableIndex, 1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
removeCheckedKey(e) {
|
removeCheckedKey(e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user