|
@@ -161,6 +161,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
export default {
|
|
export default {
|
|
|
name: "customerCheckRule",
|
|
name: "customerCheckRule",
|
|
|
|
|
+ props:['setNumber'],
|
|
|
data(){
|
|
data(){
|
|
|
return {
|
|
return {
|
|
|
dialogEditVisible:false,
|
|
dialogEditVisible:false,
|
|
@@ -247,6 +248,8 @@ export default {
|
|
|
querySite_Parameter(){
|
|
querySite_Parameter(){
|
|
|
this.dialogEditVisible = true
|
|
this.dialogEditVisible = true
|
|
|
this.relation = this.relations[0].value
|
|
this.relation = this.relations[0].value
|
|
|
|
|
+ console.log(this.setNumber,'setNumber')
|
|
|
|
|
+ this.projectrepeatnum = this.setNumber
|
|
|
this.queryTable()
|
|
this.queryTable()
|
|
|
this.queryRule()
|
|
this.queryRule()
|
|
|
},
|
|
},
|
|
@@ -279,18 +282,27 @@ export default {
|
|
|
},
|
|
},
|
|
|
"projectprotectionperiod":this.projectprotectionperiod,
|
|
"projectprotectionperiod":this.projectprotectionperiod,
|
|
|
"projectnameexcludefields":this.projectnameexcludefields,
|
|
"projectnameexcludefields":this.projectnameexcludefields,
|
|
|
- "projectrepeatnum":this.projectrepeatnum
|
|
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
- this.tool.showMessage(res,()=>{
|
|
|
|
|
- this.$emit('queryRule')
|
|
|
|
|
- this.dialogEditVisible = false
|
|
|
|
|
- this.fields1 = []
|
|
|
|
|
- this.fields2 = []
|
|
|
|
|
- this.fields3 = []
|
|
|
|
|
- this.projectprotectionperiod = 0
|
|
|
|
|
- this.projectrepeatnum = 0
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (res.code == 0){
|
|
|
|
|
+ this.tool.showMessage(res,()=>{})
|
|
|
|
|
+ }else {
|
|
|
|
|
+ const res1 = await this.$api.requested({
|
|
|
|
|
+ "classname": "webmanage.site.site",
|
|
|
|
|
+ "method":"updateSite_Parameter",
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "projectrepeatnum":Number(this.projectrepeatnum)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
|
|
+ this.$emit('queryRule')
|
|
|
|
|
+ this.dialogEditVisible = false
|
|
|
|
|
+ this.fields1 = []
|
|
|
|
|
+ this.fields2 = []
|
|
|
|
|
+ this.fields3 = []
|
|
|
|
|
+ this.projectprotectionperiod = 0
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
onClose(){
|
|
onClose(){
|
|
|
this.dialogEditVisible = false
|
|
this.dialogEditVisible = false
|
|
@@ -312,7 +324,6 @@ export default {
|
|
|
this.factor2 = res.data.projectcheckrule.factor2
|
|
this.factor2 = res.data.projectcheckrule.factor2
|
|
|
this.factor3 = res.data.projectcheckrule.factor3
|
|
this.factor3 = res.data.projectcheckrule.factor3
|
|
|
this.projectprotectionperiod= res.data.projectprotectionperiod
|
|
this.projectprotectionperiod= res.data.projectprotectionperiod
|
|
|
- this.projectrepeatnum = res.data.projectrepeatnum
|
|
|
|
|
this.projectnameexcludefields = res.data.projectnameexcludefields?res.data.projectnameexcludefields:[]
|
|
this.projectnameexcludefields = res.data.projectnameexcludefields?res.data.projectnameexcludefields:[]
|
|
|
},
|
|
},
|
|
|
/*设置排除文字*/
|
|
/*设置排除文字*/
|