Merge branch 'dev-3.7' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.8
This commit is contained in:
@@ -48,18 +48,18 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<div slot="footer" class="nz-select-img-dialog-footer">
|
<div slot="footer" class="nz-select-img-dialog-footer">
|
||||||
<button class="nz-btn nz-btn-size-normal nz-btn-style-light" @click="uploadPicChange">
|
<button class="nz-btn nz-btn-size-normal nz-btn-style-light" type="button" @click="uploadPicChange">
|
||||||
<i class="el-icon-plus"></i>
|
<i class="el-icon-plus"></i>
|
||||||
<span>
|
<span>
|
||||||
{{ $t('overall.uploadCustomPicture') }}
|
{{ $t('overall.uploadCustomPicture') }}
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<span>
|
<span>
|
||||||
<button class="nz-btn nz-btn-size-normal nz-btn-style-light" style="margin-right: 20px" @click="changeSelectBoxShow(false)">
|
<button class="nz-btn nz-btn-size-normal nz-btn-style-light" style="margin-right: 20px" type="button" @click="changeSelectBoxShow(false)">
|
||||||
{{$t('overall.cancel')}}
|
{{$t('overall.cancel')}}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="nz-btn nz-btn-size-normal nz-btn-style-normal" @click="changImage" :disabled="prevent_opt.save"
|
<button type="button" class="nz-btn nz-btn-size-normal nz-btn-style-normal" @click="changImage" :disabled="prevent_opt.save"
|
||||||
:class="{'nz-btn-disabled':prevent_opt.save}"
|
:class="{'nz-btn-disabled':prevent_opt.save}"
|
||||||
style="">
|
style="">
|
||||||
{{$t('el.datepicker.confirm')}}
|
{{$t('el.datepicker.confirm')}}
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
:visible.sync="uploadPicShow"
|
:visible.sync="uploadPicShow"
|
||||||
custom-class="nz-select-img-dialog nz-new-dialog"
|
custom-class="nz-select-img-dialog nz-new-dialog"
|
||||||
width="452px"
|
width="452px"
|
||||||
:append-to-body="true"
|
:append-to-body="false"
|
||||||
:modal-append-to-body="false"
|
:modal-append-to-body="false"
|
||||||
@close="uploadPicShow = false"
|
@close="uploadPicShow = false"
|
||||||
destroy-on-close>
|
destroy-on-close>
|
||||||
@@ -118,11 +118,11 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<div slot="footer" class="upload-pic-row" style="text-align: right;margin-bottom: 0;width: 100%">
|
<div slot="footer" class="upload-pic-row" style="text-align: right;margin-bottom: 0;width: 100%">
|
||||||
<span>
|
<span>
|
||||||
<button class="nz-btn nz-btn-size-normal nz-btn-style-light" style="margin-right: 20px" @click="uploadPicShow=false">
|
<button class="nz-btn nz-btn-size-normal nz-btn-style-light" type="button" style="margin-right: 20px" @click="uploadPicShow=false">
|
||||||
{{$t('project.topology.exit')}}
|
{{$t('project.topology.exit')}}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="nz-btn nz-btn-size-normal nz-btn-style-normal" @click="imgUpload" :disabled="prevent_opt.save"
|
<button class="nz-btn nz-btn-size-normal nz-btn-style-normal" type="button" @click="imgUpload" :disabled="prevent_opt.save"
|
||||||
:class="{'nz-btn-disabled':prevent_opt.save}"
|
:class="{'nz-btn-disabled':prevent_opt.save}"
|
||||||
style="">
|
style="">
|
||||||
{{$t('overall.save')}}
|
{{$t('overall.save')}}
|
||||||
@@ -144,7 +144,7 @@ export default {
|
|||||||
imgId: {},
|
imgId: {},
|
||||||
showDefault: {
|
showDefault: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@@ -311,6 +311,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
uploadPicChange () {
|
uploadPicChange () {
|
||||||
|
console.log(131123123123)
|
||||||
this.unitArr = []
|
this.unitArr = []
|
||||||
this.tools.forEach((item, index) => {
|
this.tools.forEach((item, index) => {
|
||||||
if (index > 0) {
|
if (index > 0) {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<!-- begin--表单-->
|
<!-- begin--表单-->
|
||||||
<div class="right-box-form-box right-box__container chart-right-box">
|
<div class="right-box-form-box right-box__container chart-right-box">
|
||||||
<el-form ref="chartForm" :model="editChart" :rules="rules" label-position= "top" label-width="120px">
|
<el-form ref="chartForm" :model="editChart" :rules="rules" label-position= "top" label-width="120px" @submit.native.prevent>
|
||||||
<el-form-item :label='$t("overall.name")' prop="name">
|
<el-form-item :label='$t("overall.name")' prop="name">
|
||||||
<div style="display:flex;align-items:center">
|
<div style="display:flex;align-items:center">
|
||||||
<el-input style="flex:1;margin-right:10px" maxlength="64" show-word-limit size="small" v-model="editChart.name" id="chart-box-title"></el-input>
|
<el-input style="flex:1;margin-right:10px" maxlength="64" show-word-limit size="small" v-model="editChart.name" id="chart-box-title"></el-input>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-position= "top"
|
label-position= "top"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
|
@submit.native.prevent
|
||||||
>
|
>
|
||||||
<!--title-->
|
<!--title-->
|
||||||
<div class="form__sub-title">
|
<div class="form__sub-title">
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-position= "top"
|
label-position= "top"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
|
@submit.native.prevent
|
||||||
>
|
>
|
||||||
|
|
||||||
<div v-my-loading="loading" v-for="(item, index) in chartConfig.param.datasource " :key="index" class="chart-system-top-box">
|
<div v-my-loading="loading" v-for="(item, index) in chartConfig.param.datasource " :key="index" class="chart-system-top-box">
|
||||||
|
|||||||
@@ -127,7 +127,9 @@ export default {
|
|||||||
this.tableData = response.data.list
|
this.tableData = response.data.list
|
||||||
this.total = response.data.total
|
this.total = response.data.total
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(response.msg)
|
if (response.msg || response.error) {
|
||||||
|
this.$message.error(response.msg || response.error)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user