diff --git a/apis/plugin.js b/apis/plugin.js
index 3c97571..0c65c0c 100644
--- a/apis/plugin.js
+++ b/apis/plugin.js
@@ -50,4 +50,7 @@ export function setupPlugin(app) {
// 审核
uni.$u.api.clockAudit = (params, url) => uni.$u.post(`${url ? url : domain.value}/clock/audit`, params);
+
+ // 导出
+ uni.$u.api.clockExport = (params, url) => uni.$u.post(`${url ? url : domain.value}/clock/export`, params);
}
diff --git a/common/styles/tailwind.scss b/common/styles/tailwind.scss
index 302cc93..9908871 100644
--- a/common/styles/tailwind.scss
+++ b/common/styles/tailwind.scss
@@ -14,6 +14,10 @@
position: relative;
}
+.bottom-0 {
+ bottom: 0;
+}
+
.z-10 {
z-index: 10;
}
@@ -4680,4 +4684,12 @@
.line-through {
text-decoration: line-through;
+}
+
+.h-48 {
+ height: 48px;
+}
+
+.h-50 {
+ height: 50px;
}
\ No newline at end of file
diff --git a/hooks/project/useGetTasks.js b/hooks/project/useGetTasks.js
index 618561d..23711b9 100644
--- a/hooks/project/useGetTasks.js
+++ b/hooks/project/useGetTasks.js
@@ -103,9 +103,13 @@ export default function useGetTasks() {
// 将真实任务存储到allTasks中对应的角色下
const arr = [...allTasks.value];
- arr[roleIndex.value].realTasks = [...realTasks.value];
- arr[roleIndex.value].upNextPage = upNextPage.value; // 存储下一页(向上)
- arr[roleIndex.value].downNextPage = downNextPage.value; // 存储下一页(向下)
+
+ if (arr[roleIndex.value]) {
+ arr[roleIndex.value].realTasks = [...realTasks.value];
+ arr[roleIndex.value].upNextPage = upNextPage.value; // 存储下一页(向上)
+ arr[roleIndex.value].downNextPage = downNextPage.value; // 存储下一页(向下)
+ }
+
store.commit('task/setAllTasks', arr);
// 数据处理
diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue
index 1ec0820..01e8ea8 100644
--- a/pages/detail/detail.vue
+++ b/pages/detail/detail.vue
@@ -1,11 +1,15 @@
+
+
+
diff --git a/plugins/p-salary/detail.vue b/plugins/p-salary/detail.vue
new file mode 100644
index 0000000..8b38496
--- /dev/null
+++ b/plugins/p-salary/detail.vue
@@ -0,0 +1,151 @@
+
+
+
+
+ 5000.00
+ 实发金额(元)
+
+
+
+
+
+
+ 固定工资
+ 5000
+
+
+
+
+
+ 基本工资
+ 5000
+
+
+
+
+ 基本工资
+ 5000
+
+
+
+ 基本工资
+ 5000
+
+
+
+ 基本工资
+ 5000
+
+
+
+
+
+ 基本工资
+ 5000
+
+
+
+ 基本工资
+ 5000
+
+
+
+
+
+
+ 固定工资
+ 5000
+
+
+
+
+
+ 基本工资
+ 5000
+
+
+
+
+ 基本工资
+ 5000
+
+
+
+ 基本工资
+ 5000
+
+
+
+ 基本工资
+ 5000
+
+
+
+
+
+ 基本工资
+ 5000
+
+
+
+ 基本工资
+ 5000
+
+
+
+
+
+
+
+ 对工资有疑问
+ 确认
+
+
+
+
+
+
+
diff --git a/plugins/p-salary/p-salary.vue b/plugins/p-salary/p-salary.vue
index d7955bc..4279325 100644
--- a/plugins/p-salary/p-salary.vue
+++ b/plugins/p-salary/p-salary.vue
@@ -25,7 +25,13 @@
return currMonth === 1 ? 12 : currMonth - 1;
});
- function toLink() {
+ function toLink() {
+ // uni.$storage.setStorageSync('pluginKey', 'salary');
+
+ // uni.navigateTo({
+ // url: "/pages/detail/detail"
+ // })
+
const url = "http://101.201.226.163/tallsalary/";
const params = {
pid: projectId.value,