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