Commit 403a5cdd by 刘泽志

相同字段检测

parent faec3af0
...@@ -157,3 +157,16 @@ export function syncField(data) { ...@@ -157,3 +157,16 @@ export function syncField(data) {
}) })
} }
/**
* 相同字段检测
* @returns {*}
*/
export function sameFieldCheck(templateId) {
return request({
url: `${prefix}/sameFieldCheck`,
method: 'get',
params:{templateId}
})
}
...@@ -261,6 +261,8 @@ ...@@ -261,6 +261,8 @@
</el-button> </el-button>
<el-button type="info" @click="querySyncField">字段同步 <el-button type="info" @click="querySyncField">字段同步
</el-button> </el-button>
<el-button type="info" @click="sameFieldCheck">相同字段检查
</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="fieldDrawer.queryFieldLoading" :data="fieldDrawer.fieldList" <el-table v-loading="fieldDrawer.queryFieldLoading" :data="fieldDrawer.fieldList"
...@@ -1565,6 +1567,16 @@ export default { ...@@ -1565,6 +1567,16 @@ export default {
callback(this.orgDictDialog.areaDict) callback(this.orgDictDialog.areaDict)
} }
}, },
sameFieldCheck(){
let templateId = this.fieldDrawer.template.id
DataField.sameFieldCheck(templateId).then(res=>{
if (!res.data || res.data.length === 0){
this.$message.success("无重复字段,可建表")
}else {
}
})
},
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment