lijinlong
杜函宇 1 year ago
parent 81b8397e47
commit 7e3e719643

@ -13,7 +13,9 @@ ENV = 'development'
# 苏州应急执法计划管理系统/开发环境 # 苏州应急执法计划管理系统/开发环境
# VUE_APP_BASE_API = 'http://localhost:9028' # VUE_APP_BASE_API = 'http://localhost:9028'
VUE_APP_BASE_API = 'http://221.229.220.83:9028' # VUE_APP_BASE_API = 'http://221.229.220.83:9028'
VUE_APP_BASE_API = '/api'
# 路由懒加载 # 路由懒加载

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询文章列表
export function listArticle(query) {
return request({
url: '/mudu/article/list',
method: 'get',
params: query
})
}
// 查询文章详细
export function getArticle(id) {
return request({
url: '/mudu/article/' + id,
method: 'get'
})
}
// 新增文章
export function addArticle(data) {
return request({
url: '/mudu/article',
method: 'post',
data: data
})
}
// 修改文章
export function updateArticle(data) {
return request({
url: '/mudu/article',
method: 'put',
data: data
})
}
// 删除文章
export function delArticle(id) {
return request({
url: '/mudu/article/' + id,
method: 'delete'
})
}

@ -1,44 +0,0 @@
import request from "@/utils/request";
// 查询清单式检查列表
export function listCheck(query) {
return request({
url: "/mudu/check/list",
method: "get",
params: query,
});
}
// 查询清单式检查详细
export function getCheck(id) {
return request({
url: "/mudu/check/" + id,
method: "get",
});
}
// 新增清单式检查
export function addCheck(data) {
return request({
url: "/mudu/check",
method: "post",
data: data,
});
}
// 修改清单式检查
export function updateCheck(data) {
return request({
url: "/mudu/check",
method: "put",
data: data,
});
}
// 删除清单式检查
export function delCheck(id) {
return request({
url: "/mudu/check/" + id,
method: "delete",
});
}

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询服务企业名录库列表
export function listDirectory(query) {
return request({
url: '/mudu/directory/list',
method: 'get',
params: query
})
}
// 查询服务企业名录库详细
export function getDirectory(id) {
return request({
url: '/mudu/directory/' + id,
method: 'get'
})
}
// 新增服务企业名录库
export function addDirectory(data) {
return request({
url: '/mudu/directory',
method: 'post',
data: data
})
}
// 修改服务企业名录库
export function updateDirectory(data) {
return request({
url: '/mudu/directory',
method: 'put',
data: data
})
}
// 删除服务企业名录库
export function delDirectory(id) {
return request({
url: '/mudu/directory/' + id,
method: 'delete'
})
}

@ -1,46 +0,0 @@
import request from '@/utils/request'
// 查询特种设备列表
export function listEquipment(query) {
return request({
url: '/mudu/equipment/list',
method: 'get',
params: query
})
}
// 查询特种设备详细
export function getEquipment(id) {
return request({
url: '/mudu/equipment/' + id,
method: 'get'
})
}
// 新增特种设备
export function addEquipment(data) {
return request({
url: '/mudu/equipment',
method: 'post',
data: data
})
}
// 修改特种设备
export function updateEquipment(data) {
return request({
url: '/mudu/equipment',
method: 'put',
data: data
})
}
// 删除特种设备
export function delEquipment(id) {
return request({
url: '/mudu/equipment/' + id,
method: 'delete'
})
}

@ -1,65 +0,0 @@
import request from "@/utils/request";
// 查询巡查工单列表
export function listHcheck(query) {
return request({
url: "/mudu/hcheck/list",
method: "get",
params: query,
});
}
// 查询巡查工单详细
export function getHcheck(id) {
return request({
url: "/mudu/hcheck/" + id,
method: "get",
});
}
// 新增巡查工单
export function addHcheck(data) {
return request({
url: "/mudu/hcheck",
method: "post",
data: data,
});
}
// 修改巡查工单
export function updateHcheck(data) {
return request({
url: "/mudu/hcheck",
method: "put",
data: data,
});
}
// 删除巡查工单
export function delHcheck(id) {
return request({
url: "/mudu/hcheck/" + id,
method: "delete",
});
}
// 导出巡查工单
export function exportHcheck(data) {
return request({
url: "/mudu/hcheck/export",
method: "post",
data,
});
}
// 导入巡查工单
export function importHcheckTable(data) {
return request({
url: "/mudu/hcheck/importExcel",
method: "post",
headers: {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
},
data,
});
}

