大屏图表动态数据细化字典

Raod 3 years ago
parent 815e575e8e
commit 101d91e2ce

@ -57,7 +57,7 @@ export const constantRouterMap = [
children: [ children: [
{ path: 'file', name: 'file', component: () => import('@/views/file-management/index'), meta: { title: '文件管理', icon: 'iconfill_folder', keepAlive: true, requireAuth: true, permission: 'fileManage'} }, { path: 'file', name: 'file', component: () => import('@/views/file-management/index'), meta: { title: '文件管理', icon: 'iconfill_folder', keepAlive: true, requireAuth: true, permission: 'fileManage'} },
{ path: 'dict', name: 'dict', component: () => import('@/views/dict/index'), meta: { title: '数据字典', icon: 'iconzidian', keepAlive: true, requireAuth: true, permission: 'dictManage'} }, { path: 'dict', name: 'dict', component: () => import('@/views/dict/index'), meta: { title: '数据字典', icon: 'iconzidian', keepAlive: true, requireAuth: true, permission: 'dictManage'} },
{ path: 'dictItem', name: 'dictItem', component: () => import('@/views/dict/dict-item'), meta: { title: '字典项', icon: 'iconzidianxiang', keepAlive: true, requireAuth: true, permission: 'dictItemManage'} }, { path: 'dictItem', name: 'dictItem', component: () => import('@/views/dict/dict-item'), hidden: true, meta: { title: '字典项', icon: 'iconzidianxiang', keepAlive: true, requireAuth: true, permission: 'dictItemManage'} },
] ]
}, },
{ path: '/bigscreen/viewer', component: () => import('@/views/report/bigscreen/viewer'), hidden: true, meta: { requireAuth: true }}, { path: '/bigscreen/viewer', component: () => import('@/views/report/bigscreen/viewer'), hidden: true, meta: { requireAuth: true }},

@ -177,7 +177,8 @@ export default {
rules: [ rules: [
{ required: true, message: "状态不能为空", trigger: "blur" } { required: true, message: "状态不能为空", trigger: "blur" }
], ],
disabled: false disabled: false,
defaultValue: 1
}, },
{ {
label: "排序", // label: "排序", //

@ -27,7 +27,7 @@
<el-form-item v-for="item in setParamList" :key="item" :label="item"> <el-form-item v-for="item in setParamList" :key="item" :label="item">
<Dictionary <Dictionary
v-model="params" v-model="params"
:dict-key="'CHART_PROPERTIES'" :dict-key="getDictKey()"
@input="selectParams($event, item)" @input="selectParams($event, item)"
/> />
</el-form-item> </el-form-item>
@ -57,6 +57,7 @@ export default {
}, },
props: { props: {
chartType: String, chartType: String,
dictKey: String,
props: ["formData"] props: ["formData"]
}, },
data() { data() {
@ -66,7 +67,7 @@ export default {
userNameList: [], // userNameList: [], //
setParamList: [], // setParamList: [], //
params: {}, params: {},
chartProperties: {} chartProperties: {},
}; };
}, },
computed: { computed: {
@ -113,6 +114,9 @@ export default {
}, },
selectParams(val, key) { selectParams(val, key) {
this.chartProperties[key] = val; this.chartProperties[key] = val;
},
getDictKey(){
return this.dictKey == null ? 'CHART_PROPERTIES' : this.dictKey
} }
} }
}; };

@ -137,6 +137,7 @@
v-if="item.type == 'dycustComponents' && inputShow[item.name]" v-if="item.type == 'dycustComponents' && inputShow[item.name]"
v-model="formData[item.name]" v-model="formData[item.name]"
:chart-type="item.chartType" :chart-type="item.chartType"
:dict-key='item.dictKey'
@change="changed($event, item.name)" @change="changed($event, item.name)"
/> />
<dynamic-add-table <dynamic-add-table

@ -192,6 +192,7 @@ const widgetTools = [
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
chartType: 'widget-text', chartType: 'widget-text',
dictKey: 'TEXT_PROPERTIES',
value: '', value: '',
} }
], ],
@ -360,6 +361,7 @@ const widgetTools = [
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
chartType: 'widget-text', chartType: 'widget-text',
dictKey: 'TEXT_PROPERTIES',
value: '', value: '',
} }
], ],
@ -1142,6 +1144,7 @@ const widgetTools = [
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
chartType: 'widget-table', chartType: 'widget-table',
dictKey: 'TEXT_PROPERTIES', //表格的暂不起作用
value: '', value: '',
}, },
], ],
@ -1833,6 +1836,7 @@ const widgetTools = [
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
chartType: 'widget-barchart', chartType: 'widget-barchart',
dictKey: 'BAR_PROPERTIES',
value: '', value: '',
}, },
], ],
@ -2391,6 +2395,7 @@ const widgetTools = [
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
chartType: 'widget-barchart', chartType: 'widget-barchart',
dictKey: 'BAR_PROPERTIES',
value: '', value: '',
}, },
], ],
@ -3033,6 +3038,7 @@ const widgetTools = [
placeholder: 'px', placeholder: 'px',
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-linechart', chartType: 'widget-linechart',
dictKey: 'LINE_PROPERTIES',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
}, },
], ],
@ -3658,6 +3664,7 @@ const widgetTools = [
placeholder: 'px', placeholder: 'px',
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-barlinechart', chartType: 'widget-barlinechart',
dictKey: 'BAR_LINE_PROPERTIES',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
}, },
], ],
@ -4052,6 +4059,7 @@ const widgetTools = [
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-piechart', chartType: 'widget-piechart',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
dictKey: 'PIE_PROPERTIES',
value: '', value: '',
}, },
], ],
@ -4426,6 +4434,7 @@ const widgetTools = [
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-funnel', chartType: 'widget-funnel',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
dictKey: 'PIE_PROPERTIES',
value: '', value: '',
}, },
], ],
@ -4578,6 +4587,7 @@ const widgetTools = [
placeholder: 'px', placeholder: 'px',
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-gauge', chartType: 'widget-gauge',
dictKey: 'TEXT_PROPERTIES',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
value: '', value: '',
}, },
@ -5025,6 +5035,7 @@ const widgetTools = [
placeholder: 'px', placeholder: 'px',
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-piechart', chartType: 'widget-piechart',
dictKey: 'PIE_PROPERTIES',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
value: '', value: '',
}, },
@ -5271,6 +5282,7 @@ const widgetTools = [
placeholder: 'px', placeholder: 'px',
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-piechart', chartType: 'widget-piechart',
dictKey: 'TEXT_PROPERTIES',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
value: '', value: '',
}, },
@ -5645,6 +5657,7 @@ const widgetTools = [
placeholder: 'px', placeholder: 'px',
relactiveDom: 'dataType', relactiveDom: 'dataType',
chartType: 'widget-piechart', chartType: 'widget-piechart',
dictKey: 'MAP_PROPERTIES',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
value: '', value: '',
}, },
@ -6288,6 +6301,7 @@ const widgetTools = [
relactiveDom: 'dataType', relactiveDom: 'dataType',
relactiveDomValue: 'dynamicData', relactiveDomValue: 'dynamicData',
chartType: 'widget-stackchart', chartType: 'widget-stackchart',
dictKey: 'STACK_PROPERTIES',
value: '', value: '',
}, },
], ],

Loading…
Cancel
Save