mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-26 13:08:10 +00:00
0.0.7
This commit is contained in:
parent
9626233fa4
commit
5d8f52d21b
@ -12,17 +12,17 @@
|
||||
</el-input>
|
||||
</div>
|
||||
<div class="flex mt-[24px]">
|
||||
<div
|
||||
<div
|
||||
:class="['flex items-center text-[14px] h-[32px] border-[1px] border-solid my-[3px] border-[#E0E0E0] rounded-full px-[15px] mr-[24px] cursor-pointer bg-[#f8f8f8] hover:bg-[#fff]',{'text-[#fff] !bg-[#000] border-[#000]': activeName === 'installed'}]"
|
||||
@click="activeNameTabFn('installed')">
|
||||
{{ t('installLabel') }}
|
||||
</div>
|
||||
<div
|
||||
<div
|
||||
:class="['flex items-center text-[14px] h-[32px] border-[1px] border-solid my-[3px] border-[#E0E0E0] rounded-full px-[15px] mr-[24px] cursor-pointer bg-[#f8f8f8] hover:bg-[#fff]',{'text-[#fff] !bg-[#000] border-[#000]': activeName === 'uninstalled'}]"
|
||||
@click="activeNameTabFn('uninstalled')">
|
||||
{{ t('uninstalledLabel') }}
|
||||
</div>
|
||||
<div
|
||||
<div
|
||||
:class="['flex items-center text-[14px] h-[32px] border-[1px] border-solid my-[3px] border-[#E0E0E0] rounded-full px-[15px] mr-[24px] cursor-pointer bg-[#f8f8f8] hover:bg-[#fff]',{'text-[#fff] !bg-[#000] border-[#000]': activeName === 'all'}]"
|
||||
@click="activeNameTabFn('all')">
|
||||
{{ t('buyLabel') }}
|
||||
@ -89,7 +89,7 @@
|
||||
type="primary" link @click="uninstallAddonFn(row.key)">{{ t('unload') }}</el-button>
|
||||
<el-button class="!text-[13px]" v-else-if="row.is_download && row.install_info <= 0 && activeName != 'all'"
|
||||
type="primary" link @click="installAddonFn(row.key)">{{ t('install') }}</el-button>
|
||||
<el-button class="!text-[13px]" v-else :loading="downloading == row.key"
|
||||
<el-button class="!text-[13px]" v-else :loading="downloading == row.key"
|
||||
:disabled="downloading != ''" type="primary" link @click.stop="downEvent(row)">
|
||||
<span v-if="row.install_info && Object.keys(row.install_info)?.length">{{t('unloadDown')}}</span>
|
||||
<span v-else-if="row.is_download && row.install_info <= 0">{{t('installDown')}}</span>
|
||||
@ -277,7 +277,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="installStep == 2" class="h-[50vh] mt-[20px]">
|
||||
<terminal name="my-terminal" :context="currAddon" :init-log="null" :show-header="false"
|
||||
<terminal ref="terminalRef" :context="currAddon" :init-log="null" :show-header="false"
|
||||
:show-log-time="true" />
|
||||
</div>
|
||||
<div v-show="installStep == 3" class="h-[50vh] mt-[20px] flex flex-col">
|
||||
@ -380,6 +380,8 @@ const downloading = ref('')
|
||||
const installAfterTips = ref<string[]>([])
|
||||
const userStore = useUserStore()
|
||||
let unloadHintDialog = ref(false)
|
||||
const terminalRef = ref(null)
|
||||
|
||||
|
||||
let currDownData = ref()
|
||||
const downEventHintFn = ()=>{
|
||||
@ -608,8 +610,8 @@ const handleCloudInstall = () => {
|
||||
|
||||
cloudInstallAddon({ addon: currAddon.value }).then(res => {
|
||||
installStep.value = 2
|
||||
terminalApi.execute('my-terminal', 'clear')
|
||||
terminalApi.pushMessage('my-terminal', { content: '开始安装插件', class: 'info' })
|
||||
terminalRef.value.execute('clear')
|
||||
terminalRef.value.pushMessage({ content: '开始安装插件', class: 'info' })
|
||||
getInstallTask()
|
||||
cloudInstalling.value = false
|
||||
}).catch((res) => {
|
||||
@ -644,11 +646,11 @@ const getCloudInstallLog = () => {
|
||||
if (data[0] && data[0].length && installShowDialog.value == true) {
|
||||
data[0].forEach(item => {
|
||||
if (!installLog.includes(item.action)) {
|
||||
terminalApi.pushMessage('my-terminal', { content: `正在执行:${item.action}` })
|
||||
terminalRef.value.pushMessage({ content: `正在执行:${item.action}` })
|
||||
installLog.push(item.action)
|
||||
|
||||
if (item.code == 0) {
|
||||
terminalApi.pushMessage('my-terminal', { content: item.msg, class: 'error' })
|
||||
terminalRef.value.pushMessage({ content: item.msg, class: 'error' })
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -886,7 +888,7 @@ html.dark .table-head-bg {
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.el-empty .el-empty__image{
|
||||
.el-empty__image{
|
||||
width: auto !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="t('memberLabel')" v-if="type == 'member_label'">
|
||||
<el-select v-model="saveData.member_label" multiple collapse-tags :placeholder="t('memberLabelPlaceholder')" class="input-width">
|
||||
<el-select v-model="saveData.member_label" multiple :placeholder="t('memberLabelPlaceholder')" class="input-width">
|
||||
<el-option :label="item['label_name']" :value="item['label_id']" v-for="item in labelSelectData" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
@ -10,16 +10,15 @@
|
||||
|
||||
<template v-for="(item, index) in menus" :key="index">
|
||||
<template v-if="globalAppKey == item.meta.app && item.meta.parentTitle">
|
||||
<div class="group flex items-center justify-center h-[64px] cursor-pointer" @mouseenter="threefloatMenuHover">
|
||||
<div class="group flex items-center justify-center h-[64px] cursor-pointer">
|
||||
<img v-if="item.meta.parentIcon" :src="img(item.meta.parentIcon)" class="w-[40px] h-[40px] rounded-full" alt="">
|
||||
<div class="flex items-center justify-center w-[30px] h-[30px]" v-else>
|
||||
<icon v-if="item.meta.icon" :name="item.meta.icon" class="!w-auto" size="24px" />
|
||||
</div>
|
||||
<app-menu :isShowHover="threefloatMenu" :data="appList" @child-click="toLink" hoverType='threefloatMenu'></app-menu>
|
||||
</div>
|
||||
<div v-for="(appItem, appIndex) in item.children" :key="appIndex" @click="toLink(appItem)"
|
||||
:class="['rounded-sm flex items-center px-[8px] mb-[4px] h-[40px] cursor-pointer text-[#b9b9bf] hover:bg-[var(--el-color-primary)] hover:!text-[#fff] menu-item hover:text-color whitespace-nowrap', { 'bg-[var(--el-color-primary)] !text-[#fff] menu-item-active ': localMenuKey == appItem.meta.key}]">
|
||||
<icon v-if="appItem.meta.icon" :name="appItem.meta.icon" class="!w-auto" size="20px" :title="appItem.meta.title" />
|
||||
:class="['rounded-sm flex items-center px-[12px] mb-[4px] h-[40px] cursor-pointer text-[#b9b9bf] hover:bg-[var(--el-color-primary)] hover:!text-[#fff] menu-item hover:text-color whitespace-nowrap', { 'bg-[var(--el-color-primary)] !text-[#fff] menu-item-active ': localMenuKey == appItem.meta.key}]">
|
||||
<icon v-if="appItem.meta.icon" :name="appItem.meta.icon" class="!w-auto" size="16px" :title="appItem.meta.title" />
|
||||
<span class="text-[14px] ml-[8px]">{{appItem.meta.shortTitle}}</span>
|
||||
</div>
|
||||
</template>
|
||||
@ -27,8 +26,8 @@
|
||||
|
||||
<template v-for="(item, index) in menus" :key="index">
|
||||
<div v-if="!item.meta.app && item.meta.attr != 'tools' && item.meta.show" @click="toLink(item)"
|
||||
:class="['rounded-sm flex items-center px-[8px] mb-[4px] h-[40px] cursor-pointer text-[#b9b9bf] hover:bg-[var(--el-color-primary)] hover:!text-[#fff] menu-item hover:text-color whitespace-nowrap', { 'bg-[var(--el-color-primary)] !text-[#fff] menu-item-active ': (item.path == currentRoute.path || (currentRoute.path == '/admin' && item.path == '/index') || (currentRoute.meta.app && item.path == '/index')) }]">
|
||||
<icon v-if="item.meta.icon" :name="item.meta.icon" class="!w-auto" size="20px" :title="item.meta.title" />
|
||||
:class="['rounded-sm flex items-center px-[12px] mb-[4px] h-[40px] cursor-pointer text-[#b9b9bf] hover:bg-[var(--el-color-primary)] hover:!text-[#fff] menu-item hover:text-color whitespace-nowrap', { 'bg-[var(--el-color-primary)] !text-[#fff] menu-item-active ': (item.path == currentRoute.path || (currentRoute.path == '/admin' && item.path == '/index') || (currentRoute.meta.app && item.path == '/index')) }]">
|
||||
<icon v-if="item.meta.icon" :name="item.meta.icon" class="!w-auto" size="16px" :title="item.meta.title" />
|
||||
<span class="text-[14px] ml-[8px]">{{item.meta.shortTitle}}</span>
|
||||
</div>
|
||||
</template>
|
||||
@ -37,7 +36,7 @@
|
||||
</div>
|
||||
|
||||
<template v-for="(item, index) in menus" :key="index">
|
||||
<div v-if="isTwoMenuFn(item)" class="w-[155px] box-border border-r-[1px] border-solid second-menu">
|
||||
<div v-if="isTwoMenuFn(item)" class="w-[140px] box-border border-r-[1px] border-solid second-menu">
|
||||
<div class="group flex flex-col items-center justify-center h-[64px] border-b-[1px] border-solid second-head cursor-pointer relative" @mouseenter="twofloatMenuHover">
|
||||
{{ item.meta.title }}
|
||||
</div>
|
||||
@ -382,15 +381,27 @@ const isTwoMenuFn = (item) => {
|
||||
}
|
||||
|
||||
.second-menu .el-sub-menu .el-sub-menu__title {
|
||||
padding-left: 25px !important;
|
||||
padding-right: 25px !important;
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
margin: 0 8px 4px;
|
||||
height: 36px;
|
||||
border-radius: 2px;
|
||||
|
||||
.el-icon.el-sub-menu__icon-arrow {
|
||||
right: 25px;
|
||||
right: 5px;
|
||||
font-weight: bolder;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
.second-menu .el-menu-item{
|
||||
padding: 0 8px !important;
|
||||
margin: 0 8px 4px;
|
||||
height: 36px !important;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.second-menu .el-sub-menu .el-menu-item{
|
||||
padding-left: 20px !important;
|
||||
}
|
||||
|
||||
.three-menu.el-sub-menu .el-sub-menu__title {
|
||||
padding-left: 45px !important;
|
||||
@ -537,6 +548,7 @@ const isTwoMenuFn = (item) => {
|
||||
}
|
||||
|
||||
.menus-wrap {
|
||||
padding-top: 16px;
|
||||
height: calc(100vh - 64px);
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -0,0 +1,102 @@
|
||||
<template>
|
||||
<div v-if="data.length > 1 || app_debug " :class="[{'group-hover:flex': props.isShowHover},'hidden fixed left-0 top-[65px] z-[5555] bg-[#fff] w-[1076px] px-[28px] py-[20px] flex-wrap box-border shadow-lg ']">
|
||||
<div :class="['app-item w-[240px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mb-[20px] overflow-hidden',{'mr-[20px]': (index+1)%4 != 0}]" v-for="(item, index) in data" :key="index" @click="toLink(item, props.hoverType)">
|
||||
<div class="bg-[#F7FAFB] py-[15px] px-[22px] flex items-center app-item-head">
|
||||
<el-image class="w-[44px] h-[44px] rounded-[8px]" :src="img(item.icon)" fit="contain">
|
||||
<template #error>
|
||||
<div class="image-slot">
|
||||
<img class="w-[40px] h-[40px] rounded-[8px]"
|
||||
src="@/app/assets/images/app_store/app_store_default.png" />
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
</div>
|
||||
<div class="py-[15px] px-[22px]">
|
||||
<div class="font-[600] leading-[1] text-[14px] text-[#222]">{{ item.title }}</div>
|
||||
<el-tooltip class="box-item" effect="light" :content="item.desc" placement="bottom-start">
|
||||
<div class="text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate">
|
||||
{{ item.desc }}
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="app_debug" :class="['app-item w-[240px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mb-[20px] overflow-hidden',{'mr-[20px]': (data.length+1)%4 != 0}]" @click="toDeveloperLink()">
|
||||
<div class="bg-[#F7FAFB] py-[15px] px-[22px] flex items-center app-item-head developer">
|
||||
<img class="w-[40px] h-[40px] rounded-[8px]" src="@/app/assets/images/app_store/developer.png" />
|
||||
</div>
|
||||
<div class="py-[15px] px-[22px]">
|
||||
<div class="font-[600] leading-[1] text-[14px] text-[#222]">开发人员模式</div>
|
||||
<el-tooltip class="box-item" effect="light" content="开发人员模式" placement="bottom-start">
|
||||
<div class="text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate">
|
||||
开发人员模式
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<el-empty class="mx-auto overview-empty" v-if="!data.length">
|
||||
<template #image>
|
||||
<div class="w-[230px] mx-auto">
|
||||
<img src="@/app/assets/images/index/apply_empty.png" class="max-w-full" alt="">
|
||||
</div>
|
||||
</template>
|
||||
<template #description>
|
||||
<p class="flex items-center">
|
||||
<span>暂无安装任何应用,请点击</span>
|
||||
<el-link type="primary" @click="toAppStore" class="mx-[5px]">安装应用</el-link>
|
||||
<span>安装使用</span>
|
||||
</p>
|
||||
</template>
|
||||
</el-empty>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, watch, computed } from 'vue'
|
||||
import { img } from '@/utils/common'
|
||||
import { useRouter } from 'vue-router'
|
||||
import {getEnv} from '@/app/api/sys'
|
||||
let app_debug = ref(false)
|
||||
|
||||
const getEnvFn = () => {
|
||||
getEnv().then(res => {
|
||||
app_debug.value = res.data.app_debug;
|
||||
}).catch(() => {})
|
||||
}
|
||||
getEnvFn();
|
||||
const router = useRouter()
|
||||
const props = defineProps(['isShowHover','data','hoverType'])
|
||||
let data = ref([]);
|
||||
if(props.data){
|
||||
props.data.forEach((item,index) => {
|
||||
if(item.type == "app"){
|
||||
data.value.push(item);
|
||||
}
|
||||
});
|
||||
}
|
||||
const emit = defineEmits(['child-click'])
|
||||
const toLink = (data,type)=>{
|
||||
emit('child-click',data,type)
|
||||
}
|
||||
|
||||
|
||||
// 跳转至开发者
|
||||
const toAppStore = () => {
|
||||
router.push('/app_manage/app_store')
|
||||
}
|
||||
// 跳转到开发
|
||||
const toDeveloperLink = () =>{
|
||||
router.push('/app_manage/tools')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.app-item {
|
||||
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
.app-item:hover .app-item-head{
|
||||
background-color: var(--el-color-primary-light-8);
|
||||
}
|
||||
.app-item:hover .app-item-head.developer{
|
||||
background-color: #eee;
|
||||
}
|
||||
</style>
|
||||
@ -17,13 +17,13 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<div class="right-panel h-full flex items-center justify-end">
|
||||
<!-- 预览 只有站点时展示-->
|
||||
|
||||
<i class="iconfont iconlingdang-xianxing cursor-pointer px-[8px]" :title="t('newInfo')"></i>
|
||||
<!-- 切换应用 -->
|
||||
<div class="navbar-item flex items-center h-full cursor-pointer" @click="changeApp">
|
||||
<icon name="iconfont-iconqiehuan" :title="t('changeApp')" class="!text-xs" />
|
||||
<div class="group switch-app mr-[5px] flex items-center bg-[var(--el-color-primary-light-9)] cursor-pointer !rounded-[50px] px-[12px] py-[5px]" v-if="isLoad && (app_debug || appList.length > 1)" @mouseenter="threefloatMenuHover">
|
||||
<span class="iconfont iconbanbenqiehuan font-bold mr-[4px] !text-[12px] text-[var(--el-color-primary-light-3)]"></span>
|
||||
<span class="text-[12px] text-[var(--el-color-primary)]">切换应用</span>
|
||||
<app-menu class="!top-[45px] right-[180px] left-[auto] w-[auto] max-w-[1076px] min-w-[550px]" :isShowHover="threefloatMenu" :data="appList" @child-click="toLink" hoverType='threefloatMenu'></app-menu>
|
||||
</div>
|
||||
<!-- 预览 只有站点时展示-->
|
||||
<i class="iconfont iconlingdang-xianxing cursor-pointer px-[8px]" :title="t('newInfo')" ></i>
|
||||
<!-- 切换语言 -->
|
||||
<div class="navbar-item !px-[0] flex items-center h-full cursor-pointer">
|
||||
<switch-lang />
|
||||
@ -87,8 +87,13 @@ import useSystemStore from '@/stores/modules/system'
|
||||
import useAppStore from '@/stores/modules/app'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { t } from '@/lang'
|
||||
import appMenu from './components/app-menu.vue'
|
||||
import storage from '@/utils/storage'
|
||||
import { getIndexList, setIndexList } from '@/app/api/sys'
|
||||
import useUserStore from '@/stores/modules/user'
|
||||
import { getIndexList, setIndexList, getEnv } from '@/app/api/sys'
|
||||
import { findFirstValidRoute } from '@/router/routers'
|
||||
import { getApply } from '@/app/api/apply'
|
||||
import { CollectionTag } from '@element-plus/icons-vue'
|
||||
|
||||
const router = useRouter()
|
||||
const appType = storage.get('app_type')
|
||||
@ -131,9 +136,6 @@ const toggleMenuCollapse = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const changeApp = ()=>{
|
||||
router.push({ path: '/app_manage/app_store' })
|
||||
}
|
||||
// 刷新路由
|
||||
const refreshRouter = () => {
|
||||
if (!appStore.routeRefreshTag) return
|
||||
@ -175,6 +177,77 @@ const submitIndex = () => {
|
||||
router.go(0)
|
||||
})
|
||||
}
|
||||
|
||||
// 应用列表 - strat
|
||||
let app_debug = ref(false)
|
||||
const getEnvFn = () => {
|
||||
getEnv().then(res => {
|
||||
app_debug.value = res.data.app_debug;
|
||||
}).catch(() => {})
|
||||
}
|
||||
getEnvFn();
|
||||
|
||||
const userStore = useUserStore()
|
||||
let threefloatMenu = ref(true);
|
||||
const threefloatMenuHover = ()=>{
|
||||
threefloatMenu.value = true;
|
||||
}
|
||||
|
||||
const getLinkName = (res)=>{
|
||||
if(res.children && res.children.length){
|
||||
return getLinkName(res.children[0])
|
||||
}
|
||||
return res.name
|
||||
}
|
||||
const appLink = ref({})
|
||||
userStore.routers.forEach((item, index) => {
|
||||
if (item.children && item.children.length) {
|
||||
item.name = findFirstValidRoute(item.children)
|
||||
appLink.value[item.meta.app] = findFirstValidRoute(item.children)
|
||||
} else {
|
||||
appLink.value[item.meta.app] = item.name
|
||||
}
|
||||
})
|
||||
// 用于插件的卸载或安装
|
||||
watch(() =>userStore.globalAppKey, (val,old) => {
|
||||
getAppList();
|
||||
},{deep: true})
|
||||
|
||||
// 应用数据
|
||||
const appList = ref([])
|
||||
const isLoad = ref(false);
|
||||
const getAppList = async () => {
|
||||
const res = await getApply()
|
||||
appList.value = appList.value.concat(res.data)
|
||||
isLoad.value = true;
|
||||
}
|
||||
getAppList()
|
||||
|
||||
const toLink = (data, type) => {
|
||||
if(type == 'threefloatMenu') threefloatMenu.value = false;
|
||||
if (!data.meta && data.type == 'app' || data.meta.key != 'official_market') {
|
||||
let name = data.name;
|
||||
if(data.type == 'app'){
|
||||
storage.set({ key: 'menuAppStorage', data: data.key })
|
||||
storage.set({ key: 'plugMenuTypeStorage', data: '' })
|
||||
|
||||
const appMenuList = userStore.appMenuList
|
||||
appMenuList.push(data.key)
|
||||
userStore.setAppMenuList(appMenuList)
|
||||
|
||||
name = appLink.value[data.key];
|
||||
}else if(data.meta.app){
|
||||
name = getLinkName(data);
|
||||
}
|
||||
router.push({ name: name })
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 500);
|
||||
} else {
|
||||
window.open('https://www.niucloud.com/app', '_blank')
|
||||
}
|
||||
}
|
||||
// 应用列表 - end
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@ -200,4 +273,5 @@ const submitIndex = () => {
|
||||
color: #fff;
|
||||
background-color: var(--el-color-primary);
|
||||
}
|
||||
}</style>
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -10,26 +10,25 @@
|
||||
|
||||
<template v-for="(item, index) in menus" :key="index">
|
||||
<template v-if="globalAppKey == item.meta.app && item.meta.parentTitle">
|
||||
<div class="group flex items-center justify-center h-[64px] cursor-pointer" @mouseenter="threefloatMenuHover">
|
||||
<div class="group flex items-center justify-center h-[64px]">
|
||||
<img v-if="item.meta.parentIcon" :src="img(item.meta.parentIcon)" class="w-[40px] h-[40px] rounded-full" alt="">
|
||||
<div class="flex items-center justify-center w-[30px] h-[30px]" v-else>
|
||||
<icon v-if="item.meta.icon" :name="item.meta.icon" class="!w-auto" size="24px" />
|
||||
</div>
|
||||
<app-menu :isShowHover="threefloatMenu" :data="appList" @child-click="toLink" hoverType='threefloatMenu'></app-menu>
|
||||
</div>
|
||||
<div v-for="(appItem, appIndex) in item.children" :key="appIndex" @click="toLink(appItem)"
|
||||
:class="['rounded-[5px] flex justify-center flex-col items-center h-[54px] w-[54px] m-[5px] cursor-pointer text-[#fff] hover:bg-[var(--el-color-primary)] hover:!text-[#fff] menu-item hover:text-color whitespace-nowrap', { 'bg-[var(--el-color-primary)] !text-[#fff] menu-item-active ': localMenuKey == appItem.meta.key}]">
|
||||
:class="['rounded-[5px] leading-[1] flex justify-center flex-col items-center h-[54px] w-[54px] m-[5px] mb-[0] cursor-pointer text-[#b9b9bf] hover:bg-[var(--el-color-primary)] hover:!text-[#fff] menu-item hover:text-color whitespace-nowrap', { 'bg-[var(--el-color-primary)] !text-[#fff] menu-item-active ': localMenuKey == appItem.meta.key}]">
|
||||
<icon v-if="appItem.meta.icon" :name="appItem.meta.icon" class="!w-auto" size="16px" :title="appItem.meta.title" />
|
||||
<span class="text-[14px] leading-1">{{appItem.meta.shortTitle}}</span>
|
||||
<span class="text-[14px] leading-[1] mt-[5px]">{{appItem.meta.shortTitle}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<template v-for="(item, index) in menus" :key="index">
|
||||
<div v-if="!item.meta.app && item.meta.attr != 'tools' && item.meta.show" @click="toLink(item)"
|
||||
:class="['rounded-[5px] flex justify-center flex-col items-center m-[5px] h-[54px] w-[54px] cursor-pointer text-[#fff] hover:bg-[var(--el-color-primary)] hover:!text-[#fff] menu-item hover:text-color whitespace-nowrap', { 'bg-[var(--el-color-primary)] !text-[#fff] menu-item-active ': (item.path == currentRoute.path || (currentRoute.path == '/admin' && item.path == '/index') || (currentRoute.meta.app && item.path == '/index')) }]">
|
||||
:class="['rounded-[5px] flex leading-[1] justify-center flex-col items-center m-[5px] mb-[0] h-[54px] w-[54px] cursor-pointer text-[#b9b9bf] hover:bg-[var(--el-color-primary)] hover:!text-[#fff] menu-item hover:text-color whitespace-nowrap', { 'bg-[var(--el-color-primary)] !text-[#fff] menu-item-active ': (item.path == currentRoute.path || (currentRoute.path == '/admin' && item.path == '/index') || (currentRoute.meta.app && item.path == '/index')) }]">
|
||||
<icon v-if="item.meta.icon" :name="item.meta.icon" class="!w-auto" size="16px" :title="item.meta.title" />
|
||||
<span class="text-[14px] leading-1">{{item.meta.shortTitle}}</span>
|
||||
<span class="text-[14px] leading-[1] mt-[5px]">{{item.meta.shortTitle}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
@ -37,7 +36,7 @@
|
||||
</div>
|
||||
|
||||
<template v-for="(item, index) in menus" :key="index">
|
||||
<div v-if="isTwoMenuFn(item)" class="w-[201px] box-border border-r-[1px] border-solid second-menu">
|
||||
<div v-if="isTwoMenuFn(item)" class="w-[191px] box-border border-r-[1px] border-solid second-menu">
|
||||
<div class="group flex flex-col items-center justify-center h-[60px] border-b-[1px] border-solid second-head cursor-pointer relative" @mouseenter="twofloatMenuHover">
|
||||
{{ item.meta.title }}
|
||||
</div>
|
||||
@ -95,7 +94,7 @@
|
||||
</el-sub-menu>
|
||||
|
||||
<el-menu-item v-else-if="twoMenu.meta.show && twoMenu.meta.key != 'official_market'"
|
||||
class="!pl-[20px] text-[#333]" :index="String(twoMenu.name)" @click="toLink(twoMenu)">
|
||||
class="!pl-[10px] text-[#333]" :index="String(twoMenu.name)" @click="toLink(twoMenu)">
|
||||
<template #title>
|
||||
<div class="w-[16px] h-[16px] mr-[3px] relative flex items-center">
|
||||
<icon v-if="twoMenu.meta.icon" :name="twoMenu.meta.icon" class="!w-auto" size="16px" />
|
||||
@ -113,7 +112,7 @@
|
||||
<span class="text-[14px]">{{ twoMenu.meta.title }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<el-menu-item v-if="!item.children" class="!pl-[20px] text-[#333]" :index="String(item.name)" @click="toLink(item)">
|
||||
<el-menu-item v-if="!item.children" class="!pl-[10px] text-[#333]" :index="String(item.name)" @click="toLink(item)">
|
||||
<template #title>
|
||||
<span class="text-[14px]">{{ item.meta.title }}</span>
|
||||
</template>
|
||||
@ -157,7 +156,7 @@
|
||||
</template>
|
||||
</el-sub-menu>
|
||||
<el-menu-item v-else-if="twoMenu.meta.app && twoMenu.meta.app == plugMenuType"
|
||||
class="!pl-[20px] text-[#333]" :index="String(twoMenu.name)"
|
||||
class="!pl-[10px] text-[#333]" :index="String(twoMenu.name)"
|
||||
@click="toLink(twoMenu)">
|
||||
<template #title>
|
||||
<div class="w-[16px] h-[16px] mr-[3px] relative flex items-center">
|
||||
@ -395,12 +394,12 @@ const isTwoMenuFn = (item) => {
|
||||
}
|
||||
|
||||
.second-menu .el-sub-menu .el-sub-menu__title {
|
||||
padding-left: 20px !important;
|
||||
padding-left: 10px !important;
|
||||
padding-right: 25px !important;
|
||||
height: 50px !important;
|
||||
border-radius: 5px;
|
||||
height: 40px !important;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 5px;
|
||||
margin-bottom: 2px;
|
||||
&:hover{
|
||||
color: var(--el-color-primary);
|
||||
}
|
||||
@ -414,10 +413,10 @@ const isTwoMenuFn = (item) => {
|
||||
|
||||
|
||||
.second-menu .el-menu-item{
|
||||
height: 50px !important;
|
||||
border-radius: 5px;
|
||||
height: 40px !important;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 5px;
|
||||
margin-bottom: 2px;
|
||||
&.is-active{
|
||||
background-color: var(--el-menu-hover-bg-color);
|
||||
}
|
||||
|
||||
@ -0,0 +1,102 @@
|
||||
<template>
|
||||
<div v-if="data.length > 1 || app_debug " :class="[{'group-hover:flex': props.isShowHover},'hidden fixed left-0 top-[65px] z-[5555] bg-[#fff] w-[1076px] px-[28px] py-[20px] flex-wrap box-border shadow-lg ']">
|
||||
<div :class="['app-item w-[240px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mb-[20px] overflow-hidden',{'mr-[20px]': (index+1)%4 != 0}]" v-for="(item, index) in data" :key="index" @click="toLink(item, props.hoverType)">
|
||||
<div class="bg-[#F7FAFB] py-[15px] px-[22px] flex items-center app-item-head">
|
||||
<el-image class="w-[44px] h-[44px] rounded-[8px]" :src="img(item.icon)" fit="contain">
|
||||
<template #error>
|
||||
<div class="image-slot">
|
||||
<img class="w-[40px] h-[40px] rounded-[8px]"
|
||||
src="@/app/assets/images/app_store/app_store_default.png" />
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
</div>
|
||||
<div class="py-[15px] px-[22px]">
|
||||
<div class="font-[600] leading-[1] text-[14px] text-[#222]">{{ item.title }}</div>
|
||||
<el-tooltip class="box-item" effect="light" :content="item.desc" placement="bottom-start">
|
||||
<div class="text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate">
|
||||
{{ item.desc }}
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="app_debug" :class="['app-item w-[240px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mb-[20px] overflow-hidden',{'mr-[20px]': (data.length+1)%4 != 0}]" @click="toDeveloperLink()">
|
||||
<div class="bg-[#F7FAFB] py-[15px] px-[22px] flex items-center app-item-head developer">
|
||||
<img class="w-[40px] h-[40px] rounded-[8px]" src="@/app/assets/images/app_store/developer.png" />
|
||||
</div>
|
||||
<div class="py-[15px] px-[22px]">
|
||||
<div class="font-[600] leading-[1] text-[14px] text-[#222]">开发人员模式</div>
|
||||
<el-tooltip class="box-item" effect="light" content="开发人员模式" placement="bottom-start">
|
||||
<div class="text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate">
|
||||
开发人员模式
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<el-empty class="mx-auto overview-empty" v-if="!data.length">
|
||||
<template #image>
|
||||
<div class="w-[230px] mx-auto">
|
||||
<img src="@/app/assets/images/index/apply_empty.png" class="max-w-full" alt="">
|
||||
</div>
|
||||
</template>
|
||||
<template #description>
|
||||
<p class="flex items-center">
|
||||
<span>暂无安装任何应用,请点击</span>
|
||||
<el-link type="primary" @click="toAppStore" class="mx-[5px]">安装应用</el-link>
|
||||
<span>安装使用</span>
|
||||
</p>
|
||||
</template>
|
||||
</el-empty>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, watch, computed } from 'vue'
|
||||
import { img } from '@/utils/common'
|
||||
import { useRouter } from 'vue-router'
|
||||
import {getEnv} from '@/app/api/sys'
|
||||
let app_debug = ref(false)
|
||||
|
||||
const getEnvFn = () => {
|
||||
getEnv().then(res => {
|
||||
app_debug.value = res.data.app_debug;
|
||||
}).catch(() => {})
|
||||
}
|
||||
getEnvFn();
|
||||
const router = useRouter()
|
||||
const props = defineProps(['isShowHover','data','hoverType'])
|
||||
let data = ref([]);
|
||||
if(props.data){
|
||||
props.data.forEach((item,index) => {
|
||||
if(item.type == "app"){
|
||||
data.value.push(item);
|
||||
}
|
||||
});
|
||||
}
|
||||
const emit = defineEmits(['child-click'])
|
||||
const toLink = (data,type)=>{
|
||||
emit('child-click',data,type)
|
||||
}
|
||||
|
||||
|
||||
// 跳转至开发者
|
||||
const toAppStore = () => {
|
||||
router.push('/app_manage/app_store')
|
||||
}
|
||||
// 跳转到开发
|
||||
const toDeveloperLink = () =>{
|
||||
router.push('/app_manage/tools')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.app-item {
|
||||
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
.app-item:hover .app-item-head{
|
||||
background-color: var(--el-color-primary-light-8);
|
||||
}
|
||||
.app-item:hover .app-item-head.developer{
|
||||
background-color: #eee;
|
||||
}
|
||||
</style>
|
||||
@ -17,13 +17,13 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<div class="right-panel h-full flex items-center justify-end">
|
||||
<!-- 预览 只有站点时展示-->
|
||||
|
||||
<i class="iconfont iconlingdang-xianxing cursor-pointer px-[8px]" :title="t('newInfo')" ></i>
|
||||
<!-- 切换应用 -->
|
||||
<div class="navbar-item flex items-center h-full cursor-pointer" @click="changeApp">
|
||||
<icon name="iconfont-iconqiehuan" :title="t('changeApp')" class="!text-xs" />
|
||||
<div class="group switch-app mr-[5px] flex items-center bg-[var(--el-color-primary-light-9)] cursor-pointer !rounded-[50px] px-[12px] py-[5px]" v-if="isLoad && (app_debug || appList.length > 1)" @mouseenter="threefloatMenuHover">
|
||||
<span class="iconfont iconbanbenqiehuan font-bold mr-[4px] !text-[12px] text-[var(--el-color-primary-light-3)]"></span>
|
||||
<span class="text-[12px] text-[var(--el-color-primary)]">切换应用</span>
|
||||
<app-menu class="!top-[45px] right-[180px] left-[auto] w-[auto] max-w-[1076px] min-w-[550px]" :isShowHover="threefloatMenu" :data="appList" @child-click="toLink" hoverType='threefloatMenu'></app-menu>
|
||||
</div>
|
||||
<!-- 预览 只有站点时展示-->
|
||||
<i class="iconfont iconlingdang-xianxing cursor-pointer px-[8px]" :title="t('newInfo')" ></i>
|
||||
<!-- 切换语言 -->
|
||||
<div class="navbar-item !px-[0] flex items-center h-full cursor-pointer">
|
||||
<switch-lang />
|
||||
@ -87,8 +87,13 @@ import useSystemStore from '@/stores/modules/system'
|
||||
import useAppStore from '@/stores/modules/app'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { t } from '@/lang'
|
||||
import appMenu from './components/app-menu.vue'
|
||||
import storage from '@/utils/storage'
|
||||
import { getIndexList, setIndexList } from '@/app/api/sys'
|
||||
import useUserStore from '@/stores/modules/user'
|
||||
import { getIndexList, setIndexList, getEnv } from '@/app/api/sys'
|
||||
import { findFirstValidRoute } from '@/router/routers'
|
||||
import { getApply } from '@/app/api/apply'
|
||||
import { CollectionTag } from '@element-plus/icons-vue'
|
||||
|
||||
const router = useRouter()
|
||||
const appType = storage.get('app_type')
|
||||
@ -119,9 +124,6 @@ watch(screenWidth, () => {
|
||||
}
|
||||
})
|
||||
|
||||
const changeApp = ()=>{
|
||||
router.push({ path: '/app_manage/app_store' })
|
||||
}
|
||||
// 菜单栏展开折叠
|
||||
const toggleMenuCollapse = () => {
|
||||
systemStore.$patch((state) => {
|
||||
@ -175,6 +177,77 @@ const submitIndex = () => {
|
||||
router.go(0)
|
||||
})
|
||||
}
|
||||
|
||||
// 应用列表 - strat
|
||||
let app_debug = ref(false)
|
||||
const getEnvFn = () => {
|
||||
getEnv().then(res => {
|
||||
app_debug.value = res.data.app_debug;
|
||||
}).catch(() => {})
|
||||
}
|
||||
getEnvFn();
|
||||
|
||||
const userStore = useUserStore()
|
||||
let threefloatMenu = ref(true);
|
||||
const threefloatMenuHover = ()=>{
|
||||
threefloatMenu.value = true;
|
||||
}
|
||||
|
||||
const getLinkName = (res)=>{
|
||||
if(res.children && res.children.length){
|
||||
return getLinkName(res.children[0])
|
||||
}
|
||||
return res.name
|
||||
}
|
||||
const appLink = ref({})
|
||||
userStore.routers.forEach((item, index) => {
|
||||
if (item.children && item.children.length) {
|
||||
item.name = findFirstValidRoute(item.children)
|
||||
appLink.value[item.meta.app] = findFirstValidRoute(item.children)
|
||||
} else {
|
||||
appLink.value[item.meta.app] = item.name
|
||||
}
|
||||
})
|
||||
// 用于插件的卸载或安装
|
||||
watch(() =>userStore.globalAppKey, (val,old) => {
|
||||
getAppList();
|
||||
},{deep: true})
|
||||
|
||||
// 应用数据
|
||||
const appList = ref([])
|
||||
const isLoad = ref(false);
|
||||
const getAppList = async () => {
|
||||
const res = await getApply()
|
||||
appList.value = appList.value.concat(res.data)
|
||||
isLoad.value = true;
|
||||
}
|
||||
getAppList()
|
||||
|
||||
const toLink = (data, type) => {
|
||||
if(type == 'threefloatMenu') threefloatMenu.value = false;
|
||||
if (!data.meta && data.type == 'app' || data.meta.key != 'official_market') {
|
||||
let name = data.name;
|
||||
if(data.type == 'app'){
|
||||
storage.set({ key: 'menuAppStorage', data: data.key })
|
||||
storage.set({ key: 'plugMenuTypeStorage', data: '' })
|
||||
|
||||
const appMenuList = userStore.appMenuList
|
||||
appMenuList.push(data.key)
|
||||
userStore.setAppMenuList(appMenuList)
|
||||
|
||||
name = appLink.value[data.key];
|
||||
}else if(data.meta.app){
|
||||
name = getLinkName(data);
|
||||
}
|
||||
router.push({ name: name })
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 500);
|
||||
} else {
|
||||
window.open('https://www.niucloud.com/app', '_blank')
|
||||
}
|
||||
}
|
||||
// 应用列表 - end
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@ -201,4 +274,5 @@ const submitIndex = () => {
|
||||
color: #fff;
|
||||
background-color: var(--el-color-primary);
|
||||
}
|
||||
}</style>
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
<template v-for="(item, index) in menus" :key="index">
|
||||
<div v-if="isTwoMenuFn(item)" class="w-[210px] box-border border-r-[1px] border-solid second-menu">
|
||||
<div class="group flex flex-col items-center justify-center h-[64px] border-b-[1px] border-solid second-head cursor-pointer relative" @mouseenter="twofloatMenuHover">
|
||||
<div class="group flex flex-col items-center justify-center h-[64px] border-b-[1px] border-solid second-head cursor-pointer relative">
|
||||
<div class="flex items-center">
|
||||
<img v-if="item.meta.parentIcon" :src="img(item.meta.parentIcon)" class="w-[40px] h-[40px] mr-[8px] rounded-full" alt="">
|
||||
<div class="flex items-center justify-center w-[30px] h-[30px]" v-else>
|
||||
@ -11,7 +11,6 @@
|
||||
</div>
|
||||
<span>{{ item.meta.app ? item.meta.parentTitle : item.meta.title }}</span>
|
||||
</div>
|
||||
<app-menu :isShowHover="twofloatMenu" :data="appList" @child-click="toLink" hoverType='twofloatMenu'></app-menu>
|
||||
</div>
|
||||
|
||||
<el-scrollbar class="overflow-y-auto menus-wrap">
|
||||
@ -506,9 +505,15 @@ const isTwoMenuFn = (item) => {
|
||||
}
|
||||
}
|
||||
|
||||
.second-menu .el-menu-item{
|
||||
height: 40px !important;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.second-menu .el-sub-menu .el-sub-menu__title {
|
||||
padding-left: 25px !important;
|
||||
padding-right: 25px !important;
|
||||
height: 40px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.el-icon.el-sub-menu__icon-arrow {
|
||||
right: 25px;
|
||||
|
||||
@ -0,0 +1,102 @@
|
||||
<template>
|
||||
<div v-if="data.length > 1 || app_debug " :class="[{'group-hover:flex': props.isShowHover},'hidden fixed left-0 top-[65px] z-[5555] bg-[#fff] w-[1076px] px-[28px] py-[20px] flex-wrap box-border shadow-lg ']">
|
||||
<div :class="['app-item w-[240px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mb-[20px] overflow-hidden',{'mr-[20px]': (index+1)%4 != 0}]" v-for="(item, index) in data" :key="index" @click="toLink(item, props.hoverType)">
|
||||
<div class="bg-[#F7FAFB] py-[15px] px-[22px] flex items-center app-item-head">
|
||||
<el-image class="w-[44px] h-[44px] rounded-[8px]" :src="img(item.icon)" fit="contain">
|
||||
<template #error>
|
||||
<div class="image-slot">
|
||||
<img class="w-[40px] h-[40px] rounded-[8px]"
|
||||
src="@/app/assets/images/app_store/app_store_default.png" />
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
</div>
|
||||
<div class="py-[15px] px-[22px]">
|
||||
<div class="font-[600] leading-[1] text-[14px] text-[#222]">{{ item.title }}</div>
|
||||
<el-tooltip class="box-item" effect="light" :content="item.desc" placement="bottom-start">
|
||||
<div class="text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate">
|
||||
{{ item.desc }}
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="app_debug" :class="['app-item w-[240px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mb-[20px] overflow-hidden',{'mr-[20px]': (data.length+1)%4 != 0}]" @click="toDeveloperLink()">
|
||||
<div class="bg-[#F7FAFB] py-[15px] px-[22px] flex items-center app-item-head developer">
|
||||
<img class="w-[40px] h-[40px] rounded-[8px]" src="@/app/assets/images/app_store/developer.png" />
|
||||
</div>
|
||||
<div class="py-[15px] px-[22px]">
|
||||
<div class="font-[600] leading-[1] text-[14px] text-[#222]">开发人员模式</div>
|
||||
<el-tooltip class="box-item" effect="light" content="开发人员模式" placement="bottom-start">
|
||||
<div class="text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate">
|
||||
开发人员模式
|
||||
</div>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<el-empty class="mx-auto overview-empty" v-if="!data.length">
|
||||
<template #image>
|
||||
<div class="w-[230px] mx-auto">
|
||||
<img src="@/app/assets/images/index/apply_empty.png" class="max-w-full" alt="">
|
||||
</div>
|
||||
</template>
|
||||
<template #description>
|
||||
<p class="flex items-center">
|
||||
<span>暂无安装任何应用,请点击</span>
|
||||
<el-link type="primary" @click="toAppStore" class="mx-[5px]">安装应用</el-link>
|
||||
<span>安装使用</span>
|
||||
</p>
|
||||
</template>
|
||||
</el-empty>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, watch, computed } from 'vue'
|
||||
import { img } from '@/utils/common'
|
||||
import { useRouter } from 'vue-router'
|
||||
import {getEnv} from '@/app/api/sys'
|
||||
let app_debug = ref(false)
|
||||
|
||||
const getEnvFn = () => {
|
||||
getEnv().then(res => {
|
||||
app_debug.value = res.data.app_debug;
|
||||
}).catch(() => {})
|
||||
}
|
||||
getEnvFn();
|
||||
const router = useRouter()
|
||||
const props = defineProps(['isShowHover','data','hoverType'])
|
||||
let data = ref([]);
|
||||
if(props.data){
|
||||
props.data.forEach((item,index) => {
|
||||
if(item.type == "app"){
|
||||
data.value.push(item);
|
||||
}
|
||||
});
|
||||
}
|
||||
const emit = defineEmits(['child-click'])
|
||||
const toLink = (data,type)=>{
|
||||
emit('child-click',data,type)
|
||||
}
|
||||
|
||||
|
||||
// 跳转至开发者
|
||||
const toAppStore = () => {
|
||||
router.push('/app_manage/app_store')
|
||||
}
|
||||
// 跳转到开发
|
||||
const toDeveloperLink = () =>{
|
||||
router.push('/app_manage/tools')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.app-item {
|
||||
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
.app-item:hover .app-item-head{
|
||||
background-color: var(--el-color-primary-light-8);
|
||||
}
|
||||
.app-item:hover .app-item-head.developer{
|
||||
background-color: #eee;
|
||||
}
|
||||
</style>
|
||||
@ -17,12 +17,13 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<div class="right-panel h-full flex items-center justify-end">
|
||||
<!-- 预览 只有站点时展示-->
|
||||
<i class="iconfont iconlingdang-xianxing cursor-pointer px-[8px]" :title="t('newInfo')"></i>
|
||||
<!-- 切换应用 -->
|
||||
<div class="navbar-item flex items-center h-full cursor-pointer" @click="changeApp">
|
||||
<icon name="iconfont-iconqiehuan" :title="t('changeApp')" class="!text-xs" />
|
||||
<div class="group switch-app mr-[5px] flex items-center bg-[var(--el-color-primary-light-9)] cursor-pointer !rounded-[50px] px-[12px] py-[5px]" v-if="isLoad && (app_debug || appList.length > 1)" @mouseenter="threefloatMenuHover">
|
||||
<span class="iconfont iconbanbenqiehuan font-bold mr-[4px] !text-[12px] text-[var(--el-color-primary-light-3)]"></span>
|
||||
<span class="text-[12px] text-[var(--el-color-primary)]">切换应用</span>
|
||||
<app-menu class="!top-[45px] right-[180px] left-[auto] w-[auto] max-w-[1076px] min-w-[550px]" :isShowHover="threefloatMenu" :data="appList" @child-click="toLink" hoverType='threefloatMenu'></app-menu>
|
||||
</div>
|
||||
<!-- 预览 只有站点时展示-->
|
||||
<i class="iconfont iconlingdang-xianxing cursor-pointer px-[8px]" :title="t('newInfo')" ></i>
|
||||
<!-- 切换语言 -->
|
||||
<div class="navbar-item !px-[0] flex items-center h-full cursor-pointer">
|
||||
<switch-lang />
|
||||
@ -86,8 +87,13 @@ import useSystemStore from '@/stores/modules/system'
|
||||
import useAppStore from '@/stores/modules/app'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { t } from '@/lang'
|
||||
import appMenu from './components/app-menu.vue'
|
||||
import storage from '@/utils/storage'
|
||||
import { getIndexList, setIndexList } from '@/app/api/sys'
|
||||
import useUserStore from '@/stores/modules/user'
|
||||
import { getIndexList, setIndexList, getEnv } from '@/app/api/sys'
|
||||
import { findFirstValidRoute } from '@/router/routers'
|
||||
import { getApply } from '@/app/api/apply'
|
||||
import { CollectionTag } from '@element-plus/icons-vue'
|
||||
|
||||
const router = useRouter()
|
||||
const appType = storage.get('app_type')
|
||||
@ -162,10 +168,6 @@ const checkIndexList = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const changeApp = ()=>{
|
||||
router.push({ path: '/app_manage/app_store' })
|
||||
}
|
||||
|
||||
const index_path = ref('')
|
||||
const submitIndex = () => {
|
||||
setIndexList({
|
||||
@ -175,6 +177,77 @@ const submitIndex = () => {
|
||||
router.go(0)
|
||||
})
|
||||
}
|
||||
|
||||
// 应用列表 - strat
|
||||
let app_debug = ref(false)
|
||||
const getEnvFn = () => {
|
||||
getEnv().then(res => {
|
||||
app_debug.value = res.data.app_debug;
|
||||
}).catch(() => {})
|
||||
}
|
||||
getEnvFn();
|
||||
|
||||
const userStore = useUserStore()
|
||||
let threefloatMenu = ref(true);
|
||||
const threefloatMenuHover = ()=>{
|
||||
threefloatMenu.value = true;
|
||||
}
|
||||
|
||||
const getLinkName = (res)=>{
|
||||
if(res.children && res.children.length){
|
||||
return getLinkName(res.children[0])
|
||||
}
|
||||
return res.name
|
||||
}
|
||||
const appLink = ref({})
|
||||
userStore.routers.forEach((item, index) => {
|
||||
if (item.children && item.children.length) {
|
||||
item.name = findFirstValidRoute(item.children)
|
||||
appLink.value[item.meta.app] = findFirstValidRoute(item.children)
|
||||
} else {
|
||||
appLink.value[item.meta.app] = item.name
|
||||
}
|
||||
})
|
||||
// 用于插件的卸载或安装
|
||||
watch(() =>userStore.globalAppKey, (val,old) => {
|
||||
getAppList();
|
||||
},{deep: true})
|
||||
|
||||
// 应用数据
|
||||
const appList = ref([])
|
||||
const isLoad = ref(false);
|
||||
const getAppList = async () => {
|
||||
const res = await getApply()
|
||||
appList.value = appList.value.concat(res.data)
|
||||
isLoad.value = true;
|
||||
}
|
||||
getAppList()
|
||||
|
||||
const toLink = (data, type) => {
|
||||
if(type == 'threefloatMenu') threefloatMenu.value = false;
|
||||
if (!data.meta && data.type == 'app' || data.meta.key != 'official_market') {
|
||||
let name = data.name;
|
||||
if(data.type == 'app'){
|
||||
storage.set({ key: 'menuAppStorage', data: data.key })
|
||||
storage.set({ key: 'plugMenuTypeStorage', data: '' })
|
||||
|
||||
const appMenuList = userStore.appMenuList
|
||||
appMenuList.push(data.key)
|
||||
userStore.setAppMenuList(appMenuList)
|
||||
|
||||
name = appLink.value[data.key];
|
||||
}else if(data.meta.app){
|
||||
name = getLinkName(data);
|
||||
}
|
||||
router.push({ name: name })
|
||||
setTimeout(() => {
|
||||
location.reload();
|
||||
}, 500);
|
||||
} else {
|
||||
window.open('https://www.niucloud.com/app', '_blank')
|
||||
}
|
||||
}
|
||||
// 应用列表 - end
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@ -200,4 +273,5 @@ const submitIndex = () => {
|
||||
color: #fff;
|
||||
background-color: var(--el-color-primary);
|
||||
}
|
||||
}</style>
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
@font-face {
|
||||
font-family: "iconfont"; /* Project id 3883393 */
|
||||
src: url('//at.alicdn.com/t/c/font_3883393_zbqffn9fec.woff2?t=1698204164945') format('woff2'),
|
||||
url('//at.alicdn.com/t/c/font_3883393_zbqffn9fec.woff?t=1698204164945') format('woff'),
|
||||
url('//at.alicdn.com/t/c/font_3883393_zbqffn9fec.ttf?t=1698204164945') format('truetype');
|
||||
src: url('//at.alicdn.com/t/c/font_3883393_erjynwpchx8.woff2?t=1701160588877') format('woff2'),
|
||||
url('//at.alicdn.com/t/c/font_3883393_erjynwpchx8.woff?t=1701160588877') format('woff'),
|
||||
url('//at.alicdn.com/t/c/font_3883393_erjynwpchx8.ttf?t=1701160588877') format('truetype');
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
@ -13,6 +13,102 @@
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.iconbanbenqiehuan:before {
|
||||
content: "\e792";
|
||||
}
|
||||
|
||||
.icontuichudenglu:before {
|
||||
content: "\e64a";
|
||||
}
|
||||
|
||||
.iconhuojian:before {
|
||||
content: "\e6ff";
|
||||
}
|
||||
|
||||
.iconicon_huojian1:before {
|
||||
content: "\e6fe";
|
||||
}
|
||||
|
||||
.iconrili1:before {
|
||||
content: "\e62e";
|
||||
}
|
||||
|
||||
.iconrili:before {
|
||||
content: "\e664";
|
||||
}
|
||||
|
||||
.iconshouquanliebiao:before {
|
||||
content: "\e6fd";
|
||||
}
|
||||
|
||||
.icontishi:before {
|
||||
content: "\e6fc";
|
||||
}
|
||||
|
||||
.iconwodedingdan:before {
|
||||
content: "\e6f2";
|
||||
}
|
||||
|
||||
.icongerenxinxi:before {
|
||||
content: "\e6f4";
|
||||
}
|
||||
|
||||
.iconwodezhandian:before {
|
||||
content: "\e6f5";
|
||||
}
|
||||
|
||||
.iconwodeshouquan:before {
|
||||
content: "\e6f6";
|
||||
}
|
||||
|
||||
.iconwodezhanghu:before {
|
||||
content: "\e6f8";
|
||||
}
|
||||
|
||||
.iconshimingrenzheng:before {
|
||||
content: "\e6f9";
|
||||
}
|
||||
|
||||
.iconkaifashangzhongxin:before {
|
||||
content: "\e6fa";
|
||||
}
|
||||
|
||||
.iconts-tubiao_CertificateServer:before {
|
||||
content: "\e62b";
|
||||
}
|
||||
|
||||
.icona-shangbiao2:before {
|
||||
content: "\e64f";
|
||||
}
|
||||
|
||||
.iconjiagebanben:before {
|
||||
content: "\e6f0";
|
||||
}
|
||||
|
||||
.iconjishuzhichi:before {
|
||||
content: "\e6f1";
|
||||
}
|
||||
|
||||
.iconjichushezhi:before {
|
||||
content: "\e6ed";
|
||||
}
|
||||
|
||||
.iconshangchengshezhi:before {
|
||||
content: "\e6ee";
|
||||
}
|
||||
|
||||
.iconkaifashezhi:before {
|
||||
content: "\e6ef";
|
||||
}
|
||||
|
||||
.iconqiehuan3:before {
|
||||
content: "\e6ec";
|
||||
}
|
||||
|
||||
.iconxiugai:before {
|
||||
content: "\e62a";
|
||||
}
|
||||
|
||||
.iconxiazai01:before {
|
||||
content: "\ea38";
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'version' => '0.0.6',
|
||||
'code' => '202311250001'
|
||||
'version' => '0.0.7',
|
||||
'code' => '202311300001'
|
||||
];
|
||||
|
||||
@ -67,6 +67,7 @@ trait AccessToken
|
||||
{
|
||||
$access_token_info = $this->httpGet('auth', ['code' => $this->code, 'secret' => $this->secret, 'token' => $this->createToken(), 'redirect_uri' => $this->getDomain(false)]);
|
||||
if (isset($access_token_info['code']) && $access_token_info['code'] != 1) throw new NiucloudException($access_token_info['msg']);
|
||||
$this->setAccessToken($access_token_info['data']['token']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{a as l}from"./vue-router-48fdc1e3.js";import{E as d}from"./index-c5914bde.js";import{d as i,r as p,P as m,f as u,g as t,h as x,y as v,x as f,u as h,aA as g,aB as I,e as B,A as S,B as y}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as b}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-cf9a2dd7.js";import"./index-de1d3b53.js";const k="/admin/assets/error-da01d378.png",o=e=>(g("data-v-7728c846"),e=e(),I(),e),w={class:"error"},C={class:"flex items-center"},E=o(()=>t("div",null,[t("img",{class:"w-[300px]",src:k})],-1)),N={class:"text-left ml-[100px]"},V=o(()=>t("div",{class:"error-text text-[28px] font-bold"},"404错误!",-1)),A=o(()=>t("div",{class:"text-[#222] text-[20px] mt-[15px]"},"哎呀,出错了!您访问的页面不存在...",-1)),R=o(()=>t("div",{class:"text-[#c4c2c2] text-[12px] mt-[5px]"},"尝试检查URL的错误,然后点击浏览器刷新按钮。",-1)),U={class:"mt-[40px]"},$=i({__name:"404",setup(e){let s=null;const a=p(5),r=l();return s=setInterval(()=>{a.value===0?(clearInterval(s),r.go(-1)):a.value--},1e3),m(()=>{s&&clearInterval(s)}),(n,c)=>{const _=d;return B(),u("div",w,[t("div",C,[x(n.$slots,"content",{},()=>[E],!0),t("div",N,[V,A,R,t("div",U,[v(_,{class:"bottom",onClick:c[0]||(c[0]=D=>h(r).go(-1))},{default:f(()=>[S(y(a.value)+" 秒后返回上一页",1)]),_:1})])])])])}}});const H=b($,[["__scopeId","data-v-7728c846"]]);export{H as default};
|
||||
@ -1 +0,0 @@
|
||||
import{v as F,m as Q,w as X,x as Z,l as B,y as M,z as V,A as z,B as k,U as v,t as T,C as b,D,n as ee,k as te,s as re}from"./index-bcd7a424.js";import{b7 as d,bh as ne,bm as G,aJ as ae,bk as w,aL as K,aO as oe}from"./plugin-vue_export-helper-85a4d40b.js";var S=Object.create,se=function(){function e(){}return function(t){if(!d(t))return{};if(S)return S(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const ie=se;function ce(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function fe(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}function y(e,t,r,a){var g=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var i=t[s],c=a?a(r[i],e[i],i,r,e):void 0;c===void 0&&(c=e[i]),g?ne(r,i,c):G(r,i,c)}return r}function ue(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ge=Object.prototype,le=ge.hasOwnProperty;function be(e){if(!d(e))return ue(e);var t=F(e),r=[];for(var a in e)a=="constructor"&&(t||!le.call(e,a))||r.push(a);return r}function A(e){return Q(e)?X(e,!0):be(e)}var ye=Z(Object.getPrototypeOf,Object);const N=ye;function pe(e,t){return e&&y(t,B(t),e)}function Te(e,t){return e&&y(t,A(t),e)}var _=typeof exports=="object"&&exports&&!exports.nodeType&&exports,x=_&&typeof module=="object"&&module&&!module.nodeType&&module,de=x&&x.exports===_,I=de?ae.Buffer:void 0,C=I?I.allocUnsafe:void 0;function Ae(e,t){if(t)return e.slice();var r=e.length,a=C?C(r):new e.constructor(r);return e.copy(a),a}function je(e,t){return y(e,M(e),t)}var $e=Object.getOwnPropertySymbols,he=$e?function(e){for(var t=[];e;)z(t,M(e)),e=N(e);return t}:V;const R=he;function Oe(e,t){return y(e,R(e),t)}function me(e){return k(e,A,R)}var ve=Object.prototype,we=ve.hasOwnProperty;function Se(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&we.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function j(e){var t=new e.constructor(e.byteLength);return new v(t).set(new v(e)),t}function xe(e,t){var r=t?j(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Ie=/\w*$/;function Ce(e){var t=new e.constructor(e.source,Ie.exec(e));return t.lastIndex=e.lastIndex,t}var P=w?w.prototype:void 0,E=P?P.valueOf:void 0;function Pe(e){return E?Object(E.call(e)):{}}function Ee(e,t){var r=t?j(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Le="[object Boolean]",Ue="[object Date]",Fe="[object Map]",Be="[object Number]",Me="[object RegExp]",De="[object Set]",Ge="[object String]",Ke="[object Symbol]",Ne="[object ArrayBuffer]",_e="[object DataView]",Re="[object Float32Array]",Je="[object Float64Array]",We="[object Int8Array]",Ye="[object Int16Array]",qe="[object Int32Array]",He="[object Uint8Array]",Qe="[object Uint8ClampedArray]",Xe="[object Uint16Array]",Ze="[object Uint32Array]";function Ve(e,t,r){var a=e.constructor;switch(t){case Ne:return j(e);case Le:case Ue:return new a(+e);case _e:return xe(e,r);case Re:case Je:case We:case Ye:case qe:case He:case Qe:case Xe:case Ze:return Ee(e,r);case Fe:return new a;case Be:case Ge:return new a(e);case Me:return Ce(e);case De:return new a;case Ke:return Pe(e)}}function ze(e){return typeof e.constructor=="function"&&!F(e)?ie(N(e)):{}}var ke="[object Map]";function et(e){return K(e)&&T(e)==ke}var L=b&&b.isMap,tt=L?D(L):et;const rt=tt;var nt="[object Set]";function at(e){return K(e)&&T(e)==nt}var U=b&&b.isSet,ot=U?D(U):at;const st=ot;var it=1,ct=2,ft=4,J="[object Arguments]",ut="[object Array]",gt="[object Boolean]",lt="[object Date]",bt="[object Error]",W="[object Function]",yt="[object GeneratorFunction]",pt="[object Map]",Tt="[object Number]",Y="[object Object]",dt="[object RegExp]",At="[object Set]",jt="[object String]",$t="[object Symbol]",ht="[object WeakMap]",Ot="[object ArrayBuffer]",mt="[object DataView]",vt="[object Float32Array]",wt="[object Float64Array]",St="[object Int8Array]",xt="[object Int16Array]",It="[object Int32Array]",Ct="[object Uint8Array]",Pt="[object Uint8ClampedArray]",Et="[object Uint16Array]",Lt="[object Uint32Array]",n={};n[J]=n[ut]=n[Ot]=n[mt]=n[gt]=n[lt]=n[vt]=n[wt]=n[St]=n[xt]=n[It]=n[pt]=n[Tt]=n[Y]=n[dt]=n[At]=n[jt]=n[$t]=n[Ct]=n[Pt]=n[Et]=n[Lt]=!0;n[bt]=n[W]=n[ht]=!1;function p(e,t,r,a,g,s){var o,i=t&it,c=t&ct,q=t&ft;if(r&&(o=g?r(e,a,g,s):r(e)),o!==void 0)return o;if(!d(e))return e;var $=oe(e);if($){if(o=Se(e),!i)return ce(e,o)}else{var l=T(e),h=l==W||l==yt;if(ee(e))return Ae(e,i);if(l==Y||l==J||h&&!g){if(o=c||h?{}:ze(e),!i)return c?Oe(e,Te(o,e)):je(e,pe(o,e))}else{if(!n[l])return g?e:{};o=Ve(e,l,i)}}s||(s=new te);var O=s.get(e);if(O)return O;s.set(e,o),st(e)?e.forEach(function(f){o.add(p(f,t,r,f,e,s))}):rt(e)&&e.forEach(function(f,u){o.set(u,p(f,t,r,u,e,s))});var H=q?c?me:re:c?A:B,m=$?void 0:H(e);return fe(m||e,function(f,u){m&&(u=f,f=e[u]),G(o,u,p(f,t,r,u,e,s))}),o}export{ce as a,p as b,y as c,Ae as d,Ee as e,N as g,ze as i,A as k};
|
||||
@ -1 +0,0 @@
|
||||
import{b7 as i,aP as t,bg as f}from"./plugin-vue_export-helper-85a4d40b.js";import{m as n}from"./index-bcd7a424.js";function p(e,a,r){if(!i(r))return!1;var s=typeof a;return(s=="number"?n(r)&&t(a,r.length):s=="string"&&a in r)?f(r[a],e):!1}export{p as i};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none!important;-moz-appearance:none!important;-o-appearance:none!important;appearance:none!important;margin:0}input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;-o-appearance:textfield;appearance:textfield}
|
||||
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-8f4a3c41.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-0ca94763.js";import"./member-d4fce318.js";import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./directive-64fb15dc.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as B}from"./el-overlay-08181e74.js";/* empty css */import{a as F,E as $}from"./el-form-item-1b16c9fc.js";/* empty css */import{t as l}from"./index-0ca94763.js";import{p as H,q as I,r as O}from"./member-d4fce318.js";import{E as R}from"./index-e27c3bb0.js";import{E as j}from"./index-c5914bde.js";import{v as A}from"./directive-64fb15dc.js";import{d as L,r as b,O as T,c as z,e as v,v as h,x as d,g as S,y as s,A as V,B as y,u as r,M as Z}from"./plugin-vue_export-helper-85a4d40b.js";const G={class:"dialog-footer"},de=L({__name:"add-member",emits:["complete"],setup(J,{expose:N,emit:E}){const p=b(!1),i=b(!1);let u="",c="";const f={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},a=T({...f}),_=b(),P=z(()=>({member_no:[{required:!0,message:l("memberNoPlaceholder"),trigger:"blur"},{validator:C,trigger:"blur"}],mobile:[{required:!0,message:l("mobilePlaceholder"),trigger:"blur"},{validator:x,trigger:"blur"}],password:[{required:!0,message:l("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:l("passwordPlaceholder"),trigger:"blur"},{validator:D,trigger:"blur"}]})),x=(m,e,o)=>{e&&!/^1[3-9]\d{9}$/.test(e)?o(new Error(l("mobileHint"))):o()},D=(m,e,o)=>{e!=a.password?o(l("doubleCipherHint")):o()},C=(m,e,o)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?o(new Error(l("memberNoHint"))):o()},k=async()=>{await I().then(m=>{c=m.data}).catch(()=>{})},M=async m=>{if(i.value||!m)return;const e=O;await m.validate(async o=>{o&&(i.value=!0,e(a).then(g=>{i.value=!1,p.value=!1,E("complete")}).catch(()=>{i.value=!1}))})};return N({showDialog:p,setFormData:async(m=null)=>{if(i.value=!0,Object.assign(a,f),u=l("addMember"),m){u=l("updateMember");const e=await(await H(m.member_id)).data;e&&Object.keys(a).forEach(o=>{e[o]!=null&&(a[o]=e[o])})}else await k(),a.member_no=c,a.init_member_no=c;i.value=!1}}),(m,e)=>{const o=R,n=F,g=$,w=j,U=B,q=A;return v(),h(U,{modelValue:p.value,"onUpdate:modelValue":e[7]||(e[7]=t=>p.value=t),title:r(u),width:"500px","destroy-on-close":!0},{footer:d(()=>[S("span",G,[s(w,{onClick:e[5]||(e[5]=t=>p.value=!1)},{default:d(()=>[V(y(r(l)("cancel")),1)]),_:1}),s(w,{type:"primary",loading:i.value,onClick:e[6]||(e[6]=t=>M(_.value))},{default:d(()=>[V(y(r(l)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[Z((v(),h(g,{model:a,"label-width":"90px",ref_key:"formRef",ref:_,rules:r(P),class:"page-form"},{default:d(()=>[s(n,{label:r(l)("memberNo"),prop:"member_no"},{default:d(()=>[s(o,{modelValue:a.member_no,"onUpdate:modelValue":e[0]||(e[0]=t=>a.member_no=t),clearable:"",maxlength:"20",placeholder:r(l)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("mobile"),prop:"mobile"},{default:d(()=>[s(o,{modelValue:a.mobile,"onUpdate:modelValue":e[1]||(e[1]=t=>a.mobile=t),clearable:"",placeholder:r(l)("mobilePlaceholder"),type:"number",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("nickname")},{default:d(()=>[s(o,{modelValue:a.nickname,"onUpdate:modelValue":e[2]||(e[2]=t=>a.nickname=t),clearable:"",placeholder:r(l)("nickNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("password"),prop:"password"},{default:d(()=>[s(o,{modelValue:a.password,"onUpdate:modelValue":e[3]||(e[3]=t=>a.password=t),type:"password",placeholder:r(l)("passwordPlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:r(l)("passwordCopy"),prop:"password_copy"},{default:d(()=>[s(o,{modelValue:a.password_copy,"onUpdate:modelValue":e[4]||(e[4]=t=>a.password_copy=t),type:"password",placeholder:r(l)("passwordPlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[q,i.value]])]),_:1},8,["modelValue","title"])}}});export{de as _};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-reserve.vue_vue_type_script_setup_true_lang-c0c2c24e.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";/* empty css *//* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./index-0ca94763.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";/* empty css *//* empty css *//* empty css */import"./vipcard-ea2ff005.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./isEqual-0b9509fd.js";import"./debounce-6c3123a6.js";import"./index-bd04154b.js";import"./validator-bcf701e4.js";import"./index-51138976.js";import"./customParseFormat-40c50080.js";import"./arrays-e667dc24.js";import"./flatten-749195f8.js";import"./index-6c0acd90.js";import"./directive-64fb15dc.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as O}from"./el-overlay-08181e74.js";/* empty css */import{a as S,E as H}from"./el-form-item-1b16c9fc.js";/* empty css *//* empty css */import"./index-7eafba5f.js";/* empty css *//* empty css *//* empty css *//* empty css */import{t}from"./index-0ca94763.js";import{H as Y,I as j,J as $,K as z,L as A}from"./vipcard-ea2ff005.js";import{E as J}from"./index-e27c3bb0.js";import{a as K,E as G}from"./index-4601cf3b.js";import{E as Q}from"./index-51138976.js";import{E as W}from"./index-c5914bde.js";import{v as X}from"./directive-64fb15dc.js";import{d as Z,r as c,O as ee,c as ae,e as u,v as _,x as o,g,y as s,i as y,A as w,B as D,u as r,M as le,H as te,f as F,F as I,z as x}from"./plugin-vue_export-helper-85a4d40b.js";const re={class:"input-width"},oe={class:"dialog-footer"},xe=Z({__name:"add-reserve",emits:["complete"],setup(se,{expose:L,emit:R}){let n=c(!1);const d=c(!1),b={reserve_id:"",mobile:"",member_id:"",reserve_name:"",reserve_date:"",goods_id:"",remark:"",technician_id:""},l=ee({...b}),h=c(),U=ae(()=>({member_id:[{required:!0,message:t("memberIdPlaceholder"),trigger:"blur"}],reserve_date:[{required:!0,message:t("arrivalTimePlaceholder"),trigger:"blur"}],goods_id:[{required:!0,message:t("reserveItemPlaceholder"),trigger:["blur","change"]}],technician_id:[{required:!0,message:t("technicianPlaceholder"),trigger:["blur","change"]}],reserve_name:[{required:!0,message:t("memberNamePlaceholder"),trigger:"blur"}]})),f=c({}),B=i=>{Y({mobile:i}).then(e=>{f.value=Object.keys(e.data).length?e.data:{},l.member_id=f.value.member_id||"",l.reserve_name=f.value.nickname||""})};let V=c([]);(()=>{j({}).then(i=>{V.value=i.data})})();const C=async i=>{if(d.value||!i)return;let e=l.reserve_id?$:z;await i.validate(async p=>{p&&(d.value=!0,e(l).then(v=>{d.value=!1,n.value=!1,R("complete")}).catch(v=>{d.value=!1}))})},k=c([]);return L({showDialog:n,setFormData:async(i=null)=>{k.value=await(await A()).data,Object.assign(l,b),i&&i&&Object.keys(l).forEach(e=>{i[e]!=null&&(l[e]=i[e])}),d.value=!1}}),(i,e)=>{const p=J,m=S,v=K,E=G,T=Q,q=H,P=W,M=O,N=X;return u(),_(M,{modelValue:r(n),"onUpdate:modelValue":e[9]||(e[9]=a=>y(n)?n.value=a:n=a),title:l.reserve_id?r(t)("updateReserve"):r(t)("addReserve"),width:"500px","destroy-on-close":!0},{footer:o(()=>[g("span",oe,[s(P,{onClick:e[7]||(e[7]=a=>y(n)?n.value=!1:n=!1)},{default:o(()=>[w(D(r(t)("cancel")),1)]),_:1}),s(P,{type:"primary",loading:d.value,onClick:e[8]||(e[8]=a=>C(h.value))},{default:o(()=>[w(D(r(t)("confirm")),1)]),_:1},8,["loading"])])]),default:o(()=>[le((u(),_(q,{model:l,"label-width":"90px",ref_key:"formRef",ref:h,rules:r(U),class:"page-form"},{default:o(()=>[l.reserve_id?te("",!0):(u(),_(m,{key:0,label:r(t)("phone"),prop:"phone"},{default:o(()=>[s(p,{modelValue:l.mobile,"onUpdate:modelValue":e[1]||(e[1]=a=>l.mobile=a),placeholder:r(t)("phonePlaceholder"),class:"input-width"},{append:o(()=>[g("span",{class:"iconfont iconsousuo text-[#a3a6ab] cursor-pointer",onClick:e[0]||(e[0]=a=>B(l.mobile))})]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])),s(m,{label:r(t)("client"),prop:"reserve_name"},{default:o(()=>[s(p,{modelValue:l.reserve_name,"onUpdate:modelValue":e[2]||(e[2]=a=>l.reserve_name=a),disabled:"",placeholder:r(t)("clientPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(m,{label:r(t)("reserveItem"),prop:"goods_id"},{default:o(()=>[s(E,{modelValue:l.goods_id,"onUpdate:modelValue":e[3]||(e[3]=a=>l.goods_id=a),class:"input-width",placeholder:r(t)("reserveItemPlaceholder")},{default:o(()=>[(u(!0),F(I,null,x(r(V),a=>(u(),_(v,{key:a.goods_id,label:a.goods_name,value:a.goods_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),s(m,{label:r(t)("technician"),prop:"technician_id"},{default:o(()=>[s(E,{modelValue:l.technician_id,"onUpdate:modelValue":e[4]||(e[4]=a=>l.technician_id=a),class:"input-width",placeholder:r(t)("technicianPlaceholder")},{default:o(()=>[(u(!0),F(I,null,x(k.value,a=>(u(),_(v,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),s(m,{label:r(t)("arrivalTime"),prop:"reserve_date"},{default:o(()=>[g("div",re,[s(T,{modelValue:l.reserve_date,"onUpdate:modelValue":e[5]||(e[5]=a=>l.reserve_date=a),type:"datetime","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:r(t)("arrivalTimePlaceholder")},null,8,["modelValue","placeholder"])])]),_:1},8,["label"]),s(m,{label:r(t)("remark")},{default:o(()=>[s(p,{modelValue:l.remark,"onUpdate:modelValue":e[6]||(e[6]=a=>l.remark=a),rows:2,type:"textarea",placeholder:r(t)("remarkPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[N,d.value]])]),_:1},8,["modelValue","title"])}}});export{xe as _};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-5b039e00.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./index-0ca94763.js";import"./common-c3be41fd.js";import"./index-bcd7a424.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./tools-0bac40a4.js";import"./index-fe3867fe.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./_isIterateeCall-47526406.js";import"./debounce-6c3123a6.js";import"./index-bd04154b.js";import"./directive-64fb15dc.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as T}from"./el-overlay-08181e74.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import"./index-7eafba5f.js";/* empty css *//* empty css */import{t as s}from"./index-0ca94763.js";import{j as N,k as x}from"./tools-0bac40a4.js";import{a as B}from"./vue-router-48fdc1e3.js";import{a as L,E as k}from"./index-fe3867fe.js";import{E as z}from"./index-e27c3bb0.js";import{E as F}from"./index-c5914bde.js";import{v as P}from"./directive-64fb15dc.js";import{d as R,r as c,O as U,c as j,e as u,v as _,x as i,g as f,M as q,u as a,B as b,y as d,A,i as G}from"./plugin-vue_export-helper-85a4d40b.js";const I={class:""},pe=R({__name:"add-table",emits:["complete"],setup(M,{expose:g,emit:O}){const h=B();let o=c(!1);const m=c("");let e=U({loading:!0,data:[],searchParam:{table_name:"",table_content:""}});const v=j(()=>e.data.filter(t=>!m.value||t.Name.toLowerCase().includes(m.value.toLowerCase())||t.Comment.toLowerCase().includes(m.value.toLowerCase()))),p=()=>{e.loading=!0,N().then(t=>{e.loading=!1,e.data=t.data}).catch(()=>{e.loading=!1})};p();const w=t=>{let l=t.Name;e.loading=!0,x({table_name:l}).then(n=>{e.loading=!1,o.value=!1,h.push({path:"/tools/code/edit",query:{id:n.data.id}})}).catch(n=>{e.loading=!1})};return g({showDialog:o,setFormData:async(t=null)=>{p()}}),(t,l)=>{const n=L,C=z,y=F,D=k,E=T,V=P;return u(),_(E,{modelValue:a(o),"onUpdate:modelValue":l[1]||(l[1]=r=>G(o)?o.value=r:o=r),title:a(s)("addCode"),width:"800px","destroy-on-close":!0},{default:i(()=>[f("div",I,[q((u(),_(D,{data:a(v),size:"large",height:"400"},{empty:i(()=>[f("span",null,b(a(e).loading?"":a(s)("emptyData")),1)]),default:i(()=>[d(n,{prop:"Name",label:a(s)("tableName"),"min-width":"150"},null,8,["label"]),d(n,{prop:"Comment",label:a(s)("tableComment"),"min-width":"120"},null,8,["label"]),d(n,{align:"right","min-width":"150"},{header:i(()=>[d(C,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=r=>m.value=r),size:"small",placeholder:a(s)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:i(r=>[d(y,{size:"small",type:"primary",onClick:H=>w(r.row)},{default:i(()=>[A(b(a(s)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[V,a(e).loading]])])]),_:1},8,["modelValue","title"])}}});export{pe as _};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./add-technician.vue_vue_type_script_setup_true_lang-b214446c.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";import"./index-2d04c504.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-14193028.js";import"./index-0ca94763.js";import"./attachment-afdaf51f.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-489c18c0.js";import"./index-ee5275c6.js";import"./aria-adfa05c5.js";import"./validator-bcf701e4.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./directive-64fb15dc.js";import"./vipcard-ea2ff005.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as B}from"./el-overlay-08181e74.js";/* empty css */import{a as F,E as T}from"./el-form-item-1b16c9fc.js";import{_ as C}from"./index-2d04c504.js";/* empty css */import{t as a}from"./index-0ca94763.js";import{a0 as R,a1 as N}from"./vipcard-ea2ff005.js";import{E as O}from"./index-e27c3bb0.js";import{E as j}from"./index-c5914bde.js";import{v as q}from"./directive-64fb15dc.js";import{d as I,r as c,O as A,c as L,e as v,v as V,x as n,g as M,y as i,i as y,A as f,B as b,u as o,M as S}from"./plugin-vue_export-helper-85a4d40b.js";const $={class:"dialog-footer"},ie=I({__name:"add-technician",emits:["complete"],setup(z,{expose:E,emit:w}){let r=c(!1);const d=c(!1),_={id:"",name:"",mobile:"",seniority:"0",number:"",position:"",headimg:""},l=A({..._}),g=c(),x=L(()=>({name:[{required:!0,message:a("namePlaceholder"),trigger:"blur"}],mobile:[{required:!0,message:a("mobilePlaceholder"),trigger:"blur"}]})),D=async s=>{if(d.value||!s)return;let e=l.id?R:N;await s.validate(async m=>{m&&(d.value=!0,e(l).then(p=>{d.value=!1,r.value=!1,w("complete")}).catch(p=>{d.value=!1}))})};return E({showDialog:r,setFormData:async(s=null)=>{Object.assign(l,_),s&&s&&Object.keys(l).forEach(e=>{s[e]!=null&&(l[e]=s[e])}),d.value=!1}}),(s,e)=>{const m=O,u=F,p=C,P=T,h=j,U=B,k=q;return v(),V(U,{modelValue:o(r),"onUpdate:modelValue":e[8]||(e[8]=t=>y(r)?r.value=t:r=t),title:l.id?o(a)("updateTechnician"):o(a)("addTechnician"),width:"500px","destroy-on-close":!0},{footer:n(()=>[M("span",$,[i(h,{onClick:e[6]||(e[6]=t=>y(r)?r.value=!1:r=!1)},{default:n(()=>[f(b(o(a)("cancel")),1)]),_:1}),i(h,{type:"primary",loading:d.value,onClick:e[7]||(e[7]=t=>D(g.value))},{default:n(()=>[f(b(o(a)("confirm")),1)]),_:1},8,["loading"])])]),default:n(()=>[S((v(),V(P,{model:l,"label-width":"90px",ref_key:"formRef",ref:g,rules:o(x),class:"page-form"},{default:n(()=>[i(u,{label:o(a)("name"),prop:"name"},{default:n(()=>[i(m,{modelValue:l.name,"onUpdate:modelValue":e[0]||(e[0]=t=>l.name=t),clearable:"",placeholder:o(a)("namePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:o(a)("headimg")},{default:n(()=>[i(p,{modelValue:l.headimg,"onUpdate:modelValue":e[1]||(e[1]=t=>l.headimg=t)},null,8,["modelValue"])]),_:1},8,["label"]),i(u,{label:o(a)("mobile"),prop:"mobile"},{default:n(()=>[i(m,{modelValue:l.mobile,"onUpdate:modelValue":e[2]||(e[2]=t=>l.mobile=t),clearable:"",maxlength:"11",placeholder:o(a)("mobilePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:o(a)("seniority"),prop:""},{default:n(()=>[i(m,{modelValue:l.seniority,"onUpdate:modelValue":e[3]||(e[3]=t=>l.seniority=t),clearable:"",placeholder:o(a)("seniorityPlaceholder"),class:"input-width",onkeyup:"this.value = this.value.replace(/[^\\d]/g,'');"},{append:n(()=>[f(b(o(a)("year")),1)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:o(a)("number"),prop:""},{default:n(()=>[i(m,{modelValue:l.number,"onUpdate:modelValue":e[4]||(e[4]=t=>l.number=t),clearable:"",placeholder:o(a)("numberPlaceholder"),class:"input-width",onkeyup:"this.value = this.value.replace(/[^\\d]/g,'');"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),i(u,{label:o(a)("position"),prop:""},{default:n(()=>[i(m,{modelValue:l.position,"onUpdate:modelValue":e[5]||(e[5]=t=>l.position=t),clearable:"",placeholder:o(a)("positionPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[k,d.value]])]),_:1},8,["modelValue","title"])}}});export{ie as _};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./addon-role.vue_vue_type_script_setup_true_lang-8da0524e.js";/* empty css *//* empty css *//* empty css */import"./common-c3be41fd.js";import"./index-cf9a2dd7.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-bcd7a424.js";import"./index-1a62403f.js";import"./event-f85d77b0.js";import"./index-79f2037e.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-1ad115d7.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css */import{e as f}from"./common-c3be41fd.js";import{E as i}from"./index-1a62403f.js";import{d as _,r as d,c as k,o as C,E as g,e as v,v as y,u as s}from"./plugin-vue_export-helper-85a4d40b.js";const T=_({__name:"addon-role",props:{data:{type:Object,default:()=>{}},modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue","change"],setup(u,{emit:m}){const t=u;let r=d([]);r.value.push(t.data);const p=k({get(){return t.modelValue},set(e){m("update:modelValue",e)}}),c=d(null);C(()=>{g(()=>{var e=[];t.modelValue.forEach(a=>l(a,r.value,e)),c.value.setCheckedKeys(e)})});const l=(e,a,o)=>{a.forEach(n=>{e==n.menu_key?(!n.children||n.children.length==0)&&o.push(e):n.children&&n.children.length>0&&l(e,n.children,o)})},h=f(e=>{p.value=c.value.getCheckedNodes(!1,!0).map(a=>a.menu_key)});return(e,a)=>{const o=i;return v(),y(o,{data:s(r),props:{label:"menu_name"},"show-checkbox":"","expand-on-click-node":!1,onCheckChange:s(h),"node-key":"menu_key",ref_key:"treeRef",ref:c},null,8,["data","onCheckChange"])}}});export{T as _};
|
||||
@ -1 +0,0 @@
|
||||
const e="联系人",s="联系方式",d="省",l="市",r="区",o="详细地址",t="地址",c="纬度",a="经度",n="是否是发货地址",i="是否是退货地址",u="默认发货地址",f="默认收货地址",h="请输入联系人",A="请输入联系方式",D="请输入详细地址",P="请输入地址",y="请输入纬度",p="请输入经度",v="请输入是否是发货地址",R="请输入是否是退货地址",m="请输入默认发货地址",I="请输入默认收货地址",T="添加商家地址库",b="编辑商家地址库",g="确定要删除该商家地址库吗?",N="地址类型",S="发货地址",q="收货地址",x="是否设为默认发货地址",_="是否设为默认收货地址",j="至少需设置一项类型",k={contactName:e,mobile:s,provinceId:d,cityId:l,districtId:r,address:o,fullAddress:t,lat:c,lng:a,isDeliveryAddress:n,isRefundAddress:i,isDefaultDelivery:u,isDefaultRefund:f,contactNamePlaceholder:h,mobilePlaceholder:A,addressPlaceholder:D,fullAddressPlaceholder:P,latPlaceholder:y,lngPlaceholder:p,isDeliveryAddressPlaceholder:v,isRefundAddressPlaceholder:R,isDefaultDeliveryPlaceholder:m,isDefaultRefundPlaceholder:I,addShopAddress:T,updateShopAddress:b,shopAddressDeleteTips:g,addressType:N,deliveryAddress:S,refundAddress:q,defaultDeliveryAddress:x,defaultRefundAddress:_,addressTypeRequire:j};export{T as addShopAddress,o as address,D as addressPlaceholder,N as addressType,j as addressTypeRequire,l as cityId,e as contactName,h as contactNamePlaceholder,k as default,x as defaultDeliveryAddress,_ as defaultRefundAddress,S as deliveryAddress,r as districtId,t as fullAddress,P as fullAddressPlaceholder,u as isDefaultDelivery,m as isDefaultDeliveryPlaceholder,f as isDefaultRefund,I as isDefaultRefundPlaceholder,n as isDeliveryAddress,v as isDeliveryAddressPlaceholder,i as isRefundAddress,R as isRefundAddressPlaceholder,c as lat,y as latPlaceholder,a as lng,p as lngPlaceholder,s as mobile,A as mobilePlaceholder,d as provinceId,q as refundAddress,g as shopAddressDeleteTips,b as updateShopAddress};
|
||||
@ -1 +0,0 @@
|
||||
const s="",d="联系人",e="联系方式",t="请输入联系方式",o="省",r="市",l="区",c="详细地址",n="地址",i="请输入地址",a="纬度",u="经度",A="是否是发货地址",f="是否是退货地址",p="默认发货地址",h="默认收货地址",y="添加商家地址库",D="编辑商家地址库",v="确定要删除该数据吗?",m="地址类型",I="发货地址",b="收货地址",P={id:s,contactName:d,mobile:e,mobilePlaceholder:t,provinceId:o,cityId:r,districtId:l,address:c,fullAddress:n,fullAddressPlaceholder:i,lat:a,lng:u,isDeliveryAddress:A,isRefundAddress:f,isDefaultDelivery:p,isDefaultRefund:h,addShopAddress:y,updateShopAddress:D,shopAddressDeleteTips:v,addressType:m,deliveryAddress:I,refundAddress:b,default:"默认"};export{y as addShopAddress,c as address,m as addressType,r as cityId,d as contactName,P as default,I as deliveryAddress,l as districtId,n as fullAddress,i as fullAddressPlaceholder,s as id,p as isDefaultDelivery,h as isDefaultRefund,A as isDeliveryAddress,f as isRefundAddress,a as lat,u as lng,e as mobile,t as mobilePlaceholder,o as provinceId,b as refundAddress,v as shopAddressDeleteTips,D as updateShopAddress};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css */import{a as V,E as B}from"./el-form-item-1b16c9fc.js";/* empty css */import{_ as N}from"./index-2d04c504.js";/* empty css */import{t as c}from"./index-0ca94763.js";import{a2 as y,a3 as C}from"./index-7eafba5f.js";import{u as D}from"./vue-router-48fdc1e3.js";import{E as F}from"./index-a286aa2a.js";import{E as O}from"./index-9ecd3f93.js";import{E as S}from"./index-c5914bde.js";import{v as I}from"./directive-64fb15dc.js";import{d as R,r as f,O as j,e as u,f as L,g as s,B as _,u as p,M as J,v as T,x as n,y as r,A as U}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as k}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-cf9a2dd7.js";import"./event-f85d77b0.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-14193028.js";import"./el-overlay-08181e74.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./attachment-afdaf51f.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-489c18c0.js";import"./index-4d8f36c6.js";import"./common-c3be41fd.js";import"./index-ee5275c6.js";import"./aria-adfa05c5.js";import"./validator-bcf701e4.js";import"./index-ebc73046.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";const A={class:"main-container"},M={class:"flex ml-[18px] justify-between items-center mt-[20px]"},$={class:"text-[20px]"},q={class:"form-tip"},z={class:"fixed-footer-wrap"},G={class:"fixed-footer"},H=R({__name:"adminlogin",setup(K){const g=D().meta.title,a=f(!0),d=f(),e=j({is_captcha:0,bg:""});(async(m=0)=>{const o=await(await y()).data;Object.keys(e).forEach(t=>{["is_captcha","is_site_captcha"].includes(t)?e[t]=Boolean(Number(o[t])):e[t]=o[t]}),a.value=!1})();const v=async m=>{a.value||!m||await m.validate(o=>{if(o){let t=JSON.parse(JSON.stringify(e));Object.keys(t).forEach(i=>{["is_captcha","is_site_captcha"].includes(i)&&(t[i]=Number(t[i]))}),C(t).then(()=>{a.value=!1}).catch(()=>{a.value=!1})}})};return(m,o)=>{const t=F,i=V,h=N,b=O,x=B,w=S,E=I;return u(),L("div",A,[s("div",M,[s("span",$,_(p(g)),1)]),J((u(),T(x,{model:e,"label-width":"150px",ref_key:"ruleFormRef",ref:d,rules:m.formRules,class:"page-form"},{default:n(()=>[r(b,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[r(i,{label:p(c)("isCaptcha"),prop:"formData.is_auth_register"},{default:n(()=>[r(t,{modelValue:e.is_captcha,"onUpdate:modelValue":o[0]||(o[0]=l=>e.is_captcha=l)},null,8,["modelValue"])]),_:1},8,["label"]),r(i,{label:p(c)("bgImg")},{default:n(()=>[r(h,{modelValue:e.bg,"onUpdate:modelValue":o[1]||(o[1]=l=>e.bg=l)},null,8,["modelValue"]),s("div",q,_(p(c)("adminBgImgTip")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[E,a.value]]),s("div",z,[s("div",G,[r(w,{type:"primary",onClick:o[2]||(o[2]=l=>v(d.value))},{default:n(()=>[U(_(p(c)("save")),1)]),_:1})])])])}}});const lo=k(H,[["__scopeId","data-v-c5040db4"]]);export{lo as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import{a4 as w}from"./index-7eafba5f.js";/* empty css */import{t as o}from"./index-0ca94763.js";import{u as y,a as x}from"./vue-router-48fdc1e3.js";import{a as E,E as k}from"./index-fe3867fe.js";import{E as B}from"./index-c5914bde.js";import{E as C}from"./index-9ecd3f93.js";import{v as N}from"./directive-64fb15dc.js";import{d as T,O as A,e as c,f as D,y as a,x as i,g as n,B as l,u as t,M as L,v as V,A as d}from"./plugin-vue_export-helper-85a4d40b.js";import"./common-c3be41fd.js";import"./index-cf9a2dd7.js";import"./index-bcd7a424.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./el-form-item-1b16c9fc.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./_isIterateeCall-47526406.js";import"./debounce-6c3123a6.js";import"./index-bd04154b.js";const j={class:"main-container"},O={class:"flex justify-between items-center"},R={class:"text-[20px]"},$={class:"mt-[20px]"},Dt=T({__name:"agreement",setup(z){const _=y().meta.title;let e=A({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],w().then(r=>{Object.keys(r.data).forEach(s=>e.data.push(r.data[s])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=x(),f=r=>{u.push(`/setting/basis/agreement/edit?key=${r.agreement_key}`)};return(r,s)=>{const m=E,g=B,h=k,b=C,v=N;return c(),D("div",j,[a(b,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[n("div",O,[n("span",R,l(t(_)),1)]),n("div",$,[L((c(),V(h,{data:t(e).data,size:"large"},{empty:i(()=>[n("span",null,l(t(e).loading?"":t(o)("emptyData")),1)]),default:i(()=>[a(m,{prop:"type_name",label:t(o)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(m,{prop:"title",label:t(o)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(m,{label:t(o)("updateTime"),"min-width":"180",align:"center"},{default:i(({row:p})=>[d(l(p.update_time||""),1)]),_:1},8,["label"]),a(m,{label:t(o)("operation"),fixed:"right",align:"right",width:"100"},{default:i(({row:p})=>[a(g,{type:"primary",link:"",onClick:q=>f(p)},{default:i(()=>[d(l(t(o)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,t(e).loading]])])]),_:1})])}}});export{Dt as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css *//* empty css */import{a as R,E as A}from"./el-form-item-1b16c9fc.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang-d4db3fbb.js";/* empty css */import{u as P,t as s}from"./index-0ca94763.js";import{a5 as $,a6 as j}from"./index-7eafba5f.js";import{u as I,a as O}from"./vue-router-48fdc1e3.js";import{E as S}from"./index-e27c3bb0.js";import{E as U}from"./index-9ecd3f93.js";import{E as q}from"./index-c5914bde.js";import{v as T}from"./directive-64fb15dc.js";import{d as z,r as h,O as L,c as M,e as k,f as G,g as m,u as o,B as c,M as H,v as J,x as l,y as r,A as x}from"./plugin-vue_export-helper-85a4d40b.js";import"./index-cf9a2dd7.js";import"./event-f85d77b0.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";import"./index.vue_vue_type_style_index_0_lang-14193028.js";import"./el-overlay-08181e74.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./attachment-afdaf51f.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-d469ae66.js";import"./index-489c18c0.js";import"./index-4d8f36c6.js";import"./common-c3be41fd.js";import"./index-ee5275c6.js";import"./aria-adfa05c5.js";import"./validator-bcf701e4.js";import"./index-ebc73046.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";const K={class:"main-container"},Q={class:"detail-head"},W=m("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),X={class:"ml-[1px]"},Y=m("span",{class:"adorn"},"|",-1),Z={class:"right"},tt={class:"fixed-footer-wrap"},et={class:"fixed-footer"},ge=z({__name:"agreement_edit",setup(ot){P();const u=I(),_=O(),f=u.query.key||"",n=h(!1),V=u.meta.title,g={agreement_key:"",content:"",title:"",agreement_key_name:""},e=L({...g});n.value=!0,f&&(async(p="")=>{Object.assign(e,g);const t=await(await $(p)).data;Object.keys(e).forEach(a=>{t[a]!=null&&(e[a]=t[a])}),n.value=!1})(f);const v=h(),w=M(()=>({title:[{required:!0,message:s("titlePlaceholder"),trigger:"blur"}]})),E=async p=>{n.value||!p||await p.validate(async t=>{if(t){n.value=!0;const a=e;a.key=e.agreement_key,j(a).then(d=>{n.value=!1,y()}).catch(()=>{n.value=!1})}})},y=()=>{_.push({path:"/setting/basis/agreement"})};return(p,t)=>{const a=S,d=R,B=N,C=A,D=U,b=q,F=T;return k(),G("div",K,[m("div",Q,[m("div",{class:"left",onClick:t[0]||(t[0]=i=>o(_).push({path:"/setting/basis/agreement"}))},[W,m("span",X,c(o(s)("returnToPreviousPage")),1)]),Y,m("span",Z,c(o(V)),1)]),H((k(),J(D,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[r(C,{model:e,"label-width":"90px",ref_key:"formRef",ref:v,rules:o(w),class:"page-form"},{default:l(()=>[r(d,{label:o(s)("type")},{default:l(()=>[r(a,{modelValue:e.agreement_key_name,"onUpdate:modelValue":t[1]||(t[1]=i=>e.agreement_key_name=i),readonly:"",class:"input-width"},null,8,["modelValue"])]),_:1},8,["label"]),r(d,{label:o(s)("title"),prop:"title"},{default:l(()=>[r(a,{modelValue:e.title,"onUpdate:modelValue":t[2]||(t[2]=i=>e.title=i),clearable:"",placeholder:o(s)("titlePlaceholder"),class:"input-width",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),r(d,{label:o(s)("content")},{default:l(()=>[r(B,{modelValue:e.content,"onUpdate:modelValue":t[3]||(t[3]=i=>e.content=i)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1})),[[F,n.value]]),m("div",tt,[m("div",et,[r(b,{type:"primary",onClick:t[4]||(t[4]=i=>E(v.value))},{default:l(()=>[x(c(o(s)("save")),1)]),_:1}),r(b,{onClick:t[5]||(t[5]=i=>y())},{default:l(()=>[x(c(o(s)("cancel")),1)]),_:1})])])])}}});export{ge as default};
|
||||
@ -1 +0,0 @@
|
||||
import{x as t}from"./index-7eafba5f.js";function e(){return t.get("aliapp/config")}function p(a){return t.put("aliapp/config",a,{showSuccessMessage:!0})}function n(){return t.get("aliapp/static")}export{n as a,e as g,p as s};
|
||||
@ -1 +0,0 @@
|
||||
const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAAEH5aXCAAAAAXNSR0IArs4c6QAACWVJREFUeAHtXYlXFDcYD/ex3LciCAiKVQGrePTV93z2727t66FVqkA9AJVTREWQazkWZGm+WTKbyUxm58tOZrfb5D1IJvnyXb/MbCaTo2h3P3FCkKEYSW+Rh1Pp5ydTBP5Y+GP8LUvacRFv05vFz+T9p69WYUtDLVnb3LEJf7p92U4rqeeQBKy+bu9aHJvqYla8e5AgscoKK83+lbIExAsf1sjs8hcr62xrA1n5smkXS9U7/HZsEx0epdN25mnCYVNHc51d3tGSTtuZpwmXTSKB17VDkheBV55SJbR6aCnZVfj79YLVQMdezls2T899dNnusIFvzTylFH2eqLqynL+00w4Jx8kk2Yrvk9rqSlJWWmIT8QlHo/x1bIYvs9OBVLKphQTarQ4bBGael2gJ6ApolTz1zJCJ1ioDP8/iSIQ4GhWvxvLnDTKz8InPstJdHU3k4vl2xxMeCuprq8jN73osGvGf1JK9g0OR1rrePzhyCYCCrZ19T3rIlAppbkg96MWaLY0xwt8urHz0Sg9LumK5kPoaFzFkdLY1eua/W1r1zIdMKSbwQ+kVJmeWHT+ajGZjZ48lXbHUEhdlFhnmZkQ5z7gL5a5ImnDhCJE+Vk5OTsgvT6cdvr9/8xIpKUkZn6Tlj8bfkTbaPYVHv1+QNmG/PtSjiVmyn3D+FHg9mZlgJUxEAcDst2dvGE9XrCTExYVmHHGvAmJ5aEKaJb8/IFBJyNBAp6gsGRnscuWxDCnwQMDeuRgxe/di1/H9BKmpcr6DsTI+ljZh6EiMTy3xtGT0Si+pq6kkT1/MkZ29hKNMqXU9npx1MIGLsVepdwhRAJTJmjyUKWECFTHBCMF4i/g2YRQnH2KDiY9z3EWF465IWpfbgeHnRAJJ+Gq7ORpD3D7JbY5BJLf+d0uX9rjcpOkcv45PmiqVenDrMikqSufC4KxsmKe1sZYMXTyXJkak0I9f/qtEEDnw5WL40jkCgy7PXy8GqUJ+GLlAqiq8x4dlDCK7R4IaAYrCGxw2RGYIVjEsfWSG+L21iEpjaFld9D0CFR+OTZNkMtgHSlGpg8QR+XPiHZNvx/A8uHfjovRTiE0oSSgZIuGV02z04xfGah4KYzl+Ftz7foCUl5VaIyF+AxU8j2r6tfTucB+flTGNvkf8Bsi9pE3Npb5VBDUCeOzRT7/YgDYEKyAqemNIYE9z3ZPAdRQI0YjAYGxNdeZhM9ClsqKMDJ/2nW4P9QVW78frA4FpGWHBPH7RiDAP5FtsDDGIaPJAwTQt89TS1EKU2RZM0zKGKLcBTRUNIpocq8zWIKLsOk0VDSKaHKvMtmAQQY9rgcvm6UT8xZU1ciwZbSyi3xG66fTU/u42Tw+vbcbJHJ3IH6eTQWpjFaS/q5001lV70gbNRHcaZXM1vQTW0nf7W9f67KLDo2/k9+fu1RSM4P4onbRVrNZI0LX4VRpMAVnMz46BATo/I4AHzG6HWWkqAW2IihCo4zd5jOcJA+QqIRJDoEkFDQCICiaRGLJ0uoAoqDEfV9OreILWicQQr3mKfgru028o2BCJIfU1uEdrPZ2rhw2RGAK/KZjQQj9TY0MkhoBSsQDTLIHOb0IplMtCZIbcoYPYmQbm4cfQb9KqzAjIRxvit25EFHRNmF37gC5zbOdW//H059obCfyyqwZ0F4UJgmkYxydJdumIi6nvGzL0neCXfpf2tWpilaT0dC65gwnyQtkQpBzt5Eq9X5iO4begB7QWO4zb8QN7hrKfVXeHLxDZOkW/euh75PHkXEYjQCB0GFn/CroobJq1nzJQBlO04RM4NqANwXw6Zp+kZ9+nFhEHVW5pZT0oqU2HNsSuiUj4LWj2YsMvhvYq98qLxBAvwWHnGUPC9mi2/Awi2Xow7PrRIJKptxiCVZEYwm8TEURnLD3wRBuCmSdyZ+iCpTf0eGFeSpAA81zqaqqCkDpoCqbTiEbE4YY8ujCG5BEYlioGEYOIJg+YpqXJscpsDSLKrtNUsWAQKZi+liagI2dbMC0rcs9pEmgA0eRYVbYGEFXPaapnANHkWFW2BhBVz2mqZwDR5FhVtgYQVc9pqmcA0eRYVbYGEFXPaapnANHkWFW2BhBVz2mqpzRHC6tL4vAbmZhZslYkYOvK6OGD6silbjrRM/O+QnCUAayIAD0yBdj1o7+rlbQ24We3ZuIdpFz74OI23X9/7NVCEF2UaK72d3rO8YQDKMan35OEwkRupgh8Hb8+2G1t5cLydMfaH1mf1re12uDFf/LNMvmLTlLMBgxQGtYYwSoX2ZbtOgzTDogOpR08hYmbz6YWydpG+jAYB63iBRw083p2RbE2rtp/HxDOXvit2NyWHyjAkaKTH9e2Ak0LRjMWKhQUILrAYD7TzR/kFBQgpZKDe5hDs43LSvW7S7+EbL2AqN/Z1oCgxpHCYuOOFn38mTYFBQgsPhvsO8NsCzWGdV5hrDLKpJT2F8NyzY+R8jLn+WKd9Ey7ulgVeUaPMpAtrc/kFL68gm4nOXq1h1SUB5vZy9dVSWt/MYQFRU/+mVfaLjKTQXDYG6xkhD04vQKcnPHy7QffQ0S86kFeasu/rsBbBMr4YPO1A8IUgkVY03Tfz0zL4hi9XwxL5wZ7z1onhvjR8WU7uwcEuq5fNuLkQDi/BujgSBMYLjnTWo/e5pmXk206MkCyVfT/Ut/7XtdoPZwvGd9NSJfz+omGpb4xenfIzqUU67Jlv0mFzSJKiorpcuEK5V1MRF2CXkcCCAwwwpBG0N2ygyoPi8nbmpzHxa5+3SYv6O9GmKG4uIjcuHxeaRkOVg/tj6z1rTiZoKOuusJgb4d9+OOH1Q0yPe8+SzMs2SN05Le53vuUy7BkaH8PWd9MncsclsIin7WNNH8+LdKFcb1Od5rSHbQDotuAQuNvAMkzRA0gBpA880CeqWPuEANInnkgz9TRfoeobLuE8VF1ZXoUtopLY3gEpdVtC+ihHRDYbg3OctMRYJCxvzt9gvYATUOejgA2gC26g/Y3dWYAbAi7QLfEgjf3OB15VflWAV/twOGNdTHS29liH3HOZLD4+DhpbTe8QYffYS8ylc1oS+hwCWx9Bzsp9pxtpqccRrABDTUgMkCYs0zs7wHtjyx/8aZU9IABRPRIjq8NIDkGQBRvABE9kuNrA0iOARDFG0BEj+T42gCSYwBE8QYQ0SM5vjaA5BgAUbwBRPRIjq8NIDkGQBT/L6Jfu8Mv7Hz7AAAAAElFTkSuQmCC";export{A as _};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css */import{_ as C}from"./apply_empty-78684083.js";import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as M}from"./app_store_default-c4798c2d.js";import{t as a}from"./index-0ca94763.js";import{g as N,Y as z,z as b,w as D}from"./index-7eafba5f.js";import{c as R,a as w}from"./common-c3be41fd.js";import{a as T}from"./vue-router-48fdc1e3.js";import{E as j}from"./index-c5914bde.js";import{E as H}from"./index-888853cf.js";import{E as O}from"./index-4d8f36c6.js";import{E as P}from"./index-558a0748.js";import{E as U}from"./index-448a4893.js";import{v as Y}from"./directive-64fb15dc.js";import{d as $,r as v,O as q,M as G,e as l,f as d,g as t,B as o,u as p,y as x,x as i,F as J,z as K,v as Q,A as W,H as E,aA as X,aB as Z}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as tt}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-bcd7a424.js";import"./index-cf9a2dd7.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./el-form-item-1b16c9fc.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-ebc73046.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";const h=m=>(X("data-v-bf26c648"),m=m(),Z(),m),et={class:"box-border pt-[68px] px-[76px] overview-top"},ot={key:0},st={class:"flex justify-between items-center"},pt={class:"font-[600] text-[26px] text-[#222] leading-[37px]"},at={class:"font-[500] text-[14px] text-[#222] leading-[20px] mt-[12px]"},nt=h(()=>t("div",{class:"mr-[9px] text-[#3F3F3F] iconfont iconxiazai01"},null,-1)),it={class:"font-[600] text-[14px] text-[#222] leading-[20px]"},rt={class:"flex flex-wrap mt-[40px]"},ct=["onClick"],lt={class:"bg-[#F7FAFB] py-[18px] px-[24px] flex items-center app-item-head"},mt=h(()=>t("div",{class:"image-slot"},[t("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:M})],-1)),_t={class:"py-[18px] px-[24px]"},dt={class:"font-[600] leading-[1] text-[14px] text-[#222]"},xt={class:"text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate"},ut=h(()=>t("div",{class:"w-[230px] mx-auto"},[t("img",{src:C,class:"max-w-full",alt:""})],-1)),ft={class:"flex items-center"},vt=$({__name:"app_manage",setup(m){const g=T(),u=N(),n=v(!0),_=q({appList:[]}),f=v({});(()=>{n.value=!0,z().then(s=>{s.data.forEach((e,r)=>{e.type=="app"&&_.appList.push(e)}),u.routers.forEach((e,r)=>{e.children&&e.children.length?(e.name=b(e.children),f.value[e.meta.app]=b(e.children)):f.value[e.meta.app]=e.name}),n.value=!1}).catch(()=>{n.value=!1})})();const L=s=>{w.set({key:"menuAppStorage",data:s.key}),w.set({key:"plugMenuTypeStorage",data:""});const e=u.appMenuList;e.push(s.key),u.setAppMenuList(e);let r=f.value[s.key];g.push({name:r})},y=()=>{g.push("/app_manage/app_store")},k=v("");return(()=>{D().then(s=>{k.value=s.data.version.version})})(),(s,e)=>{const r=j,F=H,S=O,A=P,V=U,B=Y;return G((l(),d("div",et,[_.appList&&!n.value?(l(),d("div",ot,[t("div",st,[t("div",null,[t("div",pt,o(p(a)("app")),1),t("div",at,o(p(a)("versionInfo"))+" "+o(p(a)("currentVersion"))+" "+o(k.value),1)]),x(r,{onClick:y,class:"px-[15px]"},{default:i(()=>[nt,t("span",it,o(p(a)("appStore")),1)]),_:1})]),t("div",rt,[(l(!0),d(J,null,K(_.appList,(c,I)=>(l(),d("div",{key:I,class:"app-item w-[280px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mr-[20px] mb-[20px] overflow-hidden",onClick:yt=>L(c)},[t("div",lt,[x(F,{class:"w-[44px] h-[44px] rounded-[8px]",src:p(R)(c.icon),fit:"contain"},{error:i(()=>[mt]),_:2},1032,["src"])]),t("div",_t,[t("div",dt,o(c.title),1),x(S,{class:"box-item",effect:"light",content:c.desc,placement:"bottom-start"},{default:i(()=>[t("div",xt,o(c.desc),1)]),_:2},1032,["content"])])],8,ct))),128)),!_.appList.length&&!n.value?(l(),Q(V,{key:0,class:"mx-auto overview-empty"},{image:i(()=>[ut]),description:i(()=>[t("p",ft,[t("span",null,o(p(a)("descriptionLeft")),1),x(A,{type:"primary",onClick:y,class:"mx-[5px]"},{default:i(()=>[W(o(p(a)("link")),1)]),_:1}),t("span",null,o(p(a)("descriptionRight")),1)])]),_:1})):E("",!0)])])):E("",!0)])),[[B,n.value]])}}});const ce=tt(vt,[["__scopeId","data-v-bf26c648"]]);export{ce as default};
|
||||
@ -1 +0,0 @@
|
||||
const e=t=>[...new Set(t)],n=t=>!t&&t!==0?[]:Array.isArray(t)?t:[t];export{n as c,e as u};
|
||||
@ -1 +0,0 @@
|
||||
import{x as t}from"./index-7eafba5f.js";function c(e){return t.get("cms/article",{params:e})}function s(e){return t.get(`cms/article/${e}`)}function o(e){return t.post("cms/article",e,{showSuccessMessage:!0})}function u(e){return t.put(`cms/article/${e.id}`,e,{showSuccessMessage:!0})}function a(e){return t.delete(`cms/article/${e}`,{showSuccessMessage:!0})}function i(e){return t.get("cms/category",{params:e})}function n(e){return t.get("cms/category/all",e)}function g(e){return t.get(`cms/category/${e}`)}function l(e){return t.post("cms/category",e,{showSuccessMessage:!0})}function f(e){return t.put(`cms/category/${e.category_id}`,e,{showSuccessMessage:!0})}function d(e){return t.delete(`cms/category/${e}`,{showSuccessMessage:!0})}export{l as a,g as b,s as c,d,f as e,n as f,i as g,u as h,o as i,c as j,a as k};
|
||||
@ -1 +0,0 @@
|
||||
const e="栏目名称",t="排序",o="是否显示",r="请输入栏目名称",s="请输入排序",a="是否显示",c="添加栏目",l="编辑栏目",n="确定要删除该栏目吗?",i="名称不能超过20个字符",d="排序号必须是数字",h="排序号不能超过10000",m="显示",w="不显示",g="文章数量",u={name:e,sort:t,isShow:o,namePlaceholder:r,sortPlaceholder:s,isShowPlaceholder:a,addArticleCategory:c,updateArticleCategory:l,articleCategoryDeleteTips:n,nameMax:i,sortNumber:d,sortBetween:h,show:m,hide:w,articleNumber:g};export{c as addArticleCategory,n as articleCategoryDeleteTips,g as articleNumber,u as default,w as hide,o as isShow,a as isShowPlaceholder,e as name,i as nameMax,r as namePlaceholder,m as show,t as sort,h as sortBetween,d as sortNumber,s as sortPlaceholder,l as updateArticleCategory};
|
||||
@ -1 +0,0 @@
|
||||
const t="文章栏目",e="文章标题",o="简介",c="文章摘要",a="文章图片",r="作者",l="文章内容",s="实际浏览量",i="初始浏览量",n="是否显示",h="排序",d="请选择文章栏目",u="请输入文章标题",m="请输入简介",P="请输入文章摘要",w="请上传文章图片",x="请输入作者",g="请输入文章内容",y="请输入实际浏览量",M="请输入初始浏览量",v="是否显示",N="请输入排序",S="添加文章",b="编辑文章",A="文章标题不能超过20个字符",B="文章简介不能超过50个字符",V="文章摘要不能超过50个字符",p="图片路径太长",I="文章作者不能超过20个字符",f="是否显示必须是数字",_="是否显示只能是0或者1",j="排序号必须是数字",k="排序号需要在0-10000之间",q="未读取到文章信息!",z={categoryName:t,title:e,intro:o,summary:c,image:a,author:r,content:l,visit:s,visitVirtual:i,isShow:n,sort:h,categoryIdPlaceholder:d,titlePlaceholder:u,introPlaceholder:m,summaryPlaceholder:P,imagePlaceholder:w,authorPlaceholder:x,contentPlaceholder:g,visitPlaceholder:y,visitVirtualPlaceholder:M,isShowPlaceholder:v,sortPlaceholder:N,addArticle:S,updateArticle:b,titleMax:A,introMax:B,summaryMax:V,imageMax:p,authorMax:I,isShowNumber:f,isShowBetween:_,sortNumber:j,sortBetween:k,articleNull:q};export{S as addArticle,q as articleNull,r as author,I as authorMax,x as authorPlaceholder,d as categoryIdPlaceholder,t as categoryName,l as content,g as contentPlaceholder,z as default,a as image,p as imageMax,w as imagePlaceholder,o as intro,B as introMax,m as introPlaceholder,n as isShow,_ as isShowBetween,f as isShowNumber,v as isShowPlaceholder,h as sort,k as sortBetween,j as sortNumber,N as sortPlaceholder,c as summary,V as summaryMax,P as summaryPlaceholder,e as title,A as titleMax,u as titlePlaceholder,b as updateArticle,s as visit,y as visitPlaceholder,i as visitVirtual,M as visitVirtualPlaceholder};
|
||||
@ -1 +0,0 @@
|
||||
const t="栏目",e="ID",c="标题",o="简介",i="摘要",s="封面",a="作者",r="文章内容",n="浏览量",l="初始浏览量",d="是否显示",m="排序",u="创建时间",h="更新时间",p="添加文章",g="编辑文章",y="请输入文章标题",T="请选择文章栏目",D="确定要删除该文章吗?",I={categoryName:t,ID:e,title:c,intro:o,summary:i,image:s,author:a,content:r,visit:n,visitVirtual:l,isShow:d,sort:m,createTime:u,updateTime:h,addArticle:p,updateArticle:g,titlePlaceholder:y,categoryIdPlaceholder:T,articleDeleteTips:D};export{e as ID,p as addArticle,D as articleDeleteTips,a as author,T as categoryIdPlaceholder,t as categoryName,r as content,u as createTime,I as default,s as image,o as intro,d as isShow,m as sort,i as summary,c as title,y as titlePlaceholder,g as updateArticle,h as updateTime,n as visit,l as visitVirtual};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css */import{t as d}from"./index-0ca94763.js";import{a as u}from"./attachment-afdaf51f.js";import{a as f,E as h}from"./index-24fb848e.js";import{E as x}from"./index-9ecd3f93.js";import{d as y,r as b,e as p,f as a,y as o,x as r,F as v,z as E,u as V,g as n}from"./plugin-vue_export-helper-85a4d40b.js";/* empty css */import"./event-f85d77b0.js";/* empty css */import"./el-overlay-08181e74.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./el-form-item-1b16c9fc.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css *//* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-489c18c0.js";import"./index-ee5275c6.js";import"./aria-adfa05c5.js";import"./validator-bcf701e4.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./directive-64fb15dc.js";const g={class:"main-container attachment-container"},k=n("div",{class:"flex justify-between items-center mb-4"},[n("span",{class:"text-[20px]"},"素材管理")],-1),Gt=y({__name:"attachment",setup(w){const m=["image","video","icon"],e=b(m[0]);return(B,i)=>{const s=f,l=h,c=x;return p(),a("div",g,[o(c,{class:"box-card !border-none full-container",shadow:"never"},{default:r(()=>[k,o(l,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=t=>e.value=t)},{default:r(()=>[(p(),a(v,null,E(m,(t,_)=>o(s,{label:V(d)(t),name:t,key:_},{default:r(()=>[o(u,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{Gt as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
.app-text[data-v-99be2d93]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis}.main[data-v-99be2d93]{background-color:var(--el-bg-color-overlay)}em[data-v-99be2d93]{font-style:normal}.auth-code-dialog .el-overlay{background-color:transparent}.auth-code-dialog .el-dialog__header{padding:0}.auth-code-dialog .el-dialog__body{padding:20px 30px}
|
||||
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
import{_ as o}from"./brand-edit.vue_vue_type_style_index_0_lang-706fd89c.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";import"./index-2d04c504.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-14193028.js";import"./index-0ca94763.js";import"./attachment-afdaf51f.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-489c18c0.js";import"./index-ee5275c6.js";import"./aria-adfa05c5.js";import"./validator-bcf701e4.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./directive-64fb15dc.js";import"./goods-6a4de1f3.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as F}from"./el-overlay-08181e74.js";/* empty css */import{a as U,E as C}from"./el-form-item-1b16c9fc.js";import{_ as P}from"./index-2d04c504.js";/* empty css */import{t as l}from"./index-0ca94763.js";import{e as I,f as O,h as R}from"./goods-6a4de1f3.js";import{E as j}from"./index-e27c3bb0.js";import{E as $}from"./index-c5914bde.js";import{v as q}from"./directive-64fb15dc.js";import{d as A,r as p,O as L,c as M,e as g,v as V,x as d,g as S,y as t,A as y,B as h,u as r,M as T}from"./plugin-vue_export-helper-85a4d40b.js";const z={class:"dialog-footer"},ne=A({__name:"brand-edit",emits:["complete"],setup(G,{expose:w,emit:B}){const m=p(!1),s=p(!1),c=p(""),_={brand_id:"",brand_name:"",logo:"",desc:"",sort:""},a=L({..._}),v=p(),E=M(()=>({brand_name:[{required:!0,message:l("brandNamePlaceholder"),trigger:"blur"}]})),x=async i=>{if(s.value||!i)return;const e=a.brand_id?I:O;await i.validate(async n=>{n&&(s.value=!0,e(a).then(f=>{s.value=!1,m.value=!1,B("complete")}).catch(f=>{s.value=!1}))})};return w({showDialog:m,setFormData:async(i=null)=>{if(Object.assign(a,_),s.value=!0,i){const e=await(await R(i.brand_id)).data;c.value=l("updateBrand"),e&&Object.keys(a).forEach(n=>{e[n]!=null&&(a[n]=e[n])})}else c.value=l("addBrand");s.value=!1}}),(i,e)=>{const n=j,u=U,f=P,D=C,b=$,N=F,k=q;return g(),V(N,{modelValue:m.value,"onUpdate:modelValue":e[6]||(e[6]=o=>m.value=o),title:c.value,width:"500px",class:"diy-dialog-wrap","destroy-on-close":!0},{footer:d(()=>[S("span",z,[t(b,{onClick:e[4]||(e[4]=o=>m.value=!1)},{default:d(()=>[y(h(r(l)("cancel")),1)]),_:1}),t(b,{type:"primary",loading:s.value,onClick:e[5]||(e[5]=o=>x(v.value))},{default:d(()=>[y(h(r(l)("confirm")),1)]),_:1},8,["loading"])])]),default:d(()=>[T((g(),V(D,{model:a,"label-width":"120px",ref_key:"formRef",ref:v,rules:r(E),class:"page-form"},{default:d(()=>[t(u,{label:r(l)("brandName"),prop:"brand_name"},{default:d(()=>[t(n,{modelValue:a.brand_name,"onUpdate:modelValue":e[0]||(e[0]=o=>a.brand_name=o),clearable:"",placeholder:r(l)("brandNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(u,{label:r(l)("logo")},{default:d(()=>[t(f,{modelValue:a.logo,"onUpdate:modelValue":e[1]||(e[1]=o=>a.logo=o)},null,8,["modelValue"])]),_:1},8,["label"]),t(u,{label:r(l)("desc")},{default:d(()=>[t(n,{modelValue:a.desc,"onUpdate:modelValue":e[2]||(e[2]=o=>a.desc=o),type:"textarea",clearable:"",placeholder:r(l)("descPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(u,{label:r(l)("sort")},{default:d(()=>[t(n,{modelValue:a.sort,"onUpdate:modelValue":e[3]||(e[3]=o=>a.sort=o),clearable:"",placeholder:r(l)("sortPlaceholder"),class:"input-width",onkeyup:"this.value = this.value.replace(/[^\\d\\.]/g,'');"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[k,s.value]])]),_:1},8,["modelValue","title"])}}});export{ne as _};
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB |
@ -1 +0,0 @@
|
||||
@charset "UTF-8";.multi-hidden[data-v-9f0ec4de]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
const e="会员信息",o="卡项信息",t="卡项类型",c="商品类型",r="详情",a="订单编号",d="开始时间",s="结束时间",n="记录详情",l="会员头像",m="卡项总次数",T="使用次数",i="到期时间",u="请选择卡项类型",N="请选择记录状态",p="请输入订单编号",h="使用数量",f="不限次",y={memberInfo:e,cardInfo:o,cardType:t,goodsType:c,detail:r,orderNo:a,startDate:d,endDate:s,recordInfo:n,headimg:l,cardTotalNum:m,cardTotalUseNum:T,expireTime:i,cardTypePlaceholder:u,statusPlaceholder:N,orderNoPlaceholder:p,useNum:h,timecard:f};export{o as cardInfo,m as cardTotalNum,T as cardTotalUseNum,t as cardType,u as cardTypePlaceholder,y as default,r as detail,s as endDate,i as expireTime,c as goodsType,l as headimg,e as memberInfo,a as orderNo,p as orderNoPlaceholder,n as recordInfo,d as startDate,N as statusPlaceholder,f as timecard,h as useNum};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./card-goods-select.vue_vue_type_script_setup_true_lang-0723375e.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./index-0ca94763.js";import"./common-c3be41fd.js";import"./index-bcd7a424.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";import"./el-form-item-1b16c9fc.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";/* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import"./vipcard-ea2ff005.js";import"./index-1a62403f.js";import"./index-79f2037e.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-fe3867fe.js";import"./_isIterateeCall-47526406.js";import"./debounce-6c3123a6.js";import"./index-bd04154b.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./validator-bcf701e4.js";import"./directive-64fb15dc.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as G}from"./el-overlay-08181e74.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import{c as L}from"./common-c3be41fd.js";import{t as d}from"./index-0ca94763.js";import{d as O,f as U}from"./vipcard-ea2ff005.js";import{E as A}from"./index-1a62403f.js";import{a as I,E as R}from"./index-fe3867fe.js";import{E as $}from"./index-21f38393.js";import{E as H}from"./index-c5914bde.js";import{v as M}from"./directive-64fb15dc.js";import{d as q,r as g,O as J,e as h,v as E,x as p,g as r,y as c,i as w,A as D,B as f,u as t,M as K,f as V,H as k}from"./plugin-vue_export-helper-85a4d40b.js";const Q={class:"flex"},W={class:"w-[150px] border-0 border-solid border-r-[1px] border-[#eee]"},X={class:"ml-5 flex-1"},Y={class:"flex"},Z=["src"],ee={class:"flex flex flex-col ml-2"},te={key:0},ae={key:1},oe={class:"mt-[16px] flex justify-end"},le={class:"dialog-footer"},Pe=q({__name:"card-goods-select",emits:["complete"],setup(ie,{expose:S,emit:z}){let n=g(!1);const b=g(!1);let y=g([]);(async()=>{let l=await(await O({type:2})).data;l.length?l.forEach((e,s)=>{let i={};i.label=e.category_name,i.category_id=e.category_id,e.children.length&&(i.children=[],e.children.forEach((u,C)=>{let m={};m.label=u.category_name,m.category_id=u.category_id,i.children.push(m)})),y.value.push(i)}):y.value=[]})();const B={children:"children",label:"label",category_id:"category_id"},N=l=>{a.searchParam.category_id=l.category_id,_()};let a=J({page:1,limit:4,total:0,loading:!0,data:[],searchParam:{category_id:""}});const _=(l=1)=>{a.loading=!0,a.page=l,U({page:a.page,limit:a.limit,...a.searchParam}).then(e=>{a.loading=!1,a.data=e.data.data,a.total=e.data.total}).catch(()=>{a.loading=!1})};_();const x=g([]),P=l=>{x.value=l},T=()=>{z("complete",x.value)},v=g([]);return S({showDialog:n,setFormData:async(l=null)=>{if(b.value=!1,l){const e=await(await getCategoryInfo(l.category_id)).data;if(e&&Object.keys(formData).forEach(s=>{e[s]!=null&&(formData[s]=e[s])}),formData.category_id>0)for(let s in v.value)formData.category_id==v.value[s].category_id&&v.value.splice(s,1)}}}),(l,e)=>{const s=A,i=I,u=R,C=$,m=H,j=G,F=M;return h(),E(j,{modelValue:t(n),"onUpdate:modelValue":e[5]||(e[5]=o=>w(n)?n.value=o:n=o),title:t(d)("addVipcardGoods"),width:"800px","destroy-on-close":!0},{footer:p(()=>[r("span",le,[c(m,{onClick:e[3]||(e[3]=o=>w(n)?n.value=!1:n=!1)},{default:p(()=>[D(f(t(d)("cancel")),1)]),_:1}),c(m,{type:"primary",loading:b.value,onClick:e[4]||(e[4]=o=>T())},{default:p(()=>[D(f(t(d)("confirm")),1)]),_:1},8,["loading"])])]),default:p(()=>[r("div",Q,[r("div",W,[c(s,{data:t(y),props:B,accordion:"",onNodeClick:N},null,8,["data"])]),r("div",X,[K((h(),E(u,{ref:"multipleTableRef",style:{width:"100%"},onSelectionChange:P,data:t(a).data,size:"large",height:"450"},{default:p(()=>[c(i,{type:"selection",width:"55"}),c(i,{label:t(d)("goodsInfo"),"min-width":"240",align:"left"},{default:p(({row:o})=>[r("div",Y,[r("img",{class:"w-[100px] min-h-[56px]",src:t(L)(o.cover_thumb_small)},null,8,Z),r("div",ee,[r("span",null,f(o.goods_name),1)])])]),_:1},8,["label"]),c(i,{prop:"price",label:t(d)("price"),"min-width":"120"},null,8,["label"]),c(i,{prop:"status",label:t(d)("status"),"min-width":"120"},{default:p(({row:o})=>[o.status==1?(h(),V("span",te,f(t(d)("up")),1)):k("",!0),o.status==0?(h(),V("span",ae,f(t(d)("down")),1)):k("",!0)]),_:1},8,["label"])]),_:1},8,["data"])),[[F,t(a).loading]]),r("div",oe,[c(C,{"current-page":t(a).page,"onUpdate:currentPage":e[0]||(e[0]=o=>t(a).page=o),"page-size":t(a).limit,"onUpdate:pageSize":e[1]||(e[1]=o=>t(a).limit=o),layout:"total, sizes, prev, pager, next, jumper",total:t(a).total,onSizeChange:e[2]||(e[2]=o=>_()),onCurrentChange:_},null,8,["current-page","page-size","total"])])])])]),_:1},8,["modelValue","title"])}}});export{Pe as _};
|
||||
@ -1 +0,0 @@
|
||||
const c="编辑卡项",e="基础信息",o="卡项详情",a="卡项名称",r="请输入卡项名称",t="卡项类型",d="关键字",n="请输入关键字,不能超过100个字符",s="卡项图片",l="卡项内容",i="添加卡项项目",P="卡项有效期",h="是否统一售价",m="排序",y="服务时长",p="库存",u="成本价",g="划线价",v="开卡价格",D="续费价",f="请输入服务时长",C="请输入库存",b="请输入成本价",I="请输入划线价",S="请输入开卡价格",w="请输入续费价",k="元",N="分钟",T="件",L="放入仓库",V="立即上架",A="永久",G="计次卡",Q="指定过期日期",x="购买须知",_="请输入购买须知",j="计次卡",q="支持创建多个项目/商品集合有限次数卡",z="计时卡",B="支持创建多个项目/商品集合不限次数卡",E="会员可在设定次数内任意使用卡内项目/商品",F="通用卡",H="可用次数/数量",J="卡项封面",K="有效期",M="天",O="是否上架",R="项目选择",U="上架",W="下架",X="商品信息",Y="销售价",Z="虚拟销量",$="请输入虚拟销量",cc="请输入卡项名称",ec="请输入关键词",oc="请输入卡项封面",ac="请输入开卡价格",rc="请输入卡项详情",tc="请选择卡项项目",dc={editCard:c,basicInformation:e,cardDetails:o,cardName:a,cardNamePlaceholder:r,cardType:t,promotionalLanguage:d,promotionalLanguagePlaceholder:n,cardImages:s,cardContent:l,addCard:i,cardDate:P,cardSellingPrice:h,cardSort:m,serviceTime:y,stock:p,costPrice:u,crossedPrice:g,cardPrice:v,renewPrice:D,serviceTimePlaceholder:f,stockPlaceholder:C,costPricePlaceholder:b,crossedPricePlaceholder:I,cardPricePlaceholder:S,renewPricePlaceholder:w,unit:k,minute:N,piece:T,no:L,are:V,perpetual:A,buyDays:G,appointedDay:Q,buyInfo:x,buyInfoPlaceholder:_,oncecard:j,oncecardDesc:q,timecard:z,timecardDesc:B,commoncardDesc:E,commoncard:F,availableQuantity:H,cardCover:J,verifyValidity:K,day:M,isShelf:O,addVipcardGoods:R,up:U,down:W,goodsInfo:X,price:Y,virtuallySale:Z,virtuallySalePlaceholder:$,goodsNamePlaceholder:cc,keywordsPlaceholder:ec,goodsCoverPlaceholder:oc,pricePlaceholder:ac,goodsContentPlaceholder:rc,goodsArrPlaceholder:tc};export{i as addCard,R as addVipcardGoods,Q as appointedDay,V as are,H as availableQuantity,e as basicInformation,G as buyDays,x as buyInfo,_ as buyInfoPlaceholder,l as cardContent,J as cardCover,P as cardDate,o as cardDetails,s as cardImages,a as cardName,r as cardNamePlaceholder,v as cardPrice,S as cardPricePlaceholder,h as cardSellingPrice,m as cardSort,t as cardType,F as commoncard,E as commoncardDesc,u as costPrice,b as costPricePlaceholder,g as crossedPrice,I as crossedPricePlaceholder,M as day,dc as default,W as down,c as editCard,tc as goodsArrPlaceholder,rc as goodsContentPlaceholder,oc as goodsCoverPlaceholder,X as goodsInfo,cc as goodsNamePlaceholder,O as isShelf,ec as keywordsPlaceholder,N as minute,L as no,j as oncecard,q as oncecardDesc,A as perpetual,T as piece,Y as price,ac as pricePlaceholder,d as promotionalLanguage,n as promotionalLanguagePlaceholder,D as renewPrice,w as renewPricePlaceholder,y as serviceTime,f as serviceTimePlaceholder,p as stock,C as stockPlaceholder,z as timecard,B as timecardDesc,k as unit,U as up,K as verifyValidity,Z as virtuallySale,$ as virtuallySalePlaceholder};
|
||||
@ -1 +0,0 @@
|
||||
const o="上架",t="下架",s="已上架",e="已下架",c="卡项信息",d="价格",n="卡项名称",a="请输入卡项名称",l="开始时间",r="结束时间",p="确定要删除该卡项吗?",i="销量",D="卡项类型",g="添加卡项",m="购买记录",N={up:o,down:t,tooUp:s,tooDown:e,goodsInfo:c,price:d,goodsName:n,goodsNamePlaceholder:a,startDate:l,endDate:r,vipcardGoodsDeleteTips:p,saleNum:i,cardType:D,addGoods:g,collectionRecord:m};export{g as addGoods,D as cardType,m as collectionRecord,N as default,t as down,r as endDate,c as goodsInfo,n as goodsName,a as goodsNamePlaceholder,d as price,i as saleNum,l as startDate,e as tooDown,s as tooUp,o as up,p as vipcardGoodsDeleteTips};
|
||||
@ -1 +0,0 @@
|
||||
const o="卡项信息",e="卡项内容",r="订单详情",t="下单IP",n="支付时间",c="订单编号",s="订单状态",a="创建时间",m="订单金额",d="买家",i="订单来源",f="支付方式",y="核销时间",p="订单明细",u="房型信息",I="房型价格",T="日期",N="房间数量",v="联系方式",M="操作日志",b="预订信息",g="入住日期",D="离店日期",l="入住人",x="房间",C="维权状态",S="实付金额",F="单号",L="商品类型",V="核销码",_="商品次数/数量",P="使用次数/数量",h="有效期",j="记录信息",k="有效期",q="商品信息",w="商品价格",z="核销信息",A="核销数量",B="核销人员",E="暂无核销记录",G="卡项类型",H="不限次",J={cardInfo:o,cardContent:e,orderInfo:r,ip:t,payTime:n,orderNo:c,orderStatus:s,createTime:a,orderMoney:m,member:d,orderFromName:i,payTypeName:f,verifyTime:y,orderDetail:p,roomInfo:u,roomMoney:I,date:T,roomNum:N,mobile:v,operateLog:M,reserveInfo:b,startDate:g,endDate:D,occupant:l,room:x,refundStatus:C,payMoney:S,cardNo:F,goodsType:L,verifyCode:V,num:_,useNum:P,expireTtime:h,recordInfo:j,expireTime:k,goodsInfo:q,price:w,verifyInfo:z,verifyNum:A,verifierMember:B,notVerifyInfo:E,cardType:G,timecard:H};export{e as cardContent,o as cardInfo,F as cardNo,G as cardType,a as createTime,T as date,J as default,D as endDate,k as expireTime,h as expireTtime,q as goodsInfo,L as goodsType,t as ip,d as member,v as mobile,E as notVerifyInfo,_ as num,l as occupant,M as operateLog,p as orderDetail,i as orderFromName,r as orderInfo,m as orderMoney,c as orderNo,s as orderStatus,S as payMoney,n as payTime,f as payTypeName,w as price,j as recordInfo,C as refundStatus,b as reserveInfo,x as room,u as roomInfo,I as roomMoney,N as roomNum,g as startDate,H as timecard,P as useNum,B as verifierMember,V as verifyCode,z as verifyInfo,A as verifyNum,y as verifyTime};
|
||||
@ -1 +0,0 @@
|
||||
const e="会员信息",o="卡项信息",t="卡项类型",c="请输入订单编号",r="商品类型",a="详情",d="订单编号",s="请输入订单编号",n="开始时间",l="结束时间",m="记录详情",T="会员头像",u="卡项总次数",N="使用次数",i="到期时间",p="请选择状态",h="使用数量",f={memberInfo:e,cardInfo:o,cardType:t,cardTypePlaceholder:c,goodsType:r,detail:a,orderNo:d,orderNoPlaceholder:s,startDate:n,endDate:l,recordInfo:m,headimg:T,cardTotalNum:u,cardTotalUseNum:N,expireTime:i,statusPlaceholder:p,useNum:h};export{o as cardInfo,u as cardTotalNum,N as cardTotalUseNum,t as cardType,c as cardTypePlaceholder,f as default,a as detail,l as endDate,i as expireTime,r as goodsType,T as headimg,e as memberInfo,d as orderNo,s as orderNoPlaceholder,m as recordInfo,n as startDate,p as statusPlaceholder,h as useNum};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import{E as T}from"./index-7eafba5f.js";/* empty css */import{_ as V}from"./category_default-6c62f083.js";import{t as o}from"./index-0ca94763.js";import{U as G,V as N}from"./vipcard-ea2ff005.js";import{c as $}from"./common-c3be41fd.js";import{_ as A}from"./category-edit.vue_vue_type_script_setup_true_lang-a084ccfb.js";import{u as F}from"./vue-router-48fdc1e3.js";import{E as L}from"./index-ee5275c6.js";import{E as M}from"./index-c5914bde.js";import{a as j,E as z}from"./index-fe3867fe.js";import{E as O}from"./index-9ecd3f93.js";import{v as R}from"./directive-64fb15dc.js";import{d as S,O as U,r as f,e as l,f as y,y as e,x as r,g as s,B as n,u as t,A as g,M as q,v as h}from"./plugin-vue_export-helper-85a4d40b.js";import"./index-bcd7a424.js";import"./index-cf9a2dd7.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./el-form-item-1b16c9fc.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./index-2d04c504.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-14193028.js";import"./attachment-afdaf51f.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-489c18c0.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./validator-bcf701e4.js";import"./aria-adfa05c5.js";import"./_isIterateeCall-47526406.js";const H={class:"main-container"},I={class:"flex justify-between items-center"},J={class:"text-[20px]"},K={class:"mt-[20px]"},P={key:1,class:"w-[50px] h-[50px]",src:V},fo=S({__name:"category",setup(Q){const v=F().meta.title;let a=U({loading:!0,data:[]});f();const c=(m=1)=>{a.loading=!0,G().then(u=>{a.loading=!1,a.data=u.data}).catch(()=>{a.loading=!1})};c();const i=f(null),C=()=>{i.value.setFormData(),i.value.showDialog=!0},b=m=>{i.value.setFormData(m),i.value.showDialog=!0},x=m=>{L.confirm(o("vipcardGoodsCategoryDeleteTips"),o("warning"),{confirmButtonText:o("confirm"),cancelButtonText:o("cancel"),type:"warning"}).then(()=>{N(m).then(()=>{c()}).catch(()=>{})})};return(m,u)=>{const d=M,_=j,E=T,k=z,w=O,D=R;return l(),y("div",H,[e(w,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[s("div",I,[s("span",J,n(t(v)),1),e(d,{type:"primary",class:"w-[100px]",onClick:C},{default:r(()=>[g(n(t(o)("addCategory")),1)]),_:1})]),s("div",K,[q((l(),h(k,{data:t(a).data,"row-key":"category_id",size:"large"},{empty:r(()=>[s("span",null,n(t(a).loading?"":t(o)("emptyData")),1)]),default:r(()=>[e(_,{prop:"category_name",label:t(o)("categoryName"),"min-width":"120"},null,8,["label"]),e(_,{label:t(o)("image"),"min-width":"100",align:"left"},{default:r(({row:p})=>[p.thumb?(l(),h(E,{key:0,src:t($)(p.thumb)},null,8,["src"])):(l(),y("img",P))]),_:1},8,["label"]),e(_,{label:t(o)("operation"),fixed:"right",align:"right","min-width":"100"},{default:r(({row:p})=>[e(d,{type:"primary",link:"",onClick:B=>b(p)},{default:r(()=>[g(n(t(o)("edit")),1)]),_:2},1032,["onClick"]),e(d,{type:"primary",link:"",onClick:B=>x(p.category_id)},{default:r(()=>[g(n(t(o)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[D,t(a).loading]])]),e(A,{ref_key:"editVipcardGoodsCategoryDialog",ref:i,onComplete:c},null,512)]),_:1})])}}});export{fo as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
@charset "UTF-8";.multi-hidden[data-v-9a9f2699]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}[data-v-9a9f2699] .el-table__row>.el-table__cell:nth-child(1) .cell{display:flex;align-items:center}[data-v-9a9f2699] .el-table__row>.el-table__cell:nth-child(1) .cell .el-table__expand-icon,[data-v-9a9f2699] .el-table__row>.el-table__cell:nth-child(1) .cell .el-table__indent,[data-v-9a9f2699] .el-table__row>.el-table__cell:nth-child(1) .cell .el-table__placeholder{order:1}
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./category-edit.vue_vue_type_script_setup_true_lang-a084ccfb.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";import"./index-2d04c504.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-14193028.js";import"./index-0ca94763.js";import"./attachment-afdaf51f.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-489c18c0.js";import"./index-ee5275c6.js";import"./aria-adfa05c5.js";import"./validator-bcf701e4.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./directive-64fb15dc.js";import"./vipcard-ea2ff005.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./category-edit.vue_vue_type_style_index_0_lang-5edb90bd.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-2d04c504.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-14193028.js";import"./index-0ca94763.js";import"./attachment-afdaf51f.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-489c18c0.js";import"./index-ee5275c6.js";import"./aria-adfa05c5.js";import"./validator-bcf701e4.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./directive-64fb15dc.js";import"./goods-6a4de1f3.js";import"./index-a286aa2a.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as R}from"./el-overlay-08181e74.js";/* empty css */import{a as I,E as P}from"./el-form-item-1b16c9fc.js";import{_ as j}from"./index-2d04c504.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";/* empty css */import{t as l}from"./index-0ca94763.js";import{m as G,n as L,d as S,o as T}from"./vipcard-ea2ff005.js";import{E as q}from"./index-e27c3bb0.js";import{a as z,E as A}from"./index-4601cf3b.js";import{E as M}from"./index-c5914bde.js";import{v as $}from"./directive-64fb15dc.js";import{d as H,r as f,O as J,c as K,e as _,v as g,x as i,g as Q,y as s,i as b,A as E,B as w,u as o,M as W,f as X,F as Y,z as Z}from"./plugin-vue_export-helper-85a4d40b.js";const ee={class:"dialog-footer"},we=H({__name:"category-edit",emits:["complete"],setup(ae,{expose:C,emit:h}){let n=f(!1);const m=f(!1),y={category_id:0,category_name:"",image:"",sort:0,pid:0},a=J({...y}),v=f(),D=K(()=>({category_name:[{required:!0,message:l("categoryNamePlaceholder"),trigger:"blur"}]})),k=async d=>{if(m.value||!d)return;let e=a.category_id>0?G:L;await d.validate(async r=>{r&&(m.value=!0,e(a).then(c=>{m.value=!1,n.value=!1,h("complete")}).catch(c=>{m.value=!1}))})},u=f([]);return C({showDialog:n,setFormData:async(d=null)=>{if(Object.assign(a,y),u.value=await(await S({type:1})).data,m.value=!0,d){const e=await(await T(d.category_id)).data;if(e&&Object.keys(a).forEach(r=>{e[r]!=null&&(a[r]=e[r])}),a.category_id>0)for(let r in u.value)a.category_id==u.value[r].category_id&&u.value.splice(r,1)}m.value=!1}}),(d,e)=>{const r=q,p=I,c=z,x=A,F=j,B=P,V=M,N=R,U=$;return _(),g(N,{modelValue:o(n),"onUpdate:modelValue":e[6]||(e[6]=t=>b(n)?n.value=t:n=t),title:a.category_id?o(l)("updateVipcardGoodsCategory"):o(l)("addVipcardGoodsCategory"),width:"500px","destroy-on-close":!0},{footer:i(()=>[Q("span",ee,[s(V,{onClick:e[4]||(e[4]=t=>b(n)?n.value=!1:n=!1)},{default:i(()=>[E(w(o(l)("cancel")),1)]),_:1}),s(V,{type:"primary",loading:m.value,onClick:e[5]||(e[5]=t=>k(v.value))},{default:i(()=>[E(w(o(l)("confirm")),1)]),_:1},8,["loading"])])]),default:i(()=>[W((_(),g(B,{model:a,"label-width":"90px",ref_key:"formRef",ref:v,rules:o(D),class:"page-form"},{default:i(()=>[s(p,{label:o(l)("categoryName"),prop:"category_name"},{default:i(()=>[s(r,{modelValue:a.category_name,"onUpdate:modelValue":e[0]||(e[0]=t=>a.category_name=t),clearable:"",placeholder:o(l)("categoryNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(p,{label:o(l)("upCategory")},{default:i(()=>[s(x,{modelValue:a.pid,"onUpdate:modelValue":e[1]||(e[1]=t=>a.pid=t),class:"input-width"},{default:i(()=>[s(c,{value:0,label:o(l)("categoryTips")},null,8,["label"]),(_(!0),X(Y,null,Z(u.value,(t,O)=>(_(),g(c,{key:O,label:t.category_name,value:t.category_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),s(p,{label:o(l)("image")},{default:i(()=>[s(F,{modelValue:a.image,"onUpdate:modelValue":e[2]||(e[2]=t=>a.image=t)},null,8,["modelValue"])]),_:1},8,["label"]),s(p,{label:o(l)("sort"),prop:"sort"},{default:i(()=>[s(r,{modelValue:a.sort,"onUpdate:modelValue":e[3]||(e[3]=t=>a.sort=t),clearable:"",placeholder:o(l)("sortPlaceholder"),class:"input-width",onkeyup:"this.value = this.value.replace(/[^\\d]/g,'');"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[U,m.value]])]),_:1},8,["modelValue","title"])}}});export{we as _};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as L}from"./el-overlay-08181e74.js";/* empty css */import{a as O,E as P}from"./el-form-item-1b16c9fc.js";/* empty css */import{_ as q}from"./index-2d04c504.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";/* empty css */import{t as o}from"./index-0ca94763.js";import{i as R,k as j,l as A,m as $}from"./goods-6a4de1f3.js";import{E as z}from"./index-e27c3bb0.js";import{a as M,E as T}from"./index-4601cf3b.js";import{E as G}from"./index-a286aa2a.js";import{E as H}from"./index-c5914bde.js";import{v as J}from"./directive-64fb15dc.js";import{d as K,r as c,O as Q,c as W,e as _,v as f,x as r,g as X,y as l,A as h,B as V,u as n,M as Y,f as Z,F as ee,z as ae}from"./plugin-vue_export-helper-85a4d40b.js";const te={class:"dialog-footer"},Fe=K({__name:"category-edit",emits:["complete"],setup(oe,{expose:E,emit:C}){const m=c(!1),i=c(!1),g=c(""),v={category_id:"",category_name:"",image:"",pid:0,is_show:1,child_count:0,level:1},a=Q({...v}),y=c(),x=W(()=>({category_id:[{required:!0,message:o("categoryIdPlaceholder"),trigger:"blur"}],category_name:[{required:!0,message:o("categoryNamePlaceholder"),trigger:"blur"}],pid:[{required:!0,message:o("pidPlaceholder"),trigger:"change"}]})),b=c([]),D=async s=>{if(i.value||!s)return;const e=a.category_id?R:j;await s.validate(async d=>{d&&(i.value=!0,e(a).then(p=>{i.value=!1,m.value=!1,C("complete")}).catch(p=>{i.value=!1}))})},F=()=>{$({level:1}).then(s=>{b.value=s.data.filter(e=>e.category_id!=a.category_id)})};return E({showDialog:m,setFormData:async(s=null)=>{if(Object.assign(a,v),i.value=!0,s){g.value=o("updateCategory");const e=await(await A(s.category_id)).data;e&&Object.keys(a).forEach(d=>{e[d]!=null&&(a[d]=e[d])})}else g.value=o("addCategory");F(),i.value=!1}}),(s,e)=>{const d=z,u=O,p=M,k=T,B=q,N=G,S=P,w=H,U=L,I=J;return _(),f(U,{modelValue:m.value,"onUpdate:modelValue":e[6]||(e[6]=t=>m.value=t),title:g.value,width:"480",class:"diy-dialog-wrap","destroy-on-close":!0},{footer:r(()=>[X("span",te,[l(w,{onClick:e[4]||(e[4]=t=>m.value=!1)},{default:r(()=>[h(V(n(o)("cancel")),1)]),_:1}),l(w,{type:"primary",loading:i.value,onClick:e[5]||(e[5]=t=>D(y.value))},{default:r(()=>[h(V(n(o)("confirm")),1)]),_:1},8,["loading"])])]),default:r(()=>[Y((_(),f(S,{model:a,"label-width":"120px",ref_key:"formRef",ref:y,rules:n(x),class:"page-form"},{default:r(()=>[l(u,{label:n(o)("categoryName"),prop:"category_name"},{default:r(()=>[l(d,{modelValue:a.category_name,"onUpdate:modelValue":e[0]||(e[0]=t=>a.category_name=t),clearable:"",placeholder:n(o)("categoryNamePlaceholder"),class:"input-width",maxlength:"10","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(u,{label:n(o)("pid"),prop:"pid"},{default:r(()=>[l(k,{modelValue:a.pid,"onUpdate:modelValue":e[1]||(e[1]=t=>a.pid=t),clearable:"",disabled:!!a.child_count,placeholder:"Select",class:"input-width"},{default:r(()=>[l(p,{label:"顶级分类",value:0}),(_(!0),Z(ee,null,ae(b.value,(t,re)=>(_(),f(p,{key:t.category_id,label:t.category_name,value:t.category_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1},8,["label"]),l(u,{label:n(o)("image")},{default:r(()=>[l(B,{modelValue:a.image,"onUpdate:modelValue":e[2]||(e[2]=t=>a.image=t)},null,8,["modelValue"])]),_:1},8,["label"]),l(u,{label:n(o)("isShow"),prop:"is_show"},{default:r(()=>[l(N,{modelValue:a.is_show,"onUpdate:modelValue":e[3]||(e[3]=t=>a.is_show=t),class:"input-width","active-value":1,"inactive-value":2},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[I,i.value]])]),_:1},8,["modelValue","title"])}}});export{Fe as _};
|
||||
@ -1 +0,0 @@
|
||||
.border-color[data-v-b25ee36b]{border-color:var(--el-color-primary)}.text-color[data-v-b25ee36b]{color:var(--el-color-primary)}.bg-color[data-v-b25ee36b]{background-color:var(--el-color-primary)}.carStyle[data-v-b25ee36b] .el-form-item__label{height:50px;line-height:50px}
|
||||
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABCCAYAAAGUUzB+AAAAAXNSR0IArs4c6QAABr1JREFUeAHtWwdXGzkQlnHBgOkBQggBAqGlcHf//y/cHR1sQj9CN5jmDqdv17NIu6stLsnmvdV7tsqMRp9GfaSN/L28/sJcXJsLXSNLTF2dHbZ5YpT619JnCrJ/VjaMMAKSJCKKGcBkSHp50fETI4jkDKbN9HfW3p6gdNaeSLC7+wctbjAViyWDAQExLmGSuIRIxE2ZrlIMhkgkwmLRqCC8FkQRhUKR11p3G9s7FHwBzZAA/pW1LbY4NyNJMRigsOrzs6H+XO5eYzRqISoMFNKHUmFUjlEEJZh9owgzwU/ctRQvwoy6gBmqSibbHfNBax3JJMsXCgafhAQtZ+dubnNseW3TIC3MTRthBCQkRFnbTLNyuaJFR0eG2On5JfuyOEtki28r5OvinMQ4+nZYiptHjiSE9y+J2WtE0onXTGa+hvtJwygCKgDzq2qONStRak7zNGpmRvzi6pr9d3JmkDzpAJ2IT0RapuE3g0wsyJMA5BTHTqWid3uk2wqoVqvG3AUmsUTEd3YP4GnOVsDK+rZGBPRiqSQJAyFfKGp0/FkEmAfNxpY+Tsg3ctYCUisgzQzXnMEclwSsb2UkZZmZMWf88XVBSg4HE+9gbiu0pLEWRSx9qUXlOIoNQZB6pIFFifD7+3rY1MS4mOQ7/Mw3WMt8F+bmlCDevR1xy2uhF4pFlmx/3ce0temtLU455vkLQpQgLCW4JIjC5z599LxU1QWC74ZZZnefffs8L8ESaysRhMj5xZUQew360oRYW4Q7+eI8z2sNh4kYC5XTtvLk9Py1ZCHkCcTlVZYdn5wK2fTg01PesqCB4kUrojBPIIbeDDD8GnF7B8fK7MrJqixsEpS5fRBuc3dKbqUmMt/3lZm8EKL8nDc40MfmZ6fZ4fGJYxYlCMdcHojopBeX19rPjV3ZHG4Zm0kPBIhwP0FNGojmCEGEzUEaID8QfcLztC0e6nGYxjLeLKcEsfRlgUWjjSnq8OiEXd/cumJVgmgUAEp+NzrCoDWY4K6zajBKEK7wTQyweJRKZcm2jMJhOoW9bmJ8jD08PjG7LUJTQADAv6u6VbGzI6ntIUwYtWi5XLZLtto1bLlcElFDck/5V7sopZGvapLGel5NeneqyzCJTE99oDItPpn9zQTfzbG+mWGTE+9ZqqtTkvXnt0Up7ifiSxMwzZZ4u6JzieZoPwXa8XoGAWs0XQpA0FZ6l+HASw50J/eUV09unkDARnh6dmEpg07cqxvbGn1tI23hoYRsNkdBi+8JxKqDcBwHK5WqJhhnlR82YEF0mjldQWzv7FmQOyWc8WYRm4l4cQRQOdfRQQdelYBmpLtqohmFVKuvHdhOXktBoI/EYzGWdVlJlc2BG6Z4PG4H3FMaLWgwE2xnnPuVEsTz84s0L3gqWWDCVA67F+YWpzkCWZQgBHl1Be8fHhl+XlxL+4QXAOAJQZCmQk0EShOBMJKQRn6lH4h++SsVQGWHiqhpIlREqAgaFLof9oiwR8g9oiU73MkPY6ynO8XtBxWW5yYb/LDVhvnG7mwoQ/o1sbr3EbFY1DAN/WzoOFCRBaBZZfvuEbMzUxYzVbPA+JUDSxUMRc1wvhWBs3VQHGHBc0zYislh+OHg+YM/CxCfoBHdzg9OrWro8Chj//DYqABs03hLY35TbFcZSsOzld6ebhbjjZb2aOMK1PKJyxu8PBdbERMsDLdQkF/n9DrBLCtQikCrR2uPkESgeOGeSPi3VmUd7nZE+Qj/lKFBSya9tDKDoDieeizxd5mwbOXu7rVVqacnpX2PQDxefVxk+Hn/0lJF4P1semefL3X6q922tgibmZpgKW7Kc3LoGcNDg04srjQ3Y6lZQEsUgXV+9+CI3d3pX5VQobCFZvhLZBhlYSOPx1tSvLZpy96orzIIj+g3HckDX7ZQWSeHm0h81tDf18tXhPcGKybEnb0D7cUc7oI/fZzUXtIZDB4D+M7Cr2uqInb3j7Sx7RUEAOM3PjbKLq+z0sqAywhc73TxO8bZ6UnHXaz5sxPVbasTrqasGmhJ3EljgqvH4Tmjanl85FfNkC1eOZvL0D9C0FNxOe/Ea85L8YZ7BOaB88urlm+7cf05ONDPBvp7Cbut73TDaJuhltiwIrC84RcU52fvIGL2PTSwIgTFERT6Ng1DAkt2Pc63Is4u7O+b6ym8kTxokNNz/bVAqkvfl9TbG4DD99DA+ux3jW6kwmJebLMTfA8S4RuzeDSmrSh4qYJPrnDxf5W9Edl9hes2zPgq5Tdg9j00foM61QUxVERNbaEiQkXIIyjsEWGPCHuErIFa7H/foqjV7xkq8gAAAABJRU5ErkJggg==";export{A as _};
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.8 KiB |
@ -1 +0,0 @@
|
||||
const s="/admin/assets/category_default-74216c25.png";export{s as _};
|
||||
@ -1 +0,0 @@
|
||||
import{b as o}from"./_baseClone-3dbf39d6.js";var r=1,n=4;function a(e){return o(e,r|n)}export{a as c};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
const o="选择商品",e="已选",p="个",s="商品选择",t="全部商品",c="已选商品",d="商品名称",l="请输入商品名称",P="商品分类",S="全部",g="商品类型",u="请选择商品类型",n="商品",G="价格",a="库存",r="已选择",i="个商品",T="取消选择",y="所选商品数量不能少于",f="所选商品数量不能超过",h={goodsSelectPopupSelectGoodsButton:o,goodsSelectPopupSelect:e,goodsSelectPopupPiece:p,goodsSelectPopupSelectGoodsDialog:s,goodsSelectPopupAllGoods:t,goodsSelectPopupSelectedGoods:c,goodsSelectPopupGoodsName:d,goodsSelectPopupGoodsNamePlaceholder:l,goodsSelectPopupGoodsCategory:P,goodsSelectPopupGoodsCategoryPlaceholder:S,goodsSelectPopupGoodsType:g,goodsSelectPopupGoodsTypePlaceholder:u,goodsSelectPopupGoodsInfo:n,goodsSelectPopupPrice:G,goodsSelectPopupStock:a,goodsSelectPopupBeforeTip:r,goodsSelectPopupAfterTip:i,goodsSelectPopupClearGoods:T,goodsSelectPopupGoodsMinTip:y,goodsSelectPopupGoodsMaxTip:f};export{h as default,i as goodsSelectPopupAfterTip,t as goodsSelectPopupAllGoods,r as goodsSelectPopupBeforeTip,T as goodsSelectPopupClearGoods,P as goodsSelectPopupGoodsCategory,S as goodsSelectPopupGoodsCategoryPlaceholder,n as goodsSelectPopupGoodsInfo,f as goodsSelectPopupGoodsMaxTip,y as goodsSelectPopupGoodsMinTip,d as goodsSelectPopupGoodsName,l as goodsSelectPopupGoodsNamePlaceholder,g as goodsSelectPopupGoodsType,u as goodsSelectPopupGoodsTypePlaceholder,p as goodsSelectPopupPiece,G as goodsSelectPopupPrice,e as goodsSelectPopupSelect,o as goodsSelectPopupSelectGoodsButton,s as goodsSelectPopupSelectGoodsDialog,c as goodsSelectPopupSelectedGoods,a as goodsSelectPopupStock};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
@charset "UTF-8";.multi-hidden[data-v-bcde0553]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
|
||||
@ -1 +0,0 @@
|
||||
import{_ as o}from"./company-edit.vue_vue_type_style_index_0_lang-9262326a.js";/* empty css *//* empty css */import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./plugin-vue_export-helper-85a4d40b.js";import"./index-313cd2ce.js";import"./index-cf9a2dd7.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./index-bcd7a424.js";import"./_baseClone-3dbf39d6.js";import"./index-2d04c504.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-14193028.js";import"./index-0ca94763.js";import"./attachment-afdaf51f.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";import"./vue-router-48fdc1e3.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-b9e5f5cb.js";/* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./index-489c18c0.js";import"./index-ee5275c6.js";import"./aria-adfa05c5.js";import"./validator-bcf701e4.js";import"./index-e1882aa8.js";import"./index-a7e8e96f.js";import"./index-888853cf.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";import"./index-448a4893.js";import"./index-95b00894.js";import"./isEqual-0b9509fd.js";import"./flatten-749195f8.js";import"./index-21f38393.js";import"./index-4601cf3b.js";import"./index-99b65a15.js";import"./strings-53351eda.js";import"./index-bd04154b.js";import"./directive-64fb15dc.js";import"./delivery-853cfc36.js";export{o as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{E as F}from"./el-overlay-08181e74.js";/* empty css */import{a as U,E as k}from"./el-form-item-1b16c9fc.js";import{_ as P}from"./index-2d04c504.js";/* empty css */import{t as o}from"./index-0ca94763.js";import{e as I,a as O,b as R}from"./delivery-853cfc36.js";import{E as j}from"./index-e27c3bb0.js";import{E as T}from"./index-c5914bde.js";import{v as $}from"./directive-64fb15dc.js";import{d as q,r as c,O as A,c as L,e as x,v as V,x as r,g as _,y as n,A as b,B as f,u as l,M}from"./plugin-vue_export-helper-85a4d40b.js";const S={class:"input-width text-[12px] text-[#999] mt-[5px] leading-[20px]"},z={class:"dialog-footer"},se=q({__name:"company-edit",emits:["complete"],setup(G,{expose:w,emit:h}){const d=c(!1),m=c(!1),y={company_id:"",company_name:"",logo:"",url:"",express_no:""},a=A({...y}),v=c(),E=L(()=>({company_name:[{required:!0,message:o("companyNamePlaceholder"),trigger:"blur"}]})),C=async p=>{if(m.value||!p)return;const e=a.company_id?I:O;await p.validate(async s=>{s&&(m.value=!0,e(a).then(u=>{m.value=!1,d.value=!1,h("complete")}).catch(u=>{m.value=!1}))})};return w({showDialog:d,setFormData:async(p=null)=>{if(Object.assign(a,y),m.value=!0,p){const e=await(await R(p.company_id)).data;e&&Object.keys(a).forEach(s=>{e[s]!=null&&(a[s]=e[s])})}m.value=!1}}),(p,e)=>{const s=j,i=U,u=P,N=k,g=T,D=F,B=$;return x(),V(D,{modelValue:d.value,"onUpdate:modelValue":e[6]||(e[6]=t=>d.value=t),title:a.company_id?l(o)("updateCompany"):l(o)("addCompany"),width:"500px",class:"diy-dialog-wrap","destroy-on-close":!0},{footer:r(()=>[_("span",z,[n(g,{onClick:e[4]||(e[4]=t=>d.value=!1)},{default:r(()=>[b(f(l(o)("cancel")),1)]),_:1}),n(g,{type:"primary",loading:m.value,onClick:e[5]||(e[5]=t=>C(v.value))},{default:r(()=>[b(f(l(o)("confirm")),1)]),_:1},8,["loading"])])]),default:r(()=>[M((x(),V(N,{model:a,"label-width":"120px",ref_key:"formRef",ref:v,rules:l(E),class:"page-form"},{default:r(()=>[n(i,{label:l(o)("companyName"),prop:"company_name"},{default:r(()=>[n(s,{modelValue:a.company_name,"onUpdate:modelValue":e[0]||(e[0]=t=>a.company_name=t),clearable:"",placeholder:l(o)("companyNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(i,{label:l(o)("logo")},{default:r(()=>[n(u,{modelValue:a.logo,"onUpdate:modelValue":e[1]||(e[1]=t=>a.logo=t)},null,8,["modelValue"])]),_:1},8,["label"]),n(i,{label:l(o)("url")},{default:r(()=>[n(s,{modelValue:a.url,"onUpdate:modelValue":e[2]||(e[2]=t=>a.url=t),clearable:"",placeholder:l(o)("urlPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n(i,{label:l(o)("expressNo")},{default:r(()=>[_("div",null,[n(s,{modelValue:a.express_no,"onUpdate:modelValue":e[3]||(e[3]=t=>a.express_no=t),clearable:"",placeholder:l(o)("expressNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"]),_("p",S,f(l(o)("expressNoTips")),1)])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[B,m.value]])]),_:1},8,["modelValue","title"])}}});export{se as _};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as E}from"./app_store_default-c4798c2d.js";import{g as A,y as B,z as C}from"./index-7eafba5f.js";import{c as S}from"./common-c3be41fd.js";import{a as I}from"./vue-router-48fdc1e3.js";import{t as j}from"./index-0ca94763.js";import{E as V}from"./index-888853cf.js";import{E as D}from"./index-9ecd3f93.js";import{E as F}from"./index-448a4893.js";import{v as M}from"./directive-64fb15dc.js";import{d as N,O as z,r as d,M as R,u as n,e as o,f as i,v as H,x as f,g as e,F as O,z as U,y as u,B as x,H as _,aA as $,aB as q}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as G}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-bcd7a424.js";import"./index-cf9a2dd7.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./el-form-item-1b16c9fc.js";import"./_baseClone-3dbf39d6.js";/* empty css *//* empty css */import"./index-d469ae66.js";import"./index-e27c3bb0.js";import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./index-344f0086.js";import"./debounce-6c3123a6.js";import"./position-37364850.js";const h=p=>($("data-v-32a262a7"),p=p(),q(),p),J={class:"main-container w-full bg-white"},K=h(()=>e("div",{class:"flex justify-between items-center"},[e("span",{class:"text-[20px]"},"应用管理")],-1)),P={class:"flex flex-wrap plug-list pb-10 plug-large"},Q={key:0,class:"relative app-item cursor-pointer px-4 mr-4 mt-[20px] bg-[#f7f7f7] border-[1px] hover:border-primary"},T=["onClick"],W={class:"flex py-5 items-center"},X={class:"flex justify-center items-center"},Y=h(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[50px] h-[50px]",src:E})],-1)),Z={class:"flex flex-col justify-between text-left w-[190px]"},tt={class:"app-text w-[190px] text-[17px] text-[#222] pl-3"},et={class:"border-t-[1px] border-[#e8e9eb] py-3"},st={class:"app-text text-[14px] text-[#999] w-[200px]"},ot={key:1,class:"empty flex items-center justify-center"},rt=N({__name:"concern",setup(p){const l=A(),v=I(),a=z({list:[]});let m=d(!0);(async()=>{const t=await B({type:"tart"});a.list=t.data,m.value=!1})();const c=d({});(()=>{l.routers.forEach((t,s)=>{t.meta.app!=""&&(t.children&&t.children.length?c.value[t.meta.app]=C(t.children):c.value[t.meta.app]=t.name)})})();const g=t=>{let s=l.appMenuList;s.length&&s.includes(t)||s.push(t),l.setAppMenuList(s),v.push({name:c.value[t]})};return(t,s)=>{const y=V,k=D,w=F,b=M;return R((o(),i("div",J,[a.list.length?(o(),H(k,{key:0,class:"box-card !border-none",shadow:"never"},{default:f(()=>[K,e("div",P,[(o(!0),i(O,null,U(a.list,(r,L)=>(o(),i("div",{key:L+"b"},[c.value[r.key]?(o(),i("div",Q,[e("div",{onClick:at=>g(r.key)},[e("div",W,[e("div",X,[u(y,{class:"w-[50px] h-[50px]",src:n(S)(r.icon),fit:"contain"},{error:f(()=>[Y]),_:2},1032,["src"])]),e("div",Z,[e("p",tt,x(r.title),1)])]),e("div",et,[e("p",st,x(r.desc),1)])],8,T)])):_("",!0)]))),128))])]),_:1})):_("",!0),!n(m)&&!a.list.length?(o(),i("div",ot,[u(w,{description:n(j)("emptyData")},null,8,["description"])])):_("",!0)])),[[b,n(m)]])}}});const Tt=G(rt,[["__scopeId","data-v-32a262a7"]]);export{Tt as default};
|
||||
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-7eafba5f.js";/* empty css */import{t as m}from"./index-0ca94763.js";import{S as H}from"./sortable.esm-be94e56d.js";import{s as G,i as J}from"./delivery-853cfc36.js";import{u as K,a as O}from"./vue-router-48fdc1e3.js";import{E as Q}from"./index-e27c3bb0.js";import{E as W}from"./index-cf9a2dd7.js";import{E as X}from"./index-a286aa2a.js";import{E as Y}from"./index-c5914bde.js";import{E as Z}from"./index-9ecd3f93.js";import{v as ee}from"./directive-64fb15dc.js";import{d as te,r as y,o as oe,E as $,$ as ae,M as I,e as s,f as d,g as u,B as n,u as p,F as E,z as se,y as l,x as r,v as D,A as k,H as S,aj as ne,aA as le,aB as re}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as ie}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-c3be41fd.js";import"./index-bcd7a424.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./event-f85d77b0.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";import"./el-form-item-1b16c9fc.js";import"./_baseClone-3dbf39d6.js";/* empty css */import"./index-d469ae66.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./validator-bcf701e4.js";const pe=x=>(le("data-v-7fd214a8"),x=x(),re(),x),ue={class:"main-container"},ce={class:"flex ml-[18px] justify-between items-center mt-[20px]"},me={class:"text-[20px]"},de={class:"flex items-center justify-between"},ve={class:"flex items-center"},fe=pe(()=>u("i",{class:"iconfont icontuodong vues-rank !cursor-move mr-[5px]"},null,-1)),_e={key:1,class:"font-600 text-[14px]"},ye={class:"flex items-center justify-between"},ke={class:"text-[#666666] text-[14px]"},xe=te({__name:"config",setup(x){const R=K(),N=O(),j=R.meta.title,g=y(!1),i=y([]),F=()=>{g.value=!0,J().then(t=>{i.value=t.data,g.value=!1}).catch(()=>{g.value=!1})};oe(()=>{$(()=>{b()}),F()});const L={mounted:t=>t.querySelector("input").focus()},w=y(0),V=y(),b=()=>{H.create(V.value,{handle:".vues-rank",animation:300,onEnd({newIndex:t,oldIndex:e}){const C=i.value.splice(e,1)[0];i.value.splice(t,0,C),w.value+=1,$(()=>{b()}),h()}})},v=y(null),c=y(""),T=t=>{v.value=t,c.value=ne(i.value[t].name)},U=()=>{if(c.value==""||i.value[v.value].name===c.value)return v.value=null,c.value="",!1;i.value[v.value].name=c.value,v.value=null,h()},h=()=>{G({value:i.value})},f=t=>{N.push({path:t})};return(t,e)=>{const C=Q,A=ae("EditPen"),M=W,P=X,_=Y,q=Z,z=ee;return I((s(),d("div",ue,[u("div",ce,[u("span",me,n(p(j)),1)]),(s(),d("div",{class:"p-[18px] logistics-body",ref_key:"tableRef",ref:V,key:w.value},[(s(!0),d(E,null,se(i.value,(a,B)=>(s(),d("div",{key:a.key,class:"mb-[20px] bg-[#fff]"},[l(q,{shadow:"never"},{header:r(()=>[u("div",de,[u("div",ve,[fe,B===v.value?I((s(),D(C,{key:0,modelValue:c.value,"onUpdate:modelValue":e[0]||(e[0]=o=>c.value=o),class:"w-[120px]",onBlur:U},null,8,["modelValue"])),[[L]]):(s(),d("span",_e,n(a.name),1)),l(M,{class:"text-color ml-[10px] cursor-pointer",onClick:o=>T(B)},{default:r(()=>[l(A)]),_:2},1032,["onClick"])]),l(P,{modelValue:a.status,"onUpdate:modelValue":o=>a.status=o,"active-value":1,"inactive-value":2,onChange:o=>h(a)},null,8,["modelValue","onUpdate:modelValue","onChange"])])]),default:r(()=>[u("div",ye,[u("span",ke,n(p(m)(a.key)),1),u("div",null,[a.key==="local_delivery"?(s(),d(E,{key:0},[l(_,{type:"primary",link:"",onClick:e[1]||(e[1]=o=>f("/shop/order/delivery/staff"))},{default:r(()=>[k(n(p(m)("deliveryStaff")),1)]),_:1}),l(_,{type:"primary",link:"",onClick:e[2]||(e[2]=o=>f("/shop/order/delivery/local"))},{default:r(()=>[k(n(p(m)("localConfig")),1)]),_:1})],64)):S("",!0),a.key==="express"?(s(),d(E,{key:1},[l(_,{type:"primary",link:"",onClick:e[3]||(e[3]=o=>f("/shop/order/delivery/company"))},{default:r(()=>[k(n(p(m)("deliveryCompany")),1)]),_:1}),l(_,{type:"primary",link:"",onClick:e[4]||(e[4]=o=>f("/shop/order/shipping/template"))},{default:r(()=>[k(n(p(m)("deliveryTemplate")),1)]),_:1}),l(_,{type:"primary",link:"",onClick:e[5]||(e[5]=o=>f("/shop/order/delivery/search"))},{default:r(()=>[k(n(p(m)("deliverySearch")),1)]),_:1})],64)):S("",!0),a.key==="store"?(s(),D(_,{key:2,type:"primary",link:"",onClick:e[6]||(e[6]=o=>f("/shop/order/delivery/store"))},{default:r(()=>[k(n(p(m)("deliveryStore")),1)]),_:1})):S("",!0)])])]),_:2},1024)]))),128))]))])),[[z,g.value]])}}});const at=ie(xe,[["__scopeId","data-v-7fd214a8"]]);export{at as default};
|
||||
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css */import{a as S,E as k}from"./el-form-item-1b16c9fc.js";/* empty css *//* empty css */import{t as e}from"./index-0ca94763.js";import{S as I}from"./index-7eafba5f.js";import{E as q}from"./index-bcd7a424.js";import{u as B,a as D}from"./vue-router-48fdc1e3.js";import{a as u}from"./index-d469ae66.js";import{E as N}from"./index-e27c3bb0.js";import{E as R}from"./index-9ecd3f93.js";import{v as F}from"./directive-64fb15dc.js";import{d as V,r as d,O as M,w as j,M as A,e as L,f as O,g as a,B as n,u as t,y as s,x as r,aA as P,aB as U}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as $}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-cf9a2dd7.js";import"./event-f85d77b0.js";import"./_baseClone-3dbf39d6.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css *//* empty css */import"./index-c5914bde.js";import"./index-4d8f36c6.js";import"./index-ebc73046.js";const z="/admin/assets/preview-52aad803.png",G=i=>(P("data-v-7a2a3fc4"),i=i(),U(),i),H={class:"main-container"},J={class:"flex ml-[18px] justify-between items-center mt-[20px]"},K={class:"text-[20px]"},Q=G(()=>a("img",{class:"w-[500px]",src:z,alt:""},null,-1)),T=V({__name:"config",setup(i){const f=B().meta.title,m=d(!0),o=M({is_open:!1,request_url:""}),v=d();D(),I().then(p=>{o.request_url=p.data.web_url+"/",m.value=!1});const{copy:g,isSupported:w,copied:c}=q(),x=p=>{if(!w.value){u({message:e("notSupportCopy"),type:"warning"});return}g(p)};j(c,()=>{c.value&&u({message:e("copySuccess"),type:"success"})});const y=()=>{window.open(o.request_url)};return(p,l)=>{const _=S,h=N,b=R,E=k,C=F;return A((L(),O("div",H,[a("div",J,[a("span",K,n(t(f)),1)]),s(E,{model:o,"label-width":"150px",ref_key:"formRef",ref:v,class:"page-form"},{default:r(()=>[s(b,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[s(_,{label:t(e)("preview"),prop:"weapp_name"},{default:r(()=>[Q]),_:1},8,["label"]),s(_,{label:t(e)("PCDomainName")},{default:r(()=>[s(h,{"model-value":o.request_url,class:"input-width",readonly:!0},{append:r(()=>[a("div",{class:"cursor-pointer",onClick:l[0]||(l[0]=X=>x(o.request_url))},n(t(e)("copy")),1)]),_:1},8,["model-value"]),a("span",{class:"ml-2 cursor-pointer visit-btn",onClick:y},n(t(e)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])])),[[C,m.value]])}}});const De=$(T,[["__scopeId","data-v-7a2a3fc4"]]);export{De as default};
|
||||
@ -1 +0,0 @@
|
||||
.main-container[data-v-7fd214a8]{min-height:calc(100vh - 64px)}.text-color[data-v-7fd214a8]{color:var(--el-color-primary)}[data-v-7fd214a8] .el-card__header{padding-top:5px!important;padding-bottom:5px!important}
|
||||
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
/* empty css *//* empty css *//* empty css */import{a as D,E as F}from"./el-form-item-1b16c9fc.js";/* empty css *//* empty css *//* empty css */import{t as a}from"./index-0ca94763.js";import{x as y,S as I}from"./index-7eafba5f.js";import{E as M}from"./index-bcd7a424.js";import{u as O}from"./vue-router-48fdc1e3.js";import{a as v}from"./index-d469ae66.js";import{E as R}from"./index-a286aa2a.js";import{E as j}from"./index-e27c3bb0.js";import{E as H}from"./index-9ecd3f93.js";import{E as U}from"./index-c5914bde.js";import{v as $}from"./directive-64fb15dc.js";import{d as A,r as g,O as L,w as T,e as h,f as z,g as r,B as m,u as n,M as G,v as J,x as i,y as l,A as K}from"./plugin-vue_export-helper-85a4d40b.js";import{_ as P}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-cf9a2dd7.js";import"./event-f85d77b0.js";import"./_baseClone-3dbf39d6.js";import"./common-c3be41fd.js";import"./index-e513479b.js";import"./el-main-86eb724f.js";import"./index-b9e5f5cb.js";import"./el-overlay-08181e74.js";import"./index-313cd2ce.js";import"./focus-trap-64c402c5.js";import"./index-1ad115d7.js";import"./index-de1d3b53.js";/* empty css */import"./index-4d8f36c6.js";import"./index-ebc73046.js";import"./validator-bcf701e4.js";function Q(){return y.get("channel/h5/config")}function W(u){return y.put("channel/h5/config",u,{showSuccessMessage:!0})}const X={class:"main-container"},Y={class:"flex ml-[18px] justify-between items-center mt-[20px]"},Z={class:"text-[20px]"},ee={class:"fixed-footer-wrap"},te={class:"fixed-footer"},oe=A({__name:"config",setup(u){const w=O().meta.title,s=g(!0),e=L({is_open:!1,request_url:""}),_=g();Q().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),s.value=!1}),I().then(t=>{e.request_url=t.data.wap_url+"/"});const{copy:x,isSupported:b,copied:d}=M(),E=t=>{if(!b.value){v({message:a("notSupportCopy"),type:"warning"});return}x(t)};T(d,()=>{d.value&&v({message:a("copySuccess"),type:"success"})});const C=()=>{window.open(e.request_url)},k=async t=>{s.value||!t||await t.validate(async o=>{if(o){s.value=!0;let p={...e};p.is_open=Number(p.is_open),W(p).then(()=>{s.value=!1}).catch(()=>{s.value=!1})}})};return(t,o)=>{const p=R,f=D,B=j,N=H,S=F,V=U,q=$;return h(),z("div",X,[r("div",Y,[r("span",Z,m(n(w)),1)]),G((h(),J(S,{model:e,"label-width":"150px",ref_key:"formRef",ref:_,class:"page-form"},{default:i(()=>[l(N,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[l(f,{label:n(a)("isOpen")},{default:i(()=>[l(p,{modelValue:e.is_open,"onUpdate:modelValue":o[0]||(o[0]=c=>e.is_open=c)},null,8,["modelValue"])]),_:1},8,["label"]),l(f,{label:n(a)("h5DomainName")},{default:i(()=>[l(B,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:i(()=>[r("div",{class:"cursor-pointer",onClick:o[1]||(o[1]=c=>E(e.request_url))},m(n(a)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:C},m(n(a)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[q,s.value]]),r("div",ee,[r("div",te,[l(V,{type:"primary",loading:s.value,onClick:o[2]||(o[2]=c=>k(_.value))},{default:i(()=>[K(m(n(a)("save")),1)]),_:1},8,["loading"])])])])}}});const Ue=P(oe,[["__scopeId","data-v-6c14296d"]]);export{Ue as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user