Browse Source

完善流程抄送

master
yunuo970428 2 years ago
parent
commit
567fef1622
  1. 9
      anrui-system-ui/src/api/system/postManage/index.js
  2. 12
      anrui-system-ui/src/views/copyofprocess/liuchengchaosongAdd.vue
  3. 6
      anrui-system-ui/src/views/copyofprocess/liuchengchasongguanli.vue

9
anrui-system-ui/src/api/system/postManage/index.js

@ -76,3 +76,12 @@ export function selectList(data){
params: data
})
}
// 查询所有流程名称
export function selectFlowList(){
return request({
url: '/flowable/v1/flow/selectFlowList',
method: 'get'
})
}

12
anrui-system-ui/src/views/copyofprocess/liuchengchaosongAdd.vue

@ -23,7 +23,7 @@
<el-col :span="20">
<el-form-item prop="flowName">
<el-select v-model="formobj.flowName" placeholder="请选择" @change="changeFlow" filterable>
<el-option v-for="item in flow_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
<el-option v-for="item in flow_list" :key="item.key" :label="item.name" :value="item.name"></el-option>
</el-select>
</el-form-item>
</el-col>
@ -48,10 +48,10 @@
<script>
import { fetchSid, save, roleList } from '@/api/system/liuchengchaosong/liuchengchaosong'
import { pullDown } from '@/api/system/postManage/index'
import { selectFlowList } from '@/api/system/postManage/index'
export default {
name: 'liuchengchaosongAdd',
name: 'LiuChengChaoSongAdd',
data() {
return {
viewTitle: '',
@ -81,7 +81,7 @@ export default {
this.role_list = res.data
}
})
pullDown({ type: 'flow' }).then((res) => {
selectFlowList().then((res) => {
if (res.success) {
this.flow_list = res.data
}
@ -109,8 +109,8 @@ export default {
})
},
changeFlow(value) {
const choose = this.flow_list.filter((item) => item.dictValue === value)
this.formobj.flowKey = choose[0].dictKey
const choose = this.flow_list.filter((item) => item.name === value)
this.formobj.flowKey = choose[0].key
},
save() {
console.log(this.formobj)

6
anrui-system-ui/src/views/copyofprocess/liuchengchasongguanli.vue

@ -9,7 +9,7 @@
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="流程名称">
<el-select v-model="listQuery.params.flowName" placeholder="请选择" filterable>
<el-option v-for="item in flow_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"></el-option>
<el-option v-for="item in flow_list" :key="item.key" :label="item.name" :value="item.name"></el-option>
</el-select>
</el-form-item>
</el-form>
@ -57,7 +57,7 @@
<script>
import { pageList, delBySids } from '@/api/system/liuchengchaosong/liuchengchaosong'
import { pullDown } from '@/api/system/postManage/index'
import { selectFlowList } from '@/api/system/postManage/index'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
@ -121,7 +121,7 @@ export default {
},
methods: {
init() {
pullDown({ type: 'flow' }).then((res) => {
selectFlowList().then((res) => {
if (res.success) {
this.flow_list = res.data
}

Loading…
Cancel
Save