diff --git a/src/api/training/event.js b/src/api/training/event.js new file mode 100644 index 0000000..eeafdcd --- /dev/null +++ b/src/api/training/event.js @@ -0,0 +1,45 @@ +import request from '@/utils/request' + +export function listevent(params) { + return request({ + url: '/api/admin/department-activity/index', + method: 'get', + params:params + }) +} + +export function store(data) { + return request({ + url: '/api/admin/department-activity/store', + method: 'post', + data + }) +} + +export function save(data) { + return request({ + url: '/api/admin/department-activity/save', + method: 'post', + data + }) +} + +export function del(id) { + return request({ + url: '/api/admin/department-activity/destroy', + method: 'get', + params: { + id + } + }) +} + +export function get(id) { + return request({ + url: '/api/admin/department-activity/show', + method: 'get', + params: { + id + } + }) +} diff --git a/src/views/accident/index.vue b/src/views/accident/index.vue index 583d95b..bdfae74 100644 --- a/src/views/accident/index.vue +++ b/src/views/accident/index.vue @@ -8,9 +8,18 @@
- - + + +
@@ -19,7 +28,7 @@
- + @@ -226,20 +240,22 @@ columns: [{ field: "name", title: "制度名称", - type: "string", + type: "string", + width:240, + align:'left' }, { field: "check_time", title: "检查时间", type: "string", - width: 200, + width: 180, align: "center" }, { field: "check_person", title: "检查评定人员", type: "check_person", - width: 200, + width: 180, align: "center" }, { @@ -247,14 +263,14 @@ title: "科室", type: "unit", align: "center", - width: 200, + width: 180, }, { field: "result", title: "评定结果", type: "result", - width: 200, + width: 180, align: "left" }, { @@ -264,18 +280,26 @@ width: 180, align: "center" }, - { - field: "created_at_dept", - title: "创建人科室", - type: "string", - width: 180, - align: "center" + { + field: "admin", + title: "创建人", + type: "formats", + width: 180, + align: "center" + }, + { + field: "department", + title: "创建人科室", + type: "formats", + width: 180, + align: "center" }, { field: "操作", title: "操作", width: 220, - type: "opt", + type: "opt", + fixed:"right" } ], uploadOther: { @@ -372,7 +396,8 @@ load() { listtask({ page: this.paginations.page, - page_size: this.paginations.page_size + page_size: this.paginations.page_size, + keyword:this.searchFields.KeyWord }).then(res => { this.tableData = res.data; this.paginations.total = res.total diff --git a/src/views/improvement/score.vue b/src/views/improvement/score.vue index 2d1da16..0f76917 100644 --- a/src/views/improvement/score.vue +++ b/src/views/improvement/score.vue @@ -26,9 +26,17 @@ style="margin-left: 10px;">编辑
-
-
- {{item.name}} +
+
+
+ {{item.name}} +
+
+ +
+
+
+ {{scope.row[column.field]?scope.row[column.field].name:""}}
{{scope.row[column.field]}}
@@ -288,14 +296,20 @@ field: "year", title: "年份", type: "string", - width: 200, - align: "center" + width: 120, + align: "left" + }, + { + field: "remark", + title: "备注", + type: "string", }, { field: "unit", title: "科室", type: "unit", - align: "left" + align: "center", + width: 180, }, { field: "created_at", @@ -304,12 +318,19 @@ width: 180, align: "center" }, - { - field: "created_at_dept", - title: "创建人科室", - type: "string", - width: 180, - align: "center" + { + field: "admin", + title: "创建人", + type: "formats", + width: 180, + align: "center" + }, + { + field: "department", + title: "创建人科室", + type: "formats", + width: 180, + align: "center" }, { field: "操作", @@ -367,7 +388,8 @@ load() { list({ page: this.paginations.page, - page_size: this.paginations.page_size + page_size: this.paginations.page_size, + keyword:this.searchFields.KeyWord }).then(res => { this.tableData = res.data; this.paginations.total = res.total diff --git a/src/views/objective/meet.vue b/src/views/objective/meet.vue index fa7edcd..31c72a5 100644 --- a/src/views/objective/meet.vue +++ b/src/views/objective/meet.vue @@ -18,7 +18,7 @@ + :label="column.title" :width="column.width" :fixed="column.fixed"> @@ -52,72 +52,59 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 点击上传 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 全选 + +
+ + {{dept.name}} + +
+ + + + + + 点击上传 + -
- 预案评估 - - - - {{item.value}} - - - - - {{item.value}} - - - -
@@ -148,9 +135,9 @@ get, list } from "../../api/practise/plan.js"; - import { - getparameteritem - } from "../../api/system/dictionary.js"; + // import { + // getparameteritem + // } from "../../api/system/dictionary.js"; import { listdept } from "../../api/system/department.js"; @@ -179,44 +166,29 @@ formLabelWidth: "120px", clientHeight: 0, form: { - practise_unit: "", - level: "", - date: "", - address: "", - organize_unit: "", + name: "", + maintenance_department_id: "", + organize_department_id: "", responsible_person: "", introduce: "", - evaluate_plan_suit: 1, - evaluate_plan_full: 1, - evaluate_practise_join: 1, - evaluate_practise_material: 1, - evaluate_practise_protect: 1, - evaluate_direct_whole: 1, - evaluate_direct_divide: 1, - evaluate_cooperate_report: 1, - evaluate_cooperate_fire: 1, - evaluate_cooperate_medical: 1, - evaluate_cooperate_government: 1, - evaluate_cooperate_other: 1, - evaluate_cooperate_full: 1, file_list: "", joins_list: [] }, fileList: [], tableData: [], - rules: { - practise_unit: [{ - required: true, - message: '请选择演练运维管理单位', - trigger: 'blur' + rules: { + name: [{ + required: true, + message: '请填写应急预案方案名称', + trigger: 'blur' }], - level: [{ + maintenance_department_id: [{ required: true, - message: '请选择演练级别', + message: '请选择运维管理单位', trigger: 'blur' }], - organize_unit: [{ + organize_department_id: [{ required: true, message: '请选择组织运维管理单位', trigger: 'blur' @@ -227,59 +199,45 @@ KeyWord: "" }, columns: [{ - field: "level", - title: "方案名称", - type: "level", + field: "name", + title: "应急预案方案", + type: "string", align: "left", - width: 180 }, { - field: "date", + field: "maintenance_department", title: "运维管理单位", - type: "string", + type: "format", width: 180, align: "center", }, - { - field: "address", - title: "组织单位", - type: "string", - align: "left" - }, - { - field: "practise_unit", - title: "负责人", - type: "unit", - width: 200, - align: "center", - }, { field: "created_at", title: "创建时间", type: "string", width: 180, align: "center" - }, - { - field: "admin", - title: "创建人", - type: "format", - width: 180, - align: "center" - }, - { - field: "department", - title: "创建人科室", - type: "format", - width: 180, - align: "center" + }, + { + field: "admin", + title: "创建人", + type: "format", + width: 180, + align: "center" + }, + { + field: "department", + title: "创建人科室", + type: "format", + width: 180, + align: "center" }, { field: "操作", title: "操作", width: 220, type: "opt", - fixed: "right" + // fixed: "right" } ], //查询条件字段 @@ -291,196 +249,6 @@ }, deptOptions: [], userOptions: [], - evaluate: { - evaluate_plan_suit: [{ - id: 1, - value: "全部能够执行" - }, - { - id: 2, - value: "执行过程不够顺利" - }, - { - id: 3, - value: "不适宜" - } - ], - evaluate_plan_full: [{ - id: 1, - value: "能满足应急要求" - }, - { - id: 2, - value: "基本满足" - }, - { - id: 3, - value: "必须修改" - } - ], - evaluate_practise_join: [{ - id: 1, - value: "好" - }, - { - id: 2, - value: "较好" - }, - { - id: 3, - value: "基本到位" - }, { - id: 4, - value: "不到位" - } - ], - evaluate_practise_material: [{ - id: 1, - value: "好" - }, - { - id: 2, - value: "较好" - }, - { - id: 3, - value: "基本到位" - }, { - id: 4, - value: "不到位" - } - ], - evaluate_practise_protect: [{ - id: 1, - value: "好" - }, - { - id: 2, - value: "较好" - }, - { - id: 3, - value: "基本到位" - }, { - id: 4, - value: "不到位" - } - ], - evaluate_direct_whole: [{ - id: 1, - value: "好" - }, - { - id: 2, - value: "较好" - }, - { - id: 3, - value: "基本到位" - }, { - id: 4, - value: "不到位" - } - ], - evaluate_direct_divide: [{ - id: 1, - value: "好" - }, - { - id: 2, - value: "较好" - }, - { - id: 3, - value: "基本到位" - }, { - id: 4, - value: "不到位" - } - ], - evaluate_cooperate_report: [{ - id: 1, - value: "报告及时" - }, - { - id: 2, - value: "基本到位" - }, - { - id: 3, - value: "联系不上" - } - ], - evaluate_cooperate_fire: [{ - id: 1, - value: "按照要求协作" - }, - { - id: 2, - value: "基本到位" - }, - { - id: 3, - value: "行动迟缓" - } - ], - evaluate_cooperate_medical: [{ - id: 1, - value: "按照要求协作" - }, - { - id: 2, - value: "基本到位" - }, - { - id: 3, - value: "行动迟缓" - } - ], - evaluate_cooperate_government: [{ - id: 1, - value: "按照要求协作" - }, - { - id: 2, - value: "基本到位" - }, - { - id: 3, - value: "不配合" - } - ], - evaluate_cooperate_other: [{ - id: 1, - value: "报告及时" - }, - { - id: 2, - value: "基本到位" - }, - { - id: 3, - value: "不配合" - } - ], - evaluate_cooperate_full: [{ - id: 1, - value: "优秀" - }, - { - id: 2, - value: "良好" - }, - { - id: 3, - value: "基本合格" - }, - { - id: 4, - value: "不合格" - } - ] - } } }, created() { @@ -518,10 +286,10 @@ var topHeight = 50; //页面 头部 let tableHeight = clientHeight - lxHeader_height - topHeight - paginationHeight - 20; that.tableHeight = tableHeight; - //加载自定义参数 - getparameteritem("practiseLevel").then(res => { - this.parameters.practiseLevel = res.detail; - }); + // //加载自定义参数 + // getparameteritem("practiseLevel").then(res => { + // this.parameters.practiseLevel = res.detail; + // }); }, handleCurrentChange(page) { this.paginations.page = page; @@ -530,7 +298,8 @@ load() { list({ page: this.paginations.page, - page_size: this.paginations.page_size, + page_size: this.paginations.page_size, + keyword:this.searchFields.KeyWord }).then(response => { this.tableData = response.data; this.paginations.total = response.total; @@ -566,7 +335,7 @@ let result = Object.assign(that.form, res); that.form = result; let _files = []; - for (var mod of result.practise_files) { + for (var mod of result.plan_files) { let m = Object.assign({}, mod["files"]); m.name = mod["files"].original_name; _files.push(m); @@ -597,7 +366,9 @@ department_id: m }) } - this.form.joins_list = arrs; + this.form.joins_list = arrs; + console.log("this.form",this.form) + // return; this.$refs[formName].validate((valid) => { if (valid) { if (that.form.id) { diff --git a/src/views/risk/hazardindex.vue b/src/views/risk/hazardindex.vue index d4c9ae6..2da5fde 100644 --- a/src/views/risk/hazardindex.vue +++ b/src/views/risk/hazardindex.vue @@ -16,18 +16,25 @@
- + + :label="column.title" :width="column.width" :fixed="column.fixed">