From 90de57698b9dd5ab463ef98503be4c3c1d6225b2 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 10 May 2024 00:28:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat=20:=20=E9=9C=80=E6=B1=82=E5=BE=81?= =?UTF-8?q?=E9=9B=86=E6=96=B0=E5=A2=9E/=E7=BC=96=E8=BE=91/=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload.vue | 67 +++++++ .../projectdemand/demandcollection/add.vue | 166 ++++++++++++++++++ .../projectdemand/demandcollection/detail.vue | 119 +++++++++++++ .../projectdemand/demandcollection/index.vue | 45 ++++- 4 files changed, 389 insertions(+), 8 deletions(-) create mode 100644 src/components/FileUpload.vue create mode 100644 src/views/projectdemand/demandcollection/add.vue create mode 100644 src/views/projectdemand/demandcollection/detail.vue diff --git a/src/components/FileUpload.vue b/src/components/FileUpload.vue new file mode 100644 index 0000000..e4e2774 --- /dev/null +++ b/src/components/FileUpload.vue @@ -0,0 +1,67 @@ + + + + diff --git a/src/views/projectdemand/demandcollection/add.vue b/src/views/projectdemand/demandcollection/add.vue new file mode 100644 index 0000000..c141a85 --- /dev/null +++ b/src/views/projectdemand/demandcollection/add.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/projectdemand/demandcollection/detail.vue b/src/views/projectdemand/demandcollection/detail.vue new file mode 100644 index 0000000..5bb54d3 --- /dev/null +++ b/src/views/projectdemand/demandcollection/detail.vue @@ -0,0 +1,119 @@ + + + + + diff --git a/src/views/projectdemand/demandcollection/index.vue b/src/views/projectdemand/demandcollection/index.vue index d7bc307..acf915e 100644 --- a/src/views/projectdemand/demandcollection/index.vue +++ b/src/views/projectdemand/demandcollection/index.vue @@ -62,7 +62,7 @@ const tableConfig = reactive({ label: '状态', align: 'center', showOverflowTooltip: false, - currentRender: ({row, index}) => () + currentRender: ({row, index}) => () }, { prop: 'oper', @@ -72,17 +72,19 @@ const tableConfig = reactive({ currentRender: ({row, index}) => { return (
- {}}>详情 - {}}>上报 + handleDetail(row)}>详情 + + handleEdit(row)}>编辑 + handleReport(row)}>上报
) } } ], - api: '', + api: '/admin/role', btns: [ - {name: '新增', key: 'add', auth: auths.add, type: 'primary'}, - {name: '导出', key: 'add', auth: auths.add, type: 'primary'}, + {name: '新增', key: 'add', auth: auths.add, color: '#DED0B2'}, + {name: '导出', key: 'add', auth: auths.add, type: ''}, ], params: {} }) @@ -91,13 +93,40 @@ const search = (val) => { tableConfig.params = {...val} tableIns.value.refresh() } +const handleAdd = () => { + router.push({ + path: '/projectdemand/demandadd', + query: { + isAdd: 1 + } + }) +} +const handleEdit = (row) => { + router.push({ + path: '/projectdemand/demandedit', + query: { + id: row.roleId + } + }) +} +const handleDetail = (row) => { + router.push({ + path: '/projectdemand/demanddetail', + query: { + id: row.roleId + } + }) +} const headBtnClick = (key) => { switch (key) { case 'add': handleAdd() break; - case 'export': - handleExport() + case 'edit': + handleEdit() + break; + case 'detail': + handleDetail() break; } } From 371a55cfe1578cf174dda59c2761bc2406fa5585 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 10 May 2024 00:29:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20:=20=E5=AE=8C=E5=96=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tinymce.vue | 12 ++++-- src/fvcomponents/fvSearchForm/index.vue | 55 +++++++++++++------------ src/fvcomponents/fvTable/index.vue | 11 ++--- src/layout/navbar/index.vue | 3 +- src/views/home/index.vue | 34 ++++++++++----- 5 files changed, 68 insertions(+), 47 deletions(-) diff --git a/src/components/Tinymce.vue b/src/components/Tinymce.vue index f294790..6ed6a7d 100644 --- a/src/components/Tinymce.vue +++ b/src/components/Tinymce.vue @@ -60,13 +60,17 @@ const props = defineProps({ toolbar: { type: [String, Array], default: [ - "fullscreen undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | bullist numlist | blockquote subscript superscript removeformat ", + "fullscreen undo redo | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | bullist numlist | blockquote subscript superscript removeformat ", "styleselect formatselect fontselect fontsizeselect | table image axupimgs media pagebreak insertdatetime selectall visualblocks searchreplace | code preview | indent2em lineheight formatpainter", ], }, fontFormats: { type: [String, Array], default: "微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;" + }, + height:{ + type: Number, + default: 450 } }) const content = ref(props.value); @@ -78,9 +82,9 @@ const init = reactive({ content_css: '/skins/content/default/content.css', language: 'zh_CN', placeholder: "在这里输入文字", //textarea中的提示信息 - min_width: 320, - min_height: 220, - height: 500, //注:引入autoresize插件时,此属性失效 + min_width: 300, + min_height: 200, + height: props.height, //注:引入autoresize插件时,此属性失效 resize: "both", //编辑器宽高是否可变,false-否,true-高可变,'both'-宽高均可,注意引号 promotion: false, branding: false, //tiny技术支持信息是否显示 diff --git a/src/fvcomponents/fvSearchForm/index.vue b/src/fvcomponents/fvSearchForm/index.vue index b4c6534..f082ac7 100644 --- a/src/fvcomponents/fvSearchForm/index.vue +++ b/src/fvcomponents/fvSearchForm/index.vue @@ -1,28 +1,28 @@ - { getList() }) - + \ No newline at end of file + diff --git a/src/layout/navbar/index.vue b/src/layout/navbar/index.vue index 9339358..bf89253 100644 --- a/src/layout/navbar/index.vue +++ b/src/layout/navbar/index.vue @@ -7,7 +7,7 @@
- 欢迎回来,{{userInfo.userName}} + 欢迎回来,{{userInfo.userName}}
    @@ -81,6 +81,7 @@ const handleLogout = () => { align-items: center; .user-box{ + cursor: pointer; margin-left: 10px; position: relative; >div:first-child{ diff --git a/src/views/home/index.vue b/src/views/home/index.vue index df9fd49..33aceb3 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -16,15 +16,19 @@

    待办 ({{ todoNum }})

    - + + +
- - - - + + + +
@@ -36,7 +40,7 @@ {{ item.title }}
-
+

工具下载

常用网站 @@ -115,7 +119,7 @@ const tableConfig = reactive({ label: '类型', align: 'center', showOverflowTooltip: false, - // currentRender: ({row, index}) => () + currentRender: ({row, index}) => () }, { prop: 'createTime', @@ -197,6 +201,12 @@ const headBtnClick = (key) => { border-radius: 10px; background-color: #ffffff; + .el-table__empty-block { + .el-empty { + padding: 10px 0; + } + } + .statistics { width: 99%; margin-bottom: 20px; @@ -210,7 +220,7 @@ const headBtnClick = (key) => { margin-top: 15px; .block-right { - margin-left: 40px; + margin-left: 15%; display: flex; flex-direction: column; justify-content: center; @@ -218,11 +228,13 @@ const headBtnClick = (key) => { font-size: 17px; > span:first-child { + white-space: nowrap; color: #000000; margin-bottom: 10px; } > span:last-child { + white-space: nowrap; font-size: 20px; font-weight: bold; @@ -257,14 +269,14 @@ const headBtnClick = (key) => { // } //} - .right-top, .right-down { + .right-top { flex: 0.5; padding: 15px; border-radius: 10px; background-color: #ffffff; } - .right-down,.right-top { + .right-top { flex: 0.48; > div:first-child { @@ -273,10 +285,12 @@ const headBtnClick = (key) => { align-items: center; h3 { + white-space: nowrap; margin-left: 15px; } > span { + white-space: nowrap; color: #927648; font-size: 14px; }