Merge pull request 'feat(address-book): 添加通讯录导入导出功能' (#221) from dj into master

Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/221
This commit is contained in:
2024-12-07 13:37:21 +00:00
3 changed files with 3 additions and 4 deletions

1
auto-imports.d.ts vendored
View File

@@ -6,6 +6,7 @@ export {}
declare global { declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const computed: typeof import('vue')['computed'] const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp'] const createApp: typeof import('vue')['createApp']
const customRef: typeof import('vue')['customRef'] const customRef: typeof import('vue')['customRef']

View File

@@ -10,7 +10,7 @@
:before-upload="beforeUpload" :before-upload="beforeUpload"
:on-remove="handleRemove" :on-remove="handleRemove"
> >
<el-button color="#DED0B2" style="margin-left: 10px; margin-right: 10px;" :loading="loading" v-perm="['order:contacts:import']" :disabled="disabled">导入</el-button> <el-button type="warning" style="margin-left: 10px; margin-right: 10px;" :loading="loading" v-perm="['order:contacts:import']" :disabled="disabled">导入</el-button>
</el-upload> </el-upload>
</template> </template>

View File

@@ -298,6 +298,7 @@ const searchAddressBook = (val) => {
addressBookTableConfig.params = obj addressBookTableConfig.params = obj
tableIns.value.refresh() tableIns.value.refresh()
} }
//通讯录导入
const importAddress = () => { const importAddress = () => {
tableIns.value.refresh() tableIns.value.refresh()
} }
@@ -317,10 +318,7 @@ const headBtnClick = (key) => {
break; break;
} }
} }
//通讯录导入
const handleImport = () => {
}
//通讯录导出 //通讯录导出
const handleExport = () => { const handleExport = () => {
exportContact().then(res => { exportContact().then(res => {