weifuhe
This commit is contained in:
@@ -54,3 +54,12 @@ export function meetingByMonth (params) {
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function addUn (params) {
|
||||
return axios({
|
||||
url: 'api/sarStandUnqualified/sar-stand-unqualified/add',
|
||||
method: 'post',
|
||||
params,
|
||||
content: 'json'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -295,7 +295,6 @@ export default {
|
||||
}, e => {
|
||||
})
|
||||
} else {
|
||||
console.log(this.formShowData.meetTime)
|
||||
meetEdit(this.formShowData).then(res => {
|
||||
if (res.ok) {
|
||||
this.$message.success('编辑成功')
|
||||
|
||||
@@ -729,6 +729,7 @@
|
||||
|
||||
<script>
|
||||
import { interfaceUrl } from "@/sysConfig";
|
||||
import { addUn } from '@/api/unqualProcess'
|
||||
|
||||
export default {
|
||||
name: "rectificationDatabase",
|
||||
@@ -1038,11 +1039,17 @@ export default {
|
||||
// for (const item in arr) {
|
||||
// jsonArr.push(item +':' + arr[item])
|
||||
// }
|
||||
// console.log(jsonArr);
|
||||
console.log(jsonArr);
|
||||
this.$refs["addForm"].validate((valid) => {
|
||||
if(valid){
|
||||
this.$http.postData('sarStandUnqualified/sar-stand-unqualified/add', {
|
||||
sarStandUnqualified: jsonArr,
|
||||
addUn(jsonArr).then(res=>{
|
||||
if(res.ok){
|
||||
this.$message.success('新增成功')
|
||||
this.getTableByPage()
|
||||
}
|
||||
})
|
||||
/* this.$http.postData('sarStandUnqualified/sar-stand-unqualified/add', {
|
||||
jsonArr,
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
@@ -1050,7 +1057,7 @@ export default {
|
||||
this.$message.success('新增成功')
|
||||
this.getTableByPage()
|
||||
}
|
||||
})
|
||||
})*/
|
||||
}else{
|
||||
this.$message.warning('请完善基础信息')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user