Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
loujc2008
gin-vue-admin
提交
fc0c31d1
G
gin-vue-admin
项目概览
loujc2008
/
gin-vue-admin
与 Fork 源项目一致
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fc0c31d1
编写于
11月 27, 2019
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master'
上级
cafb2d4d
c9f842df
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
178 addition
and
2 deletion
+178
-2
QMPlusVuePage/src/api/workflow.js
QMPlusVuePage/src/api/workflow.js
+15
-0
QMPlusVuePage/src/view/example/excel/excel.vue
QMPlusVuePage/src/view/example/excel/excel.vue
+40
-2
QMPlusVuePage/src/view/workflow/workflow.vue
QMPlusVuePage/src/view/workflow/workflow.vue
+123
-0
未找到文件。
QMPlusVuePage/src/api/workflow.js
0 → 100644
浏览文件 @
fc0c31d1
import
service
from
'
@/utils/request
'
// @Summary 删除角色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body {authorityId uint} true "删除角色"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /authority/deleteAuthority [post]
export
const
createWorkFlow
=
(
data
)
=>
{
return
service
({
url
:
"
/workflow/createWorkFlow
"
,
method
:
'
post
'
,
data
})
}
\ No newline at end of file
QMPlusVuePage/src/view/example/excel/excel.vue
浏览文件 @
fc0c31d1
<
template
>
<div>
excel导入导出
<el-upload
class=
"upload-demo"
:headers=
"
{'x-token':token}"
action="/api/fileUploadAndDownload/upload"
:on-preview="handlePreview"
:on-remove="handleRemove"
:before-remove="beforeRemove"
multiple
:limit="10"
:on-exceed="handleExceed"
:file-list="fileList">
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
未对文件格式及大小做校验
</div>
</el-upload>
</el-upload>
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
'
vuex
'
export
default
{
name
:
'
Excel
'
name
:
'
Excel
'
,
data
()
{
return
{
fileList
:
[{
name
:
'
food.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
},
{
name
:
'
food2.jpeg
'
,
url
:
'
https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100
'
}]
};
},
computed
:
{
...
mapGetters
(
'
user
'
,
[
'
userInfo
'
,
'
token
'
])
},
methods
:
{
handleRemove
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
);
},
handlePreview
(
file
)
{
console
.
log
(
file
);
},
handleExceed
(
files
,
fileList
)
{
this
.
$message
.
warning
(
`当前限制选择 3 个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
files
.
length
+
fileList
.
length
}
个文件`
);
},
beforeRemove
(
file
,
fileList
)
{
return
this
.
$confirm
(
`确定移除
${
file
.
name
}
?`
);
}
}
}
</
script
>
\ No newline at end of file
QMPlusVuePage/src/view/workflow/workflow.vue
0 → 100644
浏览文件 @
fc0c31d1
<
template
>
<div>
<el-form
label-width=
"100px"
:model=
"form"
ref=
"form"
>
<el-form-item
label=
"工作流名称"
>
<el-input
type=
"text"
v-model=
"form.workflowNickName"
></el-input>
</el-form-item>
<el-form-item
label=
"工作流英文id"
>
<el-input
type=
"text"
v-model=
"form.workflowName"
></el-input>
</el-form-item>
<el-form-item
label=
"工作流描述"
>
<el-input
type=
"text"
v-model=
"form.workflowDescription"
></el-input>
</el-form-item>
</el-form>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"isEnd"
label=
"是否是完结流节点"
>
<template
scope=
"scope"
>
<el-select
v-model=
"scope.row.isEnd"
placeholder=
"请选择"
>
<el-option
v-for=
"item in options"
:label=
"item.name"
:value=
"item.value"
>
</el-option>
</el-select>
</
template
>
</el-table-column>
<el-table-column
prop=
"isStrat"
label=
"是否是开始流节点"
>
<
template
scope=
"scope"
>
<el-select
v-model=
"scope.row.isStrat"
placeholder=
"请选择"
>
<el-option
v-for=
"item in options"
:label=
"item.name"
:value=
"item.value"
>
</el-option>
</el-select>
</
template
>
</el-table-column>
<el-table-column
prop=
"stepAuthorityID"
label=
"操作者级别id"
>
<
template
scope=
"scope"
>
<el-input
type=
"text"
placeholder=
"请输入"
v-model=
"scope.row.stepAuthorityID"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"stepName"
label=
"工作流名称"
>
<
template
scope=
"scope"
>
<el-input
type=
"text"
placeholder=
"请输入"
v-model=
"scope.row.stepName"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"stepNo"
label=
"步骤id"
>
<
template
scope=
"scope"
>
<el-input
type=
"text"
placeholder=
"请输入"
v-model=
"scope.row.stepNo"
></el-input>
</
template
>
</el-table-column>
</el-table>
<el-button
type=
"primary"
@
click=
"submit"
>
提交
</el-button>
</div>
</template>
<
script
>
import
{
createWorkFlow
}
from
'
@/api/workflow
'
export
default
{
name
:
"
workflow
"
,
data
()
{
return
{
form
:
{
workflowName
:
''
,
workflowDescription
:
''
,
workflowNickName
:
''
},
tableData
:
[{
isEnd
:
''
,
isStrat
:
''
,
stepAuthorityID
:
''
,
stepName
:
''
,
stepNo
:
''
}],
options
:[
{
name
:
'
是
'
,
value
:
true
},
{
name
:
'
否
'
,
value
:
false
}
]
}
},
component
:
{},
methods
:
{
async
submit
()
{
let
params
=
{
"
workflowDescription
"
:
this
.
form
.
workflowDescription
,
"
workflowName
"
:
this
.
form
.
workflowName
,
"
workflowNickName
"
:
this
.
form
.
workflowNickName
,
"
workflowStep
"
:
[
{
"
isEnd
"
:
this
.
tableData
[
0
].
isEnd
,
"
isStrat
"
:
this
.
tableData
[
0
].
isStrat
,
"
stepAuthorityID
"
:
this
.
tableData
[
0
].
stepAuthorityID
,
"
stepName
"
:
this
.
tableData
[
0
].
stepName
,
"
stepNo
"
:
this
.
tableData
[
0
].
stepNo
}]
}
const
res
=
await
createWorkFlow
(
params
)
console
.
log
(
res
)
}
}
}
</
script
>
<
style
scoped
>
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录