【fix ESLint】src/components/jerobiz
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
|
||||
<script>
|
||||
import { filterObj } from '@/utils/util'
|
||||
import { queryDepartTreeList, getUserList, queryUserByDepId, queryDepartTreeSync } from '@/api/api'
|
||||
import { getUserList, queryUserByDepId, queryDepartTreeSync } from '@/api/api'
|
||||
import { getAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
@@ -135,7 +135,7 @@ export default {
|
||||
computed: {
|
||||
// 计算属性的 getter
|
||||
getType: function () {
|
||||
return this.multi == true ? 'checkbox' : 'radio'
|
||||
return this.multi === true ? 'checkbox' : 'radio'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -154,7 +154,7 @@ export default {
|
||||
methods: {
|
||||
initUserNames () {
|
||||
if (this.userIds) {
|
||||
// 这里最后加一个 , 的原因是因为无论如何都要使用 in 查询,防止后台进行了模糊匹配,导致查询结果不准确
|
||||
// 这里最后加一个 , 的原因是无论如何都要使用 in 查询,防止后台进行了模糊匹配,导致查询结果不准确
|
||||
const values = this.userIds.split(',') + ','
|
||||
const param = { [this.store]: values }
|
||||
getAction('/sys/user/getMultiUser', param).then((list) => {
|
||||
@@ -258,7 +258,7 @@ export default {
|
||||
that.close()
|
||||
},
|
||||
// 获取选择用户信息
|
||||
getSelectUserRows (rowId) {
|
||||
getSelectUserRows (/* rowId */) {
|
||||
const dataSource = this.dataSource
|
||||
let userIds = ''
|
||||
this.selectUserRows = []
|
||||
@@ -316,7 +316,7 @@ export default {
|
||||
queryDepartTreeSync({ pid: treeNode.dataRef.id }).then((res) => {
|
||||
if (res.success) {
|
||||
// 判断chidlren是否为空,并修改isLeaf属性值
|
||||
if (res.result.length == 0) {
|
||||
if (res.result.length === 0) {
|
||||
treeNode.dataRef.isLeaf = true
|
||||
} else {
|
||||
treeNode.dataRef.children = res.result
|
||||
|
||||
Reference in New Issue
Block a user