[add] 截至时间

This commit is contained in:
zhaomeijing
2022-05-19 15:51:32 +08:00
parent c884325d01
commit 66529a1a88
@@ -31,6 +31,7 @@ import axios from 'axios'
import Vue from 'vue' import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import moment from 'moment' import moment from 'moment'
import eventBUs from '../../common/event'
export default { export default {
name: 'diolagArea', name: 'diolagArea',
components: {}, components: {},
@@ -105,35 +106,16 @@ export default {
//新增 //新增
handleSubmit() { handleSubmit() {
let _this = this let _this = this
let param = {ids: this.selectedRowKeysArray, deadline: `"${this.pickerDate}"`, } let param = {ids: this.selectedRowKeysArray, deadline: `${this.pickerDate}`, }
axios({ postAction('/params/collectManifest/updateDeadlineBatch', param).then((res) => {
url: '/jero-boot/params/collectManifest/updateDeadlineBatch', if (res.success) {
method: 'post', this.loadData()
data: param, this.$emit('areaVisibleTaskCutOffTimeflag', false)
transformRequest: [function (data) { this.$message.success(res.message)
let ret = '' } else {
for (let it in data) { this.$message.warning(res.message)
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&' }
} })
return ret
}],
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'X-Access-Token':_this.token
}
})
.then( (res) =>{
if (res.data.success) {
_this.$message.success(res.data.result)
_this.loadData()
this.$emit('areaVisibleTaskCutOffTimeflag', false)
}else{
_this.$message.warning(res.data.result)
}
})
.catch( (error) =>{
console.log(error);
});
}, },
onChange(val) { onChange(val) {
this.pickerDate = moment(val).format('YYYY-MM-DD HH:mm:ss') this.pickerDate = moment(val).format('YYYY-MM-DD HH:mm:ss')