1.导入新增模版弹窗

v1.0.0
sws 2024-09-30 18:10:31 +08:00
parent 6056130c33
commit 91f4ad2c83
2 changed files with 11 additions and 4 deletions

View File

@ -40,9 +40,11 @@
</el-button>
<el-checkbox v-model="form.status" @change="status_change"></el-checkbox>
</div>
<el-link type="primary" href="#" target="_blank" :underline="false">
<icon name="download-btn"></icon>
<text>更多diy模版下载</text>
<el-link type="primary" :href="more_link" target="_blank" :underline="false">
<div class="flex-row gap-3 align-c">
<icon name="download-btn"></icon>
<text>更多diy模版下载</text>
</div>
</el-link>
</div>
<el-scrollbar>
@ -126,6 +128,8 @@
import type { UploadFile } from 'element-plus';
import { annex_size_to_unit } from '@/utils';
import DiyAPI from '@/api/diy';
import { commonStore } from '@/store';
const common_store = commonStore();
const app = getCurrentInstance();
/**
* @description: 模版导入
@ -142,7 +146,9 @@ const props = defineProps({
});
const dialogVisible = defineModel({ type: Boolean, default: false });
const temp_active = ref('1');
const more_link = computed(() => {
return common_store.common.config.store_diy_url || '';
});
//
const exts_text = ref('.zip');
const upload_file = ref({

View File

@ -21,6 +21,7 @@ export const commonStore = defineStore('common', () => {
common_tianditu_map_ak: '',
currency_symbol: '',
attachment_host: '',
store_diy_url: '',
} as any, // 基础数据配置参数
});
// 存储链接数据