diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development index 5abea97..20b1ce2 100644 --- a/ruoyi-ui/.env.development +++ b/ruoyi-ui/.env.development @@ -5,8 +5,8 @@ VUE_APP_TITLE = 福安德综合办公系统 ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = '/prod-api' -# VUE_APP_BASE_API = 'http://110.41.139.73:8080' +# VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = 'http://110.41.139.73:8080' # 应用访问路径 例如使用前缀 /admin/ VUE_APP_CONTEXT_PATH = '/' diff --git a/ruoyi-ui/src/views/oa/offboarding/index.vue b/ruoyi-ui/src/views/oa/offboarding/index.vue index 0f3565f..f00b379 100644 --- a/ruoyi-ui/src/views/oa/offboarding/index.vue +++ b/ruoyi-ui/src/views/oa/offboarding/index.vue @@ -17,7 +17,7 @@ - + @@ -55,7 +55,40 @@ - + + + @@ -112,6 +145,13 @@ export default { return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}` }, + truncateText(text) { + if (!text) return '-' + return text.length > 20 + ? text.substring(0, 20) + '...' + : text + }, + async fetchData() { this.loading = true try { @@ -201,4 +241,42 @@ export default { .text-right { text-align: right; } +.text-ellipsis { + display: inline-block; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +/* 内容容器 */ +.reason-popover { + max-height: 300px; + overflow-y: auto; +} + +/* 头部样式 */ +.popover-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 10px; + padding-bottom: 5px; + border-bottom: 1px solid #eee; +} + +/* 内容样式 */ +.popover-content { + white-space: pre-wrap; + line-height: 1.6; + word-break: break-word; +} + +/* 文本省略 */ +.text-ellipsis { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; +} diff --git a/ruoyi-ui/src/views/oa/peoples/salary/components/SalaryUploadDialog.vue b/ruoyi-ui/src/views/oa/peoples/salary/components/SalaryUploadDialog.vue new file mode 100644 index 0000000..6f767e7 --- /dev/null +++ b/ruoyi-ui/src/views/oa/peoples/salary/components/SalaryUploadDialog.vue @@ -0,0 +1,244 @@ + + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/oa/peoples/salary/staff/index.vue b/ruoyi-ui/src/views/oa/peoples/salary/staff/index.vue index 98c5ac4..99e82d4 100644 --- a/ruoyi-ui/src/views/oa/peoples/salary/staff/index.vue +++ b/ruoyi-ui/src/views/oa/peoples/salary/staff/index.vue @@ -5,53 +5,12 @@ 新增计算 - - + - - - - - - - - - -
将文件拖到此处,或点击上传
-
仅支持xlsx格式文件
-
-
-
- - - 取消 - 确认上传 - - {{ isUploading ? '计算中...' : '开始计算' }} - - -
+ @submit="handleCalculate" + @closed="handleDialogClosed" + />
@@ -96,32 +55,29 @@ - + \ No newline at end of file diff --git a/ruoyi-ui/src/views/oa/peoples/salary/worker/index.vue b/ruoyi-ui/src/views/oa/peoples/salary/worker/index.vue index e9f9501..f5a39b6 100644 --- a/ruoyi-ui/src/views/oa/peoples/salary/worker/index.vue +++ b/ruoyi-ui/src/views/oa/peoples/salary/worker/index.vue @@ -6,51 +6,11 @@
- - - - - - - - - - -
将文件拖到此处,或点击上传
-
仅支持xlsx格式文件
-
-
-
- - - 取消 - 确认上传 - - {{ isUploading ? '计算中...' : '开始计算' }} - - -
+ @submit="handleCalculate" + @closed="handleDialogClosed" + />
@@ -95,9 +55,13 @@