|
@@ -293,20 +293,23 @@ export default {
|
|
|
/*自动查重判断*/
|
|
|
duplicateCheck(){
|
|
|
this.$refs.form.validate(async (valid) => {
|
|
|
+ console.log(this.form)
|
|
|
if (!valid) return false
|
|
|
const res = await this.$api.requested({
|
|
|
"id": 20221208184202,
|
|
|
"content": {
|
|
|
"projectname":this.form.projectname,
|
|
|
"address":this.form.address,
|
|
|
- "sa_projectid":this.form.sa_projectid
|
|
|
+ "sa_projectid":0
|
|
|
},
|
|
|
})
|
|
|
console.log(res,"查重结果")
|
|
|
if (res.data.length !== 0){
|
|
|
console.log("重复")
|
|
|
+ }else {
|
|
|
+
|
|
|
}
|
|
|
- this.checkResults = res.data.total
|
|
|
+ this.checkResults = res.data.length
|
|
|
console.log(this.checkResults)
|
|
|
this.onSave()
|
|
|
})
|