| | |
| | | |
| | | <script> |
| | | import { getDict } from '@/api/dict' |
| | | import { add } from '@/api/evaluate/evaluateTask' |
| | | import { update } from '@/api/evaluate/evaluateTask' |
| | | import _ from 'lodash'; |
| | | |
| | | export default { |
| | | inject: ['type'], |
| | | props: { |
| | | params: { |
| | | type: Object, |
| | |
| | | if (!vaild) return |
| | | const data = _.cloneDeep(this.form) |
| | | data.pollingPersons = data.pollingPersons.join(',') |
| | | add(data).then(res => { |
| | | data.type = this.type() |
| | | update(data).then(res => { |
| | | if (res.data.code !== 200) return |
| | | this.params.visible = false |
| | | this.$emit('refreshTable', { currentPage: 1, pageSize: 10 }) |