+
+ 新发起考核
+
+
+
+
+
被考核对象
- 请选择
+
+ 请选择
+
-
-
-
-
+
+
+
+
- 删除
+ 删除
-
+
- 确定
+ 确定
@@ -51,7 +111,11 @@ export default {
cycleType: '月度',
personNumber: '12人'
}
- ] // 考核对象
+ ], // 考核对象
+ mergeType: { // 考核合并类型
+ type: 1,
+ name: '' // 合并 id 新发起无效
+ }
},
formRules: {
cycleTimeType: { required: true, message: '请选择周期类型', trigger: 'blur' },
@@ -61,11 +125,20 @@ export default {
},
watch: {
'formData.cycleTimeType': function (newVal, oldVal) {
- console.log(this.formData.cycleTimeType)
+ // console.log(this.formData.cycleTimeType)
this.formData.rangDate = ''
}
},
methods: {
+ handleChangeRangDate (chgVal) {
+ let nameStr = this.$format(chgVal, 'yyyy年MM月绩效考核')
+ if (this.formData.cycleTimeType === 2) {
+ // 自定义
+ nameStr = chgVal[0] + '至' + chgVal[1] + '绩效考核'
+ }
+ this.formData.mergeType.name = nameStr
+ // console.log(this.formData.rangDate)
+ },
handleChooseGroup () {
this.showChooseList = !this.showChooseList
},
@@ -80,22 +153,21 @@ export default {