国家信访数据导入数据导入
@@ -107,7 +102,7 @@
@@ -118,7 +113,8 @@
/>
- 核查情况
+
+ 删除
-
+
-
+
-
+
-
+
正职
副职
+
+
+
+
+
-
+
+
+
+
+
+ 工龄:{{ getWorkYear(form.employmentDate) }}
+
@@ -326,13 +414,15 @@ import useCatchStore from "@/stores/modules/catch";
import feedback from "@/utils/feedback";
import { getDictLable } from "@/utils/util";
import { UserFilled } from "@element-plus/icons-vue";
+import moment from "moment";
const catchStore = useCatchStore();
const dict = catchStore.getDicts([
"problemSources",
"personType",
"education",
- "maritalStatus"
+ "maritalStatus",
+ "policeRole",
]);
const dictProblemSources = catchStore.getDictProblemSources();
@@ -421,6 +511,22 @@ function getAge(idCode) {
}
return new Date().getFullYear() - parseInt(idCode.substr(6, 4));
}
+
+function getWorkYear(employmentDate) {
+ if (!employmentDate) {
+ return "";
+ }
+ const year =
+ new Date().getFullYear() - parseInt(employmentDate.substr(0, 4));
+ if (year > 0) {
+ return year + "年";
+ }
+ const days = moment().diff(moment(employmentDate), "days");
+ if (days < 30) {
+ return days + "天";
+ }
+ return moment().diff(moment(employmentDate), "month") + "个月";
+}
\ No newline at end of file
diff --git a/src/views/work/Done.vue b/src/views/work/Done.vue
index 0e99020..2b449be 100644
--- a/src/views/work/Done.vue
+++ b/src/views/work/Done.vue
@@ -5,12 +5,7 @@
-
+
@@ -108,7 +103,7 @@
- {{ }}
+ {{ getInvolveProblem(row.involveProblem) }}