mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	chore: update
This commit is contained in:
		
							parent
							
								
									29b06c5285
								
							
						
					
					
						commit
						ed71fe708d
					
				@ -157,7 +157,7 @@ menus:
 | 
				
			|||||||
  pureTimeline: Time Line
 | 
					  pureTimeline: Time Line
 | 
				
			||||||
  pureLineTree: LineTree
 | 
					  pureLineTree: LineTree
 | 
				
			||||||
  pureList: List Page
 | 
					  pureList: List Page
 | 
				
			||||||
  pureListCard: Card List Page
 | 
					  pureCardList: Card List Page
 | 
				
			||||||
  pureDebounce: Debounce & Throttle
 | 
					  pureDebounce: Debounce & Throttle
 | 
				
			||||||
  pureFormDesign: Form Design
 | 
					  pureFormDesign: Form Design
 | 
				
			||||||
  pureBarcode: Barcode
 | 
					  pureBarcode: Barcode
 | 
				
			||||||
 | 
				
			|||||||
@ -157,7 +157,7 @@ menus:
 | 
				
			|||||||
  pureTimeline: 时间线
 | 
					  pureTimeline: 时间线
 | 
				
			||||||
  pureLineTree: 树形连接线
 | 
					  pureLineTree: 树形连接线
 | 
				
			||||||
  pureList: 列表页面
 | 
					  pureList: 列表页面
 | 
				
			||||||
  pureListCard: 卡片列表页
 | 
					  pureCardList: 卡片列表页
 | 
				
			||||||
  pureDebounce: 防抖节流
 | 
					  pureDebounce: 防抖节流
 | 
				
			||||||
  pureFormDesign: 表单设计器
 | 
					  pureFormDesign: 表单设计器
 | 
				
			||||||
  pureBarcode: 条形码
 | 
					  pureBarcode: 条形码
 | 
				
			||||||
 | 
				
			|||||||
