| | |
| | | import axios from 'axios'; |
| | | import { ElMessage } from 'element-plus'; |
| | | |
| | | const debug = false; |
| | | const debug = true; |
| | | |
| | | let ip1 = 'http://47.100.191.150:9005/'; |
| | | let ip1_file = 'http://47.100.191.150:9005/'; |
| | |
| | | ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] |
| | | ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] |
| | | ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] |
| | | ElDialog: typeof import('element-plus/es')['ElDialog'] |
| | | ElDivider: typeof import('element-plus/es')['ElDivider'] |
| | | ElDrawer: typeof import('element-plus/es')['ElDrawer'] |
| | | ElDropdown: typeof import('element-plus/es')['ElDropdown'] |
| | |
| | | ElTooltip: typeof import('element-plus/es')['ElTooltip'] |
| | | ElTransfer: typeof import('element-plus/es')['ElTransfer'] |
| | | ElTree: typeof import('element-plus/es')['ElTree'] |
| | | ElUpload: typeof import('element-plus/es')['ElUpload'] |
| | | Footer: typeof import('./components/core/Footer.vue')['default'] |
| | | FormCol: typeof import('./components/layout/FormCol.vue')['default'] |
| | | FYBgTaskCard: typeof import('./components/bg-task/FYBgTaskCard.vue')['default'] |
| | |
| | | <slot name="options"></slot> |
| | | <el-form-item> |
| | | <el-button icon="Search" type="primary" @click="search">{{ btnText }}</el-button> |
| | | <slot name="buttons"></slot> |
| | | </el-form-item> |
| | | </el-form> |
| | | </template> |
| | |
| | | <template #options> |
| | | <slot name="options"></slot> |
| | | </template> |
| | | <template #buttons> |
| | | <slot name="buttons"></slot> |
| | | </template> |
| | | </FYSearchBar> |
| | | </el-row> |
| | | <el-row ref="expandRef"> |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label: 'é¿å®åº', |
| | | value: ['310105', 'é¿å®åº'], |
| | | children: [ |
| | | { label: 'åé³è·¯è¡é', value: ['310105001', 'åé³è·¯è¡é'] }, |
| | | { label: 'æ±èè·¯è¡é', value: ['310105002', 'æ±èè·¯è¡é'] }, |
| | | { label: 'æ°åè·¯è¡é', value: ['310105004', 'æ°åè·¯è¡é'] }, |
| | | { label: 'å¨å®¶æ¡¥è¡é', value: ['310105005', 'å¨å®¶æ¡¥è¡é'] }, |
| | | { label: '天山路è¡é', value: ['310105006', '天山路è¡é'] }, |
| | | { label: 'ä»éæ°æè¡é', value: ['310105008', 'ä»éæ°æè¡é'] }, |
| | | { label: 'è¹æ¡¥è¡é', value: ['310105009', 'è¹æ¡¥è¡é'] }, |
| | | { label: 'ç¨å®¶æ¡¥è¡é', value: ['310105010', 'ç¨å®¶æ¡¥è¡é'] }, |
| | | { label: 'åæ°æ³¾è¡é', value: ['310105011', 'åæ°æ³¾è¡é'] }, |
| | | { label: 'æ°æ³¾é', value: ['310105102', 'æ°æ³¾é'] }, |
| | | ], |
| | | }, |
| | | { |
| | | label: 'å®å±±åº', |
| | | value: ['310113', 'å®å±±åº'], |
| | | children: [], |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-button icon="Upload" type="success" @click="dialogVisible = true">æ¹é导å
¥</el-button> |
| | | <el-dialog |
| | | v-model="dialogVisible" |
| | | title="åºæ¯ä¿¡æ¯æ¹é导å
¥" |
| | | width="500" |
| | | :before-close="handleClose" |
| | | > |
| | | <el-upload |
| | | class="upload-demo" |
| | | drag |
| | | action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15" |
| | | multiple |
| | | accept=".xlsx" |
| | | > |
| | | <el-icon class="el-icon--upload"><upload-filled /></el-icon> |
| | | <div class="el-upload__text">æå¨æä»¶æ<em>ç¹å»ä¸ä¼ </em></div> |
| | | <template #tip> |
| | | <!-- <div class="el-upload__tip">jpg/png files with a size less than 500kb</div> --> |
| | | </template> |
| | | </el-upload> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">åæ¶</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false">ç¡®å®</el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | dialogVisible: false |
| | | }; |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | ></FYOptionOnlineStatus> |
| | | </template> |
| | | |
| | | <template #buttons> |
| | | <CompSceneImport></CompSceneImport> |
| | | </template> |
| | | |
| | | <template #table-column> |
| | | <el-table-column fixed="left" prop="name" label="åç§°" width="400"> |
| | | <template #default="scope"> |
| | |
| | | import { useLoadingStore } from '@/stores/loadingStore'; |
| | | import { mapStores } from 'pinia'; |
| | | import { useMessageBoxTip } from '@/composables/messageBox'; |
| | | import CompSceneImport from "./CompSceneImport.vue"; |
| | | |
| | | export default { |
| | | components: { |
| | | CompSceneImport, |
| | | }, |
| | | data() { |
| | | return { |
| | | formSearch: { |
| | | _locations: {}, |
| | | scensetype: {}, |
| | | online: {}, |
| | | }, |
| | | online: {} |
| | | } |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapStores(useLoadingStore), |
| | | ...mapStores(useLoadingStore) |
| | | }, |
| | | methods: { |
| | | onSearch(page, func) { |
| | | const f = this.formSearch; |
| | | const area = {}; |
| | | // è¡æ¿åºå |
| | | area.provincecode = f._locations.pCode |
| | | area.citycode = f._locations.cCode |
| | | area.districtcode = f._locations.dCode |
| | | area.towncode = f._locations.tCode |
| | | area.provincecode = f._locations.pCode; |
| | | area.citycode = f._locations.cCode; |
| | | area.districtcode = f._locations.dCode; |
| | | area.towncode = f._locations.tCode; |
| | | // åºæ¯ç±»å |
| | | area.scensetypeid = f.scensetype.value; |
| | | if (area.scensetypeid == '0') area.scensetypeid = null; |
| | | // ä¸ä¸çº¿ç¶æ |
| | | area.online = f.online.value; |
| | | |
| | | return sceneApi |
| | | .searchScene(area, page.currentPage, page.pageSize) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | func({ |
| | | data: res.data, |
| | | total: res.head.totalCount, |
| | | }); |
| | | } |
| | | }); |
| | | return sceneApi.searchScene(area, page.currentPage, page.pageSize).then((res) => { |
| | | if (res.success) { |
| | | func({ |
| | | data: res.data, |
| | | total: res.head.totalCount |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | itemEdit(scope) { |
| | | scope.row.loading1 = true; |
| | |
| | | .finally(() => { |
| | | scope.row.loading2 = false; |
| | | }); |
| | | }, |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |