|
|
@@ -82,6 +82,7 @@ export default defineComponent({
|
|
|
// const jsUrl = '' + '/DictionaryBase/Dashboard/BASE/2020080401.js';
|
|
|
//const jsUrl = '/DictionaryAsset/Dashboard/EAM/20220309_095250.js';
|
|
|
const componentName = item.componentName;
|
|
|
+ const sortNo = (item.sortNo == null) ? 100 : item.sortNo;
|
|
|
|
|
|
if (item.cssUrl != null && item.cssUrl != undefined) {
|
|
|
CssUtil.dynamicLoadCss(Common.getHostPageBaseURL() + item.cssUrl, componentName);
|
|
|
@@ -109,10 +110,13 @@ export default defineComponent({
|
|
|
var item1 = {
|
|
|
no: componentName,
|
|
|
componentName: componentName,
|
|
|
+ sortNo: sortNo,
|
|
|
};
|
|
|
|
|
|
console.log(_self.dashboardArray);
|
|
|
_self.dashboardArray.push(item1);
|
|
|
+ // add by jack 2024-05-22 增加排序
|
|
|
+ _self.dashboardArray.sort((a, b) => a.sortNo - b.sortNo);
|
|
|
},
|
|
|
errorData => {
|
|
|
console.error(errorData);
|