大屏组件开发

This commit is contained in:
yanran200730
2023-03-08 15:45:56 +08:00
parent 0770065a43
commit 54bcd5979a
10 changed files with 281 additions and 7 deletions

View File

@@ -224,7 +224,7 @@ export default {
this.instance.post(this.options.api).then(res => {
if (res.code == 0) {
if (res.data.length) {
if (this.options.type === 'table') {
if (this.options.type === 'table' || this.options.type === 'AiDvTable') {
const keys = Object.keys(res.data[0])
const list = res.data
this.options.apiData = keys.map(v => {
@@ -286,7 +286,7 @@ export default {
this.instance.post(`/app/appdiylargescreen/statisticsByLsid?id=${e}`).then(res => {
if (res.code == 0) {
if (res.data.length) {
if (this.options.type === 'table') {
if (this.options.type === 'table' || this.options.type === 'AiDvTable') {
const keys = Object.keys(res.data[0])
const list = res.data
this.options.dynamicData = keys.map(v => {