@ -1,45 +0,0 @@
import request from '@/utils/request'
// 查询浏览记录列表
export function listHistory(query) {
return request({
url: '/mudu/history/list',
method: 'get',
params: query
})
}
// 查询浏览记录详细
export function getHistory(id) {
return request({
url: '/mudu/history/' + id,
method: 'get'
})
}
// 新增浏览记录
export function addHistory(data) {
return request({
url: '/mudu/history',
method: 'post',
data: data
})
}
// 修改浏览记录
export function updateHistory(data) {
return request({
url: '/mudu/history',
method: 'put',
data: data
})
}
// 删除浏览记录
export function delHistory(id) {
return request({
url: '/mudu/history/' + id,
method: 'delete'
})
}

@ -1,54 +0,0 @@
import request from '@/utils/request'
// 查询点赞列表
export function listLikes(query) {
return request({
url: '/mudu/likes/list',
method: 'get',
params: query
})
}
// 查询点赞详细
export function getLikes(id) {
return request({
url: '/mudu/likes/' + id,
method: 'get'
})
}
// 新增点赞
export function addLikes(data) {
return request({
url: '/mudu/likes',
method: 'post',
data: data
})
}
// 修改点赞
export function updateLikes(data) {
return request({
url: '/mudu/likes',
method: 'put',
data: data
})
}
// 删除点赞
export function delLikes(id) {
return request({
url: '/mudu/likes/' + id,
method: 'delete'
})
}
// 导出点赞
export function exportLikes(data) {
return request({
url: '/mudu/likes/export',
method: 'post',
data
})
}

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询全镇公共物资管理列表
export function listManage(query) {
return request({
url: '/mudu/manage/list',
method: 'get',
params: query
})
}
// 查询全镇公共物资管理详细
export function getManage(id) {
return request({
url: '/mudu/manage/' + id,
method: 'get'
})
}
// 新增全镇公共物资管理
export function addManage(data) {
return request({
url: '/mudu/manage',
method: 'post',
data: data
})
}
// 修改全镇公共物资管理
export function updateManage(data) {
return request({
url: '/mudu/manage',
method: 'put',
data: data
})
}
// 删除全镇公共物资管理
export function delManage(id) {
return request({
url: '/mudu/manage/' + id,
method: 'delete'
})
}

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询风险企业管理列表
export function listManagement(query) {
return request({
url: '/mudu/management/list',
method: 'get',
params: query
})
}
// 查询风险企业管理详细
export function getManagement(id) {
return request({
url: '/mudu/management/' + id,
method: 'get'
})
}
// 新增风险企业管理
export function addManagement(data) {
return request({
url: '/mudu/management',
method: 'post',
data: data
})
}
// 修改风险企业管理
export function updateManagement(data) {
return request({
url: '/mudu/management',
method: 'put',
data: data
})
}
// 删除风险企业管理
export function delManagement(id) {
return request({
url: '/mudu/management/' + id,
method: 'delete'
})
}

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询园内专有物资管理列表
export function listMaterials(query) {
return request({
url: '/mudu/materials/list',
method: 'get',
params: query
})
}
// 查询园内专有物资管理详细
export function getMaterials(id) {
return request({
url: '/mudu/materials/' + id,
method: 'get'
})
}
// 新增园内专有物资管理
export function addMaterials(data) {
return request({
url: '/mudu/materials',
method: 'post',
data: data
})
}
// 修改园内专有物资管理
export function updateMaterials(data) {
return request({
url: '/mudu/materials',
method: 'put',
data: data
})
}
// 删除园内专有物资管理
export function delMaterials(id) {
return request({
url: '/mudu/materials/' + id,
method: 'delete'
})
}

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询园内监控管理列表
export function listMonitor(query) {
return request({
url: '/mudu/monitor/list',
method: 'get',
params: query
})
}
// 查询园内监控管理详细
export function getMonitor(id) {
return request({
url: '/mudu/monitor/' + id,
method: 'get'
})
}
// 新增园内监控管理
export function addMonitor(data) {
return request({
url: '/mudu/monitor',
method: 'post',
data: data
})
}
// 修改园内监控管理
export function updateMonitor(data) {
return request({
url: '/mudu/monitor',
method: 'put',
data: data
})
}
// 删除园内监控管理
export function delMonitor(id) {
return request({
url: '/mudu/monitor/' + id,
method: 'delete'
})
}

