diff --git a/packages/bigscreen/designer/viewport.vue b/packages/bigscreen/designer/viewport.vue
index 7ad4437e..385d8d94 100644
--- a/packages/bigscreen/designer/viewport.vue
+++ b/packages/bigscreen/designer/viewport.vue
@@ -125,8 +125,8 @@
页面设置
-
-
+
+
diff --git a/project/weiyang/AppWorkOrder/AppWorkOrder.vue b/project/biaopin/AppWorkOrder/AppWorkOrder.vue
similarity index 51%
rename from project/weiyang/AppWorkOrder/AppWorkOrder.vue
rename to project/biaopin/AppWorkOrder/AppWorkOrder.vue
index ba558ff9..c91e6b5a 100644
--- a/project/weiyang/AppWorkOrder/AppWorkOrder.vue
+++ b/project/biaopin/AppWorkOrder/AppWorkOrder.vue
@@ -9,6 +9,8 @@ import List from './components/List'
import Detail from './components/Detail'
import Setting from './components/Setting'
import settingDetail from "./components/settingDetail";
+import SetKeywordManagement from './components/SetKeywordManagement'
+import SetReportType from './components/SetReportType'
export default {
name: 'AppWorkOrder',
@@ -29,24 +31,42 @@ export default {
},
computed: {
currentPage() {
- if(this.$route.query.id) { //列表
+ console.log(this.$route)
+ if(this.$route.query.id || this.$route.hash == "#Setting" || this.$route.hash == "#SetKeywordManagement" || this.$route.hash == "#SetReportType") { //列表
this.listIndex = this.$route.query.listIndex
}
let {hash, query: {id}} = this.$route
- return hash == "#Setting" ? Setting :
- hash == "#sd" ? settingDetail :
- !!id ? Detail : List
+ // return hash == "#Setting" ? Setting :
+ // hash == "#sd" ? settingDetail :
+ // !!id ? Detail : List
+
+ if(hash == "#sd") {
+ return settingDetail
+ }else if(hash == "#Detail") {
+ return Detail
+ }else if(hash == "#Setting") {
+ return Setting
+ }else if(hash == "#SetKeywordManagement") {
+ return SetKeywordManagement
+ }else if(hash == "#SetReportType") {
+ return SetReportType
+ }else {
+ return List
+ }
}
},
components: {
List,
Detail,
- Setting
+ Setting,
+ SetKeywordManagement,
+ SetReportType
},
methods: {
onChange(data) {
- this.$router.push({query: data.params, hash: data.type == "Setting" ? "#Setting" : ""})
+ // this.$router.push({query: data.params, hash: data.type == "Setting" ? "#Setting" : ""})
+ this.$router.push({query: data.params, hash: data.type == data.type ? data.type : ""})
}
}
}
diff --git a/project/weiyang/AppWorkOrder/components/Detail.vue b/project/biaopin/AppWorkOrder/components/Detail.vue
similarity index 55%
rename from project/weiyang/AppWorkOrder/components/Detail.vue
rename to project/biaopin/AppWorkOrder/components/Detail.vue
index 501786b8..4ab362bd 100644
--- a/project/weiyang/AppWorkOrder/components/Detail.vue
+++ b/project/biaopin/AppWorkOrder/components/Detail.vue
@@ -1,11 +1,11 @@
-
+
-
+
- 指派事件
- 处理事件
+ 指派事件
+ 处理事件
@@ -14,28 +14,21 @@
-
- 编辑
-
{{ detail.phone }}
{{ detail.createTime }}
-
- {{ detail.type }}
- {{ detail.groupName }}
-
-
-
-
+ {{ dict.getLabel('residentEventSource', detail.eventSource) }}
+ {{ dict.getLabel('residentEventSource', detail.eventSource) }}
+ {{ detail.groupName }}
+ {{ detail.content }}
{{ detail.girdName }}
- {{ detail.address }}
-
+
@@ -75,17 +68,13 @@
@closed="onClose"
@onConfirm="handleEvent">
-
-
-
-
已办结
@@ -112,12 +101,10 @@
title="事件指派"
@onConfirm="onForwardConfirm">
-
-
+
+
-
- 选择人员
-
+ isShowUser=true )">选择
@@ -135,74 +122,36 @@
-
-
-
-
-
-
-
-
-
-
- onUserChange(e)" dialogTitle="选择所属网格" action="/app/appgirdinfo/girdList">
-
- 选择所属网格
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 地图标绘
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
-
-
+ title="选择网格员"
+ @onConfirm="onConfirm">
+
+
+
+
+
+
+
+ {{ data.girdName }}
+ {{data.name}}-{{data.phone}}
+
+
+
+
+
@@ -220,14 +169,16 @@ export default {
return {
forwardForm: {
content: '',
- handleUserId: '',
- handleUserName: '',
- files: [],
- user: []
+ girdId: '',
+ girdName: '',
+ girdMemberId: '',
+ girdMemberName: '',
+ name: ''
},
isLoading: true,
name: '',
detail: {},
+ isShowUser: false,
eventList: [],
isShowAdd: false,
userList: [],
@@ -244,21 +195,9 @@ export default {
groupId: '',
groupName: '',
content: [],
- eventStatus: '1',
- type: ''
+ eventStatus: '1'
},
- evaluation: {},
- isShowEdit: false, //编辑工单信息
- editInfo: {},
- placeDetail: {
- lng: '',
- lat: '',
- address: ''
- },
- showMap: false,
- searchPlace: '',
- map: null,
- typeList: []
+ evaluation: {}
}
},
@@ -273,21 +212,21 @@ export default {
created() {
this.getDict()
- this.getTypeList()
- this.dict.load('clapEventStatus', 'residentEventSource', 'xbotReportEventType').then(() => {
+ this.dict.load('clapEventStatus', 'residentEventSource').then(() => {
this.getDetail()
})
},
methods: {
getDetail() {
- this.instance.post('/app/appsessionarchivereportinfo/queryDetailById', null, {
+ this.instance.post('/app/apppatrolreportinfov2/queryDetailById', null, {
params: {id: this.$route.query.id}
}).then(res => {
if (res?.data) {
this.detail = res.data
this.processList = res.data.processList
- this.$forceUpdate()
+ this.form.groupId = res.data.groupId
+
this.$nextTick(() => {
this.initMap()
})
@@ -297,18 +236,9 @@ export default {
this.isLoading = false
})
},
- getTypeList() {
- this.instance.post(`/app/appsessionarchivefeaturelibrary/eventTypeList`).then(res => {
- if (res.code == 0) {
- res.data.map((item) => {
- var i = {dictName: item, dictValue: item}
- this.typeList.push(i)
- })
- }
- })
- },
+
getGirdList() {
- return this.instance.post(`/app/appresidentreportinfo/listGirdInfoByTransfer?id=${this.$route.query.id}`).then(res => {
+ return this.instance.post(`/app/apppatrolreportinfov2/listGirdInfoByTransfer?id=${this.$route.query.id}`).then(res => {
if (res?.data) {
// return this.tree = this.formatList([res.data])
this.tree = res.data
@@ -328,8 +258,11 @@ export default {
this.form.content = ''
this.form.eventStatus = ''
this.forwardForm.content = ''
- this.forwardForm.handleUserName = ''
- this.forwardForm.user = []
+ this.forwardForm.girdId = ''
+ this.forwardForm.girdName = ''
+ this.forwardForm.girdMemberId = ''
+ this.forwardForm.girdMemberName = ''
+ this.forwardForm.name = ''
this.forwardForm.files = []
},
@@ -359,24 +292,45 @@ export default {
onForwardConfirm() {
this.$refs.forwardForm.validate(v => {
if (v) {
- this.instance.post('/app/appsessionarchivereportinfo/transfer', {
+ this.instance.post('/app/apppatrolreportinfov2/transfer', {
...this.forwardForm,
id: this.$route.query.id
}).then(res => {
if (res?.code == 0) {
- this.$message.success('转交成功!')
this.isShowForward = false
- this.processList = []
this.onClose()
this.getDetail()
-
+ this.$message.success('转交成功!')
}
})
}
})
},
+
+ onConfirm() {
+ // if (this.gridInfo.userId) {
+ // this.forwardForm.girdId = this.gridInfo.girdId
+ // this.forwardForm.girdName = this.gridInfo.girdName
+ // this.forwardForm.girdMemberId = this.gridInfo.id
+ // this.forwardForm.girdMemberName = this.gridInfo.name
+ // } else {
+ // this.forwardForm.girdId = this.gridInfo.id
+ // }
+ // this.forwardForm.girdName = this.gridInfo.girdName
+ // this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}`
+ // this.isShowUser = false
+ if(!this.gridInfo.userId) {
+ return this.$message.error('请选择网格员!')
+ }
+ this.forwardForm.girdId = this.gridInfo.girdId
+ this.forwardForm.girdName = this.gridInfo.girdName
+ this.forwardForm.girdMemberId = this.gridInfo.id
+ this.forwardForm.girdMemberName = this.gridInfo.name
+ this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}`
+ this.isShowUser = false
+ },
getDict() {
- this.instance.post(`/app/appresidentreportgroup/list?current=1&size=100000`).then(res => {
+ this.instance.post(`/app/apppatrolreportgroupv2/list?current=1&size=100000`).then(res => {
if (res.code == 0) {
this.dictList = res.data.records.map(v => {
return {
@@ -390,7 +344,7 @@ export default {
close() {
this.$confirm('确定关闭该事件?').then(() => {
- this.instance.post(`/app/appresidentreportinfo/delete?ids=${this.$route.query.id}`).then(res => {
+ this.instance.post(`/app/apppatrolreportinfov2/delete?ids=${this.$route.query.id}`).then(res => {
if (res.code == 0) {
this.$message.success('删除成功!')
this.getList()
@@ -402,17 +356,7 @@ export default {
cancel(isRefresh) {
this.$emit('change', {
type: 'list',
- isRefresh: !!isRefresh,
- listIndex: this.listIndex
- })
- },
-
- onChange(e) {
- this.instance.post(`/app/appvillagerintegralrule/list?size=1000&classification=${e}&ruleStatus=1`).then(res => {
- if (res.code === 0) {
- this.form.ruleId = ''
- this.eventList = res.data.records
- }
+ isRefresh: !!isRefresh
})
},
@@ -438,8 +382,9 @@ export default {
handleEvent() {
this.$refs.form.validate(v => {
if (v) {
- this.instance.post('/app/appsessionarchivereportinfo/finish', {
+ this.instance.post('/app/apppatrolreportinfov2/finish', {
...this.form,
+ groupName: this.dictList.filter(v => v.dictValue === this.form.groupId)[0].dictName,
id: this.$route.query.id
}).then(res => {
if (res?.code == 0) {
@@ -450,117 +395,13 @@ export default {
})
}
})
- },
-
- onChooseUser(v) {
- this.forwardForm.handleUserId = v[0].id
- this.forwardForm.handleUserName = v[0].name
- this.forwardForm.user = v
- },
-
- editClick() {
- this.isShowEdit = true
- this.editInfo = {...this.detail}
- this.editInfo.girdIds = []
- if(this.editInfo.girdId) {
- this.editInfo.girdIds.push(this.editInfo.girdId)
- }
- },
-
- selectMap() {
- this.editInfo.lng = this.placeDetail.lng
- this.editInfo.lat = this.placeDetail.lat
- this.editInfo.address = this.placeDetail.address
- this.showMap = false
- },
- initMapSelect() {
- AMapLoader.load({
- key: 'b553334ba34f7ac3cd09df9bc8b539dc',
- version: '2.0',
- plugins: ['AMap.PlaceSearch', 'AMap.AutoComplete', 'AMap.Geocoder'],
- }).then((AMap2) => {
- this.map = new AMap2.Map('mapDialog', {
- resizeEnable: true,
- zooms: [6, 20],
- zoom: 11,
- center:[107.11059, 31.56618],
- })
- this.placeSearch = new AMap2.PlaceSearch({ map: this.map })
- new AMap2.AutoComplete({
- input: 'searchPlaceInput',
- output: 'searchPlaceOutput',
- }).on('select', (e) => {
- if (e?.poi) {
- this.placeSearch.setCity(e.poi.adcode)
- this.movePosition(e.poi.location)
- }
- })
- this.map.on('click', (e) => {
- new AMap2.Geocoder().getAddress(e.lnglat, (sta, res) => {
- if (res?.regeocode) {
- this.placeDetail = {
- lng: e.lnglat?.lng,
- lat: e.lnglat?.lat,
- address: res.regeocode.formattedAddress,
- }
- }
- })
- this.movePosition(e.lnglat)
- })
- })
- },
-
- movePosition(center) {
- if (this.map) {
- this.map.clearMap()
- this.map.panTo(center)
- this.map.add([
- new AMap.Marker({
- position: center,
- clickable: true,
- }),
- ])
- this.map.setFitView()
- }
- },
-
- onUserChange (e) {
- if (e.length) {
- this.editInfo.girdName = e[0].girdName
- } else {
- this.editInfo.girdIds = []
- this.editInfo.girdName = ''
- }
- },
-
- onCloseEdit() {
- this.isShowEdit = false
- this.editInfo = {}
- },
-
- onConfirmEdit() {
- this.$refs.editInfo.validate(v => {
- if (v) {
- this.instance.post('/app/appsessionarchivereportinfo/update', {
- ...this.editInfo,
- id: this.$route.query.id,
- girdIds: this.editInfo.girdIds.length ? this.editInfo.girdIds[0] : ''
- }).then(res => {
- if (res?.code == 0) {
- this.isShowEdit = false
- this.getDetail()
- this.$message.success('编辑成功!')
- }
- })
- }
- })
}
}
}
diff --git a/project/biaopin/AppWorkOrder/components/SetReportType.vue b/project/biaopin/AppWorkOrder/components/SetReportType.vue
new file mode 100644
index 00000000..0dd8306f
--- /dev/null
+++ b/project/biaopin/AppWorkOrder/components/SetReportType.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+
+ 添加事件类型
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/project/weiyang/AppWorkOrder/components/Setting.vue b/project/biaopin/AppWorkOrder/components/Setting.vue
similarity index 100%
rename from project/weiyang/AppWorkOrder/components/Setting.vue
rename to project/biaopin/AppWorkOrder/components/Setting.vue
diff --git a/project/weiyang/AppWorkOrder/components/TableInputColumn.vue b/project/biaopin/AppWorkOrder/components/TableInputColumn.vue
similarity index 100%
rename from project/weiyang/AppWorkOrder/components/TableInputColumn.vue
rename to project/biaopin/AppWorkOrder/components/TableInputColumn.vue
diff --git a/project/weiyang/AppWorkOrder/components/settingDetail.vue b/project/biaopin/AppWorkOrder/components/settingDetail.vue
similarity index 100%
rename from project/weiyang/AppWorkOrder/components/settingDetail.vue
rename to project/biaopin/AppWorkOrder/components/settingDetail.vue
diff --git a/project/wuxi/AppIntegratingPublic/components/Add.vue b/project/wuxi/AppIntegratingPublic/components/Add.vue
index 39c90c06..aceb5490 100644
--- a/project/wuxi/AppIntegratingPublic/components/Add.vue
+++ b/project/wuxi/AppIntegratingPublic/components/Add.vue
@@ -27,7 +27,7 @@
-
+
@@ -41,98 +41,98 @@