1.导入新增模版弹窗
parent
6056130c33
commit
91f4ad2c83
|
|
@ -40,9 +40,11 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-checkbox v-model="form.status" @change="status_change">我已购买</el-checkbox>
|
<el-checkbox v-model="form.status" @change="status_change">我已购买</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<el-link type="primary" href="#" target="_blank" :underline="false">
|
<el-link type="primary" :href="more_link" target="_blank" :underline="false">
|
||||||
<icon name="download-btn"></icon>
|
<div class="flex-row gap-3 align-c">
|
||||||
<text>更多diy模版下载</text>
|
<icon name="download-btn"></icon>
|
||||||
|
<text>更多diy模版下载</text>
|
||||||
|
</div>
|
||||||
</el-link>
|
</el-link>
|
||||||
</div>
|
</div>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
|
|
@ -126,6 +128,8 @@
|
||||||
import type { UploadFile } from 'element-plus';
|
import type { UploadFile } from 'element-plus';
|
||||||
import { annex_size_to_unit } from '@/utils';
|
import { annex_size_to_unit } from '@/utils';
|
||||||
import DiyAPI from '@/api/diy';
|
import DiyAPI from '@/api/diy';
|
||||||
|
import { commonStore } from '@/store';
|
||||||
|
const common_store = commonStore();
|
||||||
const app = getCurrentInstance();
|
const app = getCurrentInstance();
|
||||||
/**
|
/**
|
||||||
* @description: 模版导入
|
* @description: 模版导入
|
||||||
|
|
@ -142,7 +146,9 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
const dialogVisible = defineModel({ type: Boolean, default: false });
|
const dialogVisible = defineModel({ type: Boolean, default: false });
|
||||||
const temp_active = ref('1');
|
const temp_active = ref('1');
|
||||||
|
const more_link = computed(() => {
|
||||||
|
return common_store.common.config.store_diy_url || '';
|
||||||
|
});
|
||||||
//导入
|
//导入
|
||||||
const exts_text = ref('.zip');
|
const exts_text = ref('.zip');
|
||||||
const upload_file = ref({
|
const upload_file = ref({
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ export const commonStore = defineStore('common', () => {
|
||||||
common_tianditu_map_ak: '',
|
common_tianditu_map_ak: '',
|
||||||
currency_symbol: '',
|
currency_symbol: '',
|
||||||
attachment_host: '',
|
attachment_host: '',
|
||||||
|
store_diy_url: '',
|
||||||
} as any, // 基础数据配置参数
|
} as any, // 基础数据配置参数
|
||||||
});
|
});
|
||||||
// 存储链接数据
|
// 存储链接数据
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue