25840
This commit is contained in:
@@ -2,23 +2,13 @@
|
||||
<section class="AppFoundingHundred">
|
||||
<ai-list v-if="showList">
|
||||
<template #title>
|
||||
<ai-title title="党史题库" isShowBottomBorder>
|
||||
<template #rightBtn>
|
||||
<ai-party :instance="instance" v-model="organizationId" :topOrgId="topOrgId" size="small"
|
||||
@origin="changeParty"/>
|
||||
</template>
|
||||
</ai-title>
|
||||
<ai-title title="党史题库" isShowBottomBorder></ai-title>
|
||||
</template>
|
||||
<template #content>
|
||||
<ai-search-bar>
|
||||
<template slot="left">
|
||||
<el-button type="primary" icon="iconfont iconAdd" @click="handleAdd">添加</el-button>
|
||||
</template>
|
||||
<!-- <template slot="right">-->
|
||||
<!-- <el-input placeholder="标题" size="small" suffix-icon="iconfont iconSearch"></el-input>-->
|
||||
<!-- <el-button type="primary" icon="iconfont iconSearch" size="small">查询</el-button>-->
|
||||
<!-- <el-button icon="el-icon-refresh-right" size="small">重置</el-button>-->
|
||||
<!-- </template>-->
|
||||
</ai-search-bar>
|
||||
<ai-table
|
||||
:tableData="tableData"
|
||||
@@ -29,23 +19,20 @@
|
||||
: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==1?'取消发布':'发布'"-->
|
||||
<!-- @click="handleUpdateCountYardstatus(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="220px" fixed="right">
|
||||
<template slot-scope="{row}">
|
||||
<div class="table-options">
|
||||
<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>
|
||||
</template>
|
||||
</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>
|
||||
:isEdit="isEdit"></component>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -71,11 +58,8 @@ export default {
|
||||
showList: true,
|
||||
search: {},
|
||||
isEdit: false,
|
||||
topOrgId: "",
|
||||
partyList: [],
|
||||
treeData: [],
|
||||
organizationId: "",
|
||||
organizationName: "",
|
||||
page: {
|
||||
current: 1,
|
||||
size: 10
|
||||
@@ -173,10 +157,6 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.topOrgId = this.user.info.organizationId;
|
||||
this.searchSysAll(this.user.info.organizationId);
|
||||
this.organizationId = this.user.info.organizationId;
|
||||
this.organizationName = this.user.info.organizationName;
|
||||
this.getList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,9 +75,7 @@
|
||||
dict: Object,
|
||||
permissions: Function,
|
||||
row: Object,
|
||||
isEdit: Boolean,
|
||||
organizationId: String,
|
||||
organizationName: String,
|
||||
isEdit: Boolean
|
||||
},
|
||||
computed: {
|
||||
detailTitle() {
|
||||
@@ -87,8 +85,6 @@
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
organizationId: '',
|
||||
organizationName: '',
|
||||
title: '',
|
||||
type: '1',
|
||||
analysis: '',
|
||||
@@ -185,8 +181,6 @@
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.form.organizationId = this.organizationId;
|
||||
this.form.organizationName = this.organizationName;
|
||||
this.dict.load('partyHistoryType0', 'partyPublicCommentStatus')
|
||||
this.checkDetaiList(this.row?.id);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user