|
@@ -208,8 +208,7 @@ import pb from '@/layout/mixin/getPublicData'
|
|
|
import Dialog from '@/layout/components/Dialog'
|
|
|
import pf from '@/layout/mixin/publicFunc'
|
|
|
import MD5 from 'blueimp-md5'
|
|
|
-import { getToken } from '@/utils/auth'
|
|
|
-import { setTree, listToTree } from '@/utils/validate'
|
|
|
+import { listToTree } from '@/utils/validate'
|
|
|
export default {
|
|
|
name: 'NewManageMent',
|
|
|
components: { Dialog },
|
|
@@ -386,16 +385,16 @@ export default {
|
|
|
this.clearForm()
|
|
|
}
|
|
|
} else {
|
|
|
- const { code } = await this.getChangeList(SERVICE_ID.getUserTableId, this.dataObj, 3)
|
|
|
+ const { user_name } = this.dataObj
|
|
|
+ const { user_group_id } = this.treeCheckObj
|
|
|
+ const { code } = await this.getChangeList(SERVICE_ID.getUserTableId, { user_name, up_user_group_id: user_group_id }, 3)
|
|
|
if (code == 0) {
|
|
|
const { returnData } = await this.getQueryList(SERVICE_ID.getUserTableId, {
|
|
|
up_user_group_id: this.dataObj.up_user_group_id
|
|
|
})
|
|
|
- if (returnData && returnData.length) {
|
|
|
- this.tableData = returnData
|
|
|
- this.dataObj = {}
|
|
|
- this.clearTableForm()
|
|
|
- }
|
|
|
+ this.tableData = returnData
|
|
|
+ this.dataObj = {}
|
|
|
+ this.clearTableForm()
|
|
|
}
|
|
|
}
|
|
|
this.rmFlag = false
|