xuhongjie
parent
17082e1bf3
commit
b1589f3013
@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div>全流程监管</div>
|
||||
</template>
|
@ -0,0 +1,215 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 政务端页面 -->
|
||||
<!-- 表单查询项 -->
|
||||
<div class="headerbox">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
||||
label-width="200">
|
||||
<el-row>
|
||||
<el-col :span="5">
|
||||
<el-form-item label="企业名称" style="width: 100%;">
|
||||
<el-input v-model="queryParams.name" placeholder="请输入项目名称" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
<el-form-item label="标签代码" style="width: 100%;">
|
||||
<el-input v-model="queryParams.name" placeholder="请输入项目名称" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
<el-form-item label="标签状态" style="width: 100%;">
|
||||
<el-input v-model="queryParams.name" placeholder="请输入项目名称" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
<el-form-item label="用户类型">
|
||||
<el-input v-model="queryParams.xmfrdwxz" placeholder="请输入项目名称" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini"
|
||||
@click="handleQuery">查询</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</div>
|
||||
<!-- 表格内容区 -->
|
||||
<div class="tablebox">
|
||||
<el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange" stripe>
|
||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||
<el-table-column label="序号" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ (scope.$index + 1) + (queryParams.current - 1) * queryParams.size }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="企业名称" align="center" prop="name" width="200" />
|
||||
<el-table-column label="统一信用代码" align="center" prop="tyshxydm" width="200" />
|
||||
<el-table-column label="标签代码" align="center" prop="xzfl" />
|
||||
<el-table-column label="有效状态" align="center" prop="xmfrdwxz" width="200" />
|
||||
<el-table-column label="用户类型" align="center" width="130" prop="ztze" />
|
||||
<el-table-column label="标签注释" align="center" width="180" prop="zydmj" />
|
||||
<el-table-column label="标签状态" align="center" prop="status" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" @click="getAdd(scope.row, 'detail')">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.current"
|
||||
:limit.sync="queryParams.size" @pagination="getList" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getCybqInformationPage} from "@/api/ManageApi/index";
|
||||
import { checkPermi, checkRole } from "@/utils/permission";
|
||||
export default {
|
||||
dicts: ["xzfl"],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 项目表格数据
|
||||
postList: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
current: 1,
|
||||
size: 10,
|
||||
xzfl: undefined,
|
||||
name: undefined,
|
||||
xmfrdwxz: undefined,
|
||||
startTime: undefined,
|
||||
endTime: undefined,
|
||||
status: undefined,
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
checkPermi,
|
||||
checkRole,
|
||||
/** 查询项目列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
||||
// 确保只查询isFmqd=2的数据
|
||||
const params = {
|
||||
...this.queryParams,
|
||||
isFmqd: 1
|
||||
};
|
||||
|
||||
getBasicInformationPage(params).then((response) => {
|
||||
this.postList = response.data.records;
|
||||
this.total = response.data.total;
|
||||
this.loading = false;
|
||||
}).catch(error => {
|
||||
console.error('API请求错误:', error);
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
|
||||
//当选择项发生变化时会触发该事件
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal
|
||||
.confirm('是否确认删除项目id为"' + ids + '"的数据项?')
|
||||
.then(() => {
|
||||
return deleteBasicInformation(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => { });
|
||||
},
|
||||
/** 详情按钮操作 */
|
||||
getAdd(row, type) {
|
||||
this.$store.commit("SET_CRUMBS", this.$route.meta.title + "新增");
|
||||
const id = row.id || this.ids[0];
|
||||
this.$router.push({ path: `/manage-add/${id}`, query: { action: type } });
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.queryParams = {
|
||||
current: 1,
|
||||
size: 10,
|
||||
xzfl: undefined,
|
||||
name: undefined,
|
||||
xmfrdwxz: undefined,
|
||||
startTime: undefined,
|
||||
endTime: undefined,
|
||||
status: undefined,
|
||||
isFmqd: 1
|
||||
};
|
||||
this.getList();
|
||||
},
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.current = 1;
|
||||
this.getList();
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.headerbox {
|
||||
background-color: #fff;
|
||||
border-radius: .5rem;
|
||||
padding: 1rem;
|
||||
margin: .5rem;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.tablebox {
|
||||
background-color: #fff;
|
||||
border-radius: .5rem;
|
||||
padding: 1rem;
|
||||
margin: .5rem;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.tablehead {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.headbtn {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.tablebtntwo {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue