BUG 29169
This commit is contained in:
@@ -4,14 +4,9 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<el-select v-model="search.department" placeholder="请选择所属部门" @change="page.current=1,getList()"
|
<ai-select placeholder="请选择" v-model="search.department" action="/appfinancialorganization/nameList"
|
||||||
size="small" clearable>
|
:instance="instance" :prop="{label:'organizationName',value:'organizationName'}"
|
||||||
<el-option
|
@change="page.current=1,getList()"/>
|
||||||
v-for="(item,i) in dict.getDict('hbDepartment')" :key="i"
|
|
||||||
:label="item.dictName"
|
|
||||||
:value="item.dictValue">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
<el-select v-model="search.classificationId" placeholder="请选择所属分类" @change="page.current=1,getList()"
|
<el-select v-model="search.classificationId" placeholder="请选择所属分类" @change="page.current=1,getList()"
|
||||||
size="small" clearable>
|
size="small" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
@@ -34,7 +29,9 @@
|
|||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<el-button type="primary" icon="iconfont iconAdd" @click="goPage(tab.value==0 ? 'addConfig':'guidance')">添加{{tab.value==0?'事项':'办事指南'}}</el-button>
|
<el-button type="primary" icon="iconfont iconAdd" @click="goPage(tab.value==0 ? 'addConfig':'guidance')">
|
||||||
|
添加{{ tab.value == 0 ? '事项' : '办事指南' }}
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table
|
<ai-table
|
||||||
@@ -49,14 +46,16 @@
|
|||||||
<template v-slot="{row}">
|
<template v-slot="{row}">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="row.processDefStatus"
|
v-model="row.processDefStatus"
|
||||||
@change="onChange(row)" active-color="#5088FF" inactive-color="#D0D4DC" active-value="1" inactive-value="0">
|
@change="onChange(row)" active-color="#5088FF" inactive-color="#D0D4DC" active-value="1"
|
||||||
|
inactive-value="0">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" slot="options" align="center" width="150">
|
<el-table-column label="操作" slot="options" align="center" width="150">
|
||||||
<template v-slot="{row}">
|
<template v-slot="{row}">
|
||||||
<div class="table-options">
|
<div class="table-options">
|
||||||
<el-button type="text" title="编辑" @click="goPage(tab.value==0 ? 'addConfig':'guidance',row)">编辑</el-button>
|
<el-button type="text" title="编辑" @click="goPage(tab.value==0 ? 'addConfig':'guidance',row)">编辑
|
||||||
|
</el-button>
|
||||||
<el-button type="text" title="删除" @click="delInfo(row)">删除</el-button>
|
<el-button type="text" title="删除" @click="delInfo(row)">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -68,9 +67,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import day from 'dayjs'
|
import day from 'dayjs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "configList",
|
name: "configList",
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
@@ -104,7 +103,7 @@
|
|||||||
prop: 'department',
|
prop: 'department',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: '所属部门',
|
label: '所属部门',
|
||||||
render: (h, {row}) => [ < span > {this.dict.getLabel('hbDepartment', row.department)} < /span>]
|
render: (h, {row}) => [< span> {this.dict.getLabel('hbDepartment', row.department)} < /span>]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'classificationName',
|
prop: 'classificationName',
|
||||||
@@ -125,15 +124,14 @@
|
|||||||
prop: 'createTime',
|
prop: 'createTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
label: '最后修改时间',
|
label: '最后修改时间',
|
||||||
render: (h, {row}) => [ < span > {day(row.createTime
|
render: (h, {row}) => [< span> {day(row.createTime
|
||||||
).
|
).format("YYYY-MM-DD HH:mm")
|
||||||
format("YYYY-MM-DD HH:mm")
|
|
||||||
}<
|
}<
|
||||||
/span>]
|
/span>]
|
||||||
},
|
},
|
||||||
{slot: 'processDefStatus', align:'center', label:'是否启用',},
|
{slot: 'processDefStatus', align: 'center', label: '是否启用',},
|
||||||
{ slot: 'options',align:'center',label:'操作',},
|
{slot: 'options', align: 'center', label: '操作',},
|
||||||
].filter(e=>this.tab.value==0 ? true : (e.prop!="timeLimit"))
|
].filter(e => this.tab.value == 0 ? true : (e.prop != "timeLimit"))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -145,7 +143,7 @@
|
|||||||
*/
|
*/
|
||||||
getClassification() {
|
getClassification() {
|
||||||
this.instance.post(`/app/zwspapprovalclassification/list`, null, {
|
this.instance.post(`/app/zwspapprovalclassification/list`, null, {
|
||||||
params:{
|
params: {
|
||||||
current: 1,
|
current: 1,
|
||||||
status: 1,
|
status: 1,
|
||||||
size: 9999
|
size: 9999
|
||||||
@@ -202,11 +200,11 @@
|
|||||||
this.getList()
|
this.getList()
|
||||||
this.getClassification()
|
this.getClassification()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.config-list {
|
.config-list {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user