diff --git a/src/api/model/early.js b/src/api/model/early.js index 2064272..477b755 100644 --- a/src/api/model/early.js +++ b/src/api/model/early.js @@ -66,7 +66,36 @@ export default { return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'}); } }, - + }, + exclude:{ + list:{ + url: `${config.API_URL}/warning.exclude.list`, + name: "排除备件列表", + get: async function (params) { + return await http.post(this.url, params); + }, + }, + field:{ + url: `${config.API_URL}/warning.exclude.field.list`, + name: "排除备件检索", + post: async function (params) { + return await http.post(this.url, params); + }, + }, + template:{ + url: `${config.API_URL}/warning.exclude.import.template`, + name: "排除备件导入模版", + post: async function (params) { + return await http.get(this.url,params,{responseType: 'arraybuffer'}); + } + }, + import:{ + url: `${config.API_URL}/warning.exclude.import`, + name: "排除备件导入", + post: async function (params) { + return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'}); + } + }, } }; diff --git a/src/components/scImport/index.vue b/src/components/scImport/index.vue index 93f8093..d1074b8 100644 --- a/src/components/scImport/index.vue +++ b/src/components/scImport/index.vue @@ -113,7 +113,7 @@ export default { }, methods:{ getWsResult(res){ - if(res.data && (res.data.type == 4 || res.data.type == 5 || res.data.type == 10 || res.data.type == 17 || res.data.type == 18 || res.data.type == 27 || res.data.type == 28 || res.data.type == 31 || res.data.type == 42 || res.data.type == 44 || res.data.type == 45 || res.data.type == 48 || res.data.type == 49 || res.data.type == 50)){ + if(res.data && (res.data.type == 4 || res.data.type == 5 || res.data.type == 10 || res.data.type == 17 || res.data.type == 18 || res.data.type == 27 || res.data.type == 28 || res.data.type == 31 || res.data.type == 42 || res.data.type == 44 || res.data.type == 45 || res.data.type == 48 || res.data.type == 49 || res.data.type == 50 || res.data.type == 51)){ if(this.type == res.data.type){ this.importInfo = res.data; this.progressShow = true; diff --git a/src/views/earlyManager/exclude.vue b/src/views/earlyManager/exclude.vue new file mode 100644 index 0000000..6123707 --- /dev/null +++ b/src/views/earlyManager/exclude.vue @@ -0,0 +1,289 @@ + + + + + + + 批量导入 + + + 下载导入模版 + + + + + + + + + + + + + {{searchShow?'收起':'更多'}} + 查询 + 重置 + + + + + {{scope.row.region_info.region_name}} + + + + + + + + + + diff --git a/src/views/earlyManager/index.vue b/src/views/earlyManager/index.vue index a88ed01..12fd924 100644 --- a/src/views/earlyManager/index.vue +++ b/src/views/earlyManager/index.vue @@ -1,397 +1,38 @@ - - - - 新增预警 - 批量修改预计用量 - - - - 批量导入 - - - 下载导入模版 - - - - - - 导出 - - - - - - - - - 切换查询方式 - - - - + + + + + - - {{searchShow?'收起':'更多'}} - 查询 - 重置 - - - - - - - - - {{scope.row.region_info.region_name}} - - - {{scope.row['risk_level']}} - - - {{scope.row['risk_description']}} - - - - - - - - 查看 - - 编辑 - - - 删除 - - - - - - - - - - - + + + + + diff --git a/src/views/earlyManager/list.vue b/src/views/earlyManager/list.vue new file mode 100644 index 0000000..e3fba40 --- /dev/null +++ b/src/views/earlyManager/list.vue @@ -0,0 +1,400 @@ + + + + + 新增预警 + 批量修改预计用量 + + + + 批量导入 + + + 下载导入模版 + + + + + + 导出 + + + + + + + + + 切换查询方式 + + + + + + + {{searchShow?'收起':'更多'}} + 查询 + 重置 + + + + + + + + + {{scope.row.region_info.region_name}} + + + {{scope.row['risk_level']}} + + + {{scope.row['risk_description']}} + + + + + + + + 查看 + + 编辑 + + + 删除 + + + + + + + + + + + + + + + +