Merge branch 'dev-2.0' of https://git.mesalab.cn/nezha/nezha-fronted into dev-2.0
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
:now-time="nowTime"
|
:now-time="nowTime"
|
||||||
:table-data="tableData"
|
:table-data="tableData"
|
||||||
|
:showOption="false"
|
||||||
@del="del"
|
@del="del"
|
||||||
@edit="edit"
|
@edit="edit"
|
||||||
@orderBy="tableDataSort"
|
@orderBy="tableDataSort"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
:custom-table-title="tableTitle"
|
:custom-table-title="tableTitle"
|
||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
:table-data="tableData"
|
:table-data="tableData"
|
||||||
|
:showOption="false"
|
||||||
@orderBy="tableDataSort"
|
@orderBy="tableDataSort"
|
||||||
@reload="getTableData"></asset-table>
|
@reload="getTableData"></asset-table>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
:height="mainTableHeight"
|
:height="mainTableHeight"
|
||||||
:table-data="tableData"
|
:table-data="tableData"
|
||||||
:tableId="tableId"
|
:tableId="tableId"
|
||||||
|
:showOption="false"
|
||||||
@orderBy="tableDataSort"
|
@orderBy="tableDataSort"
|
||||||
@reload="getTableData"
|
@reload="getTableData"
|
||||||
></endpoint-table>
|
></endpoint-table>
|
||||||
|
|||||||
@@ -65,6 +65,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
|
v-if="showOption"
|
||||||
:width="operationWidth"
|
:width="operationWidth"
|
||||||
fixed="right">
|
fixed="right">
|
||||||
<div slot="header" class="table-operation-title">{{$t('overall.option')}}</div>
|
<div slot="header" class="table-operation-title">{{$t('overall.option')}}</div>
|
||||||
@@ -93,6 +94,12 @@ import bus from '@/libs/bus'
|
|||||||
export default {
|
export default {
|
||||||
name: 'assetTable',
|
name: 'assetTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
|
props: {
|
||||||
|
showOption: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
tableTitle: [
|
tableTitle: [
|
||||||
|
|||||||
@@ -92,6 +92,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
:resizable="false"
|
:resizable="false"
|
||||||
:width="operationWidth"
|
:width="operationWidth"
|
||||||
|
v-if="showOption"
|
||||||
fixed="right">
|
fixed="right">
|
||||||
<div slot="header" class="table-operation-title">{{$t('overall.option')}}</div>
|
<div slot="header" class="table-operation-title">{{$t('overall.option')}}</div>
|
||||||
<div slot-scope="scope" class="table-operation-items">
|
<div slot-scope="scope" class="table-operation-items">
|
||||||
@@ -116,6 +117,12 @@ import table from '@/components/common/mixin/table'
|
|||||||
export default {
|
export default {
|
||||||
name: 'endpointTable',
|
name: 'endpointTable',
|
||||||
mixins: [table],
|
mixins: [table],
|
||||||
|
props: {
|
||||||
|
showOption: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
tableTitle: [ // 原始table列
|
tableTitle: [ // 原始table列
|
||||||
|
|||||||
@@ -886,7 +886,7 @@ export default {
|
|||||||
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', 'create', response.data, chartParams, { id: this.panelId, name: this.panelName })
|
this.$emit('on-create-success', 'create', response.data, chartParams, { id: this.panelId, name: this.panelName })
|
||||||
this.esc()
|
this.esc(true)
|
||||||
} else {
|
} else {
|
||||||
if (response.msg) {
|
if (response.msg) {
|
||||||
this.$message.error(response.msg)
|
this.$message.error(response.msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user