提交 41a7751b 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码 [TrainSys,网页端]

上级 44891826
......@@ -13,15 +13,16 @@
"dependencies": {
"@floating-ui/dom": "^1.0.11",
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.55",
"@ibiz-template/core": "^0.0.1-beta.51",
"@ibiz-template/controller": "^0.0.1-beta.57",
"@ibiz-template/core": "^0.0.1-beta.57",
"@ibiz-template/model": "^0.0.1-beta.55",
"@ibiz-template/runtime": "^0.0.1-beta.55",
"@ibiz-template/service": "^0.0.1-beta.55",
"@ibiz-template/runtime": "^0.0.1-beta.57",
"@ibiz-template/service": "^0.0.1-beta.57",
"@ibiz-template/theme": "^0.0.1-beta.54",
"@ibiz-template/vue-util": "^0.0.1-beta.55",
"@ibiz-template/vue-util": "^0.0.1-beta.57",
"@ibiz/dynamic-model-api": "^2.1.17",
"dayjs": "^1.11.7",
"echarts": "^5.4.2",
"lodash-es": "^4.17.21",
"path-browserify": "^1.0.1",
"pinia": "^2.0.28",
......
此差异已折叠。
此差异已折叠。
......@@ -11,6 +11,7 @@
"view-design": "../js/view-design/4.7.0/iview.min.js",
"lodash-es": "../js/lodash/4.17.21/lodash.min.js",
"qx-util": "../js/qx-util.min.js",
"echarts": "../js/echarts/5.4.2/echarts.min.js",
"@ibiz/dynamic-model-api": "../js/ibiz-dynamic-model-api.system.min.js",
"@ibiz-template/command": "../js/ibiz-template-command.system.min.js",
"@ibiz-template/core": "../js/ibiz-template-core.system.min.js",
......
var s = Object.defineProperty;
var i = (r, e, t) => e in r ? s(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
var o = (r, e, t) => (i(r, typeof e != "symbol" ? e + "" : e, t), t);
import { defineComponent as c, getCurrentInstance as a } from "vue";
import { useViewController as l } from "@ibiz-template/vue-util";
import { Neuron as h, ViewNerve as u, ViewController as d } from "@ibiz-template/controller";
class p extends h {
}
class m extends u {
constructor() {
super(...arguments);
o(this, "chart");
}
createNeuron() {
return new p(this.bindAbility());
}
inclusive(t) {
return t === "chart" || super.inclusive(t);
}
connect(t, n) {
super.connect(t, n), t === "chart" && (this.chart = n, this.chart.evt.on("destroyed", () => {
this.chart = void 0;
}));
}
destroy() {
super.destroy(), this.chart = void 0;
}
}
class v extends d {
createNerve() {
return new m(this);
}
async onInit() {
await super.onInit();
const { chart: e } = this.model;
e && (this.providers[e.name] = await ibiz.register.control.get(e)), this.nerve.self.evt.on("mounted", () => {
this.model.source.loadDefault && this.load();
});
}
/**
* 视图加载方法
*
* @return {*} {Promise<IData[]>}
* @memberof ChartViewController
*/
async load() {
const { chart: e } = this.nerve;
return e.call.load();
}
}
function f(r, e) {
return l(
r,
(t, n) => new v(e, t, n)
);
}
const V = c({
props: {
context: Object,
params: {
type: Object,
default: () => ({})
},
modelPath: {
type: String,
required: !0
},
modal: {
type: Object
}
},
setup(r) {
const {
proxy: e
} = a();
return {
c: f(e, r.modelPath)
};
},
render(r) {
let e = null;
if (this.c.complete) {
const {
chart: t
} = this.c.model;
this.c.providers[t.name] && (e = r(this.c.providers[t.name].component, {
props: {
modelData: t,
context: this.c.context,
params: this.c.params
},
on: {
neuronInit: this.c.nerve.onNeuronInit(t.name)
}
}));
}
return r("view-base", {
attrs: {
controller: this.c
}
}, [e]);
}
});
export {
V as default
};
System.register(["vue","@ibiz-template/vue-util","@ibiz-template/controller"],(function(e,t){"use strict";var r,n,s,o,i,c;return{setters:[e=>{r=e.defineComponent,n=e.getCurrentInstance},e=>{s=e.useViewController},e=>{o=e.Neuron,i=e.ViewNerve,c=e.ViewController}],execute:function(){class t extends o{}class a extends i{chart;createNeuron(){return new t(this.bindAbility())}inclusive(e){return"chart"===e||super.inclusive(e)}connect(e,t){super.connect(e,t),"chart"===e&&(this.chart=t,this.chart.evt.on("destroyed",(()=>{this.chart=void 0})))}destroy(){super.destroy(),this.chart=void 0}}class l extends c{createNerve(){return new a(this)}async onInit(){await super.onInit();const{chart:e}=this.model;e&&(this.providers[e.name]=await ibiz.register.control.get(e)),this.nerve.self.evt.on("mounted",(()=>{this.model.source.loadDefault&&this.load()}))}async load(){const{chart:e}=this.nerve;return e.call.load()}}e("default",r({props:{context:Object,params:{type:Object,default:()=>({})},modelPath:{type:String,required:!0},modal:{type:Object}},setup(e){const{proxy:t}=n();var r,o;return{c:(r=t,o=e.modelPath,s(r,((e,t)=>new l(o,e,t))))}},render(e){let t=null;if(this.c.complete){const{chart:r}=this.c.model;this.c.providers[r.name]&&(t=e(this.c.providers[r.name].component,{props:{modelData:r,context:this.c.context,params:this.c.params},on:{neuronInit:this.c.nerve.onNeuronInit(r.name)}}))}return e("view-base",{attrs:{controller:this.c}},[t])}}))}}}));
var i = Object.defineProperty;
var n = (r, t, e) => t in r ? i(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
var o = (r, t, e) => (n(r, typeof t != "symbol" ? t + "" : t, e), e);
import { ControlType as s, ViewType as a } from "@ibiz-template/model";
import { PluginStaticResource as l } from "@ibiz-template/runtime";
const m = new l(import.meta.url);
class c {
constructor() {
o(this, "component", "ChartControl");
}
}
class p {
constructor() {
o(this, "component", "ChartView");
}
}
const d = {
mateUrl: import.meta.url,
install(r) {
m.loadStyle(["/style.css"]), r.component(
"ChartControl",
() => import("./chart-control-ede059a5.js")
), ibiz.register.control.register(s.CHART, new c()), r.component(
"ChartView",
() => import("./chart-view-4d8fd435.js")
), ibiz.register.view.register(
a.DE_CHART_VIEW,
new p()
);
}
};
export {
d as default
};
System.register(["@ibiz-template/model","@ibiz-template/runtime"],(function(e,t){"use strict";var r,i,o;return{setters:[e=>{r=e.ControlType,i=e.ViewType},e=>{o=e.PluginStaticResource}],execute:function(){const n=new o(t.meta.url);class l{component="ChartControl"}class s{component="ChartView"}e("default",{mateUrl:t.meta.url,install(e){n.loadStyle(["/style.css"]),e.component("ChartControl",(()=>t.import("./chart-control.legacy.js"))),ibiz.register.control.register(r.CHART,new l),e.component("ChartView",(()=>t.import("./chart-view.legacy.js"))),ibiz.register.view.register(i.DE_CHART_VIEW,new s)}})}}}));
@charset "UTF-8";.ibiz-chart{width:100%;height:100%;overflow:auto}.ibiz-chart .ibiz-chart-content{width:100%;height:100%}.chart-tooltip .chart-tooltip-container{width:141px;padding:10px 12px 6px 8px;background:rgba(255,255,255,.45);border-radius:6px;backdrop-filter:blur(3px)}.chart-tooltip .chart-tooltip-container .chart-tooltip-title{font-size:14px;font-weight:700;line-height:19px;color:#666}.chart-tooltip .chart-tooltip-container .chart-tooltip-item{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.chart-tooltip .chart-tooltip-container .chart-tooltip-item .chart-tooltip-item-name,.chart-tooltip .chart-tooltip-container .chart-tooltip-item .chart-tooltip-item-number{font-size:12px;line-height:16px;color:#666}
{
"name": "@ibiz-template-package/vue2-de-chart-view",
"version": "0.0.2-beta.0",
"description": "ibiz full-dynamic-vue 模板项目扩展插件示例",
"author": "chitanda",
"license": "MIT",
"type": "module",
"main": "dist/ibiz-template-plugin.es.js",
"module": "dist/ibiz-template-plugin.es.js",
"types": "dist/types/index.d.ts",
"system": "dist/index.legacy.js",
"files": [
"dist",
"src",
"CHANGELOG.md",
"README.md"
],
"scripts": {
"dev": "vite build --watch",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"publish:next": "npm publish --access public --tag next",
"publish:npm": "npm publish --access public"
},
"styles": [
"dist/style.css"
],
"dependencies": {
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.56",
"@ibiz-template/core": "^0.0.1-beta.56",
"@ibiz-template/model": "^0.0.1-beta.55",
"@ibiz-template/runtime": "^0.0.1-beta.56",
"@ibiz-template/service": "^0.0.1-beta.56",
"@ibiz-template/theme": "^0.0.1-beta.54",
"@ibiz-template/vue-util": "^0.0.1-beta.56",
"@ibiz/dynamic-model-api": "^2.1.17",
"async-validator": "^4.2.5",
"axios": "^1.3.5",
"dayjs": "^1.11.7",
"echarts": "^5.4.2",
"lodash-es": "^4.17.21",
"pluralize": "^8.0.0",
"qs": "^6.11.1",
"qx-util": "^0.4.8",
"ramda": "^0.29.0",
"view-design": "^4.7.0",
"vue": "^2.7.14",
"vue-router": "^3.6.5"
},
"peerDependencies": {
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.55",
"@ibiz-template/core": "^0.0.1-beta.51",
"@ibiz-template/model": "^0.0.1-beta.55",
"@ibiz-template/runtime": "^0.0.1-beta.55",
"@ibiz-template/service": "^0.0.1-beta.55",
"@ibiz-template/theme": "^0.0.1-beta.54",
"@ibiz-template/vue-util": "^0.0.1-beta.55",
"@ibiz/dynamic-model-api": "^2.1.17",
"async-validator": "^4.2.5",
"axios": "^1.3.4",
"dayjs": "^1.11.7",
"lodash-es": "^4.17.21",
"monaco-editor": "^0.36.1",
"pluralize": "^8.0.0",
"qs": "^6.11.0",
"qx-util": "^0.4.8",
"ramda": "^0.28.0",
"view-design": "^4.7.0",
"vue": "^2.7.14",
"vue-router": "^3.6.5"
},
"devDependencies": {
"@types/ramda": "^0.28.23",
"@qx-chitanda/vite-plugin-lib-legacy": "^4.0.2",
"@vitejs/plugin-vue2": "^2.2.0",
"@vitejs/plugin-vue2-jsx": "^1.1.0",
"eslint": "^8.37.0",
"rollup-plugin-visualizer": "^5.9.0",
"sass": "^1.60.0",
"terser": "^5.16.8",
"typescript": "^5.0.3",
"vite": "^4.2.1",
"vite-plugin-dts": "^2.2.0",
"vite-plugin-eslint": "^1.8.1",
"vue-eslint-parser": "^9.1.1",
"vue-tsc": "^1.2.0"
}
}
\ No newline at end of file
......@@ -36,6 +36,12 @@ export const ActionToolbar = defineComponent({
{details.length > 0 &&
details.map(detail => {
const action = detail.getPSUIAction();
const btnClass = [this.ns.e('item'), this.ns.is('disabled', false)];
// 接口没有,临时先用IData过校验
const cssName = (detail as IData)?.getPSSysCss()?.cssName;
if (cssName) {
btnClass.push(cssName);
}
if (action && this.actionsState[detail.name].visible) {
return [
detail.addSeparator && (
......@@ -46,7 +52,7 @@ export const ActionToolbar = defineComponent({
size='small'
on-click={(e: MouseEvent) => this.handleClick(detail, e)}
disabled={this.actionsState[detail.name].disabled}
class={[this.ns.e('item'), this.ns.is('disabled', false)]}
class={btnClass}
>
{detail.showIcon && action.getPSSysImage() && (
<app-icon icon={action.getPSSysImage()}></app-icon>
......
......@@ -106,6 +106,7 @@ export const GridControl = defineComponent({
>
<i-table
ref={'grid'}
height={this.c.model.source.height}
class={this.ns.b('content')}
show-header={!this.c.model.source.hideHeader}
highlight-row
......
/**
* 安装默认插件
*
* @author chitanda
* @date 2023-03-09 17:03:56
* @export
*/
export function installDefaultPluginRegister(): void {
// 代码编辑器
ibiz.plugin.registerPredefinedPlugin({
name: 'VIEW_DECHARTVIEW_DEFAULT',
path: '@ibiz-template-package/vue2-de-chart-view@0.0.1',
});
}
......@@ -18,6 +18,7 @@ import {
import { piniaInstance } from './store';
import { attachEnvironmentConfig } from './attach-environment-config';
import { PluginFactory } from './plugin';
import { installDefaultPluginRegister } from './default-plugin-register';
Vue.use(Router);
Vue.use(PiniaVuePlugin);
......@@ -62,6 +63,7 @@ async function createApp(): Promise<void> {
ibiz.loading = new LoadingUtil();
ibiz.overlay = new OverlayController();
ibiz.plugin = new PluginFactory();
installDefaultPluginRegister();
Vue.use(UserRegister);
},
router,
......
import { IndexViewController } from '@ibiz-template/controller';
import { useRouter } from '@ibiz-template/vue-util';
import Vue, { ref, watch } from 'vue';
import { useRoute, useRouter } from '@ibiz-template/vue-util';
import { ref, watch } from 'vue';
import { Route } from 'vue-router';
export const getView2Value = (item: IParams) => {
return item.params.view2
? (item.params.view2 ? `/${item.params.view2}` : '') +
(item.params.params2 ? `/${item.params.params2}` : '')
: '404';
export const getView2Value = (route: Route) => {
const { view2, params2, params1 } = route.params;
if (!view2) {
return '';
}
// 清除params2里的srfnav
let _params2 = (params2 as String).replace(
/;srfnav=[^;=]*$|(?<=;)srfnav=[^;=]*;|^srfnav=[^;=]*;|^srfnav=[^;=]*$/g,
'',
);
_params2 = _params2 || ibiz.env.routePlaceholder;
return `/${params1}/${view2}/${_params2}`;
};
export const getView1Value = (item: IParams) => {
return (
(item.params.view1 ? `/${item.params.view1}` : '') +
(item.params.params1 ? `/${item.params.params1}` : '')
);
// 获取首页一级路径的空白地址
export const getView1Value = (route: Route) => {
const { view1, appContext } = route.params;
return `/${appContext}/${view1}/${ibiz.env.routePlaceholder}`;
};
export interface RouteMsg {
......@@ -41,24 +48,51 @@ export function useIndexRouteManage(
/** 路由信息,每个key对应的全路由和标题之类的信息 */
const routeMsgs = ref<RouteMsg[]>([]);
/**
* 删除路由缓存数据
*
* @author lxm
* @date 2022-09-22 10:09:11
* @param {string[]} keys 要删除的keys
*/
const deleteRouteCache = (keys: string[]) => {
keys.forEach(key => {
const index = keyHistory.value.indexOf(key);
if (index !== -1) {
keyHistory.value.splice(index, 1);
const msgIndex = routeMsgs.value.findIndex(item => item.key === key);
routeMsgs.value.splice(msgIndex, 1);
}
});
};
// 监听路由
watch(
() => proxy.$route,
() => proxy.$route.path,
(newVal, oldVal) => {
// 只处理有二级路由,只有首页的时候不需要
if (newVal !== oldVal) {
currentKey.value = getView2Value(newVal);
indexPath.value = getView1Value(newVal);
const route = useRoute(proxy);
// 当跳转到二级路由的时候清空缓存
if (route.matched.length <= 2) {
deleteRouteCache(keyHistory.value.splice(0));
}
currentKey.value = getView2Value(route);
indexPath.value = getView1Value(route);
// 更新或新建对应key的全路由信息,主要是三级路由变更时会用
const find = routeMsgs.value.find(
item => item.key === currentKey.value,
);
if (find) {
find.fullPath = newVal.fullPath;
find.fullPath = route.fullPath;
} else {
// 全关闭后到首页只显示空白不需要加入到routeMsgs里
if (newVal === indexPath.value) {
return;
}
routeMsgs.value.push({
key: currentKey.value,
fullPath: newVal.fullPath,
fullPath: route.fullPath,
modelPath: '',
caption: '',
});
......@@ -103,24 +137,6 @@ export function useIndexRouteManage(
}
};
/**
* 删除路由缓存数据
*
* @author lxm
* @date 2022-09-22 10:09:11
* @param {string[]} keys 要删除的keys
*/
const deleteRouteCache = (keys: string[]) => {
keys.forEach(key => {
const index = keyHistory.value.indexOf(key);
if (index !== -1) {
keyHistory.value.splice(index, 1);
const msgIndex = routeMsgs.value.findIndex(item => item.key === key);
routeMsgs.value.splice(msgIndex, 1);
}
});
};
/**
* 关闭视图回调
*
......
......@@ -29,6 +29,7 @@ export default defineConfig({
'ramda',
'lodash-es',
'qx-util',
'echarts',
'@ibiz/dynamic-model-api',
'@ibiz-template/command',
'@ibiz-template/core',
......
......@@ -59,6 +59,56 @@
"modelref" : true,
"path" : "PSSYSAPPS/TemplatePublish/PSAPPDATAENTITIES/City.json"
},
"getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u5ee2086_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "百度"
}
}, {
"logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u1feafb4_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "表格界面_编辑操作"
}
}, {
"logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u4c6267d_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "表格界面_删除操作"
}
} ],
"getPSAppViewUIActions" : [ {
"name" : "百度",
"getPSUIAction" : {
"modelref" : true,
"id" : "openBaidu"
},
"uIActionTarget" : "SINGLEDATA",
"xDataControlName" : "grid"
}, {
"name" : "表格界面_编辑操作",
"getPSUIAction" : {
"modelref" : true,
"id" : "Edit"
},
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid"
}, {
"name" : "表格界面_删除操作",
"getPSUIAction" : {
"modelref" : true,
"id" : "Remove"
},
"uIActionTarget" : "MULTIKEY",
"xDataControlName" : "grid"
} ],
"getPSControlLogics" : [ {
"eventNames" : "ROWDBLCLICK;SELECTIONCHANGE;REMOVE;LOAD;BEFORELOAD",
"logicTag" : "grid",
......@@ -173,6 +223,127 @@
"widthUnit" : "PX",
"enableRowEdit" : true,
"enableSort" : true
}, {
"align" : "RIGHT",
"caption" : "xxx",
"codeName" : "uagridcolumn1",
"columnType" : "UAGRIDCOLUMN",
"mOSFilePath" : "psdegridcols/uagridcolumn1",
"name" : "uagridcolumn1",
"noPrivDisplayMode" : 1,
"getPSDEUIActionGroup" : {
"name" : "界面行为组",
"getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "u5ee2086",
"getPSUIAction" : {
"actionTarget" : "SINGLEDATA",
"caption" : "百度",
"codeName" : "openBaidu",
"frontProcessType" : "OPENHTMLPAGE",
"fullCodeName" : "openBaidu",
"htmlPageUrl" : "https://www.baidu.com/",
"mOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/openBaidu",
"name" : "百度",
"rTMOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/openBaidu",
"timeout" : 60000,
"uIActionMode" : "FRONT",
"uIActionTag" : "openBaidu",
"uIActionType" : "DEUIACTION"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "u1feafb4",
"getPSUIAction" : {
"actionTarget" : "SINGLEKEY",
"getCapPSLanguageRes" : {
"defaultContent" : "编辑",
"lanResTag" : "TBB.TEXT.*.EDIT",
"lanResType" : "TBB.TEXT",
"mOSFilePath" : "pslanguageres/Auto253",
"name" : "工具栏按钮文本[*.EDIT]",
"rTMOSFilePath" : "pslanguageres/Auto253",
"refFlag" : true
},
"caption" : "编辑",
"codeName" : "Edit",
"fullCodeName" : "Edit",
"mOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/Edit",
"name" : "表格界面_编辑操作",
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
"cssClass" : "fa fa-edit"
},
"predefinedType" : "GRIDVIEW_EDITACTION",
"rTMOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/Edit",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
"defaultContent" : "编辑",
"lanResTag" : "TBB.TOOLTIP.*.EDIT",
"lanResType" : "TBB.TOOLTIP",
"mOSFilePath" : "pslanguageres/Auto130",
"name" : "工具栏按钮提示[*.EDIT]",
"rTMOSFilePath" : "pslanguageres/Auto130",
"refFlag" : true
},
"uIActionMode" : "SYS",
"uIActionTag" : "Edit",
"uIActionType" : "DEUIACTION"
},
"addSeparator" : true,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION",
"name" : "u4c6267d",
"getPSUIAction" : {
"actionTarget" : "MULTIKEY",
"getCapPSLanguageRes" : {
"defaultContent" : "删除",
"lanResTag" : "TBB.TEXT.*.REMOVE",
"lanResType" : "TBB.TEXT",
"mOSFilePath" : "pslanguageres/Auto159",
"name" : "工具栏按钮文本[*.REMOVE]",
"rTMOSFilePath" : "pslanguageres/Auto159",
"refFlag" : true
},
"caption" : "删除",
"codeName" : "Remove",
"fullCodeName" : "Remove",
"mOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/Remove",
"name" : "表格界面_删除操作",
"getPSSysImage" : {
"glyph" : "xf00d@FontAwesome",
"cssClass" : "fa fa-remove"
},
"predefinedType" : "GRIDVIEW_REMOVEACTION",
"rTMOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/Remove",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
"defaultContent" : "删除",
"lanResTag" : "TBB.TOOLTIP.*.REMOVE",
"lanResType" : "TBB.TOOLTIP",
"mOSFilePath" : "pslanguageres/Auto286",
"name" : "工具栏按钮提示[*.REMOVE]",
"rTMOSFilePath" : "pslanguageres/Auto286",
"refFlag" : true
},
"uIActionMode" : "SYS",
"uIActionTag" : "Remove",
"uIActionType" : "DEUIACTION"
},
"addSeparator" : true,
"showCaption" : false,
"showIcon" : true
} ]
},
"rTMOSFilePath" : "psdegridcols/uagridcolumn1",
"width" : 100,
"widthUnit" : "PX",
"enableSort" : false
} ],
"getPSDEGridDataItems" : [ {
"dataType" : 25,
......
......@@ -341,6 +341,56 @@
"modelref" : true,
"path" : "PSSYSAPPS/TemplatePublish/PSAPPDATAENTITIES/City.json"
},
"getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u5ee2086_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "百度"
}
}, {
"logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u1feafb4_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "表格界面_编辑操作"
}
}, {
"logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u4c6267d_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "表格界面_删除操作"
}
} ],
"getPSAppViewUIActions" : [ {
"name" : "百度",
"getPSUIAction" : {
"modelref" : true,
"id" : "openBaidu"
},
"uIActionTarget" : "SINGLEDATA",
"xDataControlName" : "grid"
}, {
"name" : "表格界面_编辑操作",
"getPSUIAction" : {
"modelref" : true,
"id" : "Edit"
},
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid"
}, {
"name" : "表格界面_删除操作",
"getPSUIAction" : {
"modelref" : true,
"id" : "Remove"
},
"uIActionTarget" : "MULTIKEY",
"xDataControlName" : "grid"
} ],
"getPSControlHandler" : {
"getPSHandlerActions" : [ {
"actionName" : "Get",
......@@ -542,6 +592,127 @@
"widthUnit" : "PX",
"enableRowEdit" : true,
"enableSort" : true
}, {
"align" : "RIGHT",
"caption" : "xxx",
"codeName" : "uagridcolumn1",
"columnType" : "UAGRIDCOLUMN",
"mOSFilePath" : "psdegridcols/uagridcolumn1",
"name" : "uagridcolumn1",
"noPrivDisplayMode" : 1,
"getPSDEUIActionGroup" : {
"name" : "界面行为组",
"getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "u5ee2086",
"getPSUIAction" : {
"actionTarget" : "SINGLEDATA",
"caption" : "百度",
"codeName" : "openBaidu",
"frontProcessType" : "OPENHTMLPAGE",
"fullCodeName" : "openBaidu",
"htmlPageUrl" : "https://www.baidu.com/",
"mOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/openBaidu",
"name" : "百度",
"rTMOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/openBaidu",
"timeout" : 60000,
"uIActionMode" : "FRONT",
"uIActionTag" : "openBaidu",
"uIActionType" : "DEUIACTION"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "u1feafb4",
"getPSUIAction" : {
"actionTarget" : "SINGLEKEY",
"getCapPSLanguageRes" : {
"defaultContent" : "编辑",
"lanResTag" : "TBB.TEXT.*.EDIT",
"lanResType" : "TBB.TEXT",
"mOSFilePath" : "pslanguageres/Auto253",
"name" : "工具栏按钮文本[*.EDIT]",
"rTMOSFilePath" : "pslanguageres/Auto253",
"refFlag" : true
},
"caption" : "编辑",
"codeName" : "Edit",
"fullCodeName" : "Edit",
"mOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/Edit",
"name" : "表格界面_编辑操作",
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
"cssClass" : "fa fa-edit"
},
"predefinedType" : "GRIDVIEW_EDITACTION",
"rTMOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/Edit",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
"defaultContent" : "编辑",
"lanResTag" : "TBB.TOOLTIP.*.EDIT",
"lanResType" : "TBB.TOOLTIP",
"mOSFilePath" : "pslanguageres/Auto130",
"name" : "工具栏按钮提示[*.EDIT]",
"rTMOSFilePath" : "pslanguageres/Auto130",
"refFlag" : true
},
"uIActionMode" : "SYS",
"uIActionTag" : "Edit",
"uIActionType" : "DEUIACTION"
},
"addSeparator" : true,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION",
"name" : "u4c6267d",
"getPSUIAction" : {
"actionTarget" : "MULTIKEY",
"getCapPSLanguageRes" : {
"defaultContent" : "删除",
"lanResTag" : "TBB.TEXT.*.REMOVE",
"lanResType" : "TBB.TEXT",
"mOSFilePath" : "pslanguageres/Auto159",
"name" : "工具栏按钮文本[*.REMOVE]",
"rTMOSFilePath" : "pslanguageres/Auto159",
"refFlag" : true
},
"caption" : "删除",
"codeName" : "Remove",
"fullCodeName" : "Remove",
"mOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/Remove",
"name" : "表格界面_删除操作",
"getPSSysImage" : {
"glyph" : "xf00d@FontAwesome",
"cssClass" : "fa fa-remove"
},
"predefinedType" : "GRIDVIEW_REMOVEACTION",
"rTMOSFilePath" : "pssysapps/TemplatePublish/pssysappdeuiactions/Remove",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
"defaultContent" : "删除",
"lanResTag" : "TBB.TOOLTIP.*.REMOVE",
"lanResType" : "TBB.TOOLTIP",
"mOSFilePath" : "pslanguageres/Auto286",
"name" : "工具栏按钮提示[*.REMOVE]",
"rTMOSFilePath" : "pslanguageres/Auto286",
"refFlag" : true
},
"uIActionMode" : "SYS",
"uIActionTag" : "Remove",
"uIActionType" : "DEUIACTION"
},
"addSeparator" : true,
"showCaption" : false,
"showIcon" : true
} ]
},
"rTMOSFilePath" : "psdegridcols/uagridcolumn1",
"width" : 100,
"widthUnit" : "PX",
"enableSort" : false
} ],
"getPSDEGridDataItems" : [ {
"dataType" : 25,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册