| | |
| | | |
| | | export default { |
| | | /** |
| | | * è·ååä»»å¡ç»è®¡ä¿¡æ¯ |
| | | * é®é¢å®¡æ ¸ |
| | | * @param {Number} action 0ï¼é®é¢éè¿ï¼1ï¼é®é¢ä¸éè¿ï¼2ï¼æ´æ¹éè¿ï¼3æ´æ¹ä¸éè¿ |
| | | */ |
| | | checkProblem({ pId, action, remark = '', userId = id, userName = name }) { |
| | | const params = `?pId=${pId}&action=${action}&remark=${remark}&userId=${userId}&userName=${userName}`; |
| | | return $fysp.post(`problemlist/check${params}`).then((res) => res.data); |
| | | }, |
| | | |
| | | fetchProblemType({ cityCode, districtCode, sceneTypeId }) { |
| | | const params = `?taskTypeId=1&cityCode=${cityCode}&districtCode=${districtCode}&sceneTypeId=${sceneTypeId}`; |
| | | return $fysp.get(`problemtype/search${params}`).then((res) => res.data); |
| | | } |
| | | }; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { $fysp } from '../index'; |
| | | |
| | | export default { |
| | | /** |
| | | * è·ååºåç¨æ·ççæµè®¾å¤åé£ç¾½ç管系ç»ãé£ç¾½ç¯å¢ç³»ç»çå¹é
è®°å½ |
| | | */ |
| | | fetchDeviceMap(param) { |
| | | return $fysp.post(`usermap/device`, param).then((res) => res.data); |
| | | } |
| | | }; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import { $fytz } from '../index'; |
| | | |
| | | /** |
| | | * 信访æè¯åè¡æ¿å¤ç½ç¸å
³APIæ¥å£ |
| | | */ |
| | | export default { |
| | | /** |
| | | * è·å信访æè¯ä¿¡æ¯ |
| | | */ |
| | | fetchComplaints(param) { |
| | | return $fytz.post(`complaint/find`, param).then((res) => res.data); |
| | | }, |
| | | |
| | | /** |
| | | * è·åè¡æ¿å¤ç½ä¿¡æ¯ |
| | | */ |
| | | fetchPunishment(param) { |
| | | return $fytz.post(`punishment/find`, param).then((res) => res.data); |
| | | } |
| | | }; |
| | |
| | | // ip2_file = 'https://fyami.com.cn/'; |
| | | } |
| | | |
| | | // const ip2 = 'http://192.168.0.123:8080/'; |
| | | |
| | | //é£ç¾½ç管 |
| | | const $fysp = axios.create({ |
| | | baseURL: ip1, |
| | |
| | | ElPageHeader: typeof import('element-plus/es')['ElPageHeader'] |
| | | ElPagination: typeof import('element-plus/es')['ElPagination'] |
| | | ElPopover: typeof import('element-plus/es')['ElPopover'] |
| | | ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] |
| | | ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] |
| | | ElRow: typeof import('element-plus/es')['ElRow'] |
| | | ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] |
| | | ElSelect: typeof import('element-plus/es')['ElSelect'] |
| | |
| | | dName: 'éå®åº', |
| | | }, |
| | | scenetype: { label: 'å·¥å°', value: '1' }, |
| | | sourcetype: false, |
| | | sourceType: 2, |
| | | }, |
| | | { |
| | | name: '徿±é¤é¥®', |
| | |
| | | dName: '徿±åº' |
| | | }, |
| | | scenetype: { label: 'é¤é¥®', value: '5' }, |
| | | sourcetype: false, |
| | | sourceType: 2, |
| | | }, |
| | | { |
| | | name: 'é山工å°', |
| | |
| | | dName: 'éå±±åº' |
| | | }, |
| | | scenetype: { label: 'å·¥å°', value: '1' }, |
| | | sourcetype: false, |
| | | sourceType: 2, |
| | | }, |
| | | { |
| | | name: 'éå±±ç 头', |
| | |
| | | dName: 'éå±±åº' |
| | | }, |
| | | scenetype: { label: 'ç 头', value: '2' }, |
| | | sourcetype: false, |
| | | sourceType: 2, |
| | | }, |
| | | { |
| | | name: 'éå±±æ
æç«', |
| | |
| | | dName: 'éå±±åº' |
| | | }, |
| | | scenetype: { label: 'æ
æç«', value: '3' }, |
| | | sourcetype: false, |
| | | sourceType: 2, |
| | | }, |
| | | { |
| | | name: '徿±æ±½ä¿®', |
| | |
| | | dName: '徿±åº' |
| | | }, |
| | | scenetype: { label: '汽修', value: '7' }, |
| | | sourcetype: true, |
| | | sourceType: 1, |
| | | } |
| | | ] |
| | | } |
| | |
| | | :allOption="false" |
| | | :initValue="false" |
| | | :sourceInit="sceneOptionSourceInit" |
| | | :type="formObj.sourcetype ? 1 : 2" |
| | | :type="formObj.sourceType" |
| | | v-model:value="formObj._scenetype" |
| | | ></FYOptionScene> |
| | | <!-- æ¶é´ --> |
| | |
| | | type="month" |
| | | v-model:value="formObj.time" |
| | | ></FYOptionTime> |
| | | <el-form-item label="ä¸»æ°æ®æº" prop="sourcetype"> |
| | | <el-switch v-model="formObj.sourcetype" @change="sceneOptionSourceInit = true" /> |
| | | <span class="m-l-16">{{ formObj.sourcetype ? '宿³æå¡è®°å½' : 'ç°åºå·¡æ¥è®°å½' }}</span> |
| | | <el-form-item label="ä¸»æ°æ®æº" prop="sourceType"> |
| | | <!-- <el-switch v-model="formObj.sourceType" @change="sceneOptionSourceInit = true" /> --> |
| | | <el-radio-group |
| | | v-model="formObj.sourceType" |
| | | size="small" |
| | | @change="sceneOptionSourceInit = true" |
| | | > |
| | | <el-radio-button label="1">宿³æå¡è®°å½</el-radio-button> |
| | | <el-radio-button label="2">ç°åºå·¡æ¥è®°å½</el-radio-button> |
| | | </el-radio-group> |
| | | <!-- <span class="m-l-16">{{ formObj.sourceType ? '宿³æå¡è®°å½' : 'ç°åºå·¡æ¥è®°å½' }}</span> --> |
| | | <el-tooltip placement="bottom-start" effect="light"> |
| | | <template #content> |
| | | <!-- <el-text tag="b" size="default">说æ</el-text><br /> --> |
| | |
| | | message: 'æ¶é´ä¸è½ä¸ºç©º', |
| | | trigger: 'change' |
| | | } |
| | | ], |
| | | sourceType: [ |
| | | { |
| | | required: true, |
| | | message: 'ä¸»æ°æ®æºå¿
须鿩', |
| | | trigger: 'change' |
| | | } |
| | | ] |
| | | }, |
| | | // å½åºæ¯éé¡¹åæ¢æ°æ®æºæ¶ï¼æ¯å¦æ¸
空å½åéé¡¹å¼ |
| | |
| | | this.sceneOptionSourceInit = false; |
| | | this.$refs.formRef.formObj._locations = param.locations; |
| | | this.$refs.formRef.formObj._scenetype = param.scenetype; |
| | | this.$refs.formRef.formObj.sourcetype = param.sourcetype; |
| | | this.$refs.formRef.formObj.sourceType = param.sourceType; |
| | | }, |
| | | submit() { |
| | | this.$refs.formRef.onSubmit(false); |
| | |
| | | <script> |
| | | import evaluateApi from '@/api/fysp/evaluateApi'; |
| | | import taskApi from '@/api/fysp/taskApi'; |
| | | import userMapApi from '@/api/fysp/userMapApi'; |
| | | import problemApi from '@/api/fysp/problemApi'; |
| | | import complaintApi from '@/api/fytz/complaintApi'; |
| | | |
| | | /** |
| | | * çæä¸é¡¹æ°æ®æºæ£æ¥è®°å½ |
| | |
| | | emits: ['update:modelValue'], |
| | | data() { |
| | | return { |
| | | areaInfo: { |
| | | _locations: '', |
| | | _scenetype: '', |
| | | time: '', |
| | | sourcetype: '' |
| | | }, |
| | | areaInfo: {}, |
| | | // æ°æ®æºæ£æ¥è®°å½ |
| | | checkResults: [ |
| | | // åºåèå´å
çèªå¨è¯ä¼°è§å表æ¯å¦åå¨ |
| | | baseCheckItem( |
| | | 'èªå¨è¯ä¼°è§å表', |
| | | '', |
| | | () => { |
| | | const param = { |
| | | taskTypeId: 99, |
| | | scensetypeid: this.areaInfo._scenetype.value |
| | | ...this.areaInfo |
| | | }; |
| | | return evaluateApi.fetchEvaluationRule(param).then((res) => { |
| | | return res.data.length > 0; |
| | |
| | | }, |
| | | true |
| | | ), |
| | | baseCheckItem('ç°åºçç®¡å·¡æ¥æ»ä»»å¡', '', () => {}), |
| | | // åºåèå´å
ççç®¡ä»»å¡æ¯å¦åå¨ |
| | | baseCheckItem('ç°åºçç®¡å·¡æ¥æ»ä»»å¡', '', () => { |
| | | return taskApi.fetchTopTasks(this.areaInfo).then((res) => { |
| | | return res.data.length > 0; |
| | | }); |
| | | }), |
| | | // åºåèå´å
ççæµæ°æ®æ¯å¦åå¨ãæ°æ®æ¶é´è·¨åº¦æ¯å¦å®æ´ãæ°æ®ç忥忿¯å¦å®æ |
| | | baseCheckItem('ç°åºçæµæ°æ®', '', () => {}), |
| | | baseCheckItem('ç管ç¹ä½ä¸çæµç¹å¹é
', '', () => {}), |
| | | baseCheckItem('ç°åºç管é®é¢ç±»å', '', () => {}), |
| | | baseCheckItem('信访æè¯', '', () => {}), |
| | | baseCheckItem('è¡æ¿å¤ç½', '', () => {}) |
| | | // åºåèå´å
çæ¯ä¸ªç管ç¹ä½ä¸çæµä»ªå¨çå¹é
è®°å½æ¯å¦åå¨ï¼ç¼ºå¤±æ
åµç |
| | | baseCheckItem('ç管ç¹ä½ä¸çæµç¹å¹é
', '', () => { |
| | | userMapApi.fetchDeviceMap(this.areaInfo).then((res) => { |
| | | return res.data.length > 0; |
| | | }); |
| | | }), |
| | | // åºåèå´å
çç管é®é¢é
置表æ¯å¦åå¨ |
| | | baseCheckItem('ç°åºç管é®é¢ç±»å', '', () => { |
| | | const param = { |
| | | cityCode: this.areaInfo.citycode, |
| | | districtCode: this.areaInfo.districtcode, |
| | | sceneTypeId: this.areaInfo.scensetypeid |
| | | } |
| | | problemApi.fetchProblemType(param).then((res) => { |
| | | return res.length > 0; |
| | | }); |
| | | }), |
| | | // åºåèå´å
ç信访æè¯è®°å½æ¯å¦åå¨ï¼å¯éæ¶è¡¥å
|
| | | baseCheckItem('信访æè¯', '', () => { |
| | | complaintApi.fetchComplaints(); |
| | | }), |
| | | // åºåèå´å
çè¡æ¿å¤ç½è®°å½æ¯å¦åå¨ï¼å¯éæ¶è¡¥å
|
| | | baseCheckItem('è¡æ¿å¤ç½', '', () => { |
| | | complaintApi.fetchPunishment(); |
| | | }) |
| | | ] |
| | | }; |
| | | }, |
| | |
| | | } |
| | | }, |
| | | // å¼å§æ£æ¥ä»»å¡ |
| | | startCheck(v) { |
| | | this.areaInfo = v; |
| | | startCheck(value) { |
| | | const v = value.value |
| | | this.areaInfo = { |
| | | provincecode: v._locations.pCode, |
| | | provincename: v._locations.pName, |
| | | citycode: v._locations.cCode, |
| | | cityname: v._locations.cName, |
| | | districtcode: v._locations.dCode, |
| | | districtname: v._locations.dName, |
| | | towncode: v._locations.tCode, |
| | | townname: v._locations.tName, |
| | | starttime: v.time, |
| | | scensetypeid: v._scenetype.value, |
| | | online: true, |
| | | sourceType: v.sourceType, |
| | | }; |
| | | this.checkResults.forEach((e) => { |
| | | e.fetch(); |
| | | }); |