diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
index 2a3dbedd75..6843b31bdd 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
@@ -384,7 +384,7 @@
let state = dom.find('.state-p')
let depState = ''
taskList.forEach(item => {
- if (item.name == v1.name) {
+ if (item.name === v1.name) {
depState = item.state
}
})
@@ -511,7 +511,7 @@
},
_closeDAG () {
let $name = this.$route.name
- if ($name && $name.indexOf('definition') != -1) {
+ if ($name && $name.indexOf('definition') !== -1) {
this.$router.push({ name: 'projects-definition-list' })
} else {
this.$router.push({ name: 'projects-instance-list' })
@@ -521,7 +521,7 @@
let tasks = value
let bool = true
tasks.map(v => {
- if (v.type == 'CONDITIONS' && (v.conditionResult.successNode[0] == '' || v.conditionResult.successNode[0] == null || v.conditionResult.failedNode[0] == '' || v.conditionResult.failedNode[0] == null)) {
+ if (v.type === 'CONDITIONS' && (v.conditionResult.successNode[0] === '' || v.conditionResult.successNode[0] === null || v.conditionResult.failedNode[0] === '' || v.conditionResult.failedNode[0] === null)) {
bool = false
return false
}
@@ -694,7 +694,7 @@
this.nodeDrawer = true
},
removeEventModelById ($id) {
- if (eventModel && this.taskId == $id) {
+ if (eventModel && this.taskId === $id) {
eventModel.remove()
}
},
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
index c6b93463be..8c99fed9eb 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
@@ -522,7 +522,7 @@
this.$message.warning(`${i18n.$t('Please enter name (required)')}`)
return false
}
- if (this.successBranch != '' && this.successBranch != null && this.successBranch == this.failedBranch) {
+ if (this.successBranch !== '' && this.successBranch !== null && this.successBranch === this.failedBranch) {
this.$message.warning(`${i18n.$t('Cannot select the same node for successful branch flow and failed branch flow')}`)
return false
}
@@ -538,9 +538,9 @@
},
_verifWorkGroup () {
let item = this.store.state.security.workerGroupsListAll.find(item => {
- return item.id == this.workerGroup
+ return item.id === this.workerGroup
})
- if (item == undefined) {
+ if (item === undefined) {
this.$message.warning(`${i18n.$t('The Worker group no longer exists, please select the correct Worker group!')}`)
return false
}
@@ -601,7 +601,7 @@
let currentConnects = plumbIns.getAllConnections()
let len = currentConnects.length
for (let i = 0; i < len; i++) {
- if (this.preTasksToDelete.indexOf(currentConnects[i].sourceId) > -1 && currentConnects[i].targetId == targetId) {
+ if (this.preTasksToDelete.indexOf(currentConnects[i].sourceId) > -1 && currentConnects[i].targetId === targetId) {
plumbIns.deleteConnection(currentConnects[i])
i -= 1
len -= 1
@@ -727,12 +727,12 @@
var hasMatch = false
for (let i = 0; i < this.store.state.security.workerGroupsListAll.length; i++) {
var workerGroup = this.store.state.security.workerGroupsListAll[i].id
- if (o.workerGroup == workerGroup) {
+ if (o.workerGroup === workerGroup) {
hasMatch = true
break
}
}
- if (o.workerGroup == undefined) {
+ if (o.workerGroup === undefined) {
this.store.dispatch('dag/getTaskInstanceList', {
pageSize: 10, pageNo: 1, processInstanceId: this.nodeData.instanceId, name: o.name
}).then(res => {
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue
index f239c4c6f5..7750117388 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue
@@ -61,7 +61,7 @@
},
created () {
this.$nextTick(() => {
- if (this.sqlType != 0) {
+ if (this.sqlType !== 0) {
this.sqlTypeId = this.sqlType
} else {
this.sqlTypeId = this.sqlTypeList[0].id
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/conditions.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/conditions.vue
index 75eac7e074..d535ca246f 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/conditions.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/conditions.vue
@@ -152,7 +152,7 @@
// Process instance return status display matches by key
_.map(this.dependTaskList, v => _.map(v.dependItemList, v1 => {
$(`#${o.id}`).siblings().each(function () {
- if (v1.depTasks == $(this).text()) {
+ if (v1.depTasks === $(this).text()) {
v1.state = $(this).attr('data-dependent-depstate')
}
})
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/datax.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/datax.vue
index 9b43585621..0414744a66 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/datax.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/datax.vue
@@ -453,7 +453,7 @@
this.xms = o.params.xms || 1
this.xmx = o.params.xmx || 1
// backfill
- if (o.params.customConfig == 0) {
+ if (o.params.customConfig === 0) {
this.customConfig = 0
this.enable = false
this.dsType = o.params.dsType || ''
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue
index 2c68e1906e..e0fd5f7c79 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue
@@ -356,12 +356,12 @@
},
searchTree (element, id) {
// 根据id查找节点
- if (element.id == id) {
+ if (element.id === id) {
return element
- } else if (element.children != null) {
+ } else if (element.children !== null) {
var i
var result = null
- for (i = 0; result == null && i < element.children.length; i++) {
+ for (i = 0; result === null && i < element.children.length; i++) {
result = this.searchTree(element.children[i], id)
}
return result
@@ -390,7 +390,7 @@
if (diffSet.length > 0) {
diffSet.forEach(item => {
backResource.forEach(item1 => {
- if (item == item1.id || item == item1.res) {
+ if (item === item1.id || item === item1.res) {
optionsCmp.push(item1)
}
})
@@ -447,7 +447,7 @@
let result = []
resourceIdArr.forEach(item => {
this.allNoResources.forEach(item1 => {
- if (item.id == item1.id) {
+ if (item.id === item1.id) {
// resultBool = true
result.push(item1)
}
@@ -485,7 +485,7 @@
this.mainClass = o.params.mainClass || ''
if (o.params.mainJar.res) {
this.marjarId(o.params.mainJar.res)
- } else if (o.params.mainJar.res == '') {
+ } else if (o.params.mainJar.res === '') {
this.mainJar = ''
} else {
this.mainJar = o.params.mainJar.id || ''
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/http.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/http.vue
index 9dc83503ba..bbd5e535ea 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/http.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/http.vue
@@ -153,7 +153,7 @@
httpMethod: 'GET',
httpMethodList: [{ code: 'GET' }, { code: 'POST' }, { code: 'HEAD' }, { code: 'PUT' }, { code: 'DELETE' }],
httpCheckCondition: 'STATUS_CODE_DEFAULT',
- httpCheckConditionList: cookies.get('language') == 'en_US' ? [{ code: 'STATUS_CODE_DEFAULT', value: 'Default response code 200' }, { code: 'STATUS_CODE_CUSTOM', value: 'Custom response code' }, { code: 'BODY_CONTAINS', value: 'Content includes' }, { code: 'BODY_NOT_CONTAINS', value: 'Content does not contain' }] : [{ code: 'STATUS_CODE_DEFAULT', value: '默认响应码200' }, { code: 'STATUS_CODE_CUSTOM', value: '自定义响应码' }, { code: 'BODY_CONTAINS', value: '内容包含' }, { code: 'BODY_NOT_CONTAINS', value: '内容不包含' }]
+ httpCheckConditionList: cookies.get('language') === 'en_US' ? [{ code: 'STATUS_CODE_DEFAULT', value: 'Default response code 200' }, { code: 'STATUS_CODE_CUSTOM', value: 'Custom response code' }, { code: 'BODY_CONTAINS', value: 'Content includes' }, { code: 'BODY_NOT_CONTAINS', value: 'Content does not contain' }] : [{ code: 'STATUS_CODE_DEFAULT', value: '默认响应码200' }, { code: 'STATUS_CODE_CUSTOM', value: '自定义响应码' }, { code: 'BODY_CONTAINS', value: '内容包含' }, { code: 'BODY_NOT_CONTAINS', value: '内容不包含' }]
}
},
props: {
@@ -243,7 +243,7 @@
this.condition = o.params.condition || ''
this.connectTimeout = o.params.connectTimeout
this.socketTimeout = o.params.socketTimeout
- if (this.connectTimeout != 60000 || this.socketTimeout != 60000) {
+ if (this.connectTimeout !== 60000 || this.socketTimeout !== 60000) {
this.timeoutSettings = true
}
// backfill localParams
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue
index 6cd1a8d862..9ba31cf39b 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue
@@ -190,12 +190,12 @@
},
searchTree (element, id) {
// 根据id查找节点
- if (element.id == id) {
+ if (element.id === id) {
return element
- } else if (element.children != null) {
+ } else if (element.children !== null) {
var i
var result = null
- for (i = 0; result == null && i < element.children.length; i++) {
+ for (i = 0; result === null && i < element.children.length; i++) {
result = this.searchTree(element.children[i], id)
}
return result
@@ -224,7 +224,7 @@
if (diffSet.length > 0) {
diffSet.forEach(item => {
backResource.forEach(item1 => {
- if (item == item1.id || item == item1.res) {
+ if (item === item1.id || item === item1.res) {
optionsCmp.push(item1)
}
})
@@ -324,7 +324,7 @@
let result = []
resourceIdArr.forEach(item => {
this.allNoResources.forEach(item1 => {
- if (item.id == item1.id) {
+ if (item.id === item1.id) {
// resultBool = true
result.push(item1)
}
@@ -358,7 +358,7 @@
this.mainClass = o.params.mainClass || ''
if (o.params.mainJar.res) {
this.marjarId(o.params.mainJar.res)
- } else if (o.params.mainJar.res == '') {
+ } else if (o.params.mainJar.res === '') {
this.mainJar = ''
} else {
this.mainJar = o.params.mainJar.id || ''
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue
index 3bef9fb056..9b76cb49ea 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue
@@ -195,12 +195,12 @@
},
searchTree (element, id) {
// 根据id查找节点
- if (element.id == id) {
+ if (element.id === id) {
return element
- } else if (element.children != null) {
+ } else if (element.children !== null) {
var i
var result = null
- for (i = 0; result == null && i < element.children.length; i++) {
+ for (i = 0; result === null && i < element.children.length; i++) {
result = this.searchTree(element.children[i], id)
}
return result
@@ -229,7 +229,7 @@
if (diffSet.length > 0) {
diffSet.forEach(item => {
backResource.forEach(item1 => {
- if (item == item1.id || item == item1.res) {
+ if (item === item1.id || item === item1.res) {
optionsCmp.push(item1)
}
})
@@ -280,7 +280,7 @@
let result = []
resourceIdArr.forEach(item => {
this.allNoResources.forEach(item1 => {
- if (item.id == item1.id) {
+ if (item.id === item1.id) {
// resultBool = true
result.push(item1)
}
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue
index 4f34089d17..dfa7dc1ecf 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue
@@ -204,12 +204,12 @@
},
searchTree (element, id) {
// 根据id查找节点
- if (element.id == id) {
+ if (element.id === id) {
return element
- } else if (element.children != null) {
+ } else if (element.children !== null) {
var i
var result = null
- for (i = 0; result == null && i < element.children.length; i++) {
+ for (i = 0; result === null && i < element.children.length; i++) {
result = this.searchTree(element.children[i], id)
}
return result
@@ -238,7 +238,7 @@
if (diffSet.length > 0) {
diffSet.forEach(item => {
backResource.forEach(item1 => {
- if (item == item1.id || item == item1.res) {
+ if (item === item1.id || item === item1.res) {
optionsCmp.push(item1)
}
})
@@ -289,7 +289,7 @@
let result = []
resourceIdArr.forEach(item => {
this.allNoResources.forEach(item1 => {
- if (item.id == item1.id) {
+ if (item.id === item1.id) {
// resultBool = true
result.push(item1)
}
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue
index 85b58a37c7..66dc1586f0 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue
@@ -301,12 +301,12 @@
},
searchTree (element, id) {
// 根据id查找节点
- if (element.id == id) {
+ if (element.id === id) {
return element
- } else if (element.children != null) {
+ } else if (element.children !== null) {
var i
var result = null
- for (i = 0; result == null && i < element.children.length; i++) {
+ for (i = 0; result === null && i < element.children.length; i++) {
result = this.searchTree(element.children[i], id)
}
return result
@@ -335,7 +335,7 @@
if (diffSet.length > 0) {
diffSet.forEach(item => {
backResource.forEach(item1 => {
- if (item == item1.id || item == item1.res) {
+ if (item === item1.id || item === item1.res) {
optionsCmp.push(item1)
}
})
@@ -478,7 +478,7 @@
let result = []
resourceIdArr.forEach(item => {
this.allNoResources.forEach(item1 => {
- if (item.id == item1.id) {
+ if (item.id === item1.id) {
// resultBool = true
result.push(item1)
}
@@ -519,7 +519,7 @@
this.mainClass = o.params.mainClass || ''
if (o.params.mainJar.res) {
this.marjarId(o.params.mainJar.res)
- } else if (o.params.mainJar.res == '') {
+ } else if (o.params.mainJar.res === '') {
this.mainJar = ''
} else {
this.mainJar = o.params.mainJar.id || ''
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sql.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sql.vue
index 309a111ea7..0424ae6f0f 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sql.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sql.vue
@@ -214,7 +214,7 @@
*/
_onSqlType (a) {
this.sqlType = a
- if (a == 0) {
+ if (a === 0) {
this.showType = ['TABLE']
}
},
@@ -262,24 +262,24 @@
if (!this.$refs.refDs._verifDatasource()) {
return false
}
- if (this.sqlType == 0 && !this.showType.length) {
+ if (this.sqlType === 0 && !this.showType.length) {
this.$message.warning(`${i18n.$t('One form or attachment must be selected')}`)
return false
}
- if (this.sqlType == 0 && !this.title) {
+ if (this.sqlType === 0 && !this.title) {
this.$message.warning(`${i18n.$t('Mail subject required')}`)
return false
}
- if (this.sqlType == 0 && !this.receivers.length) {
+ if (this.sqlType === 0 && !this.receivers.length) {
this.$message.warning(`${i18n.$t('Recipient required')}`)
return false
}
// receivers Subcomponent verification
- if (this.sqlType == 0 && !this.$refs.refEmail._manualEmail()) {
+ if (this.sqlType === 0 && !this.$refs.refEmail._manualEmail()) {
return false
}
// receiversCc Subcomponent verification
- if (this.sqlType == 0 && !this.$refs.refCc._manualEmail()) {
+ if (this.sqlType === 0 && !this.$refs.refCc._manualEmail()) {
return false
}
// udfs Subcomponent verification Verification only if the data type is HIVE
@@ -414,10 +414,10 @@
watch: {
// Listening to sqlType
sqlType (val) {
- if (val == 0) {
+ if (val === 0) {
this.showType = []
}
- if (val != 0) {
+ if (val !== 0) {
this.title = ''
this.receivers = []
this.receiversCc = []
@@ -447,7 +447,7 @@
this.sqlType = o.params.sqlType
this.connParams = o.params.connParams || ''
this.localParams = o.params.localParams || []
- if (o.params.showType == '') {
+ if (o.params.showType === '') {
this.showType = []
} else {
this.showType = o.params.showType.split(',') || []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue
index 733d4949d3..0c8e220205 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue
@@ -1170,10 +1170,10 @@
watch: {
// Listening to sqlType
sqlType (val) {
- if (val == 0) {
+ if (val === 0) {
this.showType = []
}
- if (val != 0) {
+ if (val !== 0) {
this.title = ''
this.receivers = []
this.receiversCc = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/waterdrop.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/waterdrop.vue
index d08e4f9675..8a56a7f34d 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/waterdrop.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/waterdrop.vue
@@ -186,7 +186,7 @@
this.$message.warning(`${i18n.$t('Please select the waterdrop resources')}`)
return false
}
- if (this.resourceNameVal.resourceList && this.resourceNameVal.resourceList.length == 0) {
+ if (this.resourceNameVal.resourceList && this.resourceNameVal.resourceList.length === 0) {
this.$message.warning(`${i18n.$t('Please select the waterdrop resources')}`)
return false
}
@@ -201,7 +201,7 @@
let master = this.master
let masterUrl = this.masterUrl
- if (this.deployMode == 'local') {
+ if (this.deployMode === 'local') {
master = 'local'
masterUrl = ''
deployMode = 'client'
@@ -246,12 +246,12 @@
},
searchTree (element, id) {
// 根据id查找节点
- if (element.id == id) {
+ if (element.id === id) {
return element
- } else if (element.children != null) {
+ } else if (element.children !== null) {
var i
var result = null
- for (i = 0; result == null && i < element.children.length; i++) {
+ for (i = 0; result === null && i < element.children.length; i++) {
result = this.searchTree(element.children[i], id)
}
return result
@@ -280,7 +280,7 @@
if (diffSet.length > 0) {
diffSet.forEach(item => {
backResource.forEach(item1 => {
- if (item == item1.id || item == item1.res) {
+ if (item === item1.id || item === item1.res) {
optionsCmp.push(item1)
}
})
@@ -314,9 +314,9 @@
},
master: {
handler (code) {
- if (code == 'spark://') {
+ if (code === 'spark://') {
this.masterUrlState = true
- } else if (code == 'mesos://') {
+ } else if (code === 'mesos://') {
this.masterUrlState = true
} else {
this.masterUrlState = false
@@ -344,7 +344,7 @@
let result = []
resourceIdArr.forEach(item => {
this.allNoResources.forEach(item1 => {
- if (item.id == item1.id) {
+ if (item.id === item1.id) {
// resultBool = true
result.push(item1)
}
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/_source/selectTenant.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/_source/selectTenant.vue
index 9cc85f1616..3ff0c2f9b8 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/_source/selectTenant.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/_source/selectTenant.vue
@@ -51,7 +51,7 @@
},
mounted () {
let result = this.itemList.some(item => {
- if (item.id == this.value) {
+ if (item.id === this.value) {
return true
}
})
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue b/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue
index a38c475c9c..1d886f8a14 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue
@@ -329,7 +329,7 @@
return false
}
- if (!this.database && this.showdDatabase == false) {
+ if (!this.database && this.showdDatabase === false) {
this.$message.warning(`${i18n.$t('Please enter database name')}`)
return false
}
@@ -451,16 +451,16 @@
},
watch: {
type (value) {
- if (value == 'POSTGRESQL') {
+ if (value === 'POSTGRESQL') {
this.showdDatabase = true
} else {
this.showdDatabase = false
}
- if (value == 'ORACLE' && !this.item.id) {
+ if (value === 'ORACLE' && !this.item.id) {
this.showConnectType = true
this.connectType = 'ORACLE_SERVICE_NAME'
- } else if (value == 'ORACLE' && this.item.id) {
+ } else if (value === 'ORACLE' && this.item.id) {
this.showConnectType = true
} else {
this.showConnectType = false
@@ -471,7 +471,7 @@
return new Promise((resolve, reject) => {
this.store.dispatch('datasource/getKerberosStartupState').then(res => {
this.isShowPrincipal = res
- if ((value == 'HIVE' || value == 'SPARK') && this.isShowPrincipal == true) {
+ if ((value === 'HIVE' || value === 'SPARK') && this.isShowPrincipal === true) {
this.showPrincipal = false
} else {
this.showPrincipal = true
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/index.vue
index a25b1d86fc..5b290b422a 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/index.vue
@@ -128,7 +128,7 @@
_getList (flag) {
this.isLoading = !flag
this.getDatasourcesListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.datasourcesList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/statistics.vue b/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/statistics.vue
index 87d72a5b81..e9412c5858 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/statistics.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/statistics.vue
@@ -106,10 +106,10 @@
let error = 0
_.forEach(res.data, (v, i) => {
let key = _.keys(v)
- if (key[0] == 'errorCount') {
+ if (key[0] === 'errorCount') {
error = error + v.errorCount
}
- if (key[1] == 'normalCount') {
+ if (key[1] === 'normalCount') {
normal = normal + v.normalCount
}
}
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/start.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/start.vue
index a4657bd9de..6938b852c7 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/start.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/start.vue
@@ -214,7 +214,7 @@
scheduleTime: this.scheduleTime.length && this.scheduleTime.join(',') || '',
failureStrategy: this.failureStrategy,
warningType: this.warningType,
- warningGroupId: this.warningGroupId == '' ? 0 : this.warningGroupId,
+ warningGroupId: this.warningGroupId === '' ? 0 : this.warningGroupId,
execType: this.execType ? 'COMPLEMENT_DATA' : null,
startNodeList: this.startNodeList,
taskDependType: this.taskDependType,
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue
index e5fd47b765..a0a3bc9050 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue
@@ -228,7 +228,7 @@
failureStrategy: this.failureStrategy,
warningType: this.warningType,
processInstancePriority: this.processInstancePriority,
- warningGroupId: this.warningGroupId == '' ? 0 : this.warningGroupId,
+ warningGroupId: this.warningGroupId === '' ? 0 : this.warningGroupId,
receivers: this.receivers.join(',') || '',
receiversCc: this.receiversCc.join(',') || '',
workerGroup: this.workerGroup
@@ -319,7 +319,7 @@
if (this.timingData.item.crontab !== null) {
this.crontab = this.timingData.item.crontab
}
- if (this.timingData.type == 'timing') {
+ if (this.timingData.type === 'timing') {
let date = new Date()
let year = date.getFullYear()
let month = date.getMonth() + 1
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue
index bab85bb8a0..381da63658 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue
@@ -109,14 +109,14 @@
* get data list
*/
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getProcessListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.processListP = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue
index 6d3e7caadb..69d1a4c503 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue
@@ -78,7 +78,7 @@
-
+
@@ -154,7 +154,7 @@
{
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.processInstanceList = []
@@ -148,7 +148,7 @@
* @desc Prevent functions from being called multiple times
*/
_debounceGET: _.debounce(function (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue
index 90116c14c3..330c9f43ec 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue
@@ -107,7 +107,7 @@
_getList (flag) {
this.isLoading = !flag
this.getProjectsList(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.projectsList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue
index 2b8327762c..135108e0fd 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue
@@ -114,7 +114,7 @@
*/
_getList (flag) {
this.isLoading = !flag
- if (this.searchParams.pageNo == undefined) {
+ if (this.searchParams.pageNo === undefined) {
this.$router.push({ path: '/projects/index' })
return false
}
@@ -132,7 +132,7 @@
* @desc Prevent functions from being called multiple times
*/
_debounceGET: _.debounce(function (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue
index b8e98b10a9..875ed6b2b6 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue
@@ -101,14 +101,14 @@
this.searchParams.pageSize = val
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getResourcesListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.fileResourcesList = res.totalList
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue
index baa4276d5c..54cab22fa6 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue
@@ -107,14 +107,14 @@
this.searchParams.pageSize = val
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getResourcesListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.fileResourcesList = res.totalList
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
index acfadb1226..e1d9946fc9 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
@@ -217,7 +217,7 @@
this.filterEmptyDirectory(item.children)
}
}
- return array.filter(n => ((/\.jar$/.test(n.name) && n.children.length == 0) || (!/\.jar$/.test(n.name) && n.children.length > 0)))
+ return array.filter(n => ((/\.jar$/.test(n.name) && n.children.length === 0) || (!/\.jar$/.test(n.name) && n.children.length > 0)))
},
// filterJarFile
filterJarFile (array) {
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue
index 00318c69ba..5015d8d351 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue
@@ -112,14 +112,14 @@
this._debounceGET()
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getUdfFuncListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.udfFuncList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue
index a383286f93..2fa84395ed 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue
@@ -107,14 +107,14 @@
this._debounceGET()
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getResourcesListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.udfResourcesList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/index.vue
index bb72245ac5..9c09a8175b 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/index.vue
@@ -116,14 +116,14 @@
this._debounceGET()
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getResourcesListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.udfResourcesList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue
index 6c986497cc..ec61cfab77 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue
@@ -121,14 +121,14 @@
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getQueueListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.queueList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue
index 8b594f4ab3..75cfd047b2 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue
@@ -123,14 +123,14 @@
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getTenantListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.tenementList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue
index de85256c94..d649cc3f12 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue
@@ -175,7 +175,7 @@
return false
}
// password
- if (this.userPassword != '' && this.item) {
+ if (this.userPassword !== '' && this.item) {
if (!regPassword.test(this.userPassword)) {
this.$message.warning(`${i18n.$t('Password consists of at least two combinations of numbers, letters, and characters, and the length is between 6-22')}`)
return false
@@ -247,7 +247,7 @@
let queueCode = ''
// get queue code
- if (this.queueName != '') {
+ if (this.queueName !== '') {
queueCode = this.queueList.length > 0 ? _.find(this.queueList, ['id', this.queueName]).code : ''
}
let param = {
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/list.vue
index 5240ca0ce4..32e02d14b1 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/list.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/list.vue
@@ -28,7 +28,7 @@
- {{state == 1 ? `${$t('Enable')}` : `${$t('Disable')}`}}
+ {{state === 1 ? `${$t('Enable')}` : `${$t('Disable')}`}}
@@ -196,7 +196,7 @@
let result = []
let getLeaf = (data) => {
data.forEach(item => {
- if (item.children.length == 0) {
+ if (item.children.length === 0) {
result.push(item)
} else {
getLeaf(item.children)
@@ -215,7 +215,7 @@
let fileSourceList = []
let udfSourceList = []
data[0].forEach((value, index, array) => {
- if (value.type == 'FILE') {
+ if (value.type === 'FILE') {
fileSourceList.push(value)
} else {
udfSourceList.push(value)
@@ -233,7 +233,7 @@
}
})
data[1].forEach((value, index, array) => {
- if (value.type == 'FILE') {
+ if (value.type === 'FILE') {
fileTargetList.push(value)
} else {
udfTargetList.push(value)
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue
index a734aaaf46..560fdc0044 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue
@@ -122,14 +122,14 @@
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getUsersListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.userList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue
index cc5b1a709e..0b5a2d3a21 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue
@@ -124,14 +124,14 @@
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getAlertgroupP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.alertgroupList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue
index a5e467fdd5..bc2d9488ad 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue
@@ -83,7 +83,7 @@
let reg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/
let valdata = ips.split(',')
for (let i = 0; i < valdata.length; i++) {
- if (reg.test(valdata[i]) == false) {
+ if (reg.test(valdata[i]) === false) {
return false
}
}
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue
index 2b2ca4abcf..589ddd3a9c 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue
@@ -100,7 +100,7 @@
_getList (flag) {
this.isLoading = !flag
this.getWorkerGroups(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.workerGroupList = []
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue
index 1129aeef9c..9bd31eb325 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue
@@ -122,14 +122,14 @@
},
_getList (flag) {
- if (sessionStorage.getItem('isLeft') == 0) {
+ if (sessionStorage.getItem('isLeft') === 0) {
this.isLeft = false
} else {
this.isLeft = true
}
this.isLoading = !flag
this.getTokenListP(this.searchParams).then(res => {
- if (this.searchParams.pageNo > 1 && res.totalList.length == 0) {
+ if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
} else {
this.tokenList = []
diff --git a/dolphinscheduler-ui/src/js/module/axios/jsonp.js b/dolphinscheduler-ui/src/js/module/axios/jsonp.js
index 0459d61c52..900338c6df 100755
--- a/dolphinscheduler-ui/src/js/module/axios/jsonp.js
+++ b/dolphinscheduler-ui/src/js/module/axios/jsonp.js
@@ -58,7 +58,7 @@ function jsonp (url, opts, fn) {
var id = opts.name || (prefix + (count++))
var param = opts.param || 'callback'
- var timeout = opts.timeout != null ? opts.timeout : 60000
+ var timeout = opts.timeout !== null ? opts.timeout : 60000
var enc = encodeURIComponent
/* istanbul ignore next */
var target = document.getElementsByTagName('script')[0] || document.head
diff --git a/dolphinscheduler-ui/src/js/module/components/transfer/resource.vue b/dolphinscheduler-ui/src/js/module/components/transfer/resource.vue
index 422674bce8..e8d04642a2 100644
--- a/dolphinscheduler-ui/src/js/module/components/transfer/resource.vue
+++ b/dolphinscheduler-ui/src/js/module/components/transfer/resource.vue
@@ -90,7 +90,7 @@
*/
getParent (data2, nodeId2) {
var arrRes = []
- if (data2.length == 0) {
+ if (data2.length === 0) {
if (nodeId2) {
arrRes.unshift(data2)
}
@@ -99,7 +99,7 @@
let rev = (data, nodeId) => {
for (var i = 0, length = data.length; i < length; i++) {
let node = data[i]
- if (node.id == nodeId) {
+ if (node.id === nodeId) {
arrRes.unshift(node)
rev(data2, node.pid)
break
@@ -180,7 +180,7 @@
if (i2 !== -1) {
this.cacheSourceList.splice(i2, 1)
}
- if (this.checkedValue == 'fileResource') {
+ if (this.checkedValue === 'fileResource') {
this.fileTarget = this.targetList
this.fileSource = this.sourceList
} else {
@@ -198,7 +198,7 @@
if (i2 !== -1) {
this.cacheTargetList.splice(i2, 1)
}
- if (this.checkedValue == 'fileResource') {
+ if (this.checkedValue === 'fileResource') {
this.fileSource = this.sourceList
this.fileTarget = this.targetList
} else {