diff --git a/project/hlj/app/AppRecoScore/AppRecoScore.vue b/project/hlj/app/AppRecoScore/AppRecoScore.vue index 5a9b66f2..4677f147 100644 --- a/project/hlj/app/AppRecoScore/AppRecoScore.vue +++ b/project/hlj/app/AppRecoScore/AppRecoScore.vue @@ -9,7 +9,6 @@ diff --git a/project/hlj/app/AppRecoScore/components/FormDetail.vue b/project/hlj/app/AppRecoScore/components/FormDetail.vue deleted file mode 100644 index 1a196508..00000000 --- a/project/hlj/app/AppRecoScore/components/FormDetail.vue +++ /dev/null @@ -1,564 +0,0 @@ - - - - - diff --git a/project/hlj/app/AppRecoScore/components/List.vue b/project/hlj/app/AppRecoScore/components/List.vue index cb743d8c..9cdc73f2 100644 --- a/project/hlj/app/AppRecoScore/components/List.vue +++ b/project/hlj/app/AppRecoScore/components/List.vue @@ -1,5 +1,5 @@ @@ -105,20 +142,51 @@ size: 10, title: '' }, + defaultExpanded: [], + defaultProps: { + children: 'children', + label: 'fileName' + }, + isShowDirectory: false, + directoryList: [], form: { date: '', templateId: '', title: '', evaluators: [], scorerList: [], + wedriveName: '', evaluatorsNames: '', uploadWedrive: '0', - scorerNames: '' + scorerNames: '', + wedriveSpaceid: '', + wedriveFatherid: '' }, colConfigs: [ { prop: 'title', label: '任务名称' }, { prop: 'createUserName', align: 'center', label: '创建人' }, - { prop: 'createTime', align: 'center', label: '更新时间' }, + { + prop: 'status', + align: 'center', + label: '开始结束时间', + render: (h, {row}) => { + return h('span', { + style: { + } + }, `${row.beginTime} - ${row.endTime}`) + } + }, + { + prop: 'status', + align: 'center', + label: '已填写/剩余份数', + render: (h, {row}) => { + return h('span', { + style: { + } + }, `${row.overPhr}/${row.totalPhr}`) + } + }, { prop: 'status', align: 'center', @@ -126,25 +194,27 @@ render: (h, {row}) => { return h('span', { style: { - color: this.dict.getColor('tastStatus', row.status) + color: this.dict.getColor('formStatus', row.status) } - }, this.dict.getLabel('tastStatus', row.status)) + }, this.dict.getLabel('formStatus', row.status)) } } ], - ids: [], tableData: [], total: 0, loading: false, isShow: false, - list: [] + list: [], + currentName: '', + currentId: '', + currentFatherid: '' } }, created () { this.loading = true - this.dict.load(['tastStatus']).then(() => { + this.dict.load(['formStatus']).then(() => { this.getList() }) @@ -163,13 +233,29 @@ }) } }) + }, - this.instance.post(`/app/appassessmentscorev2task/queryWedriveDirectory`).then(res => { + loadNode (node, resolve) { + this.instance.post(`/app/wxwedrive/queryWedriveDirectory?spaceid=${node.data.spaceid || ''}&fatherid=${node.data.fileId || ''}`).then(res => { if (res.code == 0) { + resolve(res.data) } }) }, + onTreeChange (e) { + this.currentName = e.fileName + this.currentId = e.spaceid + this.currentFatherid = e.fatherid + }, + + onDirectoryConfirm () { + this.form.wedriveName = this.currentName + this.form.wedriveSpaceid = this.currentId + this.form.wedriveFatherid = this.currentFatherid + this.isShowDirectory = false + }, + onUserChange(e, type) { if (e.length) { this.form[type] = '1' @@ -181,7 +267,10 @@ onClose () { this.form.date = '' this.form.templateId = '' - this.form.templateName = '' + this.form.title = '' + this.form.wedriveName = '' + this.form.wedriveSpaceid = '' + this.form.wedriveFatherid = '' this.form.evaluatorsList = [] this.form.evaluatorsNames = '' }, @@ -224,10 +313,6 @@ }) }, - onClose () { - this.form.title = '' - }, - toDetail (id) { this.$emit('change', { type: 'Detail', @@ -237,101 +322,159 @@ }) }, - remove(id) { + remove (id) { this.$confirm('确定删除该数据?').then(() => { - this.instance.post(`/app/appassessmentscortask/delete?id=${id}`).then(res => { + this.instance.post(`/app/appassessmentscorev2task/delete?ids=${id}`).then(res => { if (res.code == 0) { this.$message.success('删除成功!') this.getList() } }) }) + }, + + stop (id) { + this.$confirm('确定停止该数据?').then(() => { + this.instance.post(`/app/appassessmentscorev2task/stopTask?id=${id}`).then(res => { + if (res.code == 0) { + this.$message.success('停止成功!') + this.getList() + } + }) + }) } } }