parent
5b3aa0d688
commit
5a11975bd5
@ -0,0 +1 @@
|
||||
node_modules
|
||||
@ -0,0 +1,22 @@
|
||||
{
|
||||
"sqltools.connections": [
|
||||
{
|
||||
"connectionTimeout": 15,
|
||||
"mssqlOptions": {
|
||||
"appName": "SQLTools",
|
||||
"useUTC": true,
|
||||
"encrypt": true,
|
||||
"trustServerCertificate": false
|
||||
},
|
||||
"ssh": "Disabled",
|
||||
"previewLimit": 50,
|
||||
"server": "47.96.78.103",
|
||||
"port": 1433,
|
||||
"askForPassword": true,
|
||||
"driver": "MSSQL",
|
||||
"name": "QS aliyun",
|
||||
"username": "sa",
|
||||
"database": "QueuingSystem"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
{
|
||||
"version" : "1.0",
|
||||
"configurations" : [
|
||||
{
|
||||
"playground" : "standard",
|
||||
"type" : "uni-app:app-android"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
// api/index.js
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 登录接口
|
||||
export const userLogin = (loginData) => {
|
||||
return request({
|
||||
url: '/v1/auth/login',
|
||||
method: 'POST',
|
||||
data: loginData,
|
||||
withToken: false // 登录请求本身通常不需要Token
|
||||
})
|
||||
}
|
||||
|
||||
// 今日进厅数据
|
||||
export const getdailyEntry = (params) => {
|
||||
return request({
|
||||
url: '/v1/daily-entry/list',
|
||||
method: 'get',
|
||||
data: params,
|
||||
withToken: true // 登录请求本身通常不需要Token
|
||||
})
|
||||
}
|
||||
|
||||
// 获取今日预约
|
||||
export const getAppointmentToday = (params) => {
|
||||
return request({
|
||||
url: '/v1/appointment/today',
|
||||
method: 'get',
|
||||
data: params,
|
||||
withToken: true // 登录请求本身通常不需要Token
|
||||
})
|
||||
}
|
||||
|
||||
// 票号管理
|
||||
export const getTicket = (params) => {
|
||||
return request({
|
||||
url: '/v1/ticket/today_unified_tickets',
|
||||
method: 'get',
|
||||
data: params,
|
||||
withToken: true // 登录请求本身通常不需要Token
|
||||
})
|
||||
}
|
||||
|
||||
// 获取业务列表
|
||||
export const getBizList = () => {
|
||||
return request({
|
||||
url: '/v1/business',
|
||||
method: 'get',
|
||||
withToken: true // 登录请求本身通常不需要Token
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
// components/QueueTicketDetail/QueueTicketDetail.type.ts
|
||||
|
||||
// 票号状态枚举
|
||||
export enum TicketStatus {
|
||||
WAITING = 'waiting',
|
||||
PROCESSING = 'processing',
|
||||
COMPLETED = 'completed',
|
||||
CANCELLED = 'cancelled'
|
||||
}
|
||||
|
||||
// 评价结果枚举
|
||||
export enum RatingResult {
|
||||
EXCELLENT = 'excellent',
|
||||
GOOD = 'good',
|
||||
AVERAGE = 'average',
|
||||
POOR = 'poor'
|
||||
}
|
||||
|
||||
// 票号详情数据类型
|
||||
export interface TicketDetail {
|
||||
ticketNumber: string;
|
||||
status: TicketStatus;
|
||||
queueDate: string;
|
||||
queueTime: string;
|
||||
serviceWindow: string;
|
||||
businessType: string;
|
||||
staffName: string;
|
||||
waitingDuration: string;
|
||||
processingDuration: string;
|
||||
rating?: RatingResult;
|
||||
ratingPerson?: string;
|
||||
ratingContact?: string;
|
||||
}
|
||||
|
||||
// 组件Props类型定义
|
||||
export interface QueueTicketDetailProps {
|
||||
show: boolean;
|
||||
ticketData?: TicketDetail;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
// 组件Emits类型定义
|
||||
export interface QueueTicketDetailEmits {
|
||||
(e: 'update:show', value: boolean): void;
|
||||
(e: 'close'): void;
|
||||
}
|
||||
|
||||
// 默认票号数据导出
|
||||
export const defaultTicketData: TicketDetail = {
|
||||
ticketNumber: 'A001',
|
||||
status: TicketStatus.COMPLETED,
|
||||
queueDate: '2024-01-15',
|
||||
queueTime: '09:30:25',
|
||||
serviceWindow: '3号窗口',
|
||||
businessType: '税务登记',
|
||||
staffName: '张税务师',
|
||||
waitingDuration: '15分钟',
|
||||
processingDuration: '8分钟',
|
||||
rating: RatingResult.EXCELLENT,
|
||||
ratingPerson: '李先生',
|
||||
ratingContact: '138****8888'
|
||||
};
|
||||
@ -0,0 +1,4 @@
|
||||
// components/QueueTicketDetail/index.ts
|
||||
export { default as QueueTicketDetail } from './QueueTicketDetail.vue';
|
||||
export type * from './QueueTicketDetail.type';
|
||||
export { TicketStatus, RatingResult, defaultTicketData } from './QueueTicketDetail.type';
|
||||
@ -0,0 +1,35 @@
|
||||
<!-- components/TaxHealthReport/TaxReportItem.vue -->
|
||||
<template>
|
||||
<view class="tax-report-item">
|
||||
<text class="tax-report-item-label">{{ label }}</text>
|
||||
<text class="tax-report-item-value">{{ value }}</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
label: string;
|
||||
value: string;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.tax-report-item {
|
||||
flex-direction: row;
|
||||
margin-bottom: 12rpx;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.tax-report-item-label {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.tax-report-item-value {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
line-height: 1.5;
|
||||
flex: 1;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,37 @@
|
||||
<!-- components/TaxHealthReport/TaxReportSection.vue -->
|
||||
<template>
|
||||
<view class="tax-report-section">
|
||||
<text class="tax-report-section-title">{{ title }}</text>
|
||||
<view class="tax-report-section-content">
|
||||
<slot />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
title: string;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.tax-report-section {
|
||||
margin-bottom: 40rpx;
|
||||
background: #f8f9fa;
|
||||
border-radius: 15rpx;
|
||||
padding: 25rpx;
|
||||
border-left: 6rpx solid #007AFF;
|
||||
}
|
||||
|
||||
.tax-report-section-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #007AFF;
|
||||
margin-bottom: 20rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tax-report-section-content {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,37 @@
|
||||
<!-- components/TaxHealthReport/TaxReportSubsection.vue -->
|
||||
<template>
|
||||
<view class="tax-report-subsection">
|
||||
<text class="tax-report-subsection-title">{{ title }}</text>
|
||||
<view class="tax-report-subsection-content">
|
||||
<slot />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
title: string;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.tax-report-subsection {
|
||||
margin-bottom: 25rpx;
|
||||
background: white;
|
||||
border-radius: 10rpx;
|
||||
padding: 20rpx;
|
||||
border: 1rpx solid #e9ecef;
|
||||
}
|
||||
|
||||
.tax-report-subsection-title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 15rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tax-report-subsection-content {
|
||||
margin-left: 15rpx;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,4 @@
|
||||
// components/TaxHealthReport/index.ts
|
||||
export { default as TaxHealthReport } from './TaxHealthReport.vue';
|
||||
export type * from './TaxHealthReport.type';
|
||||
export { defaultReportData } from './TaxHealthReport.type';
|
||||
@ -0,0 +1,20 @@
|
||||
{
|
||||
"string": [
|
||||
{
|
||||
"name": "app_name",
|
||||
"value": "应用名称"
|
||||
},
|
||||
{
|
||||
"name": "agcit_agc_common_uniapp",
|
||||
"value": "1.0.0"
|
||||
},
|
||||
{
|
||||
"name": "agcittype_agc_common_uniapp",
|
||||
"value": "industryTemplate"
|
||||
},
|
||||
{
|
||||
"name": "agcittype_agc_common_uniapp_plugin",
|
||||
"value": "AI Plugin"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,575 @@
|
||||
<template>
|
||||
<view class="page-container">
|
||||
<div class="top-div">
|
||||
<div></div>
|
||||
<tn-button width="80px" height="32px" :plain="true" text-color="#0099ff" @click="backToIndex">
|
||||
<uni-icons type="arrow-left" size="18" color="#0099ff" style="margin-right: 5px;"></uni-icons>返回
|
||||
</tn-button>
|
||||
</div>
|
||||
<view class="content">
|
||||
<!-- 大厅参数管理 -->
|
||||
<view class="params-section">
|
||||
<view class="section-card">
|
||||
<view class="section-header">
|
||||
<text class="section-title">大厅参数配置</text>
|
||||
<!-- <tn-button size="sm" type="primary" plain @click="handleEditParams" :disabled="editing">
|
||||
<uni-icons type="compose" size="16" color="#1890ff"></uni-icons>
|
||||
{{ editing ? '保存中...' : '编辑参数' }}
|
||||
</tn-button> -->
|
||||
</view>
|
||||
<uni-table border stripe emptyText="暂无参数数据">
|
||||
<uni-tr>
|
||||
<uni-th width="200" align="center">参数名称</uni-th>
|
||||
<uni-th width="250" align="center">参数值</uni-th>
|
||||
<uni-th width="150" align="center">操作</uni-th>
|
||||
</uni-tr>
|
||||
<uni-tr v-for="(param, index) in hallParams" :key="param.key">
|
||||
<uni-td align="center">
|
||||
<text class="param-name">{{ param.name }}</text>
|
||||
</uni-td>
|
||||
<uni-td align="center">
|
||||
<view v-if="!param.editing" class="param-value">
|
||||
<text>{{ param.value }}</text>
|
||||
<text class="param-unit" v-if="param.unit">{{ param.unit }}</text>
|
||||
</view>
|
||||
<view v-else class="param-edit">
|
||||
<tn-input v-model="param.editValue" :type="param.inputType || 'text'"
|
||||
:placeholder="`请输入${param.name}`" size="small" border />
|
||||
</view>
|
||||
</uni-td>
|
||||
<uni-td align="center">
|
||||
<view class="param-actions">
|
||||
<tn-button v-if="!param.editing" size="sm" type="primary" plain
|
||||
@click="startEditParam(index)">
|
||||
编辑
|
||||
</tn-button>
|
||||
<view v-else class="edit-actions">
|
||||
<tn-button size="sm" type="primary" @click="saveParam(index)">
|
||||
保存
|
||||
</tn-button>
|
||||
<tn-button size="sm" type="default" @click="cancelEditParam(index)">
|
||||
取消
|
||||
</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, onMounted } from 'vue'
|
||||
|
||||
// 大厅参数数据
|
||||
const hallParams = ref([
|
||||
{
|
||||
key: 'hallName',
|
||||
name: '大厅名称',
|
||||
value: '某某市税务局第一办税服务厅',
|
||||
editing: false,
|
||||
editValue: '',
|
||||
inputType: 'text'
|
||||
},
|
||||
{
|
||||
key: 'workTimeStart',
|
||||
name: '上班时间',
|
||||
value: '09:00',
|
||||
editing: false,
|
||||
editValue: '',
|
||||
inputType: 'text'
|
||||
},
|
||||
{
|
||||
key: 'workTimeEnd',
|
||||
name: '下班时间',
|
||||
value: '17:00',
|
||||
editing: false,
|
||||
editValue: '',
|
||||
inputType: 'text'
|
||||
},
|
||||
{
|
||||
key: 'lunchStart',
|
||||
name: '午休开始',
|
||||
value: '12:00',
|
||||
editing: false,
|
||||
editValue: '',
|
||||
inputType: 'text'
|
||||
},
|
||||
{
|
||||
key: 'lunchEnd',
|
||||
name: '午休结束',
|
||||
value: '13:30',
|
||||
editing: false,
|
||||
editValue: '',
|
||||
inputType: 'text'
|
||||
},
|
||||
{
|
||||
key: 'maxWaiting',
|
||||
name: '最大等候人数',
|
||||
value: '50',
|
||||
editing: false,
|
||||
editValue: '',
|
||||
inputType: 'number',
|
||||
unit: '人'
|
||||
},
|
||||
{
|
||||
key: 'serviceTimeout',
|
||||
name: '业务办理超时',
|
||||
value: '30',
|
||||
editing: false,
|
||||
editValue: '',
|
||||
inputType: 'number',
|
||||
unit: '分钟'
|
||||
},
|
||||
{
|
||||
key: 'weekendService',
|
||||
name: '周末服务',
|
||||
value: '不开放',
|
||||
editing: false,
|
||||
editValue: '',
|
||||
inputType: 'text'
|
||||
}
|
||||
])
|
||||
|
||||
|
||||
|
||||
// 参数编辑处理
|
||||
const startEditParam = (index : number) => {
|
||||
hallParams.value.forEach((param, i) => {
|
||||
if (i === index) {
|
||||
param.editing = true
|
||||
param.editValue = param.value
|
||||
} else {
|
||||
param.editing = false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const saveParam = (index : number) => {
|
||||
const param = hallParams.value[index]
|
||||
if (param.editValue.trim()) {
|
||||
param.value = param.editValue
|
||||
param.editing = false
|
||||
|
||||
uni.showToast({
|
||||
title: '参数保存成功',
|
||||
icon: 'success'
|
||||
})
|
||||
|
||||
// 实际项目中这里应该调用API保存到服务器
|
||||
console.log(`保存参数: ${param.name} = ${param.value}`)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '参数值不能为空',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const cancelEditParam = (index : number) => {
|
||||
hallParams.value[index].editing = false
|
||||
hallParams.value[index].editValue = ''
|
||||
}
|
||||
|
||||
// 批量编辑参数
|
||||
const handleEditParams = () => {
|
||||
if (editing.value) {
|
||||
// 保存所有编辑中的参数
|
||||
hallParams.value.forEach((param, index) => {
|
||||
if (param.editing) {
|
||||
saveParam(index)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// 进入编辑模式
|
||||
uni.showToast({
|
||||
title: '进入编辑模式',
|
||||
icon: 'success'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const backToIndex = () => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
// 可以在这里初始化数据或调用API
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-container {
|
||||
min-height: 100vh;
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
.top-div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #fff;
|
||||
padding: 6vh 20px 10px 20px;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
// 通用卡片样式
|
||||
.section-card {
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
padding: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.section-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.status-summary {
|
||||
display: flex;
|
||||
gap: 20rpx;
|
||||
|
||||
.summary-item {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 窗口组样式
|
||||
.window-group {
|
||||
margin-bottom: 40rpx;
|
||||
|
||||
.group-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
margin-bottom: 20rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
// 人工窗口网格
|
||||
.windows-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20rpx;
|
||||
|
||||
.window-item {
|
||||
padding: 24rpx;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #e8e8e8;
|
||||
transition: all 0.3s;
|
||||
|
||||
&.window-free {
|
||||
border-color: #52c41a;
|
||||
background: #f6ffed;
|
||||
}
|
||||
|
||||
&.window-busy {
|
||||
border-color: #fa541c;
|
||||
background: #fff2e8;
|
||||
}
|
||||
|
||||
&.window-pause {
|
||||
border-color: #faad14;
|
||||
background: #fffbe6;
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.window-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 15rpx;
|
||||
|
||||
.window-number {
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.window-status {
|
||||
padding: 6rpx 12rpx;
|
||||
border-radius: 12rpx;
|
||||
font-size: 20rpx;
|
||||
font-weight: 500;
|
||||
|
||||
&.status-free {
|
||||
background: #52c41a;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&.status-busy {
|
||||
background: #fa541c;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&.status-pause {
|
||||
background: #faad14;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.window-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10rpx;
|
||||
|
||||
.window-type {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.waiting-count {
|
||||
font-size: 22rpx;
|
||||
color: #fa541c;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.window-current {
|
||||
.current-task {
|
||||
font-size: 22rpx;
|
||||
color: #333;
|
||||
background: #f0f0f0;
|
||||
padding: 4rpx 8rpx;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
|
||||
.no-task {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 自助设备网格
|
||||
.devices-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 20rpx;
|
||||
|
||||
.device-item {
|
||||
padding: 24rpx;
|
||||
border-radius: 12rpx;
|
||||
border: 2rpx solid #e8e8e8;
|
||||
text-align: center;
|
||||
|
||||
&.device-free {
|
||||
border-color: #52c41a;
|
||||
background: #f6ffed;
|
||||
}
|
||||
|
||||
&.device-busy {
|
||||
border-color: #fa541c;
|
||||
background: #fff2e8;
|
||||
}
|
||||
|
||||
&.device-maintenance {
|
||||
border-color: #faad14;
|
||||
background: #fffbe6;
|
||||
}
|
||||
|
||||
.device-icon {
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
|
||||
.device-info {
|
||||
.device-name {
|
||||
display: block;
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.device-status {
|
||||
display: block;
|
||||
font-size: 20rpx;
|
||||
margin-bottom: 5rpx;
|
||||
|
||||
&.status-free {
|
||||
color: #52c41a;
|
||||
}
|
||||
|
||||
&.status-busy {
|
||||
color: #fa541c;
|
||||
}
|
||||
|
||||
&.status-maintenance {
|
||||
color: #faad14;
|
||||
}
|
||||
}
|
||||
|
||||
.device-usage {
|
||||
font-size: 18rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 参数表格样式
|
||||
.param-name {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.param-value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8rpx;
|
||||
|
||||
.param-unit {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
.param-edit {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.param-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.edit-actions {
|
||||
display: flex;
|
||||
gap: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
// 弹窗样式
|
||||
.popup-content {
|
||||
width: 650rpx;
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.popup-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 30rpx;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
|
||||
.popup-title {
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.popup-body {
|
||||
padding: 30rpx;
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.detail-grid {
|
||||
.detail-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 15rpx 0;
|
||||
border-bottom: 1rpx solid #f5f5f5;
|
||||
|
||||
.detail-label {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.detail-value {
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
padding: 6rpx 12rpx;
|
||||
border-radius: 12rpx;
|
||||
font-size: 20rpx;
|
||||
color: #fff;
|
||||
|
||||
&.status-free {
|
||||
background: #52c41a;
|
||||
}
|
||||
|
||||
&.status-busy {
|
||||
background: #fa541c;
|
||||
}
|
||||
|
||||
&.status-pause {
|
||||
background: #faad14;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.waiting-list {
|
||||
margin-top: 30rpx;
|
||||
|
||||
.list-title {
|
||||
font-size: 26rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
|
||||
.list-items {
|
||||
.list-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 12rpx 0;
|
||||
border-bottom: 1rpx solid #f5f5f5;
|
||||
|
||||
.queue-number {
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.estimate-time {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.popup-footer {
|
||||
padding: 30rpx;
|
||||
border-top: 1rpx solid #f0f0f0;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,175 @@
|
||||
<template>
|
||||
<view class="push-message-page">
|
||||
<div class="top-div">
|
||||
<div></div>
|
||||
<tn-button width="80px" height="32px" :plain="true" text-color="#0099ff" @click="backToIndex">
|
||||
<uni-icons type="arrow-left" size="18" color="#0099ff" style="margin-right: 5px;"></uni-icons>返回
|
||||
</tn-button>
|
||||
</div>
|
||||
<view class="page-content">
|
||||
<!-- 推送目标选择 -->
|
||||
<view class="section">
|
||||
<view class="section-title">推送目标</view>
|
||||
<tn-radio-group v-model="pushForm.targetType">
|
||||
<tn-radio label="all" value="all">全部</tn-radio>
|
||||
<tn-radio label="ios" value="ios">呼号端</tn-radio>
|
||||
<tn-radio label="android" value="android">自助机</tn-radio>
|
||||
<tn-radio label="specific" value="specific">综合屏</tn-radio>
|
||||
</tn-radio-group>
|
||||
|
||||
<!-- 指定设备输入 -->
|
||||
<view class="specific-device">
|
||||
<tn-input v-model="pushForm.deviceId" placeholder="请输入设备ID" border></tn-input>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 消息内容编辑 -->
|
||||
<view class="section">
|
||||
<view class="section-title">推送内容</view>
|
||||
<TnInput v-model="pushForm.title" placeholder="请输入推送标题" border class="input-field"></TnInput>
|
||||
<TnInput v-model="pushForm.content" placeholder="请输入推送内容" border
|
||||
class="textarea-field"></TnInput>
|
||||
</view>
|
||||
|
||||
<!-- 推送按钮 -->
|
||||
<view class="button-section">
|
||||
<tn-button @click="handlePush" :loading="loading" class="push-button">
|
||||
{{ loading ? '推送中...' : '立即推送' }}
|
||||
</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref,
|
||||
reactive
|
||||
} from 'vue'
|
||||
import TnInput from '@/uni_modules/tuniaoui-vue3/components/input/src/input.vue'
|
||||
|
||||
// 表单数据
|
||||
const pushForm = reactive({
|
||||
targetType: 'all',
|
||||
deviceId: '',
|
||||
title: '',
|
||||
content: ''
|
||||
})
|
||||
|
||||
const loading = ref(false)
|
||||
|
||||
// 处理推送
|
||||
const handlePush = () => {
|
||||
// 表单验证
|
||||
if (!pushForm.title.trim()) {
|
||||
uni.showToast({
|
||||
title: '请输入推送标题',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!pushForm.content.trim()) {
|
||||
uni.showToast({
|
||||
title: '请输入推送内容',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (pushForm.targetType === 'specific' && !pushForm.deviceId.trim()) {
|
||||
uni.showToast({
|
||||
title: '请输入设备ID',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// 确认推送
|
||||
uni.showModal({
|
||||
title: '确认推送',
|
||||
content: '确定要发送这条推送消息吗?',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
sendPushMessage()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 发送推送消息
|
||||
const sendPushMessage = () => {
|
||||
console.log('pushing...')
|
||||
}
|
||||
|
||||
const backToIndex = () => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.push-message-page {
|
||||
min-height: 100vh;
|
||||
background-color: #fff;
|
||||
|
||||
.top-div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6vh 20px 1vh 20px;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.section {
|
||||
background-color: #fff;
|
||||
border-radius: 3px;
|
||||
padding: 10px;
|
||||
margin-bottom: 10px;
|
||||
// box-shadow: 10px;
|
||||
|
||||
.section-title {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
color: #dddddd;
|
||||
margin-bottom: 10px;
|
||||
border-left: 8rpx solid 10px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.specific-device {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.input-field {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.textarea-field {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.button-section {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
|
||||
.push-button {
|
||||
width: 80%;
|
||||
height: 40px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (min-width: 768px) {
|
||||
.push-message-page {
|
||||
.page-content {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@ -0,0 +1,3 @@
|
||||
electron_mirror=https://npmmirror.com/mirrors/electron/
|
||||
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
|
||||
shamefully-hoist=true
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["Vue.volar"]
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
# Vue 3 + TypeScript + Vite
|
||||
|
||||
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
||||
|
||||
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
||||
@ -0,0 +1,19 @@
|
||||
import { app as e, BrowserWindow as r } from "electron";
|
||||
import { fileURLToPath as t } from "url";
|
||||
import o from "path";
|
||||
const a = t(import.meta.url), i = o.dirname(a);
|
||||
e.whenReady().then(() => {
|
||||
const n = new r({
|
||||
width: 800,
|
||||
height: 600,
|
||||
webPreferences: {
|
||||
nodeIntegration: !1,
|
||||
contextIsolation: !0,
|
||||
preload: o.join(i, "../preload/index.js")
|
||||
}
|
||||
});
|
||||
process.env.VITE_DEV_SERVER_URL ? n.loadURL(process.env.VITE_DEV_SERVER_URL) : n.loadFile(o.join(i, "../../dist/index.html"));
|
||||
});
|
||||
e.on("window-all-closed", () => {
|
||||
process.platform !== "darwin" && e.quit();
|
||||
});
|
||||
@ -0,0 +1,5 @@
|
||||
import { contextBridge as o } from "electron";
|
||||
o.exposeInMainWorld("electronAPI", {
|
||||
// 可以在这里添加需要暴露的API
|
||||
platform: process.platform
|
||||
});
|
||||
@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>ticket-client</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "ticket-client",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"main": "dist-electron/main/index.js",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc -b && vite build",
|
||||
"preview": "vite preview",
|
||||
"electron:dev": "vite dev --mode electron",
|
||||
"electron:build": "vue-tsc -b && vite build --mode electron",
|
||||
"electron:start": "electron ."
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.5.24"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.10.1",
|
||||
"@vitejs/plugin-vue": "^6.0.1",
|
||||
"@vue/tsconfig": "^0.8.1",
|
||||
"electron": "^40.0.0",
|
||||
"electron-builder": "^26.4.0",
|
||||
"typescript": "~5.9.3",
|
||||
"vite": "^7.2.4",
|
||||
"vite-plugin-electron": "^0.29.0",
|
||||
"vue-tsc": "^3.1.4"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,30 @@
|
||||
<script setup lang="ts">
|
||||
import HelloWorld from './components/HelloWorld.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<a href="https://vite.dev" target="_blank">
|
||||
<img src="/vite.svg" class="logo" alt="Vite logo" />
|
||||
</a>
|
||||
<a href="https://vuejs.org/" target="_blank">
|
||||
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
|
||||
</a>
|
||||
</div>
|
||||
<HelloWorld msg="Vite + Vue" />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
.logo.vue:hover {
|
||||
filter: drop-shadow(0 0 2em #42b883aa);
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 496 B |
@ -0,0 +1,41 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
|
||||
defineProps<{ msg: string }>()
|
||||
|
||||
const count = ref(0)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h1>{{ msg }}</h1>
|
||||
|
||||
<div class="card">
|
||||
<button type="button" @click="count++">count is {{ count }}</button>
|
||||
<p>
|
||||
Edit
|
||||
<code>components/HelloWorld.vue</code> to test HMR
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Check out
|
||||
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
|
||||
>create-vue</a
|
||||
>, the official Vue + Vite starter
|
||||
</p>
|
||||
<p>
|
||||
Learn more about IDE Support for Vue in the
|
||||
<a
|
||||
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
|
||||
target="_blank"
|
||||
>Vue Docs Scaling up Guide</a
|
||||
>.
|
||||
</p>
|
||||
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.read-the-docs {
|
||||
color: #888;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,30 @@
|
||||
import { app, BrowserWindow } from 'electron'
|
||||
import { fileURLToPath } from 'url'
|
||||
import path from 'path'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
|
||||
app.whenReady().then(() => {
|
||||
const win = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
webPreferences: {
|
||||
nodeIntegration: false,
|
||||
contextIsolation: true,
|
||||
preload: path.join(__dirname, '../preload/index.js')
|
||||
}
|
||||
})
|
||||
|
||||
if (process.env.VITE_DEV_SERVER_URL) {
|
||||
win.loadURL(process.env.VITE_DEV_SERVER_URL as string)
|
||||
} else {
|
||||
win.loadFile(path.join(__dirname, '../../dist/index.html'))
|
||||
}
|
||||
})
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
}
|
||||
})
|
||||
@ -0,0 +1,8 @@
|
||||
// 预加载脚本
|
||||
import { contextBridge } from 'electron'
|
||||
|
||||
// 暴露API给渲染进程
|
||||
contextBridge.exposeInMainWorld('electronAPI', {
|
||||
// 可以在这里添加需要暴露的API
|
||||
platform: process.platform
|
||||
})
|
||||
@ -0,0 +1,5 @@
|
||||
import { createApp } from 'vue'
|
||||
import './style.css'
|
||||
import App from './App.vue'
|
||||
|
||||
createApp(App).mount('#app')
|
||||
@ -0,0 +1,79 @@
|
||||
:root {
|
||||
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: #242424;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #646cff;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
a:hover {
|
||||
color: #535bf2;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
font-family: inherit;
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
button:focus,
|
||||
button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
#app {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"types": ["vite/client"],
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.app.json" },
|
||||
{ "path": "./tsconfig.node.json" }
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||
"target": "ES2023",
|
||||
"lib": ["ES2023"],
|
||||
"module": "ESNext",
|
||||
"types": ["node"],
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
import electron from 'vite-plugin-electron'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue(), electron([
|
||||
{
|
||||
entry: 'src/electron/main/index.ts',
|
||||
vite:{
|
||||
build: {
|
||||
outDir: 'dist-electron/main'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
entry: 'src/electron/preload/index.ts',
|
||||
vite:{
|
||||
build: {
|
||||
outDir: 'dist-electron/preload'
|
||||
}
|
||||
}
|
||||
}
|
||||
])],
|
||||
})
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue