|
@@ -3,7 +3,7 @@
|
|
|
<v-row no-gutters justify="space-between">
|
|
|
<v-col cols="2">
|
|
|
<div class="d-flex justify-start pr-3">
|
|
|
- <v-btn prepend-icon="mdi-plus" variant="text" density="compact" color="primary" @click="{}">{{ $t('enterprise.userManagement.addBranchOffice') }}</v-btn>
|
|
|
+ <v-btn prepend-icon="mdi-plus" variant="text" density="compact" color="primary" @click="handleAdd(0)">{{ $t('enterprise.userManagement.addBranchOffice') }}</v-btn>
|
|
|
</div>
|
|
|
<v-treeview
|
|
|
:items="treeData"
|
|
@@ -28,7 +28,7 @@
|
|
|
<v-col class="ml-10">
|
|
|
<div class="d-flex justify-space-between px-3">
|
|
|
<TextInput v-model="query.name" :item="textItem" @change="getUserList"></TextInput>
|
|
|
- <v-btn prepend-icon="mdi-plus" color="primary" @click="{}">{{ $t('enterprise.userManagement.inviteNewColleagues') }}</v-btn>
|
|
|
+ <v-btn prepend-icon="mdi-plus" color="primary" @click="handleAdd(1)">{{ $t('enterprise.userManagement.inviteNewColleagues') }}</v-btn>
|
|
|
</div>
|
|
|
<v-data-table
|
|
|
:loading="loading"
|
|
@@ -100,6 +100,12 @@ const textItem = ref({
|
|
|
label: '请输入用户名称搜索'
|
|
|
})
|
|
|
|
|
|
+import { useRouter } from 'vue-router'; const router = useRouter()
|
|
|
+const handleAdd = (num) => {
|
|
|
+ const name = num ? 'inviteNewColleagues' : 'addBranchOffice'
|
|
|
+ router.push({ path: `/recruit/enterprise/systemManagement/groupAccount/${name}` })
|
|
|
+}
|
|
|
+
|
|
|
const show = ref(false)
|
|
|
const formPageRef = ref()
|
|
|
const bindQuery = ref({})
|