|
|
@@ -9,10 +9,22 @@
|
|
|
<el-col :span="24" style="margin-top: 20px">
|
|
|
<div>
|
|
|
<span style="margin-right: 10px">{{$t(`项目名称查重排除文字`)}}:</span>
|
|
|
+ <el-tooltip placement="top" style="margin-right: 10px">
|
|
|
+ <div slot="content">{{$t('项目名称查重排除文字,是项目名称查重前提条件之一,设置的文字,是项目名称查重时需排除掉的文字。')}}<br>{{$t('项目名称查重需先排除设置文字后,再将名称剩下的文字进行查重。')}}</div>
|
|
|
+ <img style="vertical-align: middle" width="14px" height="14px" src="../../../../assets/icons/prompt_icon.svg" >
|
|
|
+ </el-tooltip>
|
|
|
<el-tag v-for="(item,index) in projectnameexcludefields" :key="index" style="margin-right: 10px" class="mt-10" closable @close="tagDel(item,index)">{{item}}</el-tag>
|
|
|
<el-button type="primary" size="mini" @click="setWordVisible = true">{{$t(`添加`)}}</el-button>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24" style="margin-top: 20px">
|
|
|
+ <span style="margin-right: 10px">{{$t(`查重字符数`)}}:</span>
|
|
|
+ <el-input v-model="projectrepeatnum" style="width: 200px;margin-right: 10px" :placeholder="$t(`设置查重字符数`)" size="small"></el-input>
|
|
|
+ <el-tooltip placement="top">
|
|
|
+ <div slot="content">{{$t('查重字符数,是项目名称查重判断依据之一,项目名称排除设置文字后,剩下的文字进行项目名称查重,若重复的文字 ≥ 查重字符数,则判断该项目名称重复。')}}</div>
|
|
|
+ <img style="vertical-align: middle" width="14px" height="14px" src="../../../../assets/icons/prompt_icon.svg" >
|
|
|
+ </el-tooltip>
|
|
|
+ </el-col>
|
|
|
<el-col :span="24" style="margin-top: 20px">
|
|
|
<div style="width: 50px" class="inline-16">
|
|
|
{{ $t('第一层') }}:
|
|
|
@@ -149,6 +161,7 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
name: "customerCheckRule",
|
|
|
+ props:['setNumber'],
|
|
|
data(){
|
|
|
return {
|
|
|
dialogEditVisible:false,
|
|
|
@@ -228,12 +241,15 @@ export default {
|
|
|
relation:'',
|
|
|
exclude:'',
|
|
|
projectnameexcludefields:[],
|
|
|
+ projectrepeatnum:0
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
querySite_Parameter(){
|
|
|
this.dialogEditVisible = true
|
|
|
this.relation = this.relations[0].value
|
|
|
+ console.log(this.setNumber,'setNumber')
|
|
|
+ this.projectrepeatnum = this.setNumber
|
|
|
this.queryTable()
|
|
|
this.queryRule()
|
|
|
},
|
|
|
@@ -265,17 +281,28 @@ export default {
|
|
|
"factor3": this.factor3
|
|
|
},
|
|
|
"projectprotectionperiod":this.projectprotectionperiod,
|
|
|
- "projectnameexcludefields":this.projectnameexcludefields
|
|
|
+ "projectnameexcludefields":this.projectnameexcludefields,
|
|
|
},
|
|
|
})
|
|
|
- this.tool.showMessage(res,()=>{
|
|
|
- this.$emit('queryRule')
|
|
|
- this.dialogEditVisible = false
|
|
|
- this.fields1 = []
|
|
|
- this.fields2 = []
|
|
|
- this.fields3 = []
|
|
|
- this.projectprotectionperiod = 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(){
|
|
|
this.dialogEditVisible = false
|