经营主体 企业类型筛选 认证状态筛选

This commit is contained in:
shijingjing
2022-03-31 14:28:50 +08:00
parent 2785af1829
commit 725b1eea0c
4 changed files with 295 additions and 160 deletions

View File

@@ -7,7 +7,9 @@
<template #content> <template #content>
<ai-search-bar> <ai-search-bar>
<template slot="left"> <template slot="left">
<el-button type="primary" icon="iconfont iconAdd" @click="handleAdd">添加</el-button> <el-button type="primary" icon="iconfont iconAdd" @click="handleAdd"
>添加</el-button
>
</template> </template>
<template slot="right"> <template slot="right">
<el-input <el-input
@@ -16,9 +18,14 @@
size="small" size="small"
placeholder="请输入课程主题" placeholder="请输入课程主题"
clearable clearable
v-throttle="() => {search.current = 1, getList()}" v-throttle="
@clear="search.current=1, search.title = '', getList()" () => {
suffix-icon="iconfont iconSearch"> (search.current = 1), getList();
}
"
@clear="(search.current = 1), (search.title = ''), getList()"
suffix-icon="iconfont iconSearch"
>
</el-input> </el-input>
</template> </template>
</ai-search-bar> </ai-search-bar>
@@ -29,21 +36,50 @@
:total="total" :total="total"
:current.sync="page.current" :current.sync="page.current"
:size.sync="page.size" :size.sync="page.size"
style="margin-top: 10px;" style="margin-top: 10px"
@getList="getList"> @getList="getList"
<el-table-column slot="options" label="操作" align="center" width="230px" fixed="right"> >
<el-table-column
slot="options"
label="操作"
align="center"
width="230px"
fixed="right"
>
<div slot-scope="{ row }" class="table-options"> <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
<el-button type="text" title="添加" @click="handleAddSeries(row)">添加剧集</el-button> type="text"
<el-button type="text" title="详情" @click="handleDetail(row)">详情</el-button> :title="row.status == 0 ? '发布' : '取消发布'"
<el-button type="text" title="编辑" @click="handleEdit(row)">编辑</el-button> @click="handleChange(row)"
<el-button type="text" title="删除" @click="handleDelete(row)">删除</el-button> >{{ 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> </div>
</el-table-column> </el-table-column>
</ai-table> </ai-table>
</template> </template>
</ai-list> </ai-list>
<component :is="comp" v-else :row="row" :instance="instance" :dict="dict" :permissions="permissions" @back="back" :isEdit="isEdit"></component> <component
:is="comp"
v-else
:row="row"
:instance="instance"
:dict="dict"
:permissions="permissions"
@back="back"
:isEdit="isEdit"
></component>
</section> </section>
</template> </template>
@@ -59,7 +95,7 @@
props: { props: {
instance: Function, instance: Function,
dict: Object, dict: Object,
permissions: Function permissions: Function,
}, },
data() { data() {
return { return {
@@ -77,9 +113,9 @@
isEdit: false, isEdit: false,
page: { page: {
current: 1, current: 1,
size: 10 size: 10,
} },
} };
}, },
computed: { computed: {
...mapState(["user"]), ...mapState(["user"]),
@@ -88,32 +124,48 @@
{ label: "课程主题", prop: "title" }, { label: "课程主题", prop: "title" },
{ {
label: "更新状态", label: "更新状态",
render: (h, {row}) => [ < span > {this.dict.getLabel('classroomUpdateStatus', row.updateStatus)} < /span>] render: (h, { row }) => [
<span>
{" "}
{this.dict.getLabel(
"classroomUpdateStatus",
row.updateStatus
)}{" "}
</span>,
],
}, },
{ label: "更新时间", prop: "updateDate" }, { label: "更新时间", prop: "updateDate" },
{ label: "发布时间", prop: "createDate" }, { label: "发布时间", prop: "createDate" },
{ {
label: "发布状态", label: "发布状态",
render: (h, {row}) => [ < span > {this.dict.getLabel('newsCenterStatus', row.status)} < /span>] render: (h, { row }) => [
<span> {this.dict.getLabel("newsCenterStatus", row.status)} </span>,
],
}, },
{ label: "发布组织", prop: "organizationName" }, { label: "发布组织", prop: "organizationName" },
{slot: "options"} { slot: "options" },
]; ];
} },
}, },
methods: { methods: {
handleChange(row) { handleChange(row) {
this.$confirm(`是否确定要${row.status==0?'发布':'取消发布'}?`).then(_ => { this.$confirm(`是否确定要${row.status == 0 ? "发布" : "取消发布"}?`).then(
this.instance.post("/app/apppartyclassroom/addOrUpdate", { (_) => {
this.instance
.post("/app/apppartyclassroom/addOrUpdate", {
id: row.id, id: row.id,
status: row.status == 0 ? 1 : 0 status: row.status == 0 ? 1 : 0,
}).then(res=>{ })
.then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success(`${row.status == 0?'发布成功':'取消发布成功'}`); this.$message.success(
`${row.status == 0 ? "发布成功" : "取消发布成功"}`
);
this.getList(); this.getList();
} }
}) });
}) }
);
}, },
handleAddSeries(row) { handleAddSeries(row) {
this.showList = false; this.showList = false;
@@ -121,18 +173,20 @@
this.row = row; this.row = row;
}, },
handleDelete({ id }) { handleDelete({ id }) {
this.$confirm("确定要删除吗?").then(_=>{ this.$confirm("确定要删除吗?").then((_) => {
this.instance.post("/app/apppartyclassroom/delete", null, { this.instance
.post("/app/apppartyclassroom/delete", null, {
params: { params: {
ids:id ids: id,
} },
}).then(res => { })
.then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.getList(); this.getList();
} }
}) });
}) });
}, },
handleEdit(row) { handleEdit(row) {
this.showList = false; this.showList = false;
@@ -147,7 +201,7 @@
this.row = row; this.row = row;
}, },
changeParty(e) { changeParty(e) {
if (!e.length) return if (!e.length) return;
this.organizationName = e[0]?.name; this.organizationName = e[0]?.name;
this.resetSearch(); this.resetSearch();
}, },
@@ -164,7 +218,7 @@
this.showList = true; this.showList = true;
this.isEdit = false; this.isEdit = false;
this.getList() this.getList();
}, },
handleAdd() { handleAdd() {
this.comp = "partyClassAdd"; this.comp = "partyClassAdd";
@@ -173,27 +227,29 @@
this.row = {}; this.row = {};
}, },
getList() { getList() {
this.instance.post("/app/apppartyclassroom/list", null, { this.instance
.post("/app/apppartyclassroom/list", null, {
params: { params: {
...this.page, ...this.page,
...this.search, ...this.search,
} },
}).then(res => { })
.then((res) => {
if (res?.data) { if (res?.data) {
this.tableData = res.data.records; this.tableData = res.data.records;
this.total = res.data.total; this.total = res.data.total;
} }
}) });
} },
}, },
created() { created() {
this.topOrgId = this.user.info?.organizationId; this.topOrgId = this.user.info?.organizationId;
this.organizationId = this.user.info?.organizationId; this.organizationId = this.user.info?.organizationId;
this.organizationName = this.user.info?.organizationName; this.organizationName = this.user.info?.organizationName;
this.dict.load("classroomUpdateStatus",'newsCenterStatus'); this.dict.load("classroomUpdateStatus", "newsCenterStatus");
this.getList(); this.getList();
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@@ -0,0 +1,36 @@
<template>
<div class="AppPropertyAdministration">
<AppPropertyAdministration
slot="content"
:instance="instance"
:dict="dict"
:permissions="permissions">
</AppPropertyAdministration>
</div>
</template>
<script>
import AppPropertyAdministration from './components/AppPropertyAdministration.vue'
export default {
name: "AppPropertyAdministration",
label: "产权管理",
components: {
AppPropertyAdministration,
},
props: {
instance: Function,
dict: Object,
permissions: Function
},
data() {
return {}
},
methods: {},
}
</script>
<style lang="scss" scoped>
.AppPropertyAdministration {
height: 100%;
}
</style>

View File

@@ -0,0 +1,29 @@
<template>
<ai-list class="loansAudit">
<template slot="title">
<ai-title title="产权管理" isShowBottomBorder :isShowBottomBorder="true" :isShowArea="true" v-model="areaId"></ai-title>
</template>
<template slot="content">
</template>
</ai-list>
</template>
<script>
export default {
name: "loansAudit",
props: {
instance: Function,
dict: Object
},
data() {
return {
}
},
methods: {}
}
</script>
<style lang="scss" scoped>
.loansAudit {}
</style>

View File

@@ -5,6 +5,10 @@
@change="page.current=1,getTableData()"/> @change="page.current=1,getTableData()"/>
<template #content> <template #content>
<ai-search-bar> <ai-search-bar>
<template #left>
<ai-select v-model="select.enterpriseType" @change="typeChange" placeholder="企业类型" :selectList="$dict.getDict('enterpriseType')"></ai-select>
<ai-select v-model="select.enterpriseStatus" @change="statusChange" placeholder="认证状态" :selectList="$dict.getDict('userEnterpriseStatus')"></ai-select>
</template>
<template #right> <template #right>
<el-input size="small" placeholder="搜索企业名称、法人姓名、登录账号" v-model="search.enterpriseName" clearable <el-input size="small" placeholder="搜索企业名称、法人姓名、登录账号" v-model="search.enterpriseName" clearable
@change="page.current=1,getTableData()"/> @change="page.current=1,getTableData()"/>
@@ -40,23 +44,24 @@ export default {
return { return {
search: {name: ""}, search: {name: ""},
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
select: {enterpriseType: '', enterpriseStatus: ''},
tableData: [], tableData: [],
colConfigs: [ colConfigs: [
{label: "企业名称", prop: "enterpriseName"}, {label: "企业名称", prop: "enterpriseName"},
{label: "企业类型", prop: "enterpriseType", dict: "enterpriseType"}, {label: "企业类型", prop: "enterpriseType", dict: "enterpriseType"},
{label: "所属区", prop: "areaName"}, {label: "所属区", prop: "areaName"},
{label: "法人姓名", prop: "legalPersonName"}, {label: "法人姓名", prop: "legalPersonName"},
{label: "联系方式", prop: "phone"}, {label: "联系方式", prop: "phone"},
{label: "创建时间", prop: "createTime"}, {label: "创建时间", prop: "createTime"},
{label: "登录账号", prop: "loginAccount"}, {label: "登录账号", prop: "loginAccount"},
{slot: "options"} {slot: "options"},
] ]
} }
}, },
methods: { methods: {
getTableData() { getTableData() {
this.instance.post("/appportaluserenterprise/list", null, { this.instance.post("/appportaluserenterprise/list", null, {
params: {...this.page, ...this.search, status: 1} params: {...this.page, ...this.search, status: 1,...this.select}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.tableData = res.data?.records this.tableData = res.data?.records
@@ -66,9 +71,18 @@ export default {
}, },
showDetail(id) { showDetail(id) {
this.$router.push({query: {id}}) this.$router.push({query: {id}})
},
typeChange(v) {
this.select.enterpriseType = v
this.getTableData()
},
statusChange(v) {
this.select.enterpriseStatus = v
this.getTableData()
} }
}, },
created() { created() {
this.dict.load('userEnterpriseStatus')
this.getTableData() this.getTableData()
this.search.areaId = this.user.info.areaId this.search.areaId = this.user.info.areaId
} }