|
@@ -71,9 +71,19 @@
|
|
</template>
|
|
</template>
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
<el-button v-else size="small" type="primary" @click="checkSelected('disabled')">禁用</el-button>
|
|
<el-button v-else size="small" type="primary" @click="checkSelected('disabled')">禁用</el-button>
|
|
- <el-button size="small" custom-1 @click="onExportUsers">导出</el-button>
|
|
|
|
<el-upload
|
|
<el-upload
|
|
- ref="upload"
|
|
|
|
|
|
+ ref="upload1"
|
|
|
|
+ v-model:file-list="fileList"
|
|
|
|
+ :limit="1"
|
|
|
|
+ :show-file-list="false"
|
|
|
|
+ :on-exceed="onExceed"
|
|
|
|
+ :auto-upload="false"
|
|
|
|
+ >
|
|
|
|
+ <el-button size="small" custom-1 class="m-l-base" :loading="importUsersLoading">导入</el-button>
|
|
|
|
+ </el-upload>
|
|
|
|
+ <el-button size="small" custom-1 class="m-l-base" @click="onExportUsers">导出</el-button>
|
|
|
|
+ <!-- <el-upload
|
|
|
|
+ ref="upload1"
|
|
v-model:file-list="fileList"
|
|
v-model:file-list="fileList"
|
|
:limit="1"
|
|
:limit="1"
|
|
:show-file-list="false"
|
|
:show-file-list="false"
|
|
@@ -88,7 +98,7 @@
|
|
:loading="importUsersLoading"
|
|
:loading="importUsersLoading"
|
|
>导入姓名</el-button
|
|
>导入姓名</el-button
|
|
>
|
|
>
|
|
- </el-upload>
|
|
|
|
|
|
+ </el-upload> -->
|
|
<!-- <el-link class="m-l-base" type="primary" @click="downTpl">导入姓名模板下载</el-link> -->
|
|
<!-- <el-link class="m-l-base" type="primary" @click="downTpl">导入姓名模板下载</el-link> -->
|
|
</div>
|
|
</div>
|
|
<base-table
|
|
<base-table
|
|
@@ -186,10 +196,13 @@ import useMainStore from '@/store/main'
|
|
import useVW from '@/hooks/useVW'
|
|
import useVW from '@/hooks/useVW'
|
|
import bus from '@/utils/bus'
|
|
import bus from '@/utils/bus'
|
|
import type { ExtractMultipleApiResponse } from '@/api/api'
|
|
import type { ExtractMultipleApiResponse } from '@/api/api'
|
|
|
|
+import type { UploadInstance } from 'element-plus'
|
|
const newPwd = ref('')
|
|
const newPwd = ref('')
|
|
const { push } = useRouter()
|
|
const { push } = useRouter()
|
|
-const { fileList, upload, percentage, setPercentage, onExceed } = useUploadFile()
|
|
|
|
-const { fetch: importUsersFile, loading: importUsersLoading } = useFetch('importUsersFile')
|
|
|
|
|
|
+
|
|
|
|
+const upload1 = ref<UploadInstance>()
|
|
|
|
+const { fileList, upload, percentage, setPercentage, onExceed } = useUploadFile(upload1)
|
|
|
|
+const { fetch: importUsersFile, loading: importUsersLoading } = useFetch('importUsersFileNew')
|
|
const importUsersModel = reactive<any>({
|
|
const importUsersModel = reactive<any>({
|
|
file: void 0,
|
|
file: void 0,
|
|
})
|
|
})
|