|
@@ -12,6 +12,8 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-button type="primary" style="width:280px;" @click="save">保存并应用</el-button>
|
|
<el-button type="primary" style="width:280px;" @click="save">保存并应用</el-button>
|
|
|
|
+
|
|
|
|
+ <el-button type="warning" style="width:280px;" @click="synall">同步全部采集配置</el-button>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -57,6 +59,19 @@
|
|
ElMessage.error('保存数据出错')
|
|
ElMessage.error('保存数据出错')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ const synall=()=>{
|
|
|
|
+ api.synall().then(resp=>{
|
|
|
|
+ if(resp.code!=0){
|
|
|
|
+ ElMessage.error(resp.msg || '操作失败')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ ElMessage.success('操作成功')
|
|
|
|
+ }).catch(err=>{
|
|
|
|
+ console.log(err)
|
|
|
|
+ ElMessage.error('操作出错')
|
|
|
|
+ })
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|