|
|
@ -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) |
|
|
|