@ -1,55 +0,0 @@
import request from '@/utils/request'
// 查询隐患巡查工单列表
export function listOrder(query) {
return request({
url: '/mudu/order/list',
method: 'get',
params: query
})
}
// 查询隐患巡查工单详细
export function getOrder(id) {
return request({
url: '/mudu/order/' + id,
method: 'get'
})
}
// 新增隐患巡查工单
export function addOrder(data) {
return request({
url: '/mudu/order',
method: 'post',
data: data
})
}
// 修改隐患巡查工单
export function updateOrder(data) {
return request({
url: '/mudu/order',
method: 'put',
data: data
})
}
// 删除隐患巡查工单
export function delOrder(id) {
return request({
url: '/mudu/order/' + id,
method: 'delete'
})
}
// 导入隐患巡查工单
export function importOrder(data) {
return request({
url: '/mudu/order/importExcel',
method: 'post',
headers:{
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
},
data
})
}

@ -1,47 +0,0 @@
import request from '@/utils/request'
// 查询点位列表
export function listPoint(query) {
return request({
url: '/mudu/point/list',
method: 'get',
params: query
})
}
// 查询点位详细
export function getPoint(id) {
return request({
url: '/mudu/point/' + id,
method: 'get'
})
}
// 新增点位
export function addPoint(data) {
return request({
url: '/mudu/point',
method: 'post',
data: data
})
}
// 修改点位
export function updatePoint(data) {
return request({
url: '/mudu/point',
method: 'put',
data: data
})
}
// 删除点位
export function delPoint(id) {
return request({
url: '/mudu/point/' + id,
method: 'delete'
})
}

@ -1,45 +0,0 @@
import request from '@/utils/request'
// 查询负责人列表
export function listPrincipal(query) {
return request({
url: '/mudu/principal/list',
method: 'get',
params: query
})
}
// 查询负责人详细
export function getPrincipal(id) {
return request({
url: '/mudu/principal/' + id,
method: 'get'
})
}
// 新增负责人
export function addPrincipal(data) {
return request({
url: '/mudu/principal',
method: 'post',
data: data
})
}
// 修改负责人
export function updatePrincipal(data) {
return request({
url: '/mudu/principal',
method: 'put',
data: data
})
}
// 删除负责人
export function delPrincipal(id) {
return request({
url: '/mudu/principal/' + id,
method: 'delete'
})
}

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询园区概况列表
export function listProfile(query) {
return request({
url: '/mudu/profile/list',
method: 'get',
params: query
})
}
// 查询园区概况详细
export function getProfile(id) {
return request({
url: '/mudu/profile/' + id,
method: 'get'
})
}
// 新增园区概况
export function addProfile(data) {
return request({
url: '/mudu/profile',
method: 'post',
data: data
})
}
// 修改园区概况
export function updateProfile(data) {
return request({
url: '/mudu/profile',
method: 'put',
data: data
})
}
// 删除园区概况
export function delProfile(id) {
return request({
url: '/mudu/profile/' + id,
method: 'delete'
})
}

@ -1,45 +0,0 @@
import request from '@/utils/request'
// 查询储气罐列表
export function listReceiver(query) {
return request({
url: '/mudu/receiver/list',
method: 'get',
params: query
})
}
// 查询储气罐详细
export function getReceiver(id) {
return request({
url: '/mudu/receiver/' + id,
method: 'get'
})
}
// 新增储气罐
export function addReceiver(data) {
return request({
url: '/mudu/receiver',
method: 'post',
data: data
})
}
// 修改储气罐
export function updateReceiver(data) {
return request({
url: '/mudu/receiver',
method: 'put',
data: data
})
}
// 删除储气罐
export function delReceiver(id) {
return request({
url: '/mudu/receiver/' + id,
method: 'delete'
})
}

