|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-button size="small" type="primary" @click="isCheck" class="inline-16 normal-btn-width">查 重</el-button>
|
|
|
- <el-dialog title="重复项目" :visible.sync="dialogTableVisible" append-to-body width="40%" style="float: left">
|
|
|
+ <el-dialog title="重复项目" :visible.sync="dialogTableVisible" append-to-body width="1000px" style="float: left">
|
|
|
<div slot="title" class="dialog-title">
|
|
|
<span class="title-text">重复项目</span>
|
|
|
<p v-if="buttonTitle === '确定保存'" style="font-size: 14px;color: red">已存在重复项目,是否确认继续保存</p>
|
|
@@ -72,10 +72,11 @@ export default {
|
|
|
fields1:[],
|
|
|
fields2:[],
|
|
|
fields3:[],
|
|
|
+ siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
- async listData(){
|
|
|
+ async listData(val){
|
|
|
this.param.content.sa_projectid =0
|
|
|
this.fields1.forEach(item=>{
|
|
|
this.param.content[item] = this.data[item] || ""
|
|
@@ -94,9 +95,12 @@ export default {
|
|
|
this.list = res.data
|
|
|
this.total = res.total
|
|
|
this.currentPage = res.pageNumber
|
|
|
- this.$emit('isDuplicate','重复')
|
|
|
if (this.siteid == 'HY'){
|
|
|
- this.onCheck()
|
|
|
+ if (val == '审核'){
|
|
|
+ this.dialogTableVisible = true
|
|
|
+ }else {
|
|
|
+ this.onCheck()
|
|
|
+ }
|
|
|
}else {
|
|
|
this.dialogTableVisible = true
|
|
|
}
|
|
@@ -108,7 +112,6 @@ export default {
|
|
|
message: '无重复数据',
|
|
|
type: 'success'
|
|
|
});
|
|
|
- this.$emit('isDuplicate','无重复数据')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -205,7 +208,7 @@ export default {
|
|
|
isCheck(){
|
|
|
this.$emit('onCheck')
|
|
|
},
|
|
|
- async queryRule(){
|
|
|
+ async queryRule(val){
|
|
|
const res = await this.$api.requested({
|
|
|
"id": "20230410090502",
|
|
|
"content": {},
|
|
@@ -213,7 +216,7 @@ export default {
|
|
|
this.fields1 = res.data.projectcheckrule.fields1
|
|
|
this.fields2 = res.data.projectcheckrule.fields2
|
|
|
this.fields3 = res.data.projectcheckrule.fields3
|
|
|
- this.listData()
|
|
|
+ this.listData(val)
|
|
|
}
|
|
|
},
|
|
|
created() {
|