-
-
{{ item.name }}
+
+ {{ item.name }}
-
请选择
-
{{ form.evaluatorsList.length ? '重新选择' : '选择' }}
+
请选择
+
{{ form.evaluators.length ? '重新选择' : '选择' }}
@@ -108,10 +108,11 @@
form: {
date: '',
templateId: '',
- templateName: '',
- evaluatorsList: [],
+ title: '',
+ evaluators: [],
scorerList: [],
evaluatorsNames: '',
+ uploadWedrive: '0',
scorerNames: ''
},
colConfigs: [
@@ -162,6 +163,11 @@
})
}
})
+
+ this.instance.post(`/app/appassessmentscorev2task/queryWedriveDirectory`).then(res => {
+ if (res.code == 0) {
+ }
+ })
},
onUserChange(e, type) {
@@ -177,9 +183,27 @@
this.form.templateId = ''
this.form.templateName = ''
this.form.evaluatorsList = []
- this.form.scorerList = []
this.form.evaluatorsNames = ''
- this.form.scorerNames = ''
+ },
+
+ onConfirm () {
+ this.$refs.form.validate((valid) => {
+ if (valid) {
+ this.instance.post(`/app/appassessmentscorev2task/addOrUpdate`, {
+ ...this.form,
+ beginTime: this.form.date[0],
+ endTime: this.form.date[1],
+ date: ''
+ }).then(res => {
+ if (res.code == 0) {
+ this.$message.success('提交成功!')
+ this.isShow = false
+
+ this.getList()
+ }
+ })
+ }
+ })
},
getList () {
@@ -213,20 +237,6 @@
})
},
- onConfirm () {
- this.$refs.form.validate((valid) => {
- if (valid) {
- this.instance.post(`/app/appassessmentscortask/addOrUpdate?title=${this.form.title}`).then(res => {
- if (res.code == 0) {
- this.$message.success('提交成功!')
- this.getList()
- this.isShow = false
- }
- })
- }
- })
- },
-
remove(id) {
this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appassessmentscortask/delete?id=${id}`).then(res => {