@ -1,46 +0,0 @@
import request from '@/utils/request'
// 查询检查记录列表
export function listRecords(query) {
return request({
url: '/mudu/records/list',
method: 'get',
params: query
})
}
// 查询检查记录详细
export function getRecords(id) {
return request({
url: '/mudu/records/' + id,
method: 'get'
})
}
// 新增检查记录
export function addRecords(data) {
return request({
url: '/mudu/records',
method: 'post',
data: data
})
}
// 修改检查记录
export function updateRecords(data) {
return request({
url: '/mudu/records',
method: 'put',
data: data
})
}
// 删除检查记录
export function delRecords(id) {
return request({
url: '/mudu/records/' + id,
method: 'delete'
})
}

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询培训列表
export function listTrain(query) {
return request({
url: '/mudu/train/list',
method: 'get',
params: query
})
}
// 查询培训详细
export function getTrain(id) {
return request({
url: '/mudu/train/' + id,
method: 'get'
})
}
// 新增培训
export function addTrain(data) {
return request({
url: '/mudu/train',
method: 'post',
data: data
})
}
// 修改培训
export function updateTrain(data) {
return request({
url: '/mudu/train',
method: 'put',
data: data
})
}
// 删除培训
export function delTrain(id) {
return request({
url: '/mudu/train/' + id,
method: 'delete'
})
}

@ -1,47 +0,0 @@
import request from '@/utils/request'
// 查询交通运输列表
export function listTransportation(query) {
return request({
url: '/mudu/transportation/list',
method: 'get',
params: query
})
}
// 查询交通运输详细
export function getTransportation(id) {
return request({
url: '/mudu/transportation/' + id,
method: 'get'
})
}
// 新增交通运输
export function addTransportation(data) {
return request({
url: '/mudu/transportation',
method: 'post',
data: data
})
}
// 修改交通运输
export function updateTransportation(data) {
return request({
url: '/mudu/transportation',
method: 'put',
data: data
})
}
// 删除交通运输
export function delTransportation(id) {
return request({
url: '/mudu/transportation/' + id,
method: 'delete'
})
}

@ -1,64 +0,0 @@
import request from "@/utils/request";
// 查询隐患工单列表
export function listTrouble(query) {
return request({
url: "/mudu/trouble/list",
method: "get",
params: query,
});
}
// 查询隐患工单详细
export function getTrouble(id) {
return request({
url: "/mudu/trouble/" + id,
method: "get",
});
}
// 新增隐患工单
export function addTrouble(data) {
return request({
url: "/mudu/trouble",
method: "post",
data: data,
});
}
// 修改隐患工单
export function updateTrouble(data) {
return request({
url: "/mudu/trouble",
method: "put",
data: data,
});
}
// 删除隐患工单
export function delTrouble(id) {
return request({
url: "/mudu/trouble/" + id,
method: "delete",
});
}
// 导出隐患工单
export function exportTrouble(data) {
return request({
url: "/mudu/trouble/export",
method: "post",
data,
});
}
// 导入隐患工单
export function importTroubleTable(data) {
return request({
url: "/mudu/trouble/importExcel",
method: "post",
headers: {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
},
data,
});
}

@ -0,0 +1,19 @@
import request from '@/utils/request'
// 根据字段查询字典信息
export function listDist(query) {
return request({
url: '/dictdata',
method: 'get',
params: query
})
}
// 行政区划树结构
export function xzTree(id) {
return request({
url: '/administrative/tree',
method: 'get',
})
}

@ -0,0 +1,50 @@
import request from '@/utils/request'
// 分页条件查询省重点企业
export function listEnterprise(query) {
return request({
url: '/bKeyEnterprise',
method: 'get',
params: query
})
}
// 新增省重点企业
export function addEnterprise(data) {
return request({
url: '/bKeyEnterprise',
method: 'post',
data
})
}
//修改省重点企业
export function updateEnterprise(data) {
return request({
url: '/bKeyEnterprise',
method: 'put',
data
})
}
//删除省重点企业
export function deleteEnterprise(data) {
return request({
url: '/bKeyEnterprise',
method: 'delete',
data
})
}
//导入省重点企业
export function exportEnterprise(data) {
return request({
url: '/bKeyEnterprise/common/importExcel',
method: 'post',
data
})
}
//通过主键查询单条省重点企业
export function getEnterprise(id) {
return request({
url: `/bKeyEnterprise/${id}`,
method: 'get',
})
}

