diff --git a/src/pages.json b/src/pages.json
index 3fe2429..9a577db 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -168,6 +168,12 @@
"navigationBarTitleText": "升职申请"
}
},
+ {
+ "path": "detail",
+ "style": {
+ "navigationBarTitleText": "升职申请"
+ }
+ },
{
"path": "create",
"style": {
@@ -200,6 +206,7 @@
]
},
{
+<<<<<<< HEAD
"root": "pages/ask-leave",
"pages": [
{
@@ -212,12 +219,41 @@
"path": "create",
"style": {
"navigationBarTitleText": "请假申请"
+=======
+ "root": "pages/train-books",
+ "pages": [
+ {
+ "path": "index",
+ "style": {
+ "navigationBarTitleText": "培训课件"
+>>>>>>> bef6694e8063f41c6890ee243e7b32e9f248c252
}
},
{
"path": "detail",
"style": {
+<<<<<<< HEAD
"navigationBarTitleText": "请假详情"
+=======
+ "navigationBarTitleText": "培训课件"
+ }
+ }
+ ]
+ },
+ {
+ "root": "pages/examination",
+ "pages": [
+ {
+ "path": "index",
+ "style": {
+ "navigationBarTitleText": "培训考试"
+ }
+ },
+ {
+ "path": "detail",
+ "style": {
+ "navigationBarTitleText": "培训考试"
+>>>>>>> bef6694e8063f41c6890ee243e7b32e9f248c252
}
}
]
diff --git a/src/pages/examination/detail.vue b/src/pages/examination/detail.vue
new file mode 100644
index 0000000..60d29a1
--- /dev/null
+++ b/src/pages/examination/detail.vue
@@ -0,0 +1,68 @@
+
+
+
+ {{ index }}/{{ total }}
+
+ 上一题
+ 下一题
+ 提交
+
+
+
+
+
+ ({{ item.cate_name }}){{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue
new file mode 100644
index 0000000..001e4b0
--- /dev/null
+++ b/src/pages/examination/index.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+ 发布日期: {{ item.examination.published_at }}
+ {{ item.mark == null ? item.mark : '未完成' }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/make-card/create.vue b/src/pages/make-card/create.vue
index 69cce34..6158a6d 100644
--- a/src/pages/make-card/create.vue
+++ b/src/pages/make-card/create.vue
@@ -68,7 +68,7 @@ const formRef = ref(null)
const datetimePicker = ref(null)
const pickerRef = ref(null)
const modalRef = ref(null)
-// const value = ref(Number(new Date())
+const value = ref(Number(new Date()))
const id = ref(0)
const loading = ref(false)
const form = reactive({
@@ -108,6 +108,7 @@ onLoad(options => {
}
})
.then(res => {
+ value.value = res.date
form.date = timeFormat(res.date, "yyyy-mm-dd hh:MM")
form.reason = res.reason
form.isOutSide = res.sign_type == 1 ? false : true
diff --git a/src/pages/revert/index.vue b/src/pages/revert/index.vue
index 2232c4e..c63fff2 100644
--- a/src/pages/revert/index.vue
+++ b/src/pages/revert/index.vue
@@ -1,7 +1,13 @@
-
+
-
+
上报
@@ -251,12 +263,13 @@ const onSubmit = async () => {
url: '/ledgers',
method: 'POST',
header: {
- 'Accept': 'application/json',
+ Accept: 'application/json',
},
data: params,
})
.then((res) => {
uni.$emit('revert:submit', res)
+ getData()
uni.showToast({
title: '提交成功',
duration: 2000,
diff --git a/src/pages/task/components/item.vue b/src/pages/task/components/item.vue
index 5b02adb..1868bdf 100644
--- a/src/pages/task/components/item.vue
+++ b/src/pages/task/components/item.vue
@@ -38,7 +38,9 @@ const props = defineProps({
const onClick = () => {
const type = props.item.taskable_type
- console.log(type)
+ uni.navigateTo({
+ url: `/pages/task/${type}_submit?id=${props.item.id}`,
+ })
}
const onTask = (e) => {
diff --git a/src/pages/task/submit.vue b/src/pages/task/submit.vue
index 8bfcbdd..8a0355a 100644
--- a/src/pages/task/submit.vue
+++ b/src/pages/task/submit.vue
@@ -14,7 +14,7 @@
>
diff --git a/src/pages/train-books/detail.vue b/src/pages/train-books/detail.vue
new file mode 100644
index 0000000..ca356eb
--- /dev/null
+++ b/src/pages/train-books/detail.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ info.title }}
+ {{ info.description }}
+ {{
+ timeFormat(info.created_at)
+ }}
+
+
+
+
+
+
+ {{ item.name }}{{ item.name }}{{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/train-books/index.vue b/src/pages/train-books/index.vue
new file mode 100644
index 0000000..c9eb5ed
--- /dev/null
+++ b/src/pages/train-books/index.vue
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ subItem.title
+ }}
+ {{
+ subItem.description
+ }}
+ {{
+ timeFormat(subItem.created_at)
+ }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/work/commone.vue b/src/pages/work/commone.vue
new file mode 100644
index 0000000..1c8e836
--- /dev/null
+++ b/src/pages/work/commone.vue
@@ -0,0 +1,313 @@
+
+
+
+
+
+
+
+
+
+
+ 晋升职位
+ {{ detail?.job?.name }}
+
+
+ 申请人
+ {{ detail?.employee?.name }}
+
+
+ 推荐人
+ {{ detail?.invitor?.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/work/components/item.vue b/src/pages/work/components/item.vue
index 230a377..d663bac 100644
--- a/src/pages/work/components/item.vue
+++ b/src/pages/work/components/item.vue
@@ -1,21 +1,66 @@
-
+
- {{ item.job.name }}
- 待完成
+ {{ item.job.name }}
+ {{ item.promotion_status_text }}
推荐人
- 12313
+ {{ item?.invitor?.name }}
晋升职位
- 2022-01-01
+ {{ item.job.name }}
+
+
+
+
+
+
+ 去提交
+
+
diff --git a/src/pages/work/create.vue b/src/pages/work/create.vue
index 06d5220..bbe9b3c 100644
--- a/src/pages/work/create.vue
+++ b/src/pages/work/create.vue
@@ -1,200 +1,15 @@
-
-
- 保存
-
-
-
-
-
- 晋升职位
- 店长
-
-
- 申请人
- 李四
-
-
- 推荐人
- 丁曼容
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/src/pages/work/detail.vue b/src/pages/work/detail.vue
new file mode 100644
index 0000000..69b4ac3
--- /dev/null
+++ b/src/pages/work/detail.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/src/pages/work/list.vue b/src/pages/work/list.vue
index ff41310..cd5054b 100644
--- a/src/pages/work/list.vue
+++ b/src/pages/work/list.vue
@@ -1,10 +1,6 @@
-
-
- 申请
-
-
+
-
+
-
+ -
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
@@ -26,32 +63,48 @@