diff --git a/project/weiyang/AppWorkOrder/AppWorkOrder.vue b/project/weiyang/AppWorkOrder/AppWorkOrder.vue index ba558ff9..c91e6b5a 100644 --- a/project/weiyang/AppWorkOrder/AppWorkOrder.vue +++ b/project/weiyang/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/List.vue b/project/weiyang/AppWorkOrder/components/List.vue index 73d07a7c..629e6b13 100644 --- a/project/weiyang/AppWorkOrder/components/List.vue +++ b/project/weiyang/AppWorkOrder/components/List.vue @@ -2,7 +2,7 @@ @@ -138,7 +138,9 @@ export default { {label: '居民上报', value: 0} ], currIndex: 0, - placeholderTextList: ['请输入内容描述/上报人员/联系方式', '敏感词、涉及对象、姓名、手机号', '请输入内容描述/上报人员/联系方式'], + placeholderTextList: ['请输入内容描述/上报人员/联系方式', '敏感词、涉及对象、姓名、手机号', + '请输入内容描述/上报人员/联系方式', '请输入内容描述/上报人员/联系方式'], + rightBtnTextList: ['工单特征库', '敏感关键词', '事件类型', '事件类型'], colConfigs: [] } }, @@ -217,7 +219,8 @@ export default { this.instance.post(`/app/apppatrolreportinfov2/list`, null, { params: { ...this.search, - eventSource: this.tabs[this.currIndex].value + eventSource: this.tabs[this.currIndex].value, + groupName: this.search.type } }).then(res => { if (res.code == 0) { @@ -227,7 +230,8 @@ export default { }) }, getTypeList() { - this.instance.post(`/app/appsessionarchivefeaturelibrary/eventTypeList`).then(res => { + this.typeList = [] + this.instance.post(`/app/apppatrolreportinfov2/eventTypeList?eventSource=${this.tabs[this.currIndex].value}`).then(res => { if (res.code == 0) { res.data.map((item) => { var i = {distName: item, dictValue: item} @@ -246,10 +250,12 @@ export default { }) }, toSetting() { + var setNameList = ['Setting', 'SetKeywordManagement', 'SetReportType', 'SetReportType'] this.$emit('change', { - type: 'Setting', + type: setNameList[this.currIndex], params: { - id: '' + id: '', + listIndex: this.currIndex } }) }, @@ -274,6 +280,12 @@ export default { this.colConfigs = this.colConfigs3 } this.search.current = 1 + this.search.type = '' + this.search.eventStatus = '' + this.search.startTime = '' + this.search.endTime = '' + this.search.content = '' + this.getTypeList() this.getList() } }, diff --git a/project/weiyang/AppWorkOrder/components/SetKeywordManagement.vue b/project/weiyang/AppWorkOrder/components/SetKeywordManagement.vue new file mode 100644 index 00000000..cb765b7e --- /dev/null +++ b/project/weiyang/AppWorkOrder/components/SetKeywordManagement.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/project/weiyang/AppWorkOrder/components/SetReportType.vue b/project/weiyang/AppWorkOrder/components/SetReportType.vue new file mode 100644 index 00000000..0dd8306f --- /dev/null +++ b/project/weiyang/AppWorkOrder/components/SetReportType.vue @@ -0,0 +1,188 @@ + + + + +