|
@@ -3,6 +3,7 @@ import { onMounted, ref, getCurrentInstance } from 'vue'
|
|
|
import Search from '@/components/icon/search.vue'
|
|
|
import Warning from '@/components/icon/warning.vue'
|
|
|
import { get, _delete, downLoad} from '../../../utils/request'
|
|
|
+import { userStore } from '@/store/userInfo'
|
|
|
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
const tableData = ref([])
|
|
@@ -16,6 +17,7 @@ const queryString = ref('')
|
|
|
const deleteTeamName = ref('')
|
|
|
const deleteTeamId = ref('')
|
|
|
const deleteTeamIndex = ref('')
|
|
|
+const role = ref('')
|
|
|
//限制用户点击
|
|
|
let click = true
|
|
|
|
|
@@ -120,6 +122,7 @@ const searchInfo = () => {
|
|
|
}
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
+ role.value = userStore().user.role
|
|
|
let pageText = document.getElementsByClassName('el-pagination__jump')[0]
|
|
|
if (pageText) {
|
|
|
pageText.childNodes[0].nodeValue = '跳至'
|
|
@@ -160,6 +163,7 @@ onMounted(() => {
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<router-link
|
|
|
+ v-if="role === '1'"
|
|
|
:to="{ name: 'CreateManageTeam', params: { flag: 'create' } }"
|
|
|
>
|
|
|
<div
|