@ -12,11 +12,11 @@ export default {
 | 
				
			|||||||
  children: [
 | 
					  children: [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      path: "/list/card",
 | 
					      path: "/list/card",
 | 
				
			||||||
      name: "ListCard",
 | 
					      name: "CardList",
 | 
				
			||||||
      component: () => import("@/views/list/card/index.vue"),
 | 
					      component: () => import("@/views/list/card/index.vue"),
 | 
				
			||||||
      meta: {
 | 
					      meta: {
 | 
				
			||||||
        icon: "ri:bank-card-line",
 | 
					        icon: "ri:bank-card-line",
 | 
				
			||||||
        title: $t("menus.pureListCard"),
 | 
					        title: $t("menus.pureCardList"),
 | 
				
			||||||
        showParent: true
 | 
					        showParent: true
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -3,6 +3,10 @@ import { ref } from "vue";
 | 
				
			|||||||
import { message } from "@/utils/message";
 | 
					import { message } from "@/utils/message";
 | 
				
			||||||
import { deviceDetection } from "@pureadmin/utils";
 | 
					import { deviceDetection } from "@pureadmin/utils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineOptions({
 | 
				
			||||||
 | 
					  name: "AccountManagement"
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const list = ref([
 | 
					const list = ref([
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    title: "账户密码",
 | 
					    title: "账户密码",
 | 
				
			||||||
@ -3,6 +3,10 @@ import { ref } from "vue";
 | 
				
			|||||||
import { message } from "@/utils/message";
 | 
					import { message } from "@/utils/message";
 | 
				
			||||||
import { deviceDetection } from "@pureadmin/utils";
 | 
					import { deviceDetection } from "@pureadmin/utils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineOptions({
 | 
				
			||||||
 | 
					  name: "Preferences"
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const list = ref([
 | 
					const list = ref([
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    title: "账户密码",
 | 
					    title: "账户密码",
 | 
				
			||||||
@ -8,6 +8,10 @@ import ReCropperPreview from "@/components/ReCropperPreview";
 | 
				
			|||||||
import { createFormData, deviceDetection } from "@pureadmin/utils";
 | 
					import { createFormData, deviceDetection } from "@pureadmin/utils";
 | 
				
			||||||
import uploadLine from "@iconify-icons/ri/upload-line";
 | 
					import uploadLine from "@iconify-icons/ri/upload-line";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineOptions({
 | 
				
			||||||
 | 
					  name: "Profile"
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const imgSrc = ref("");
 | 
					const imgSrc = ref("");
 | 
				
			||||||
const cropperInfo = ref();
 | 
					const cropperInfo = ref();
 | 
				
			||||||
const cropRef = ref();
 | 
					const cropRef = ref();
 | 
				
			||||||
@ -5,6 +5,10 @@ import { reactive, ref, onMounted } from "vue";
 | 
				
			|||||||
import { deviceDetection } from "@pureadmin/utils";
 | 
					import { deviceDetection } from "@pureadmin/utils";
 | 
				
			||||||
import type { PaginationProps } from "@pureadmin/table";
 | 
					import type { PaginationProps } from "@pureadmin/table";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineOptions({
 | 
				
			||||||
 | 
					  name: "SecurityLog"
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const loading = ref(true);
 | 
					const loading = ref(true);
 | 
				
			||||||
const dataList = ref([]);
 | 
					const dataList = ref([]);
 | 
				
			||||||
const pagination = reactive<PaginationProps>({
 | 
					const pagination = reactive<PaginationProps>({
 | 
				
			||||||
@ -3,11 +3,11 @@ import { getMine } from "@/api/user";
 | 
				
			|||||||
import { useRouter } from "vue-router";
 | 
					import { useRouter } from "vue-router";
 | 
				
			||||||
import { ref, onBeforeMount } from "vue";
 | 
					import { ref, onBeforeMount } from "vue";
 | 
				
			||||||
import { ReText } from "@/components/ReText";
 | 
					import { ReText } from "@/components/ReText";
 | 
				
			||||||
import Profile from "./components/profile.vue";
 | 
					import Profile from "./components/Profile.vue";
 | 
				
			||||||
import Preferences from "./components/preferences.vue";
 | 
					import Preferences from "./components/Preferences.vue";
 | 
				
			||||||
import SecurityLog from "./components/securityLog.vue";
 | 
					import SecurityLog from "./components/SecurityLog.vue";
 | 
				
			||||||
import { useGlobal, deviceDetection } from "@pureadmin/utils";
 | 
					import { useGlobal, deviceDetection } from "@pureadmin/utils";
 | 
				
			||||||
import AccountManagement from "./components/accountManagement.vue";
 | 
					import AccountManagement from "./components/AccountManagement.vue";
 | 
				
			||||||
import TopCollapse from "@/layout/components/sidebar/topCollapse.vue";
 | 
					import TopCollapse from "@/layout/components/sidebar/topCollapse.vue";
 | 
				
			||||||
import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
 | 
					import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +1,3 @@
 | 
				
			|||||||
import base from "./base.vue";
 | 
					export { default as EditorBase } from "./EditorBase.vue";
 | 
				
			||||||
import multi from "./multi.vue";
 | 
					export { default as EditorMulti } from "./EditorMulti.vue";
 | 
				
			||||||
import picUpload from "./picUpload.vue";
 | 
					export { default as EditorUpload } from "./EditorUpload.vue";
 | 
				
			||||||
 | 
					 | 
				
			||||||
const Base = base;
 | 
					 | 
				
			||||||
const Multi = multi;
 | 
					 | 
				
			||||||
const PicUpload = picUpload;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export { Base, Multi, PicUpload };
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
<script setup lang="ts">
 | 
					<script setup lang="ts">
 | 
				
			||||||
import { ref } from "vue";
 | 
					import { ref } from "vue";
 | 
				
			||||||
import { Base, Multi, PicUpload } from "./components";
 | 
					import { EditorBase, EditorMulti, EditorUpload } from "./components";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
defineOptions({
 | 
					defineOptions({
 | 
				
			||||||
  name: "Editor"
 | 
					  name: "Editor"
 | 
				
			||||||
@ -34,13 +34,13 @@ const activeNames = ref("1");
 | 
				
			|||||||
    </template>
 | 
					    </template>
 | 
				
			||||||
    <el-collapse v-model="activeNames" accordion>
 | 
					    <el-collapse v-model="activeNames" accordion>
 | 
				
			||||||
      <el-collapse-item title="基础用法" name="1">
 | 
					      <el-collapse-item title="基础用法" name="1">
 | 
				
			||||||
        <Base v-if="activeNames === '1'" />
 | 
					        <EditorBase v-if="activeNames === '1'" />
 | 
				
			||||||
      </el-collapse-item>
 | 
					      </el-collapse-item>
 | 
				
			||||||
      <el-collapse-item title="多个富文本" name="2">
 | 
					      <el-collapse-item title="多个富文本" name="2">
 | 
				
			||||||
        <Multi v-if="activeNames === '2'" />
 | 
					        <EditorMulti v-if="activeNames === '2'" />
 | 
				
			||||||
      </el-collapse-item>
 | 
					      </el-collapse-item>
 | 
				
			||||||
      <el-collapse-item title="自定义图片上传" name="3">
 | 
					      <el-collapse-item title="自定义图片上传" name="3">
 | 
				
			||||||
        <PicUpload v-if="activeNames === '3'" />
 | 
					        <EditorUpload v-if="activeNames === '3'" />
 | 
				
			||||||
      </el-collapse-item>
 | 
					      </el-collapse-item>
 | 
				
			||||||
    </el-collapse>
 | 
					    </el-collapse>
 | 
				
			||||||
  </el-card>
 | 
					  </el-card>
 | 
				
			||||||
 | 
				
			|||||||
@ -1,15 +1,15 @@
 | 
				
			|||||||
<script setup lang="ts">
 | 
					<script setup lang="ts">
 | 
				
			||||||
import Card from "./components/Card.vue";
 | 
					 | 
				
			||||||
import { getCardList } from "@/api/list";
 | 
					import { getCardList } from "@/api/list";
 | 
				
			||||||
import { message } from "@/utils/message";
 | 
					import { message } from "@/utils/message";
 | 
				
			||||||
import { ElMessageBox } from "element-plus";
 | 
					import { ElMessageBox } from "element-plus";
 | 
				
			||||||
import { ref, onMounted, nextTick } from "vue";
 | 
					import { ref, onMounted, nextTick } from "vue";
 | 
				
			||||||
import dialogForm from "./components/DialogForm.vue";
 | 
					import ListCard from "./components/ListCard.vue";
 | 
				
			||||||
 | 
					import ListDialogForm from "./components/ListDialogForm.vue";
 | 
				
			||||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
 | 
					import { useRenderIcon } from "@/components/ReIcon/src/hooks";
 | 
				
			||||||
import AddFill from "@iconify-icons/ri/add-circle-line";
 | 
					import AddFill from "@iconify-icons/ri/add-circle-line";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
defineOptions({
 | 
					defineOptions({
 | 
				
			||||||
  name: "ListCard"
 | 
					  name: "CardList"
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const svg = `
 | 
					const svg = `
 | 
				
			||||||
@ -152,7 +152,7 @@ const handleManageProduct = product => {
 | 
				
			|||||||
            :lg="6"
 | 
					            :lg="6"
 | 
				
			||||||
            :xl="4"
 | 
					            :xl="4"
 | 
				
			||||||
          >
 | 
					          >
 | 
				
			||||||
            <Card
 | 
					            <ListCard
 | 
				
			||||||
              :product="product"
 | 
					              :product="product"
 | 
				
			||||||
              @delete-item="handleDeleteItem"
 | 
					              @delete-item="handleDeleteItem"
 | 
				
			||||||
              @manage-product="handleManageProduct"
 | 
					              @manage-product="handleManageProduct"
 | 
				
			||||||
@ -172,6 +172,6 @@ const handleManageProduct = product => {
 | 
				
			|||||||
        />
 | 
					        />
 | 
				
			||||||
      </template>
 | 
					      </template>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <dialogForm v-model:visible="formDialogVisible" :data="formData" />
 | 
					    <ListDialogForm v-model:visible="formDialogVisible" :data="formData" />
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
 | 
				
			|||||||
@ -4,18 +4,18 @@ import Motion from "./utils/motion";
 | 
				
			|||||||
import { useRouter } from "vue-router";
 | 
					import { useRouter } from "vue-router";
 | 
				
			||||||
import { message } from "@/utils/message";
 | 
					import { message } from "@/utils/message";
 | 
				
			||||||
import { loginRules } from "./utils/rule";
 | 
					import { loginRules } from "./utils/rule";
 | 
				
			||||||
import phone from "./components/phone.vue";
 | 
					 | 
				
			||||||
import TypeIt from "@/components/ReTypeit";
 | 
					import TypeIt from "@/components/ReTypeit";
 | 
				
			||||||
import { debounce } from "@pureadmin/utils";
 | 
					import { debounce } from "@pureadmin/utils";
 | 
				
			||||||
import qrCode from "./components/qrCode.vue";
 | 
					 | 
				
			||||||
import regist from "./components/regist.vue";
 | 
					 | 
				
			||||||
import update from "./components/update.vue";
 | 
					 | 
				
			||||||
import { useNav } from "@/layout/hooks/useNav";
 | 
					import { useNav } from "@/layout/hooks/useNav";
 | 
				
			||||||
import { useEventListener } from "@vueuse/core";
 | 
					import { useEventListener } from "@vueuse/core";
 | 
				
			||||||
import type { FormInstance } from "element-plus";
 | 
					import type { FormInstance } from "element-plus";
 | 
				
			||||||
import { $t, transformI18n } from "@/plugins/i18n";
 | 
					import { $t, transformI18n } from "@/plugins/i18n";
 | 
				
			||||||
import { operates, thirdParty } from "./utils/enums";
 | 
					import { operates, thirdParty } from "./utils/enums";
 | 
				
			||||||
import { useLayout } from "@/layout/hooks/useLayout";
 | 
					import { useLayout } from "@/layout/hooks/useLayout";
 | 
				
			||||||
 | 
					import LoginPhone from "./components/LoginPhone.vue";
 | 
				
			||||||
 | 
					import LoginRegist from "./components/LoginRegist.vue";
 | 
				
			||||||
 | 
					import LoginUpdate from "./components/LoginUpdate.vue";
 | 
				
			||||||
 | 
					import LoginQrCode from "./components/LoginQrCode.vue";
 | 
				
			||||||
import { useUserStoreHook } from "@/store/modules/user";
 | 
					import { useUserStoreHook } from "@/store/modules/user";
 | 
				
			||||||
import { initRouter, getTopMenu } from "@/router/utils";
 | 
					import { initRouter, getTopMenu } from "@/router/utils";
 | 
				
			||||||
import { bg, avatar, illustration } from "./utils/static";
 | 
					import { bg, avatar, illustration } from "./utils/static";
 | 
				
			||||||
@ -318,13 +318,13 @@ watch(loginDay, value => {
 | 
				
			|||||||
            </el-form-item>
 | 
					            </el-form-item>
 | 
				
			||||||
          </Motion>
 | 
					          </Motion>
 | 
				
			||||||
          <!-- 手机号登录 -->
 | 
					          <!-- 手机号登录 -->
 | 
				
			||||||
          <phone v-if="currentPage === 1" />
 | 
					          <LoginPhone v-if="currentPage === 1" />
 | 
				
			||||||
          <!-- 二维码登录 -->
 | 
					          <!-- 二维码登录 -->
 | 
				
			||||||
          <qrCode v-if="currentPage === 2" />
 | 
					          <LoginQrCode v-if="currentPage === 2" />
 | 
				
			||||||
          <!-- 注册 -->
 | 
					          <!-- 注册 -->
 | 
				
			||||||
          <regist v-if="currentPage === 3" />
 | 
					          <LoginRegist v-if="currentPage === 3" />
 | 
				
			||||||
          <!-- 忘记密码 -->
 | 
					          <!-- 忘记密码 -->
 | 
				
			||||||
          <update v-if="currentPage === 4" />
 | 
					          <LoginUpdate v-if="currentPage === 4" />
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										3
									
								
								src/views/welcome/components/WelcomeCharts/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/views/welcome/components/WelcomeCharts/index.ts
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					export { default as ChartBar } from "./ChartBar.vue";
 | 
				
			||||||
 | 
					export { default as ChartLine } from "./ChartLine.vue";
 | 
				
			||||||
 | 
					export { default as ChartRound } from "./ChartRound.vue";
 | 
				
			||||||
| 
		 Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB  | 
@ -1,3 +0,0 @@
 | 
				
			|||||||
export { default as barChart } from "./bar.vue";
 | 
					 | 
				
			||||||
export { default as lineChart } from "./line.vue";
 | 
					 | 
				
			||||||
export { default as roundChart } from "./round.vue";
 | 
					 | 
				
			||||||
@ -2,11 +2,11 @@
 | 
				
			|||||||
import { ref, markRaw } from "vue";
 | 
					import { ref, markRaw } from "vue";
 | 
				
			||||||
import ReCol from "@/components/ReCol";
 | 
					import ReCol from "@/components/ReCol";
 | 
				
			||||||
import { useDark, randomGradient } from "./utils";
 | 
					import { useDark, randomGradient } from "./utils";
 | 
				
			||||||
import PureTable from "./components/table/index.vue";
 | 
					 | 
				
			||||||
import { ReNormalCountTo } from "@/components/ReCountTo";
 | 
					import { ReNormalCountTo } from "@/components/ReCountTo";
 | 
				
			||||||
import { useRenderFlicker } from "@/components/ReFlicker";
 | 
					import { useRenderFlicker } from "@/components/ReFlicker";
 | 
				
			||||||
import { barChart, lineChart, roundChart } from "./components/chart";
 | 
					import WelcomeTable from "./components/WelcomeTable/index.vue";
 | 
				
			||||||
import Segmented, { type OptionsType } from "@/components/ReSegmented";
 | 
					import Segmented, { type OptionsType } from "@/components/ReSegmented";
 | 
				
			||||||
 | 
					import { ChartBar, ChartLine, ChartRound } from "./components/WelcomeCharts";
 | 
				
			||||||
import { chartData, barChartData, progressData, latestNewsData } from "./data";
 | 
					import { chartData, barChartData, progressData, latestNewsData } from "./data";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
defineOptions({
 | 
					defineOptions({
 | 
				
			||||||
@ -78,13 +78,13 @@ const optionsBasis: Array<OptionsType> = [
 | 
				
			|||||||
              />
 | 
					              />
 | 
				
			||||||
              <p class="font-medium text-green-500">{{ item.percent }}</p>
 | 
					              <p class="font-medium text-green-500">{{ item.percent }}</p>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
            <lineChart
 | 
					            <ChartLine
 | 
				
			||||||
              v-if="item.data.length > 1"
 | 
					              v-if="item.data.length > 1"
 | 
				
			||||||
              class="!w-1/2"
 | 
					              class="!w-1/2"
 | 
				
			||||||
              :color="item.color"
 | 
					              :color="item.color"
 | 
				
			||||||
              :data="item.data"
 | 
					              :data="item.data"
 | 
				
			||||||
            />
 | 
					            />
 | 
				
			||||||
            <roundChart v-else class="!w-1/2" />
 | 
					            <ChartRound v-else class="!w-1/2" />
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
        </el-card>
 | 
					        </el-card>
 | 
				
			||||||
      </re-col>
 | 
					      </re-col>
 | 
				
			||||||
@ -112,7 +112,7 @@ const optionsBasis: Array<OptionsType> = [
 | 
				
			|||||||
            <Segmented v-model="curWeek" :options="optionsBasis" />
 | 
					            <Segmented v-model="curWeek" :options="optionsBasis" />
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <div class="flex justify-between items-start mt-3">
 | 
					          <div class="flex justify-between items-start mt-3">
 | 
				
			||||||
            <barChart
 | 
					            <ChartBar
 | 
				
			||||||
              :requireData="barChartData[curWeek].requireData"
 | 
					              :requireData="barChartData[curWeek].requireData"
 | 
				
			||||||
              :questionData="barChartData[curWeek].questionData"
 | 
					              :questionData="barChartData[curWeek].questionData"
 | 
				
			||||||
            />
 | 
					            />
 | 
				
			||||||
@ -188,7 +188,7 @@ const optionsBasis: Array<OptionsType> = [
 | 
				
			|||||||
          <div class="flex justify-between">
 | 
					          <div class="flex justify-between">
 | 
				
			||||||
            <span class="text-md font-medium">数据统计</span>
 | 
					            <span class="text-md font-medium">数据统计</span>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <PureTable class="mt-3" />
 | 
					          <WelcomeTable class="mt-3" />
 | 
				
			||||||
        </el-card>
 | 
					        </el-card>
 | 
				
			||||||
      </re-col>
 | 
					      </re-col>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user