lijinlong
杜函宇 1 year ago
parent f75b8f612b
commit 0c43021cf3

@ -6,5 +6,5 @@ ENV = 'production'
# 苏州应急执法计划管理系统/生产环境
# VUE_APP_BASE_API = 'http://192.168.0.105:9033'
VUE_APP_BASE_API = 'http://39.101.188.84:9033/pharmaceuticals'
VUE_APP_BASE_API = 'http://39.101.188.84:9033'

@ -59,7 +59,7 @@ export function businessList(data) {
params: data
})
}
//查询单条企业信息执法详情
//查询执法列表
export function enforcingDetail(data) {
return request({
url: `/pharmaceuticals/bPlanEnterprise/getZhifa`,
@ -68,6 +68,7 @@ export function enforcingDetail(data) {
})
}
// 根据字段查询字典信息
export function listDist(query) {
return request({

@ -49,7 +49,7 @@
<el-dropdown-item @click.native="logout">退出登录</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<div class="showGLstyle" v-if="dept.deptId == 103" @click="toNewPage">
<div class="showGLstyle" v-if="roles && roles[0]=='admin'" @click="toNewPage">
进入管理平台
</div>
</header>
@ -104,6 +104,7 @@ export default {
...mapState({
dept: (state) => state.user.dept,
username: (state) => state.user.name,
roles:(state) => state.user.roles,
}),
},
watch: {

@ -20,7 +20,7 @@ router.beforeEach((to, from, next) => {
NProgress.done()
} else {
if (store.getters.roles.length === 0) {
console.log(router.options);
// console.log(router.options);
isRelogin.show = true
// 判断当前用户是否已拉取完user_info信息
store.dispatch('GetInfo').then(() => {

@ -161,13 +161,13 @@
header-align="center"
>
</el-table-column> -->
<el-table-column
<!-- <el-table-column
prop="address"
label="企业类型"
show-overflow-tooltip
header-align="center"
>
</el-table-column>
</el-table-column> -->
<el-table-column
prop="uscCode"
label="统一社会信用代码"

@ -37,9 +37,9 @@
</div>
<div class="my-checkbox">
<el-checkbox-group v-model="checkList" @change="setmealSelect">
<el-checkbox label="00">全部</el-checkbox>
<el-checkbox label="">全部</el-checkbox>
<el-checkbox label="1">已检查</el-checkbox>
<el-checkbox label="0">未检查</el-checkbox>
<el-checkbox label="2">未检查</el-checkbox>
</el-checkbox-group>
</div>
</div>
@ -90,9 +90,9 @@
<template slot-scope="scope">
<div
style="font-family: 'Alibaba PuHuiTi'"
:class="scope.row.checkStatus == '0' ? 'isStyle' : ''"
:class="scope.row.checkStatus == '2' ? 'isStyle' : ''"
>
{{ scope.row.checkStatus == 0 ? "未检查" : "已检查" }}
{{ scope.row.checkStatus == 2 ? "未检查" : "已检查" }}
</div>
</template>
</el-table-column>
@ -174,9 +174,9 @@ export default {
district: "",
plannedYear: "",
//
checkStatus: "00",
checkStatus: "",
},
checkList: ["00"],
checkList: [""],
checkListTwo: [],
listDes: [
{
@ -316,7 +316,7 @@ export default {
district: "",
plannedYear: "",
//
checkStatus: "00",
checkStatus: "",
};
this.searchBefore = {
pageSize: 10,
@ -418,18 +418,25 @@ export default {
},
//
exportFile() {
// console.log(this.multipleSelection)
this.$confirm(`确认根据您的搜索条件导出搜索之后的数据吗?`, "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/pharmaceuticals/bPlanEnterprise/export",
{
...this.form,
},
`执法列表.xlsx`
);
})
.catch(() => {});
},
},
mounted() {
this.checkListTwo = this.checkList;
// this.$nextTick(()=>{
// let dom = document.getElementsByClassName('tables');
// let height = dom[0].getBoundingClientRect();
// let windowHeight = window.innerHeight;
// let relativeHeight = windowHeight - height.top
// this.main.height = relativeHeight - 80
// })
},
};
</script>

@ -9,6 +9,7 @@
placeholder="请选择"
:options="xzList"
:props="props"
>
</el-cascader>
</div>
@ -201,10 +202,10 @@ export default {
uscCode: "",
},
props: {
value: "county",
value: "subdistrict",
label: "institutionName",
},
xzqh:'',
searchBefore: {
pageSize: 10,
pageNum: 1,
@ -334,9 +335,9 @@ export default {
value: "",
},
],
addShow:false,
details:null,
detailLoad:true,
addShow: false,
details: null,
detailLoad: true,
};
},
created() {
@ -367,8 +368,10 @@ export default {
},
getDict() {
xzTree().then((res1) => {
console.log(res1);
this.xzList = res1.data;
this.filterComparment(this.xzList);
console.log(this.xzList);
});
listDist({
list: "economic_categories,category,major_hazard_level,entpr_color",
@ -376,7 +379,6 @@ export default {
this.options = res.data;
});
},
filterComparment(e) {
e.forEach((value, index) => {
if (value.children.length >= 1) {
@ -391,7 +393,7 @@ export default {
if (this.form.subdistrict) {
this.form.subdistrict = this.form.subdistrict[1];
}
this.searchBefore ={...this.searchBefore, ...this.form};
this.searchBefore = { ...this.searchBefore, ...this.form };
this.getList();
},
chongzhiList() {
@ -418,7 +420,6 @@ export default {
},
getList() {
this.load1 = true;
businessList(this.searchBefore).then((res) => {
this.tableData = res.data.list;
this.total = res.data.total;

@ -206,7 +206,21 @@
},
//
exportFile(){
console.log(this.multipleSelection)
this.$confirm(`确认根据您的搜索条件导出搜索之后的数据吗?`, "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.download(
"/pharmaceuticals/bPlanManage/export",
{
...this.form,
},
`执法列表.xlsx`
);
})
.catch(() => {});
},
//
newProject(){

@ -49,7 +49,8 @@ module.exports = {
// },
// },
'/api': {
target: `http://39.101.188.84:9033`,
// target: `http://39.101.188.84:9033`,
target: `http://192.168.0.108:9033`,
changeOrigin: true,
pathRewrite: {
'^/api': ''

Loading…
Cancel
Save