25845
This commit is contained in:
		| @@ -10,9 +10,16 @@ | ||||
|             <el-button type="primary" icon="iconfont iconAdd" @click="handleAdd">添加</el-button> | ||||
|           </template> | ||||
|           <template slot="right"> | ||||
|             <el-input placeholder="课程主题" v-model="search.title" size="small" suffix-icon="iconfont iconSearch"></el-input> | ||||
|             <el-button type="primary" icon="iconfont iconSearch" size="small" @click="page.current=1,getList()">查询</el-button> | ||||
|             <el-button icon="el-icon-refresh-right" size="small" @click="page.current=1,search={},getList()">重置</el-button> | ||||
|             <el-input | ||||
|               v-model="search.title" | ||||
|               class="search-input" | ||||
|               size="small" | ||||
|               @keyup.enter.native="search.title = 1, search.title, getList()" | ||||
|               placeholder="请输入课程主题" | ||||
|               clearable | ||||
|               @clear="search.current = 1, search.title = '', getList()" | ||||
|               suffix-icon="iconfont iconSearch"> | ||||
|             </el-input> | ||||
|           </template> | ||||
|         </ai-search-bar> | ||||
|         <ai-table | ||||
| @@ -24,25 +31,19 @@ | ||||
|           :size.sync="page.size" | ||||
|           style="margin-top: 10px;" | ||||
|           @getList="getList"> | ||||
|           <el-table-column slot="options" label="操作" align="center"> | ||||
|             <div slot-scope="{row}"> | ||||
|               <el-button type="text" icon="iconfont iconChange" :title="row.status==0?'发布':'取消发布'" | ||||
|                          @click="handleChange(row)"/> | ||||
|               <el-button type="text" icon="iconfont iconAdd" title="添加" | ||||
|                          @click="handleAddSeries(row)"/> | ||||
|               <el-button type="text" icon="iconfont iconShow" title="详情" | ||||
|                          @click="handleDetail(row)"/> | ||||
|               <el-button type="text" icon="iconfont iconEdit" title="编辑" | ||||
|                          @click="handleEdit(row)"/> | ||||
|               <el-button type="text" icon="iconfont iconDelete" title="删除" | ||||
|                          @click="handleDelete(row)"/> | ||||
|           <el-table-column slot="options" label="操作" align="center" width="230px" fixed="right"> | ||||
|             <div slot-scope="{row}" class="table-options"> | ||||
|               <el-button type="text" :title="row.status == 0 ? '发布' : '取消发布'" @click="handleChange(row)">{{ row.status == 0 ? '发布' : '取消发布' }}</el-button> | ||||
|               <el-button type="text" title="添加" @click="handleAddSeries(row)">添加</el-button> | ||||
|               <el-button type="text" title="详情" @click="handleDetail(row)">详情</el-button> | ||||
|               <el-button type="text" title="编辑" @click="handleEdit(row)">编辑</el-button> | ||||
|               <el-button type="text" title="删除" @click="handleDelete(row)">删除</el-button> | ||||
|             </div> | ||||
|           </el-table-column> | ||||
|         </ai-table> | ||||
|       </template> | ||||
|     </ai-list> | ||||
|     <component :is="comp" v-else :row="row" :instance="instance" :dict="dict" :permissions="permissions" @back="back" | ||||
|                :isEdit="isEdit" :organizationId="organizationId" :organizationName="organizationName"></component> | ||||
|     <component :is="comp" v-else :row="row" :instance="instance" :dict="dict" :permissions="permissions" @back="back" :isEdit="isEdit"></component> | ||||
|   </section> | ||||
| </template> | ||||
|  | ||||
| @@ -53,7 +54,7 @@ | ||||
|  | ||||
|   export default { | ||||
|     name: "AppPartyHistoryClass", | ||||
|     label: "党史课堂", | ||||
|     label: "党员学习", | ||||
|     components: {partyClassAdd, seriesManage}, | ||||
|     props: { | ||||
|       instance: Function, | ||||
| @@ -162,6 +163,8 @@ | ||||
|           this.comp = ""; | ||||
|           this.showList = true; | ||||
|           this.isEdit = false; | ||||
|  | ||||
|           this.getList() | ||||
|         }, | ||||
|         handleAdd() { | ||||
|           this.comp = "partyClassAdd"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user