This commit is contained in:
shenyanpei
2021-11-24 14:23:25 +08:00
parent df6b969c18
commit 091d12ebb0
3 changed files with 20 additions and 5 deletions
+9
View File
@@ -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('请完善基础信息')
}