diff --git a/src/views/training/index.vue b/src/views/training/index.vue
index d20f106..e31170c 100644
--- a/src/views/training/index.vue
+++ b/src/views/training/index.vue
@@ -7,8 +7,8 @@
-
-
+
@@ -82,7 +82,7 @@
-
+
@@ -102,22 +102,23 @@
-
+
-
+
-
+
-
-
+
+
@@ -126,7 +127,7 @@
-
+
@@ -221,7 +222,7 @@
},
tableHeight: 900,
searchFields: {
- KeyWord: ""
+ year: ""
},
columns: [{
field: "year",
@@ -253,6 +254,12 @@
},
methods: {
+ handleChangeSYear() {
+ if (this.searchFields.year)
+ this.searchFields.year = this.$moment(this.searchFields.year).format("yyyy");
+ else
+ this.searchFields.year = ""
+ },
handleChangeYear() {
this.form.year = this.$moment(this.form.year).format("yyyy");
},
@@ -312,7 +319,8 @@
load() {
listtrain({
page: this.paginations.page,
- page_size: this.paginations.page_size
+ page_size: this.paginations.page_size,
+ year: this.searchFields.year
}).then(res => {
this.tableData = res.data;
this.paginations.total = res.total
@@ -374,6 +382,9 @@
var that = this;
this.$refs[formName].validate((valid) => {
if (valid) {
+ if (that.form.year.indexOf("-") > -1) {
+ that.form.year = that.form.year.split("-")[0]
+ }
if (that.form.id) {
save(that.form).then(response => {
//console.log(response)
diff --git a/src/views/training/record.vue b/src/views/training/record.vue
index 48d48ea..00504e0 100644
--- a/src/views/training/record.vue
+++ b/src/views/training/record.vue
@@ -1,8 +1,517 @@
-
-
-
-
-
-