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 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 => { }, e => {
}) })
} else { } else {
console.log(this.formShowData.meetTime)
meetEdit(this.formShowData).then(res => { meetEdit(this.formShowData).then(res => {
if (res.ok) { if (res.ok) {
this.$message.success('编辑成功') this.$message.success('编辑成功')
@@ -729,6 +729,7 @@
<script> <script>
import { interfaceUrl } from "@/sysConfig"; import { interfaceUrl } from "@/sysConfig";
import { addUn } from '@/api/unqualProcess'
export default { export default {
name: "rectificationDatabase", name: "rectificationDatabase",
@@ -1038,11 +1039,17 @@ export default {
// for (const item in arr) { // for (const item in arr) {
// jsonArr.push(item +':' + arr[item]) // jsonArr.push(item +':' + arr[item])
// } // }
// console.log(jsonArr); console.log(jsonArr);
this.$refs["addForm"].validate((valid) => { this.$refs["addForm"].validate((valid) => {
if(valid){ if(valid){
this.$http.postData('sarStandUnqualified/sar-stand-unqualified/add', { addUn(jsonArr).then(res=>{
sarStandUnqualified: jsonArr, if(res.ok){
this.$message.success('新增成功')
this.getTableByPage()
}
})
/* this.$http.postData('sarStandUnqualified/sar-stand-unqualified/add', {
jsonArr,
}, { }, {
_this: this _this: this
}, res => { }, res => {
@@ -1050,7 +1057,7 @@ export default {
this.$message.success('新增成功') this.$message.success('新增成功')
this.getTableByPage() this.getTableByPage()
} }
}) })*/
}else{ }else{
this.$message.warning('请完善基础信息') this.$message.warning('请完善基础信息')
} }