odin-tool-pc

1.1.6 • Public • Published

leaf6-odin-tool-pc

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

例子

<ep-tool-restore ref="restore" :formContent="formContent" :formData="formData" taskDefKey="WSSB_DWSB" :taskPath="taskPath" initScript="initJS" disabled show-all-task></ep-tool-restore>

API属性

属性名 说明 类型 可选值 默认值
form-content 表单所需json串,必填 object
form-data 表单初始数据 object
init-script 表单初始化脚本类型,initJS为执行内网脚本,initOutJS为执行外网脚本 string initJS/initOutJS initJS
disabled 表单是否全局禁用 boolean false
show-all-task 表单是否显示所有环节 boolean false
task-def-key 当前环节编码,show-all-task为true时不生效 string 可自定义,如WSSB_DWSB null
task-path 当前环节路径,show-all-task为true时不生效 string 可自定义,使用“,”分割WSSB_DWSB,WSSB_GRSB null

方法

方法名 说明 参数 例子
submit 表单提交,校验通过后返回表单中所有数据,如使用环节组件则仅返回环节为E的数据。(表单校验不通过返回null,各组件标红) let data = this.$refs['restore'].submit();

Readme

Keywords

none

Package Sidebar

Install

npm i odin-tool-pc

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

931 kB

Total Files

62

Last publish

Collaborators

  • fftnffts