NEZ-1243 fix: asset endpint 底部弹窗添加同步按钮
This commit is contained in:
@@ -1515,7 +1515,6 @@ export default {
|
|||||||
const arr = []
|
const arr = []
|
||||||
arr.push(this.$get(`/asset/asset/${assetId}`))
|
arr.push(this.$get(`/asset/asset/${assetId}`))
|
||||||
arr.push(this.$get(`/asset/asset/feature/${assetId}`))
|
arr.push(this.$get(`/asset/asset/feature/${assetId}`))
|
||||||
console.log(this.$refs['editChart' + chartInfo.id][0])
|
|
||||||
if (this.$refs['editChart' + chartInfo.id][0]) {
|
if (this.$refs['editChart' + chartInfo.id][0]) {
|
||||||
this.$refs['editChart' + chartInfo.id][0].showLoad()
|
this.$refs['editChart' + chartInfo.id][0].showLoad()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@
|
|||||||
<el-dropdown-item v-has="'panel_chart_add'">
|
<el-dropdown-item v-has="'panel_chart_add'">
|
||||||
<div id="chart-temp-add" @click="addChartByTemp"><i class="nz-icon nz-icon-add"></i>{{ $t('overall.AddByTemplate') }}</div>
|
<div id="chart-temp-add" @click="addChartByTemp"><i class="nz-icon nz-icon-add"></i>{{ $t('overall.AddByTemplate') }}</div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item v-has="'panel_chart_edit'">
|
||||||
|
<div id="chart-temp-sync" @click="chartBySync"><i class="nz-icon nz-icon-sync"></i>{{ $t('overall.syncChart') }}</div>
|
||||||
|
</el-dropdown-item>
|
||||||
</template>
|
</template>
|
||||||
</top-tool-more-options>
|
</top-tool-more-options>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,6 +77,9 @@
|
|||||||
<el-dropdown-item v-has="'panel_chart_add'">
|
<el-dropdown-item v-has="'panel_chart_add'">
|
||||||
<div id="chart-temp-add" @click="addChartByTemp"><i class="nz-icon nz-icon-add"></i>{{ $t('overall.AddByTemplate') }}</div>
|
<div id="chart-temp-add" @click="addChartByTemp"><i class="nz-icon nz-icon-add"></i>{{ $t('overall.AddByTemplate') }}</div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item v-has="'panel_chart_edit'">
|
||||||
|
<div id="chart-temp-sync" @click="chartBySync"><i class="nz-icon nz-icon-sync"></i>{{ $t('overall.syncChart') }}</div>
|
||||||
|
</el-dropdown-item>
|
||||||
</template>
|
</template>
|
||||||
</top-tool-more-options>
|
</top-tool-more-options>
|
||||||
</div>
|
</div>
|
||||||
@@ -553,7 +559,7 @@ export default {
|
|||||||
chartBySync () {
|
chartBySync () {
|
||||||
this.$post('visual/panel/chart/syncTmpl', { pid: this.obj.id }).then(res => {
|
this.$post('visual/panel/chart/syncTmpl', { pid: this.obj.id }).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.getTableData()
|
this.getTableData(this.obj.id)
|
||||||
this.$message.success(this.$t('tip.syncSuccess'))
|
this.$message.success(this.$t('tip.syncSuccess'))
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
|
|||||||
@@ -965,7 +965,6 @@ export default {
|
|||||||
restructure_historyDate () {
|
restructure_historyDate () {
|
||||||
if (localStorage.getItem('nz-history-' + this.where) !== undefined && localStorage.getItem('nz-history-' + this.where) !== null) {
|
if (localStorage.getItem('nz-history-' + this.where) !== undefined && localStorage.getItem('nz-history-' + this.where) !== null) {
|
||||||
this.history_once = JSON.parse(localStorage.getItem('nz-history-' + this.where))
|
this.history_once = JSON.parse(localStorage.getItem('nz-history-' + this.where))
|
||||||
console.log(this.history_once)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clear_search_list (e) {
|
clear_search_list (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user