|
@@ -1,27 +1,25 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="spread-designer">
|
|
<view class="spread-designer">
|
|
|
- <view class="navigator-bar">
|
|
|
|
|
- <view class="nav-left-wrapper">
|
|
|
|
|
- <view class="nav-left">
|
|
|
|
|
- <button class="back-btn" @click="goBack">←</button>
|
|
|
|
|
|
|
+ <NavBar>
|
|
|
|
|
+ <template #title>
|
|
|
|
|
+ <view class="nav-title-wrapper">
|
|
|
|
|
+ <select
|
|
|
|
|
+ v-if="reportList && reportList.length > 0"
|
|
|
|
|
+ v-model="selectedReportId"
|
|
|
|
|
+ class="report-select"
|
|
|
|
|
+ @change="handleReportSelectChange"
|
|
|
|
|
+ >
|
|
|
|
|
+ <option value="" disabled>-- 选择报告模板 --</option>
|
|
|
|
|
+ <option v-for="report in reportList" :key="report.id" :value="report.id">
|
|
|
|
|
+ {{ report.reportName }}
|
|
|
|
|
+ </option>
|
|
|
|
|
+ </select>
|
|
|
</view>
|
|
</view>
|
|
|
- <select
|
|
|
|
|
- v-if="reportList && reportList.length > 0"
|
|
|
|
|
- v-model="selectedReportId"
|
|
|
|
|
- class="report-select"
|
|
|
|
|
- @change="handleReportSelectChange"
|
|
|
|
|
- >
|
|
|
|
|
- <option value="" disabled>-- 选择报告模板 --</option>
|
|
|
|
|
- <option v-for="report in reportList" :key="report.id" :value="report.id">
|
|
|
|
|
- {{ report.reportName }}
|
|
|
|
|
- </option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </view>
|
|
|
|
|
-
|
|
|
|
|
- <view class="nav-right">
|
|
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #right>
|
|
|
<button class="nav-btn primary" @click="saveRecord">记录保存</button>
|
|
<button class="nav-btn primary" @click="saveRecord">记录保存</button>
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </NavBar>
|
|
|
|
|
|
|
|
<view class="main-container">
|
|
<view class="main-container">
|
|
|
<Designer
|
|
<Designer
|
|
@@ -99,6 +97,7 @@ import '@grapecity-software/spread-sheets-formula-panel'
|
|
|
import '@grapecity-software/spread-sheets-io'
|
|
import '@grapecity-software/spread-sheets-io'
|
|
|
import '@grapecity-software/spread-sheets-designer-resources-cn'
|
|
import '@grapecity-software/spread-sheets-designer-resources-cn'
|
|
|
import Designer from '@grapecity-software/spread-sheets-designer-vue'
|
|
import Designer from '@grapecity-software/spread-sheets-designer-vue'
|
|
|
|
|
+import NavBar from '@/components/NavBar/NavBar.vue'
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
checkItemData: {
|
|
checkItemData: {
|
|
@@ -1181,6 +1180,12 @@ defineExpose({
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+.nav-title-wrapper {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.nav-left {
|
|
.nav-left {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|