diff --git a/packages/bigscreen/designer/components/SourceData.vue b/packages/bigscreen/designer/components/SourceData.vue index 1e77eb0b..71add0c9 100644 --- a/packages/bigscreen/designer/components/SourceData.vue +++ b/packages/bigscreen/designer/components/SourceData.vue @@ -45,7 +45,7 @@ @@ -58,7 +58,21 @@ v-model="form.description"> - + + + 村微应用 + SQL + + + + + + + - + 全部 自定义条数 @@ -81,75 +95,81 @@ v-model="form.count"> - -
-
- - - - - - - - - +
+ +
+
+ + + + + + + + + +
+ 删除
- 删除 -
- - + +
+ 添加统计项 - -
-
- - - - +
+ +
+
+ + + + +
+ 删除
- 删除 -
- - + +
+ 添加分组 - -
-
- - - - - - - - +
+ +
+
+ + + + + + + + +
+ 删除
- 删除 -
- - + +
+ 添加排序
@@ -181,9 +201,10 @@ total: 0, colConfigs: [ { prop: 'appName', label: '应用名' }, - { prop: 'appTableName', label: '表名' }, - { prop: 'createUserName', label: '创建人' }, - { prop: 'description', label: '描述' }, + { prop: 'appTableName', align: 'center', label: '表名' }, + { prop: 'description', align: 'center', label: '描述' }, + { prop: 'type', align: 'center', label: '类型', formart: v => v === '0' ? '村微应用' : 'sql语句' }, + { prop: 'createUserName', align: 'center', label: '创建人' }, { prop: 'createTime', align: 'center', label: '创建时间' } ], tableData: [], @@ -192,6 +213,8 @@ form: { orderType: 'asc', dataRange: '0', + type: '0', + sqlContent: '', appId: '', description: '', appName: '', @@ -277,9 +300,10 @@ this.form = { ...res.data } + this.form.dataRange = this.form.dataRange === '0' ? '0' : '1' this.form.count = res.data.dataRange - this.filedList = this.appList.filter(v => v.id === res.data.appId)[0].fields.map(item => { + this.filedList = this.appList.filter(v => v.id === res.data.appId).length && this.appList.filter(v => v.id === res.data.appId)[0].fields.map(item => { let value = [] res.data.configs.forEach(v => { if (v.fieldName === item.fieldName) { @@ -292,7 +316,6 @@ value } }) - this.isShow = true } }) diff --git a/project/shandong10086/apps/shandong/monitor/components/deviceSlider.vue b/project/shandong10086/apps/shandong/monitor/components/deviceSlider.vue index cb073ae8..0e10472c 100644 --- a/project/shandong10086/apps/shandong/monitor/components/deviceSlider.vue +++ b/project/shandong10086/apps/shandong/monitor/components/deviceSlider.vue @@ -28,7 +28,7 @@ @node-click="handleNodeClick" @node-contextmenu="nodeContextmenu" :filter-node-method="handleFilter"/>