Commit e364fa66 authored by liqiuyu's avatar liqiuyu

Merge remote-tracking branch 'remotes/origin/AR/dcTom_closeCircle_202505_lqy' into dev

parents efaeb902 8b2729de
This diff is collapsed.
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"echarts": "^5.6.0", "echarts": "^5.6.0",
"element-plus": "^2.9.10", "element-plus": "^2.9.10",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"moment": "^2.30.1",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"path": "^0.12.7", "path": "^0.12.7",
"pinia": "^3.0.2", "pinia": "^3.0.2",
......
...@@ -8,7 +8,7 @@ import ElementPlus from "element-plus"; ...@@ -8,7 +8,7 @@ import ElementPlus from "element-plus";
import "element-plus/dist/index.css"; import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue"; import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import { createPinia } from "pinia"; import { createPinia } from "pinia";
import moment from 'moment';
const app = createApp(App); const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) { for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component); app.component(key, component);
...@@ -16,5 +16,6 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) { ...@@ -16,5 +16,6 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app app
.use(router) .use(router)
.use(ElementPlus, { locale: zhCustom }) .use(ElementPlus, { locale: zhCustom })
.use(moment)
.use(createPinia()) .use(createPinia())
.mount("#app"); .mount("#app");
...@@ -8,7 +8,8 @@ import User from '../views/user.vue' ...@@ -8,7 +8,8 @@ import User from '../views/user.vue'
import Layout from '../layout/index.vue' import Layout from '../layout/index.vue'
import Login from '../views/login/index.vue' import Login from '../views/login/index.vue'
import equipmentManagement from '../views/equipmentManagement/index.vue' import equipmentManagement from '../views/equipmentManagement/index.vue'
import myAgency from '@/views/closeManage/myAgency.vue';
import myDone from '@/views/closeManage/myDone.vue';
const routes = [ const routes = [
{ {
path: '/', path: '/',
...@@ -44,13 +45,13 @@ const routes = [ ...@@ -44,13 +45,13 @@ const routes = [
meta: { title: '我的闭环' }, meta: { title: '我的闭环' },
children: [ children: [
{ {
path: '/my-loop/profile', path: '/my-loop/myAgency',
component: HomeView, component: myAgency,
meta: { title: '我的待办' }, meta: { title: '我的待办' },
}, },
{ {
path: '/my-loop/posts', path: '/my-loop/myDone',
component: AboutView, component: myDone,
meta: { title: '我的已办' }, meta: { title: '我的已办' },
}, },
] ]
......
<template>
<el-dialog
:model-value="showDialog"
:title="title"
:width="width"
@close="closeDialog"
>
<div>
<slot name="content"></slot>
<slot></slot>
</div>
<template #footer>
<div class="dialog-footer" v-if="btnGroup.length">
<div v-for="item in btnGroup" class="real-btn" :key="item.attrKey" @click="handleBtn(item.attrKey)">
{{ item.label }}
</div>
</div>
</template>
</el-dialog>
</template>
<script setup>
import { defineProps, defineEmits, ref, reactive,watch,onMounted } from 'vue';
const props = defineProps({
showDialog: {
type: Boolean,
default: false
},
title: {
type: String,
default: '弹框标题'
},
width: {
type: String,
default: '40%'
},
btnGroup: {
type: Array,
default: () => ([])
}
});
const emit = defineEmits(['close:showDialog', 'handleBtn']);
/**
* @Description: 弹框关闭回调
* @author liqiuyu
* @date 2025/5/21
*/
const closeDialog = () => {
emit('close:showDialog', false);
};
/**
* @Description: 弹框底部按钮方法回调
* @author liqiuyu
* @date 2025/5/21
*/
const handleBtn = (key) => {
emit('handleBtn', key);
};
</script>
<style scoped lang="scss">
:deep(.el-dialog) {
background: rgb(34, 43, 69);
.el-dialog__title {
color: #f5f6f9;
}
.table {
height: calc(100vh - 420px) !important;
}
.el-dialog__body {
padding: 16px;
}
.el-dialog__footer {
padding: 0;
}
}
.dialog-footer {
display: flex;
justify-content:center;
width: 100%;
.real-btn {
width: auto;
height: 28px;
background: rgb(64, 158, 255);
border: 1px solid rgb(64, 158, 255);
border-radius: 4px;
box-shadow: 0 1px 9px 0 rgba(12, 123, 255, 0.3) inset;
text-align: center;
padding: 0 16px;
line-height: 28px;
color: rgba(255, 255, 255, 0.85);
margin-right: 16px;
cursor: pointer;
}
}
</style>
\ No newline at end of file
This diff is collapsed.
<script setup>
</script>
<template>
</template>
<style scoped lang="scss">
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment