Options
All
  • Public
  • Public/Protected
  • All
Menu

HY设计器类

Hierarchy

  • Designer

Index

Constructors

constructor

  • Returns Designer

Properties

$elemt

$elemt: JQuery<HTMLElement>

渲染的根节点

Private _changeed

_changeed: boolean = false

compnentRender

compnentRender: DesignerCmpRender

config

config: { Aes: { iv: string; key: string }; ChartBase: { getChinaProvinceJs: (province?: string) => string; getEcharBmapJs: () => string; getEcharChinaJs: () => string; getEcharJs: () => string }; CodeEditor: { defalutEditor: string; getLoadJsUrl: () => string; getMainJsUrl: () => string; getTypesFile: () => string }; DataSource: { checkdaoUrl: string; coreDatasourcePostUrl: string; coreDatasourceQueryUrl: string; coremodeldesignQuery: string; daoIcon: string; dataSourceIcon: string; jsonReader: { idField: string; msgProperty: string; root: string; successProperty: string; totalProperty: string }; loadTableModelColumnUrl: string; loadTableModelUrl: string; pageIcon: string; queryFormulaDescUrl: string; querySqlFieldsUrl: string }; DesignerPageBase: { getPageJsonByCodeUrl: string; getPageJsonByIdUrl: string; previewId: string; previewUrl: string; processModelUrl: string; saveUrl: string }; Formula: { checkFormulaUrl: string; coremodeldesignCheckSqlUrl: string; formulaImageUrl: string; formulatypeImageUrl: string; queryFormulaDescExUrl: string; queryFormulaSqlHitUrl: string; variablesImageUrl: string }; FunctionQuote: { corefunctionQueryUrl: string }; Gantt: { getCssUrl: () => string; getJsUrl: () => string }; HandsonTable: { getCssUrl: () => string; getJsUrl: () => string; getLangUrl: () => string }; Help: { HelpUrl: string }; ImgLabel: { getErrorImageLoadUrl: () => string }; Language: { getJsUrls: () => string[] }; Markdown: { getExtUrl: () => string; getJsUrl: () => string }; Notice: { Message: { alert: (text: string) => number; error: (errorTxt: string, ishtml?: boolean) => number; info: (text: string) => number; success: (text: string) => number }; MessageBox: { prompt: (text: string, okCallBack: ConfirmCallBackHandle, title?: string, cancelCallBack?: ConfirmCallBackHandle) => number; success: (text: string) => number }; Notification: { alert: (text: string) => number; error: (errorTxt: string, ishtml?: boolean) => number; info: (text: string) => number; success: (text: string) => number }; loading: () => number }; OBJCODE: string; OBJNAME: string; Print: { getReprtDataUrl: string; getReprtDataUrlEx: string }; RWID: string; SM2: { cipherMode: number; privateKey: string; publickey: string }; SYS_PARENTID: string; Table: { commonTempleteUrl: string; exportMaxCount: number; exportUrl: string; menudIcon: string; reponse: { countName: string; dataName: string; msgName: string; statusCode: number; statusName: string }; request: { limitName: string; pageName: string }; userDataModifyUrl: string; userDataQueryUrl: string }; UploadCmp: { coremodelshowUploadUrl: string }; UserService: { queryCurUserInfo: string }; WangEditor: { getJsUrl: () => string }; WeChatTools: { getQueryorgtreelistbyparentid: string }; Workflow: { ATTACHMENT: string; AUDIT_MEMO: string; AUDN_AME: string; AUDN_FLAG: string; AUTO_COMPLETE_FIRST: string; CONFIG_PROCESS: string; START_PROCESS: string; SYS_AUDFLAG: string; SYS_PID: string; YWTB: string; doListUrl: string; findliucUrl: string; getFormDataUrl: string; processImageUrl: string; processImagebyMenuIdUrl: string; querybyjson: string; readCopyUrl: string; startProcessbyMenuId: string; startProcessbyProcessKey: string; updateOrocessUrl: string }; YHVideo: { getBackGroundImageUrl: () => string; getCkplayerJs: () => string }; date: { DEFALUT_FORMAT: { date: string; datetime: string; month: string; time: string; year: string } }; fontsAwesomeIcon: () => string; imageDir: () => string; page: { EDIT_STATE: string }; rootDir: string; supperAttrHelp: boolean; supperFormula: boolean; supperRight: boolean; supperSqlDataSource: boolean } = ...

配置项

Type declaration

  • Aes: { iv: string; key: string }
    • iv: string
    • key: string
  • ChartBase: { getChinaProvinceJs: (province?: string) => string; getEcharBmapJs: () => string; getEcharChinaJs: () => string; getEcharJs: () => string }
    • getChinaProvinceJs: (province?: string) => string
        • (province?: string): string
        • 获取各个省份地图

          Parameters

          • province: string = 'china'

            省份的拼音全拼字母 注意这两: 山西:shanxi 陕西:shanxi1

          Returns string

    • getEcharBmapJs: () => string
        • (): string
        • 扩展地图的库

          Returns string

    • getEcharChinaJs: () => string
        • (): string
        • 中国地图

          Returns string

    • getEcharJs: () => string
        • (): string
        • echarts

          Returns string

  • CodeEditor: { defalutEditor: string; getLoadJsUrl: () => string; getMainJsUrl: () => string; getTypesFile: () => string }
    • defalutEditor: string
    • getLoadJsUrl: () => string
        • (): string
        • 编辑器的加载器loader.js的加载地址

          Returns string

    • getMainJsUrl: () => string
        • (): string
        • 编辑器的main.js的加载地址

          Returns string

    • getTypesFile: () => string
        • (): string
        • 代码编辑器的类型描述文件

          Returns string

  • DataSource: { checkdaoUrl: string; coreDatasourcePostUrl: string; coreDatasourceQueryUrl: string; coremodeldesignQuery: string; daoIcon: string; dataSourceIcon: string; jsonReader: { idField: string; msgProperty: string; root: string; successProperty: string; totalProperty: string }; loadTableModelColumnUrl: string; loadTableModelUrl: string; pageIcon: string; queryFormulaDescUrl: string; querySqlFieldsUrl: string }
    • checkdaoUrl: string
    • coreDatasourcePostUrl: string
    • coreDatasourceQueryUrl: string
    • coremodeldesignQuery: string
    • daoIcon: string
    • dataSourceIcon: string
    • jsonReader: { idField: string; msgProperty: string; root: string; successProperty: string; totalProperty: string }
      • idField: string
      • msgProperty: string
      • root: string
      • successProperty: string
      • totalProperty: string
    • loadTableModelColumnUrl: string
    • loadTableModelUrl: string
    • pageIcon: string
    • queryFormulaDescUrl: string
    • querySqlFieldsUrl: string
  • DesignerPageBase: { getPageJsonByCodeUrl: string; getPageJsonByIdUrl: string; previewId: string; previewUrl: string; processModelUrl: string; saveUrl: string }
    • getPageJsonByCodeUrl: string
    • getPageJsonByIdUrl: string
    • previewId: string
    • previewUrl: string
    • processModelUrl: string
    • saveUrl: string
  • Formula: { checkFormulaUrl: string; coremodeldesignCheckSqlUrl: string; formulaImageUrl: string; formulatypeImageUrl: string; queryFormulaDescExUrl: string; queryFormulaSqlHitUrl: string; variablesImageUrl: string }
    • checkFormulaUrl: string
    • coremodeldesignCheckSqlUrl: string
    • formulaImageUrl: string
    • formulatypeImageUrl: string
    • queryFormulaDescExUrl: string
    • queryFormulaSqlHitUrl: string
    • variablesImageUrl: string
  • FunctionQuote: { corefunctionQueryUrl: string }
    • corefunctionQueryUrl: string
  • Gantt: { getCssUrl: () => string; getJsUrl: () => string }
    • getCssUrl: () => string
        • (): string
        • css路径

          Returns string

    • getJsUrl: () => string
        • (): string
        • js路径

          Returns string

  • HandsonTable: { getCssUrl: () => string; getJsUrl: () => string; getLangUrl: () => string }
    • getCssUrl: () => string
        • (): string
        • Returns string

    • getJsUrl: () => string
        • (): string
        • Returns string

    • getLangUrl: () => string
        • (): string
        • Returns string

  • Help: { HelpUrl: string }
    • HelpUrl: string
  • ImgLabel: { getErrorImageLoadUrl: () => string }
    • getErrorImageLoadUrl: () => string
        • (): string
        • 错误的图片路径

          Returns string

  • Language: { getJsUrls: () => string[] }
    • getJsUrls: () => string[]
        • (): string[]
        • Returns string[]

  • Markdown: { getExtUrl: () => string; getJsUrl: () => string }
    • getExtUrl: () => string
        • (): string
        • showdown-twitter.js 路径

          Returns string

    • getJsUrl: () => string
        • (): string
        • js路径

          Returns string

  • Notice: { Message: { alert: (text: string) => number; error: (errorTxt: string, ishtml?: boolean) => number; info: (text: string) => number; success: (text: string) => number }; MessageBox: { prompt: (text: string, okCallBack: ConfirmCallBackHandle, title?: string, cancelCallBack?: ConfirmCallBackHandle) => number; success: (text: string) => number }; Notification: { alert: (text: string) => number; error: (errorTxt: string, ishtml?: boolean) => number; info: (text: string) => number; success: (text: string) => number }; loading: () => number }
    • Message: { alert: (text: string) => number; error: (errorTxt: string, ishtml?: boolean) => number; info: (text: string) => number; success: (text: string) => number }
      • alert: (text: string) => number
          • (text: string): number
          • 弹出警告弹出提示框

            Parameters

            • text: string

              警告信息

            Returns number

            返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).

      • error: (errorTxt: string, ishtml?: boolean) => number
          • (errorTxt: string, ishtml?: boolean): number
          • 弹出错误提示信息框.

            Parameters

            • errorTxt: string

              提示的信息

            • ishtml: boolean = false

              默认值 false 是否显示html的元素.否则会被_.escape 格式化后再显示

            Returns number

            返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).

      • info: (text: string) => number
          • (text: string): number
          • 警告弹出提示框

            Form.msg("您好!")
            

            Parameters

            • text: string

              警告信息

            Returns number

            返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).

      • success: (text: string) => number
          • (text: string): number
          • 弹出成功msg提示框

            Parameters

            • text: string

              提示信息

            Returns number

            返回弹出层的唯一index

    • MessageBox: { prompt: (text: string, okCallBack: ConfirmCallBackHandle, title?: string, cancelCallBack?: ConfirmCallBackHandle) => number; success: (text: string) => number }
      • prompt: (text: string, okCallBack: ConfirmCallBackHandle, title?: string, cancelCallBack?: ConfirmCallBackHandle) => number
          • 弹出[确定/取消]的模式对话框

            Parameters

            • text: string

              提示信息

            • okCallBack: ConfirmCallBackHandle

              确定后回调函数 返回false是不关闭窗口,否则都关闭

            • title: string = '询问'

              提示框的标题

            • Optional cancelCallBack: ConfirmCallBackHandle

              取消关闭标题

            Returns number

            返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).

      • success: (text: string) => number
          • (text: string): number
          • 弹出成功msg提示框

            Parameters

            • text: string

              提示信息

            Returns number

            返回弹出层的唯一index

    • Notification: { alert: (text: string) => number; error: (errorTxt: string, ishtml?: boolean) => number; info: (text: string) => number; success: (text: string) => number }
      • alert: (text: string) => number
          • (text: string): number
          • 弹出警告弹出提示框

            Parameters

            • text: string

              警告信息

            Returns number

            返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).

      • error: (errorTxt: string, ishtml?: boolean) => number
          • (errorTxt: string, ishtml?: boolean): number
          • 弹出错误提示信息框.

            Parameters

            • errorTxt: string

              提示的信息

            • ishtml: boolean = false

              默认值 false 是否显示html的元素.否则会被_.escape 格式化后再显示

            Returns number

            返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).

      • info: (text: string) => number
          • (text: string): number
          • 警告弹出提示框

            Form.msg("您好!")
            

            Parameters

            • text: string

              警告信息

            Returns number

            返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).

      • success: (text: string) => number
          • (text: string): number
          • 弹出成功msg提示框

            Parameters

            • text: string

              提示信息

            Returns number

            返回弹出层的唯一index

    • loading: () => number
        • (): number
        • 显示正在加载

          Returns number

          返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).

          let handle=Common.loading()
          //隐藏
          Common.closeForm(handle)
          
  • OBJCODE: string
  • OBJNAME: string
  • Print: { getReprtDataUrl: string; getReprtDataUrlEx: string }
    • getReprtDataUrl: string
    • getReprtDataUrlEx: string
  • RWID: string
  • SM2: { cipherMode: number; privateKey: string; publickey: string }
    • cipherMode: number
    • privateKey: string
    • publickey: string
  • SYS_PARENTID: string
  • Table: { commonTempleteUrl: string; exportMaxCount: number; exportUrl: string; menudIcon: string; reponse: { countName: string; dataName: string; msgName: string; statusCode: number; statusName: string }; request: { limitName: string; pageName: string }; userDataModifyUrl: string; userDataQueryUrl: string }
    • commonTempleteUrl: string
    • exportMaxCount: number
    • exportUrl: string
    • menudIcon: string
    • reponse: { countName: string; dataName: string; msgName: string; statusCode: number; statusName: string }
      • countName: string
      • dataName: string
      • msgName: string
      • statusCode: number
      • statusName: string
    • request: { limitName: string; pageName: string }
      • limitName: string
      • pageName: string
    • userDataModifyUrl: string
    • userDataQueryUrl: string
  • UploadCmp: { coremodelshowUploadUrl: string }
    • coremodelshowUploadUrl: string
  • UserService: { queryCurUserInfo: string }
    • queryCurUserInfo: string
  • WangEditor: { getJsUrl: () => string }
    • getJsUrl: () => string
        • (): string
        • js路径

          Returns string

  • WeChatTools: { getQueryorgtreelistbyparentid: string }
    • getQueryorgtreelistbyparentid: string
  • Workflow: { ATTACHMENT: string; AUDIT_MEMO: string; AUDN_AME: string; AUDN_FLAG: string; AUTO_COMPLETE_FIRST: string; CONFIG_PROCESS: string; START_PROCESS: string; SYS_AUDFLAG: string; SYS_PID: string; YWTB: string; doListUrl: string; findliucUrl: string; getFormDataUrl: string; processImageUrl: string; processImagebyMenuIdUrl: string; querybyjson: string; readCopyUrl: string; startProcessbyMenuId: string; startProcessbyProcessKey: string; updateOrocessUrl: string }
    • ATTACHMENT: string
    • AUDIT_MEMO: string
    • AUDN_AME: string
    • AUDN_FLAG: string
    • AUTO_COMPLETE_FIRST: string
    • CONFIG_PROCESS: string
    • START_PROCESS: string
    • SYS_AUDFLAG: string
    • SYS_PID: string
    • YWTB: string
    • doListUrl: string
    • findliucUrl: string
    • getFormDataUrl: string
    • processImageUrl: string
    • processImagebyMenuIdUrl: string
    • querybyjson: string
    • readCopyUrl: string
    • startProcessbyMenuId: string
    • startProcessbyProcessKey: string
    • updateOrocessUrl: string
  • YHVideo: { getBackGroundImageUrl: () => string; getCkplayerJs: () => string }
    • getBackGroundImageUrl: () => string
        • (): string
        • 背景图

          Returns string

    • getCkplayerJs: () => string
        • (): string
        • ck播放器的js路径

          Returns string

  • date: { DEFALUT_FORMAT: { date: string; datetime: string; month: string; time: string; year: string } }
    • DEFALUT_FORMAT: { date: string; datetime: string; month: string; time: string; year: string }
      • date: string
      • datetime: string
      • month: string
      • time: string
      • year: string
  • fontsAwesomeIcon: () => string
      • (): string
      • fontsAwesomeIcon 的描述路径

        Returns string

  • imageDir: () => string
      • (): string
      • 图片的目录

        Returns string

  • page: { EDIT_STATE: string }
    • EDIT_STATE: string
  • rootDir: string
  • supperAttrHelp: boolean
  • supperFormula: boolean
  • supperRight: boolean
  • supperSqlDataSource: boolean

Protected css

css: DesignerStyle

id

id: string

设计器的唯一id

json

json: string

页面json

version

version: "3.0.0"

Methods

Protected checkIE

  • checkIE(): void
  • 判断是否是ie一下的浏览器

    Returns void

Protected clear

  • clear(): void
  • 清空

    Returns void

Protected doCloseing

  • doCloseing(): boolean
  • Returns boolean

Protected doRender

  • doRender(): void
  • Returns void

Protected getHtml

  • getHtml(): string
  • 得到主要的主框架

    Returns string

getModelId

  • getModelId(): string
  • 得到页面模型ID 这个值只有在数据库保存有页面模型才有值,否则会出现错误

    Returns string

    返回页面模型的唯一id

getPage

  • 获取设计器的当前设计页面实例

    Returns DesignerPageBase

    返回页面实例

hasChanged

  • hasChanged(): boolean
  • 设计模式下 判断是否有修改过模型

    Returns boolean

    返回是否存修改的数据

Protected initCavnas

  • initCavnas(): void
  • 初始化画布

    Returns void

Private initCss

  • initCss(): void
  • 初始化设计器的样式

    Returns void

Protected initLayout

  • initLayout(): void
  • 初始化布局

    Returns void

Private initMessage

  • initMessage(): void
  • 初始化消息处理

    Returns void

Protected initToobarDragEvent

  • initToobarDragEvent(): void
  • 初始化工具栏的组件拖拽事件

    Returns void

Protected initToolBar

  • initToolBar(): void
  • 初始化加载注册的组件到 左侧的toolBar

    Returns void

initVersionManager

  • initVersionManager(): void
  • 初始化版本管理

    Returns void

render

  • render(elemtId: string, json?: Object): void
  • 渲染设计器 这个函数常用于在后台数据库获取页面模型的json 后渲染使用

    Parameters

    • elemtId: string

      容器的html id

    • Optional json: Object

      json对象

    Returns void

save

  • save(auto: boolean): void
  • 保存

    Parameters

    • auto: boolean

      自动保存 无须填写版本备注

    Returns void

setCanEdit

  • setCanEdit(canEdit: boolean): void
  • Parameters

    • canEdit: boolean

    Returns void

Generated using TypeDoc