@ -0,0 +1,50 @@
import request from '@/utils/request'
// 分页条件查询企业基本信息列表
export function listMsgEnterprise(query) {
return request({
url: '/info/list',
method: 'get',
params: query
})
}
// 分页条件查询计划管理
export function listPlanGL(query) {
return request({
url: '/bPlanManage',
method: 'get',
params: query
})
}
// 新增计划管理
export function addPlanGL(data) {
return request({
url: '/bPlanManage',
method: 'post',
data
})
}
//修改计划管理
export function updatePlanGL(data) {
return request({
url: '/bPlanManage',
method: 'put',
data
})
}
//删除计划管理
export function deletePlanGL(data) {
return request({
url: '/bPlanManage',
method: 'delete',
data
})
}
//通过主键查询单条计划管理
export function getPlanGL(id) {
return request({
url: `/bPlanManage/${id}`,
method: 'get',
})
}

@ -9,9 +9,16 @@ import { isRelogin } from "@/utils/request";
NProgress.configure({ showSpinner: false }); NProgress.configure({ showSpinner: false });
const whiteList = [ const whiteList = [
'/toLogin' '/toLogin',
'/focusEnter',
'/enforcing',
"/planManage",
"/home"
]; ];
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
NProgress.start(); NProgress.start();
if (getToken()) { if (getToken()) {

@ -17,7 +17,7 @@ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分 // axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API, baseURL: process.env.VUE_APP_BASE_API,
// 超时 // 超时
timeout: 10000, timeout: 20000,
}); });
// request拦截器 // request拦截器

