fix:修复traffic配置页面可能刷新页面的问题
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<el-input :disabled="true" v-model="dc.name"></el-input>
|
<el-input :disabled="true" v-model="dc.name"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<traffic-setting-tab ref="trafficSetting" :post-asset-list="assetList" v-for="(item,index) in traffic.setting" :index="index" :asset-setting="item" :key="uuids[index]" :id="uuids[index]" @delSelf="delAssetSetting" :validate-repeat-func="valiateRepeatFunc"></traffic-setting-tab>
|
<traffic-setting-tab ref="trafficSetting" :post-asset-list="assetList" v-for="(item,index) in traffic.setting" :index="index" :asset-setting="item" :key="uuids[index]" :id="uuids[index]" @delSelf="delAssetSetting" :validate-repeat-func="valiateRepeatFunc"></traffic-setting-tab>
|
||||||
<button @click="addAssetSetting" class="nz-btn nz-btn-size-normal-new nz-btn-style-light-new" style="margin:5px 1px 5px 70px">{{$t('config.dc.traffic.add')}}</button>
|
<button type="button" @click="addAssetSetting" class="nz-btn nz-btn-size-normal-new nz-btn-style-light-new" style="margin:5px 1px 5px 70px">{{$t('config.dc.traffic.add')}}</button>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<button slot="reference" class="nz-btn nz-btn-size-normal nz-btn-style-light" id="snmp-advanced">
|
<button type="button" slot="reference" class="nz-btn nz-btn-size-normal nz-btn-style-light" id="snmp-advanced">
|
||||||
<i class="el-icon-more"></i>
|
<i class="el-icon-more"></i>
|
||||||
</button>
|
</button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
@@ -626,8 +626,7 @@
|
|||||||
border-bottom-left-radius: 0px;
|
border-bottom-left-radius: 0px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: -4px;
|
left: -3px;
|
||||||
top:1px;
|
|
||||||
}
|
}
|
||||||
.asset-config-tab .right-box-row-with-btn{
|
.asset-config-tab .right-box-row-with-btn{
|
||||||
width: calc(100% - 69px);
|
width: calc(100% - 69px);
|
||||||
|
|||||||
@@ -728,7 +728,7 @@
|
|||||||
if (response2.code === 200) {
|
if (response2.code === 200) {
|
||||||
this.esc();
|
this.esc();
|
||||||
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
|
this.$message({duration: 1000, type: 'success', message: this.$t("tip.saveSuccess")});
|
||||||
this.$refs.chartForm.resetFields();//清空表单
|
// this.$refs.chartForm.resetFields();//清空表单
|
||||||
this.$emit('on-create-success', 'update', response2.data, params);
|
this.$emit('on-create-success', 'update', response2.data, params);
|
||||||
} else {
|
} else {
|
||||||
if(response2.msg){
|
if(response2.msg){
|
||||||
|
|||||||
Reference in New Issue
Block a user