diff --git a/package.json b/package.json
index f913dd4..f53bc1e 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"author": "",
"private": true,
"scripts": {
- "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.151.43",
+ "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.0.247",
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"e2e": "node test/e2e/runner.js",
@@ -27,7 +27,7 @@
"md5": "^2.3.0",
"moment": "^2.29.3",
"motion": "^10.16.4",
- "mqtt": "^4.2.1",
+ "mqtt": "4.2.1",
"nprogress": "^0.2.0",
"relation-graph": "^1.1.0",
"v-viewer": "^1.6.3",
diff --git a/src/views/firefighting/fireUtilReport/components/fireRecord.vue b/src/views/firefighting/fireUtilReport/components/fireRecord.vue
index 541eb93..9e35016 100644
--- a/src/views/firefighting/fireUtilReport/components/fireRecord.vue
+++ b/src/views/firefighting/fireUtilReport/components/fireRecord.vue
@@ -282,7 +282,7 @@ export default {
},
goDetail(id, FIRE_RECORD_ID) {
- this.setActiveName('RecordInfo')
+ this.setActiveName('RecordList')
const info = this.getInfo()
info.FIRE_CHECK_ID = id
info.FIRE_RECORD_ID = FIRE_RECORD_ID
diff --git a/src/views/firefighting/fireUtilReport/components/recordInfo.vue b/src/views/firefighting/fireUtilReport/components/recordInfo.vue
index f5ab0a5..9de9304 100644
--- a/src/views/firefighting/fireUtilReport/components/recordInfo.vue
+++ b/src/views/firefighting/fireUtilReport/components/recordInfo.vue
@@ -243,8 +243,8 @@ export default {
created() {
this.FIRE_CHECK_ID = this.getInfo().FIRE_CHECK_ID
this.FIRE_RECORD_ID = this.getInfo().FIRE_RECORD_ID
- this.SHOW_OR_EDIT = this.$parent.SHOW_OR_EDIT
- this.recordBase = Object.assign({}, this.$parent.row)
+ this.SHOW_OR_EDIT = this.getInfo().SHOW_OR_EDIT
+ this.recordBase = Object.assign({}, this.getInfo().row)
this.getData()
this.getSignImgs(this.FIRE_RECORD_ID)
},
@@ -310,7 +310,7 @@ export default {
this.$refs.information.init(id)
},
back() {
- this.$parent.activeName = 'RecordList'
+ this.setActiveName('RecordList')
},
// 获取详情
getData() {
diff --git a/src/views/firefighting/fireUtilReport/components/recordList.vue b/src/views/firefighting/fireUtilReport/components/recordList.vue
index c10fe85..c7620a0 100644
--- a/src/views/firefighting/fireUtilReport/components/recordList.vue
+++ b/src/views/firefighting/fireUtilReport/components/recordList.vue
@@ -125,6 +125,7 @@ export default {
this.getList()
this.hasButton()
},
+ inject: ['setActiveName', 'getInfo', 'setInfo'],
methods: {
getRowKey(row) {
return row.CHECKRECORD_ID
@@ -142,7 +143,7 @@ export default {
{
STARTTIME: this.dates[0],
ENDTIME: this.dates[1],
- FIRE_CHECK_ID: this.$parent.FIRE_CHECK_ID,
+ FIRE_CHECK_ID: this.getInfo().FIRE_CHECK_ID,
KEYWORDS: this.KEYWORDS,
STATUS: this.STATUS
}
@@ -198,15 +199,17 @@ export default {
},
// 检查记录
goCheck(row, id, FIRE_RECORD_ID) {
- this.$parent.FIRE_CHECK_ID = id
- this.$parent.FIRE_RECORD_ID = FIRE_RECORD_ID
- this.$parent.SHOW_OR_EDIT = 'SHOW'
- this.$parent.row = row
- this.$parent.activeName = 'RecordInfo'
+ const info = this.getInfo()
+ info.FIRE_CHECK_ID = id
+ info.FIRE_RECORD_ID = FIRE_RECORD_ID
+ info.SHOW_OR_EDIT = 'SHOW'
+ info.row = row
+ this.setInfo(info)
+ this.setActiveName('RecordInfo')
},
// 返回
back() {
- this.$parent.activeName = 'List'
+ this.setActiveName('FireRecord')
},
hasButton: function() {
var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel'
diff --git a/src/views/firefighting/fireUtilReport/index.vue b/src/views/firefighting/fireUtilReport/index.vue
index 5a49d71..ddde339 100644
--- a/src/views/firefighting/fireUtilReport/index.vue
+++ b/src/views/firefighting/fireUtilReport/index.vue
@@ -6,9 +6,10 @@ import List from './components/list'
import FireRecord from './components/fireRecord.vue'
import FireList from './components/fireList.vue'
import RecordInfo from './components/recordInfo.vue'
+import RecordList from './components/recordList.vue'
export default {
components: {
- List, FireRecord, FireList, RecordInfo
+ List, FireRecord, FireList, RecordInfo, RecordList
},
data() {
return {
diff --git a/src/views/hidden/zczb/components/hidden.vue b/src/views/hidden/zczb/components/hidden.vue
index fab3363..02b1c91 100644
--- a/src/views/hidden/zczb/components/hidden.vue
+++ b/src/views/hidden/zczb/components/hidden.vue
@@ -378,7 +378,7 @@ export default {
this.checkList = data.checkList
this.hImgs = data.hImgs
this.rImgs = data.rImgs
- this.cImgs = data.cImgs
+ this.cImgs = data.cImgs || data.checkList[0].cImgs
this.sImgs = data.sImgs
console.log(this.hImgs)
this.$nextTick(() => {
diff --git a/src/views/keyprojects/outsourced/components/edit.vue b/src/views/keyprojects/outsourced/components/edit.vue
index cfabc0a..001ea36 100644
--- a/src/views/keyprojects/outsourced/components/edit.vue
+++ b/src/views/keyprojects/outsourced/components/edit.vue
@@ -801,6 +801,21 @@ export default {
// 保存
confirm() {
for (let i = 0; i < this.inspectorList.length; i++) {
+ requestFN(
+ '/outsourced/checkDepartment',
+ {
+ departmentId: this.form.JURISDICTION_UNIT
+ }
+ ).then((data) => {
+ if (data.data.errInfo === 'fail') {
+ this.$message({
+ message: '勿选其他公司部门!',
+ type: 'error'
+ })
+ }
+ resolve(true)
+ }).catch((e) => {
+ });
if (this.inspectorList[i].INSPECTION_USER_ID == '') {
this.$message.warning('第' + (i + 1) + '行必须添加处罚人')
return
diff --git a/src/views/map/dialog/index.vue b/src/views/map/dialog/index.vue
index 3f011a6..8851b63 100644
--- a/src/views/map/dialog/index.vue
+++ b/src/views/map/dialog/index.vue
@@ -47,7 +47,7 @@
管控部门 | {{ pd.DEPT_NAME }} | 管控责任人 | -{{ pd.USER_ID }} | +{{ pd.USER_NAME || pd.USER_ID }} |
风险点(单元) | diff --git a/src/views/safetyenvironmental/inspection/components/add.vue b/src/views/safetyenvironmental/inspection/components/add.vue index 2e21ba9..78ab20a 100644 --- a/src/views/safetyenvironmental/inspection/components/add.vue +++ b/src/views/safetyenvironmental/inspection/components/add.vue @@ -519,8 +519,8 @@ export default { ).then((data) => { if (data.message != null) { this.INSPECTION_DEPARTMENT_ID = '' - this.INSPECTOR_List = [] this.INSPECTION_USER_ID = '' + this.form.inspectorList.splice(i,1) this.$message.error(data.message) } else { // 获取人员列表 @@ -544,9 +544,9 @@ export default { }).catch((e) => { }) } - this.form.inspectorList = [] - this.form.inspectorList.push({ INSPECTION_INSPECTOR_ID: item.INSPECTION_INSPECTOR_ID, INSPECTION_DEPARTMENT_ID: item.INSPECTION_DEPARTMENT_ID, INSPECTION_USER_ID: '', USER_SIDE: item.USER_SIDE }) - this.INSPECTOR_List.push([]) + // this.form.inspectorList = [] + // this.form.inspectorList.push({ INSPECTION_INSPECTOR_ID: item.INSPECTION_INSPECTOR_ID, INSPECTION_DEPARTMENT_ID: item.INSPECTION_DEPARTMENT_ID, INSPECTION_USER_ID: '', USER_SIDE: item.USER_SIDE }) + // this.INSPECTOR_List.push([]) }, // 获取人员列表 getInspectorList(DEPARTMENT_ID, i) { diff --git a/static/config.js b/static/config.js index fe3e613..d26df72 100644 --- a/static/config.js +++ b/static/config.js @@ -11,7 +11,7 @@ const config = { weburlNaiwang: 'http://192.168.192.201:8992/', // 附件服务器地址, httpurlNaiwang: 'http://192.168.192.201:8992//qa-prevention-gwj/', // 附件服务器地址, perRealTimeLocUrl: '192.168.210.32:8084/netty/test.io', - cmtperRealTimeLocUrl: '192.168.0.247:8899', + cmtPositionUrl: '172.16.11.146:8899', cfdfileUrl: 'http://60.2.209.238:8991/file', xfgUrl: 'https://skqhdg.porthebei.com:9006/static/qrcode/views/xgf_hgz/index.html', messageUrl: 'http://192.168.151.56:8082/static/qrcode/views/xgf_hgz/index.html'