@ -31,15 +31,16 @@
<div class="filtrate"> <div class="filtrate">
<div class="select-input"> <div class="select-input">
<div class="select-span">行政区划:</div> <div class="select-span">行政区划:</div>
<el-select v-model="form.compartment" placeholder="请选择"> <el-cascader
<el-option v-model="form.compartment"
v-for="item in options" :options="compartment"
:key="item.value" :show-all-levels="false"
:label="item.label" :props="{
:value="item.value" value: 'subdistrict', //id
> label: 'institutionName', //name
</el-option> children: 'children',
</el-select> }"
></el-cascader>
</div> </div>
<div class="select-input"> <div class="select-input">
<div class="select-span">企业类型:</div> <div class="select-span">企业类型:</div>
@ -55,15 +56,11 @@
</div> </div>
<div class="select-input"> <div class="select-input">
<div class="select-span">经济类型:</div> <div class="select-span">经济类型:</div>
<el-select v-model="form.economicsType" placeholder="请选择"> <el-cascader
<el-option v-model="form.economicsType"
v-for="item in options" :options="zhEconomicType"
:key="item.value" :show-all-levels="false"
:label="item.label" ></el-cascader>
:value="item.value"
>
</el-option>
</el-select>
</div> </div>
<div class="select-input"> <div class="select-input">
<div class="select-span">行业类型:</div> <div class="select-span">行业类型:</div>
@ -81,10 +78,10 @@
<div class="select-span">重大危险源等级:</div> <div class="select-span">重大危险源等级:</div>
<el-select v-model="form.riskGrade" placeholder="请选择"> <el-select v-model="form.riskGrade" placeholder="请选择">
<el-option <el-option
v-for="item in options" v-for="item in otherDict.major_hazard_level"
:key="item.value" :key="item.dictLabel"
:label="item.label" :label="item.dictLabel"
:value="item.value" :value="item.dictValue"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -93,10 +90,10 @@
<div class="select-span">企业分色:</div> <div class="select-span">企业分色:</div>
<el-select v-model="form.frimColor" placeholder="请选择"> <el-select v-model="form.frimColor" placeholder="请选择">
<el-option <el-option
v-for="item in options" v-for="item in otherDict.entpr_color"
:key="item.value" :key="item.dictLabel"
:label="item.label" :label="item.dictLabel"
:value="item.value" :value="item.dictValue"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -125,7 +122,7 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="date" prop="entprName"
label="企业名称" label="企业名称"
header-align="center" header-align="center"
> >
@ -243,73 +240,15 @@
</template> </template>
<script> <script>
import myPagination from "@/views/components/myPagination/index.vue"; import myPagination from "@/views/components/myPagination/index.vue";
//====
import { xzTree, listDist } from "@/api/yingji/home.js";
import { listMsgEnterprise } from "@/api/yingji/planManage.js";
export default { export default {
components: { myPagination }, components: { myPagination },
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
tableData: [ tableData: [],
{
date: "2016-05-03",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
is: 1,
},
{
date: "2016-05-02",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
is: 1,
},
{
date: "2016-05-04",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
is: 1,
},
{
date: "2016-05-01",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
is: 1,
},
{
date: "2016-05-08",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
is: 2,
},
{
date: "2016-05-06",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
is: 2,
},
{
date: "2016-05-07",
name: "王小虎",
is: 2,
address: "上海市普陀区金沙江路 1518 弄",
},
{
date: "2016-05-08",
name: "王小虎",
is: 2,
address: "上海市普陀区金沙江路 1518 弄",
},
{
date: "2016-05-06",
name: "王小虎",
is: 2,
address: "上海市普陀区金沙江路 1518 弄",
},
{
date: "2016-05-07",
name: "王小虎",
is: 2,
address: "上海市普陀区金沙江路 1518 弄",
},
],
options: [], options: [],
multipleSelection: [], multipleSelection: [],
selected: 0, selected: 0,
@ -325,17 +264,82 @@ export default {
frimName: "", frimName: "",
}, },
form2: { form2: {
year: "", uscCode: "",
title: "", current: 1,
content: "", size: 10,
remark: "", },
//
basicMsg: {
//
economicSubcategory: "",
//
entprColor: "",
//
isPoint: "",
//
majorHazardLevel: "",
//
subdistrict: "",
//
uscCode: "",
},
searchBefore: {
pageNum: 1,
pageSize: 10,
}, },
//
compartment: [],
//
zhEconomicType: [
{
value: "dalei",
label: "经济大类",
children: [],
},
{
value: "xiaolei",
label: "经济小类",
children: [],
},
],
//
otherDict: {},
}; };
}, },
created() {
this.getxzqhList();
},
methods: { methods: {
checkBox(e){ getxzqhList() {
//
xzTree().then((res) => {
this.compartment = res.data;
});
//
listDist({
list: "major_hazard_level,entpr_color,economic_categories,economic_subcategory",
}).then((res) => {
this.otherDict = res.data;
res.data.economic_categories.forEach((value, index) => {
this.zhEconomicType[0].children.push({
value: value.dictValue,
label: value.dictLabel,
});
});
res.data.economic_subcategory.forEach((value, index) => {
this.zhEconomicType[1].children.push({
value: value.dictValue,
label: value.dictLabel,
});
});
});
//
listMsgEnterprise(this.searchBefore).then((res) => {
console.log(res);
this.tableData = res.data
});
}, },
checkBox(e) {},
open() { open() {
this.dialogVisible = true; this.dialogVisible = true;
}, },
@ -373,6 +377,28 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-cascader {
background-color: transparent;
width: 190px;
.el-input__inner {
height: 33px;
}
// border-radius: 2px;
.el-input
.el-input__suffix
.el-input__suffix-inner
.el-icon-arrow-up::before {
content: "";
background: url(../../../assets/images/down2.png) center center no-repeat;
background-size: cover;
position: absolute;
width: 10px;
height: 7px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.isStyle { .isStyle {
color: #f71052; color: #f71052;
} }

@ -351,14 +351,14 @@
</template> </template>
<script> <script>
import { // import {
listProfile, // listProfile,
getProfile, // getProfile,
delProfile, // delProfile,
addProfile, // addProfile,
updateProfile, // updateProfile,
exportProfile, // exportProfile,
} from "@/api/mudu/profile"; // } from "@/api/mudu/profile";
export default { export default {
data() { data() {
return { return {

@ -41,19 +41,11 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
:cell-style="columnStyle" :cell-style="columnStyle"
> >
<el-table-column <el-table-column prop="year" label="计划年份" header-align="center">
prop="date"
label="计划年份"
header-align="center"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="entCode" label="统一社会信用代理" header-align="center">
prop="address"
label="企业名称"
header-align="center"
>
</el-table-column> </el-table-column>
<el-table-column prop="frim" label="企业类别" header-align="center"> <el-table-column prop="type" label="企业类别" header-align="center" >
</el-table-column> </el-table-column>
<!-- <el-table-column label="操作" header-align="center"> <!-- <el-table-column label="操作" header-align="center">
@ -75,88 +67,22 @@
<script> <script>
import myPagination from "@/views/components/myPagination/index.vue"; import myPagination from "@/views/components/myPagination/index.vue";
import {
listEnterprise,
addEnterprise,
updateEnterprise,
deleteEnterprise,
exportEnterprise,
getEnterprise,
} from "@/api/yingji/keyEnterprise.js";
export default { export default {
components: { myPagination }, components: { myPagination },
name: "Article", name: "Article",
data() { data() {
return { return {
tableData: [ tableData: [],
{
date: "2022年",
name: "王小虎",
address: "苏州",
frim: "扬子石化有限公司",
state: "未执法",
},
{
date: "2022年",
name: "王小虎",
address: "张家港市",
frim: "扬子石化有限公司",
state: "未执法",
},
{
date: "2022年",
name: "王小虎",
address: "常熟市",
frim: "扬子石化有限公司",
state: "未执法",
},
{
date: "2022年",
name: "王小虎",
address: "太仓市",
frim: "扬子石化有限公司",
state: "未执法",
},
{
date: "2022年",
name: "王小虎",
address: "昆山市",
frim: "扬子石化有限公司",
state: "未执法",
},
{
date: "2022年",
name: "王小虎",
address: "吴江区",
frim: "扬子石化有限公司",
state: "已执法",
},
{
date: "2022年",
name: "王小虎",
address: "吴中区",
frim: "扬子石化有限公司",
state: "已执法",
},
{
date: "2022年",
name: "王小虎",
address: "姑苏区",
frim: "扬子石化有限公司",
state: "已执法",
},
{
date: "2022年",
name: "王小虎",
address: "相城区",
frim: "扬子石化有限公司",
state: "已执法",
},
{
date: "2022年",
name: "王小虎",
address: "工业园区",
frim: "扬子石化有限公司",
state: "已执法",
},
],
options: [], options: [],
form: { form: {},
year: "",
compartment: "",
},
checkList: ["全部"], checkList: ["全部"],
checkListTwo: [], checkListTwo: [],
}; };
@ -171,7 +97,16 @@ export default {
// immediate:true, // immediate:true,
// } // }
// }, // },
created() {
this.getList();
},
methods: { methods: {
getList() {
listEnterprise().then((res) => {
console.log(res);
this.tableData = res.data.records
});
},
// //
setmealSelect() { setmealSelect() {
this.checkList = this.checkList.slice(-1); this.checkList = this.checkList.slice(-1);

@ -41,11 +41,18 @@ module.exports = {
open: true, open: true,
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { // [process.env.VUE_APP_BASE_API]: {
target: `http://192.168.0.117:9028`, // target: `http://192.168.0.117:9028`,
// changeOrigin: true,
// pathRewrite: {
// ["^" + process.env.VUE_APP_BASE_API]: "",
// },
// },
"/api": {
target: "http://192.168.0.113:9033/pharmaceuticals",
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
["^" + process.env.VUE_APP_BASE_API]: "", ["/api"]: "",
}, },
}, },
}, },
@ -81,8 +88,8 @@ module.exports = {
], ],
}, },
chainWebpack(config) { chainWebpack(config) {
config.plugins.delete("preload"); // TODO: need test config.plugins.delete("preload");
config.plugins.delete("prefetch"); // TODO: need test config.plugins.delete("prefetch");
// set svg-sprite-loader // set svg-sprite-loader
config.module.rule("svg").exclude.add(resolve("src/assets/icons")).end(); config.module.rule("svg").exclude.add(resolve("src/assets/icons")).end();
@ -135,10 +142,10 @@ module.exports = {
}); });
config.optimization.runtimeChunk("single"), config.optimization.runtimeChunk("single"),
{ {
from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件 from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件
to: "./", //到根目录下 to: "./", //到根目录下
}; };
}); });
}, },
}; };

Loading…
Cancel
Save