| | |
| | | BaseContentLayout: typeof import('./components/core/BaseContentLayout.vue')['default'] |
| | | BasePanelLayout: typeof import('./components/core/BasePanelLayout.vue')['default'] |
| | | Content: typeof import('./components/core/Content.vue')['default'] |
| | | copy: typeof import('./components/search-option/OptionScene copy.vue')['default'] |
| | | ElAside: typeof import('element-plus/es')['ElAside'] |
| | | ElAvatar: typeof import('element-plus/es')['ElAvatar'] |
| | | ElBacktop: typeof import('element-plus/es')['ElBacktop'] |
| | |
| | | Footer: typeof import('./components/core/Footer.vue')['default'] |
| | | FormCol: typeof import('./components/layout/FormCol.vue')['default'] |
| | | Header: typeof import('./components/core/Header.vue')['default'] |
| | | Location: typeof import('./components/search-option/Location.vue')['default'] |
| | | LocationOption: typeof import('./components/search-option/LocationOption.vue')['default'] |
| | | MenuItems: typeof import('./components/core/MenuItems.vue')['default'] |
| | | OptionLocation: typeof import('./components/search-option/OptionLocation.vue')['default'] |
| | | OptionOnlineStatus: typeof import('./components/search-option/OptionOnlineStatus.vue')['default'] |
| | | OptionScene: typeof import('./components/search-option/OptionScene.vue')['default'] |
| | | ProblemCard: typeof import('./components/ProblemCard.vue')['default'] |
| | | RouterLink: typeof import('vue-router')['RouterLink'] |
| | | RouterView: typeof import('vue-router')['RouterView'] |
| | | SceneOption: typeof import('./components/search-option/SceneOption.vue')['default'] |
| | | SearchBar: typeof import('./components/SearchBar.vue')['default'] |
| | | SideList: typeof import('./components/SideList.vue')['default'] |
| | | SiderMenu: typeof import('./components/core/SiderMenu.vue')['default'] |
| | |
| | | |
| | | <script> |
| | | import taskApi from '@/api/fysp/taskApi'; |
| | | import { enumScene_2NA } from "@/enum/scene"; |
| | | import { enumScene } from "@/enum/scene"; |
| | | |
| | | export default { |
| | | emits: ['onSubmit'], |
| | | data() { |
| | | return { |
| | | topTasks: [], |
| | | sceneTypes: enumScene_2NA(), |
| | | sceneTypes: enumScene(2, false), |
| | | formSearch: { |
| | | topTaskId: '', |
| | | sceneTypeId: '', |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-cascader |
| | | v-model="selectedOptions" |
| | | :options="locations" |
| | | placeholder="placeholder" |
| | | :props="props" |
| | | style="width: 280px" |
| | | /> |
| | | </template> |
| | | |
| | | <script> |
| | | import { enumLocation } from '@/enum/location'; |
| | | |
| | | export default { |
| | | props: { |
| | | // æ¯å¦å¨é¦é项夿·»å âå
¨é¨âé项 |
| | | allOption: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | // æ¥è¯¢çè¡æ¿çº§å«ï¼åå¼1ï¼2ï¼3ï¼4 |
| | | level: { |
| | | type: Number, |
| | | default: 4, |
| | | }, |
| | | // ç»æè¿åæ°ç» |
| | | value: Array, |
| | | }, |
| | | emits: ['update:value'], |
| | | data() { |
| | | return { |
| | | locations: enumLocation(this.allOption, this.level), |
| | | selectedOptions: [], |
| | | props: { |
| | | checkStrictly: true, |
| | | }, |
| | | }; |
| | | }, |
| | | computed: { |
| | | placeholder() { |
| | | const list = 'ç/å¸/åº/é'.split('/'); |
| | | const p = []; |
| | | for (let i = 0; i < this.level; i++) { |
| | | p.push(list[i]); |
| | | } |
| | | return p; |
| | | }, |
| | | }, |
| | | watch: { |
| | | selectedOptions: { |
| | | handler(val) { |
| | | this.$emit('update:value', val); |
| | | }, |
| | | deep: true, |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.selectedOptions = [this.locations[0].value]; |
| | | }, |
| | | }; |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-select |
| | | v-model="selectedOptions" |
| | | placeholder="ä¸çº¿ç¶æ" |
| | | style="width: 75px" |
| | | > |
| | | <el-option |
| | | v-for="s in onlineStatus" |
| | | :key="s.value" |
| | | :label="s.label" |
| | | :value="s" |
| | | /> |
| | | </el-select> |
| | | </template> |
| | | |
| | | <script> |
| | | import { enumOnlineStatus } from '@/enum/onlineStatus'; |
| | | |
| | | export default { |
| | | props: { |
| | | // æ¯å¦å¨é¦é项夿·»å âå
¨é¨âé项 |
| | | allOption: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | // è¿åç»æ |
| | | value: Object, |
| | | }, |
| | | emits: ['update:value'], |
| | | data() { |
| | | return { |
| | | onlineStatus: enumOnlineStatus(), |
| | | selectedOptions: {}, |
| | | }; |
| | | }, |
| | | watch: { |
| | | selectedOptions: { |
| | | handler(val) { |
| | | this.$emit('update:value', val); |
| | | }, |
| | | deep: true, |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.selectedOptions = this.onlineStatus[0]; |
| | | }, |
| | | }; |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-select |
| | | v-model="selectedOptions" |
| | | placeholder="åºæ¯ç±»å" |
| | | style="width: 150px" |
| | | > |
| | | <el-option |
| | | v-for="s in sceneTypes" |
| | | :key="s.value" |
| | | :label="s.label" |
| | | :value="s" |
| | | /> |
| | | </el-select> |
| | | </template> |
| | | |
| | | <script> |
| | | import { enumScene } from '@/enum/scene'; |
| | | |
| | | export default { |
| | | props: { |
| | | // æ¯å¦å¨é¦é项夿·»å âå
¨é¨âé项 |
| | | allOption: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | // 1:é£ç¾½ç¯å¢ç³»ç»ï¼2ï¼é£ç¾½ç管系ç»ï¼ |
| | | type: { |
| | | type: Number, |
| | | default: 1, |
| | | }, |
| | | // è¿åç»æ |
| | | value: Object, |
| | | }, |
| | | emits: ['update:value'], |
| | | data() { |
| | | return { |
| | | sceneTypes: enumScene(this.type, this.allOption), |
| | | selectedOptions: {}, |
| | | }; |
| | | }, |
| | | watch: { |
| | | selectedOptions: { |
| | | handler(val) { |
| | | this.$emit('update:value', val); |
| | | }, |
| | | deep: true, |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.selectedOptions = this.sceneTypes[0]; |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | |
| | | // æ°æ®è·å |
| | | function fetchData() { |
| | | fetch(currentPage, pageSize).then((res) => { |
| | | loadStatus.value = 1; |
| | | fetch(currentPage.value, pageSize.value) |
| | | .then((pageInfo) => { |
| | | currentPage.value = pageInfo.currentPage; |
| | | totalPage.value = pageInfo.totalPage; |
| | | total.value = pageInfo.total; |
| | | |
| | | loadStatus.value = 0; |
| | | }) |
| | | .catch(() => { |
| | | loadStatus.value = 3; |
| | | }) |
| | | .finally(() => { |
| | | loadStatus.value = 2; |
| | | }); |
| | | } |
| | | |
| | | return {currentPage, totalPage, pageSize, total, loadStatus, fetchData} |
| | | } |
| | |
| | | // è¡æ¿åºå |
| | | /** |
| | | * è·åè¡æ¿åºå |
| | | * @param {Boolean} allOption æ¯å¦å¨å¤´é¨æ·»å âå
¨é¨âé项 |
| | | * @param {Number} level è·åçå类深度ï¼èå´ 1 - 4 |
| | | * @returns |
| | | */ |
| | | function enumLocation(allOption = true, level = 4) { |
| | | const l = _enumLocation(); |
| | | if (!allOption) { |
| | | l.shift(); |
| | | } |
| | | _deleteByLevel(l, level, 1); |
| | | |
| | | function enumLocation() { |
| | | return l; |
| | | } |
| | | |
| | | function _enumLocation() { |
| | | return [ |
| | | { |
| | | label: 'å
¨é¨', |
| | |
| | | }, |
| | | ]; |
| | | } |
| | | function enumLocationNA() { |
| | | const l = enumLocation(); |
| | | l.shift(); |
| | | return l; |
| | | |
| | | // æç
§éæ±çå®ä½ç²¾åº¦è¿åå¯¹åºæ°æ® |
| | | function _deleteByLevel(locations, level, step) { |
| | | if (step == level) { |
| | | locations.forEach((l) => { |
| | | if (l.children) { |
| | | l.children = undefined; |
| | | } |
| | | }); |
| | | return; |
| | | } else { |
| | | step++; |
| | | locations.forEach((l) => { |
| | | if (l.children) { |
| | | _deleteByLevel(l.children, level, step); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export { enumLocation, enumLocationNA }; |
| | | export { enumLocation }; |
| | |
| | | // ä¸ä¸çº¿ç¶æ |
| | | /** |
| | | * ä¸ä¸çº¿ç¶æ |
| | | * @param {Boolean} allOption æ¯å¦å¨å¤´é¨æ·»å âå
¨é¨âé项 |
| | | * @returns |
| | | */ |
| | | function enumOnlineStatus(allOption = true) { |
| | | const l = _enumOnlineStatus(); |
| | | if (!allOption) { |
| | | l.shift(); |
| | | } |
| | | |
| | | function enumOnlineStatus() { |
| | | return l; |
| | | } |
| | | |
| | | function _enumOnlineStatus() { |
| | | return [ |
| | | { |
| | | label: 'å
¨é¨', |
| | |
| | | ]; |
| | | } |
| | | |
| | | function enumOnlineStatusNA() { |
| | | const l = enumOnlineStatus(); |
| | | l.shift(); |
| | | return l; |
| | | } |
| | | |
| | | export { enumOnlineStatus, enumOnlineStatusNA }; |
| | | export { enumOnlineStatus }; |
| | |
| | | // åºæ¯ç±»åæä¸¾ |
| | | /** |
| | | * åºæ¯ç±»åæä¸¾ |
| | | * @param {Number} type 1:é£ç¾½ç¯å¢ç³»ç»ï¼2ï¼é£ç¾½ç管系ç»ï¼ |
| | | * @param {Boolean} allOption æ¯å¦å¨å¤´é¨æ·»å âå
¨é¨âé项 |
| | | */ |
| | | function enumScene(type, allOption = true) { |
| | | let l; |
| | | switch (type) { |
| | | case 1: |
| | | l = _enumScene_1(); |
| | | break; |
| | | case 2: |
| | | l = _enumScene_2(); |
| | | break; |
| | | default: |
| | | l = _enumScene_1(); |
| | | break; |
| | | } |
| | | if (!allOption) { |
| | | l.shift(); |
| | | } |
| | | |
| | | return l; |
| | | } |
| | | |
| | | function getSceneName(value, type = 1) { |
| | | enumScene(type).find((v) => { |
| | | if (v.value == value) { |
| | | return v; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // é£ç¾½ç¯å¢ç³»ç» |
| | | function enumScene_1() { |
| | | function _enumScene_1() { |
| | | return [ |
| | | { |
| | | label: 'å
¨é¨', |
| | |
| | | }, |
| | | ]; |
| | | } |
| | | function enumScene_1NA() { |
| | | const l = enumScene_1(); |
| | | l.shift(); |
| | | return l; |
| | | } |
| | | function getSceneName_1(value) { |
| | | enumScene_1().find((v) => { |
| | | if (v.value == value) { |
| | | return v; |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // é£ç¾½çç®¡ç³»ç» |
| | | function enumScene_2() { |
| | | function _enumScene_2() { |
| | | return [ |
| | | { |
| | | label: 'å
¨é¨', |
| | |
| | | }, |
| | | ]; |
| | | } |
| | | function enumScene_2NA() { |
| | | const l = enumScene_2(); |
| | | l.shift(); |
| | | return l; |
| | | } |
| | | |
| | | export { |
| | | enumScene_1, |
| | | enumScene_1NA, |
| | | getSceneName_1, |
| | | enumScene_2, |
| | | enumScene_2NA, |
| | | }; |
| | | export { enumScene, getSceneName }; |
| | |
| | | const list = [ |
| | | [310104501, 'æ¼æ²³æ³¾æ°å
´ææ¯å¼ååº'], |
| | | [310104004, 'æ¹åè·¯è¡é'], |
| | | [310104003, '天平路è¡é'], |
| | | [310104012, 'è¹æ¢
è·¯è¡é'], |
| | | [310104008, 'æ«æè·¯è¡é'], |
| | | [310104007, 'æåè·¯è¡é'], |
| | | [310104010, 'é¿æ¡¥è¡é'], |
| | | [310104011, 'ç°æè¡é'], |
| | | [310104013, 'åº·å¥æ°æè¡é'], |
| | | [310104014, 'å¾å®¶æ±è¡é'], |
| | | [310104015, 'åäºè·¯è¡é'], |
| | | [310104016, 'é¾åè¡é'], |
| | | [310104017, 'æ¼æ²³æ³¾è¡é'], |
| | | [310104103, 'åæ³¾é'], |
| | | ]; |
| | | const shape = { |
| | | radius: 9, |
| | | d() { |
| | | return this.radius * 2; |
| | | }, |
| | | p: () => 2 * Math.PI * this.radius, |
| | | }; |
| | | |
| | | const result = []; |
| | | list.forEach((l) => { |
| | | result.push({ |
| | | label: l[1], |
| | | value: l[0] + '', |
| | | }); |
| | | }); |
| | | console.log(shape.d()); |
| | | console.log(shape.p()); |
| | | |
| | | console.log(result); |
| | | const str = 'abc'; |
| | | if (str[0] >= 'a' && str[0] <= 'z') { |
| | | let a = parseInt(str[0]); |
| | | a -= 32; |
| | | console.log(a); |
| | | } |
| | |
| | | |
| | | <script setup> |
| | | import { defineProps, defineEmits, reactive, ref, watch } from 'vue'; |
| | | import { enumScene_2NA } from '@/enum/scene'; |
| | | import { enumLocationNA } from '@/enum/location'; |
| | | import { enumScene } from '@/enum/scene'; |
| | | import { enumLocation } from '@/enum/location'; |
| | | import sceneApi from '@/api/fysp/sceneApi'; |
| | | import { useFormConfirm } from '@/composables/formConfirm'; |
| | | |
| | |
| | | }, |
| | | }); |
| | | const loading = ref(false); |
| | | const sceneTypes = reactive(enumScene_2NA()); |
| | | const locations = reactive(enumLocationNA()); |
| | | const sceneTypes = reactive(enumScene(2, false)); |
| | | const locations = reactive(enumLocation(false)); |
| | | const cascaderProps = reactive({ |
| | | checkStrictly: true, |
| | | }); |
| | |
| | | <script setup> |
| | | import { defineProps, defineEmits, reactive, ref, watch } from 'vue'; |
| | | import { useFormConfirm } from '@/composables/formConfirm'; |
| | | import { enumOnlineStatusNA } from '@/enum/onlineStatus'; |
| | | import { enumOnlineStatus } from '@/enum/onlineStatus'; |
| | | import sceneApi from '@/api/fysp/sceneApi'; |
| | | |
| | | const props = defineProps({ |
| | |
| | | }, |
| | | }); |
| | | const loading = ref(false); |
| | | const onlineStatus = reactive(enumOnlineStatusNA()); |
| | | const onlineStatus = reactive(enumOnlineStatus(false)); |
| | | const rules = reactive({ |
| | | sdNum: [ |
| | | { |
| | |
| | | <el-row ref="searchRef"> |
| | | <el-form :inline="true" :model="formSearch"> |
| | | <el-form-item label="ç/å¸/åº/é" prop="_locations"> |
| | | <el-cascader |
| | | <!-- <el-cascader |
| | | v-model="formSearch._locations" |
| | | :options="locations" |
| | | placeholder="ç/å¸/åº/é" |
| | | :props="props" |
| | | style="width: 280px" |
| | | /> |
| | | /> --> |
| | | <OptionLocation |
| | | :allOption="true" |
| | | :level="4" |
| | | v-model:value="formSearch._locations" |
| | | ></OptionLocation> |
| | | </el-form-item> |
| | | <el-form-item label="åºæ¯ç±»å" prop="scensetypeid"> |
| | | <el-select |
| | | <el-form-item label="åºæ¯ç±»å" prop="scensetype"> |
| | | <OptionScene |
| | | :allOption="true" |
| | | :type="2" |
| | | v-model:value="formSearch.scensetype" |
| | | ></OptionScene> |
| | | <!-- <el-select |
| | | v-model="formSearch.scensetypeid" |
| | | placeholder="åºæ¯ç±»å" |
| | | style="width: 150px" |
| | |
| | | :label="s.label" |
| | | :value="s.value" |
| | | /> |
| | | </el-select> |
| | | </el-select> --> |
| | | </el-form-item> |
| | | <el-form-item label="ä¸çº¿ç¶æ" prop="online"> |
| | | <el-select |
| | | <OptionOnlineStatus |
| | | :allOption="true" |
| | | v-model:value="formSearch.online" |
| | | ></OptionOnlineStatus> |
| | | <!-- <el-select |
| | | v-model="formSearch.online" |
| | | placeholder="ä¸çº¿ç¶æ" |
| | | style="width: 75px" |
| | |
| | | :label="s.label" |
| | | :value="s.value" |
| | | /> |
| | | </el-select> |
| | | </el-select> --> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button icon="Search" type="primary" @click="onSearch" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { enumScene_2 } from '@/enum/scene'; |
| | | import { enumLocation } from '@/enum/location'; |
| | | import { enumOnlineStatus } from '@/enum/onlineStatus'; |
| | | import sceneApi from '@/api/fysp/sceneApi'; |
| | | import { useLoadingStore } from '@/stores/loadingStore'; |
| | | import { mapStores } from 'pinia'; |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | locations: enumLocation(), |
| | | sceneTypes: enumScene_2(), |
| | | onlineStatus: enumOnlineStatus(), |
| | | formSearch: { |
| | | _locations: [], |
| | | provincecode: '', |
| | | citycode: '', |
| | | districtcode: '', |
| | | towncode: '', |
| | | scensetypeid: '', |
| | | online: '', |
| | | }, |
| | | props: { |
| | | checkStrictly: true, |
| | | scensetype: {}, |
| | | online: {}, |
| | | }, |
| | | |
| | | tableData: [], |
| | |
| | | ? (area.towncode = f._locations[3][0]) |
| | | : (area.towncode = null); |
| | | // åºæ¯ç±»å |
| | | area.scensetypeid = f.scensetypeid; |
| | | area.scensetypeid = f.scensetype.value; |
| | | if (area.scensetypeid == '0') area.scensetypeid = null; |
| | | // ä¸ä¸çº¿ç¶æ |
| | | area.online = f.online; |
| | | area.online = f.online.value; |
| | | |
| | | sceneApi |
| | | .searchScene(area, this.currentPage, this.pageSize) |
| | |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.formSearch.scensetypeid = this.sceneTypes[0].value; |
| | | this.formSearch._locations = [this.locations[0].value]; |
| | | this.formSearch.online = this.onlineStatus[0].value; |
| | | this.tableHeight = this.calcTableHeight(); |
| | | this.onSearch(); |
| | | }, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { enumScene_2 } from '@/enum/scene'; |
| | | import { enumScene } from '@/enum/scene'; |
| | | import { enumDistrict } from '@/enum/district'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | districts: enumDistrict(), |
| | | sceneTypes: enumScene_2(), |
| | | sceneTypes: enumScene(2), |
| | | formSearch: { |
| | | district: '', |
| | | sceneTypeId: '', |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { enumScene_1 } from '@/enum/scene'; |
| | | import { enumScene } from '@/enum/scene'; |
| | | import { enumLocation } from '@/enum/location'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | locations: enumLocation(), |
| | | sceneTypes: enumScene_1(), |
| | | sceneTypes: enumScene(1), |
| | | formSearch: { |
| | | _locations: [], |
| | | provincecode: '', |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { enumScene_1 } from '@/enum/scene'; |
| | | import { enumScene } from '@/enum/scene'; |
| | | import { enumLocation } from '@/enum/location'; |
| | | import { enumOnlineStatus } from '@/enum/onlineStatus'; |
| | | import userApi from '@/api/fytz/userApi'; |
| | |
| | | data() { |
| | | return { |
| | | locations: enumLocation(), |
| | | sceneTypes: enumScene_1(), |
| | | sceneTypes: enumScene(1), |
| | | onlineStatus: enumOnlineStatus(), |
| | | formSearch: { |
| | | _locations: [], |
| | |
| | | import { defineProps, defineEmits, reactive, ref, watch } from 'vue'; |
| | | import { useFormConfirm } from '@/composables/formConfirm'; |
| | | import { enumUserNA } from '@/enum/user'; |
| | | import { enumScene_1NA, getSceneName_1 } from '@/enum/scene'; |
| | | import { enumLocationNA } from '@/enum/location'; |
| | | import { enumScene, getSceneName } from '@/enum/scene'; |
| | | import { enumLocation } from '@/enum/location'; |
| | | import userApi from '@/api/fytz/userApi'; |
| | | |
| | | const props = defineProps({ |
| | |
| | | }); |
| | | |
| | | const userTypes = reactive(enumUserNA()); |
| | | const sceneTypes = reactive(enumScene_1NA()); |
| | | const locations = enumLocationNA(); |
| | | const sceneTypes = reactive(enumScene(1, false)); |
| | | const locations = enumLocation(false); |
| | | const locationsProps = reactive({ |
| | | checkStrictly: true, |
| | | }); |
| | |
| | | }; |
| | | |
| | | s._scenetype = { |
| | | label: getSceneName_1(s.extension2), |
| | | label: getSceneName(s.extension2, 1), |
| | | value: s.extension2, |
| | | }; |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { enumScene_1 } from '@/enum/scene'; |
| | | import { enumScene } from '@/enum/scene'; |
| | | import { enumDistrict } from '@/enum/district'; |
| | | import { enumNotice } from '@/enum/notice'; |
| | | |
| | |
| | | // expandTrigger: 'hover' |
| | | }, |
| | | districts: enumDistrict(), |
| | | sceneTypes: enumScene_1(), |
| | | sceneTypes: enumScene(1), |
| | | noticeTypes: enumNotice(), |
| | | form: { |
| | | //åå¸è
id |
| | |
| | | <script> |
| | | import noticeApi from '@/api/fytz/noticeApi'; |
| | | import { useDateFormat } from '@vueuse/core'; |
| | | import { enumScene_1 } from '@/enum/scene'; |
| | | import { enumScene } from '@/enum/scene'; |
| | | import { enumDistrict } from '@/enum/district'; |
| | | import { enumNotice } from '@/enum/notice'; |
| | | |
| | |
| | | loading: false, |
| | | drawer: false, |
| | | districts: enumDistrict(), |
| | | sceneTypes: enumScene_1(), |
| | | sceneTypes: enumScene(1), |
| | | noticeTypes: enumNotice(), |
| | | formSearch: { |
| | | district: '', |