Browse Source

fix eslint: expected '!==' but instead saw '!=', expected '===' but instead saw '=='

pull/3/MERGE
chengshiwen 4 years ago
parent
commit
e7501f75e3
  1. 8
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue
  2. 12
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
  3. 2
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/sqlType.vue
  4. 2
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/conditions.vue
  5. 2
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/datax.vue
  6. 12
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/flink.vue
  7. 4
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/http.vue
  8. 12
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/mr.vue
  9. 10
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/python.vue
  10. 10
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/shell.vue
  11. 12
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/spark.vue
  12. 18
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sql.vue
  13. 4
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue
  14. 18
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/waterdrop.vue
  15. 2
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/_source/selectTenant.vue
  16. 10
      dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue
  17. 2
      dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/index.vue
  18. 4
      dolphinscheduler-ui/src/js/conf/home/pages/monitor/pages/servers/statistics.vue
  19. 2
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/start.vue
  20. 4
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue
  21. 4
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/index.vue
  22. 8
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue
  23. 4
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue
  24. 2
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/list/index.vue
  25. 4
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue
  26. 4
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/index.vue
  27. 4
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/index.vue
  28. 2
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
  29. 4
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/index.vue
  30. 4
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/index.vue
  31. 4
      dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/index.vue
  32. 4
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/queue/index.vue
  33. 4
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue
  34. 4
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/createUser.vue
  35. 8
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/list.vue
  36. 4
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/index.vue
  37. 4
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue
  38. 2
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue
  39. 2
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/index.vue
  40. 4
      dolphinscheduler-ui/src/js/conf/home/pages/user/pages/token/index.vue
  41. 2
      dolphinscheduler-ui/src/js/module/axios/jsonp.js
  42. 8
      dolphinscheduler-ui/src/js/module/components/transfer/resource.vue

8
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()
}
},

12
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 => {

2
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

2
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')
}
})

2
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 || ''

12
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 || ''

4
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

12
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 || ''

10
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)
}

10
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)
}

12
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 || ''

18
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(',') || []

4
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 = []

18
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)
}

2
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
}
})

10
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

2
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 = []

4
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
}
}

2
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,

4
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

4
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 = []

8
dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue

@ -78,7 +78,7 @@
</span>
</el-tooltip>
<el-tooltip :content="scope.row.state === 'STOP' ? $t('Recovery Suspend') : $t('Stop')" placement="top" :enterable="false">
<span><el-button type="warning" size="mini" :disabled="scope.row.state !== 'RUNNING_EXECUTION' && scope.row.state != 'STOP'" :icon="scope.row.state === 'STOP' ? 'el-icon-video-play' : 'el-icon-close'" @click="_stop(scope.row,scope.$index)" circle></el-button></span>
<span><el-button type="warning" size="mini" :disabled="scope.row.state !== 'RUNNING_EXECUTION' && scope.row.state !== 'STOP'" :icon="scope.row.state === 'STOP' ? 'el-icon-video-play' : 'el-icon-close'" @click="_stop(scope.row,scope.$index)" circle></el-button></span>
</el-tooltip>
<el-tooltip :content="scope.row.state === 'PAUSE' ? $t('Recovery Suspend') : $t('Pause')" placement="top" :enterable="false">
<span><el-button type="error" size="mini" :icon="scope.row.state === 'PAUSE' ? 'el-icon-video-play' : 'el-icon-video-pause'" :disabled="scope.row.state !== 'RUNNING_EXECUTION' && scope.row.state !== 'PAUSE'" @click="_suspend(scope.row,scope.$index)" circle></el-button></span>
@ -154,7 +154,7 @@
<span>
<el-button
style="padding: 0 3px"
v-show="(scope.row.state === 'PAUSE' || scope.row.state == 'STOP') && buttonType === 'suspend'"
v-show="(scope.row.state === 'PAUSE' || scope.row.state === 'STOP') && buttonType === 'suspend'"
type="warning"
size="mini"
circle
@ -165,7 +165,7 @@
<!--Recovery Suspend-->
<el-button
v-show="(scope.row.state === 'PAUSE' || scope.row.state == 'STOP') && buttonType !== 'suspend'"
v-show="(scope.row.state === 'PAUSE' || scope.row.state === 'STOP') && buttonType !== 'suspend'"
type="warning"
size="mini"
circle
@ -312,7 +312,7 @@
* @param STOP
*/
_stop (item, index) {
if (item.state == 'STOP') {
if (item.state === 'STOP') {
this._countDownFn({
id: item.id,
executeType: 'RECOVER_SUSPENDED_PROCESS',

4
dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/index.vue

@ -119,7 +119,7 @@
_getProcessInstanceListP (flag) {
this.isLoading = !flag
this.getProcessInstance(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.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

2
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 = []

4
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

4
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

4
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

2
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) {

4
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 = []

4
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 = []

4
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 = []

4
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 = []

4
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 = []

4
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 = {

8
dolphinscheduler-ui/src/js/conf/home/pages/security/pages/users/_source/list.vue

@ -28,7 +28,7 @@
<el-table-column prop="email" :label="$t('Email')" min-width="120"></el-table-column>
<el-table-column prop="phone" :label="$t('Phone')" min-width="90"></el-table-column>
<el-table-column :label="$t('State')">
{{state == 1 ? `${$t('Enable')}` : `${$t('Disable')}`}}
{{state === 1 ? `${$t('Enable')}` : `${$t('Disable')}`}}
</el-table-column>
<el-table-column :label="$t('Create Time')" min-width="120">
<template slot-scope="scope">
@ -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)

4
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 = []

4
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 = []

2
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
}
}

2
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 = []

4
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 = []

2
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

8
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 {

Loading…
Cancel
Save