system-phone 1.4.0 → 3.0.2-tc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gradle/6.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.1/fileChanges/last-build.bin +0 -0
- package/.gradle/6.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/checksums/md5-checksums.bin +0 -0
- package/.gradle/checksums/sha1-checksums.bin +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/SystemPhone.iml +9 -0
- package/build/dev-server.js +51 -31
- package/build/webpack.base.conf.js +5 -1
- package/build.gradle +1 -1
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +183 -0
- package/gradlew.bat +100 -0
- package/index.html +2 -754
- package/package.json +5 -3
- package/src/assets/biaohao.png +0 -0
- package/src/assets/bieming.png +0 -0
- package/src/assets/caozuo.png +0 -0
- package/src/assets/guige.png +0 -0
- package/src/assets/images/back.png +0 -0
- package/src/assets/images//345/201/234/346/260/224/345/205/254/345/221/212.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/344/273/212/346/227/245/345/267/245/345/215/225.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/345/234/250/347/272/277/345/244/204/347/220/206.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/345/244/204/347/220/206/344/270/255.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/345/256/214/346/210/220/347/216/207.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/345/267/245/345/215/225/351/207/217.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/345/267/262/345/256/214/346/210/220.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/345/276/205/345/244/204/347/220/206.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/346/264/276/345/215/225/351/207/217.png +0 -0
- package/src/assets/images//345/256/242/346/234/215/347/275/221/345/216/205/351/242/204/347/272/246/346/264/276/345/215/225/351/207/217.png +0 -0
- package/src/assets/images//345/261/205/346/260/221/345/242/236/351/225/277/345/210/206/346/236/220.png +0 -0
- package/src/assets/images//345/261/205/346/260/221/347/224/250/346/210/267.png +0 -0
- package/src/assets/images//346/224/266/350/264/271total1.png +0 -0
- package/src/assets/images//346/224/266/350/264/271total2.png +0 -0
- package/src/assets/images//346/224/266/350/264/271total3.png +0 -0
- package/src/assets/images//346/224/266/350/264/271/345/205/266/344/273/226/344/270/232/345/212/241.png +0 -0
- package/src/assets/images//346/224/266/350/264/271/345/224/256/346/260/224/351/207/217/345/210/206/346/236/220.png +0 -0
- package/src/assets/images//346/224/266/350/264/271/347/254/224/346/225/260/345/260/217/346/240/207/351/242/230.png +0 -0
- package/src/assets/images//347/224/250/346/210/2671.png +0 -0
- package/src/assets/images//351/235/236/345/261/205/346/260/221/347/224/250/346/210/267.png +0 -0
- package/src/assets/leixing.png +0 -0
- package/src/assets/loging.gif +0 -0
- package/src/assets/mingwen.png +0 -0
- package/src/assets/miwen.png +0 -0
- package/src/assets/phone.png +0 -0
- package/src/assets/pinpai.png +0 -0
- package/src/assets/pos/346/224/266/350/264/271.png +0 -0
- package/src/assets/qiliang.png +0 -0
- package/src/assets/shuaxindaiban1.png +0 -0
- package/src/assets/xinghao.png +0 -0
- package/src/assets/yue.png +0 -0
- package/src/assets//344/270/212/344/274/240/345/267/245/344/275/234/346/234/252/351/200/211/344/270/255.png +0 -0
- package/src/assets//344/270/212/344/274/240/345/267/245/344/275/234/351/200/211/344/270/255.png +0 -0
- package/src/assets//344/270/213/350/275/275/350/256/241/345/210/222.png +0 -0
- package/src/assets//344/270/223/351/241/271/345/256/211/346/243/200.png +0 -0
- package/src/assets//344/270/252/344/272/272/344/270/255/345/277/203.png +0 -0
- package/src/assets//344/270/264/346/227/266/345/256/211/346/243/200.png +0 -0
- package/src/assets//344/273/273/345/212/241/346/237/245/350/257/242.png +0 -0
- package/src/assets//344/275/260/346/227/272/345/276/267/345/205/266/344/273/226/347/274/264/350/264/271.png +0 -0
- package/src/assets//344/276/233/346/232/226/347/274/264/350/264/271.png +0 -0
- package/src/assets//344/277/241/346/201/257/345/205/254/345/221/212.png +0 -0
- package/src/assets//344/277/241/346/201/257/346/237/245/350/257/242.png +0 -0
- package/src/assets//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
- package/src/assets//344/277/256/346/224/271/345/257/206/347/240/2011.png +0 -0
- package/src/assets//345/201/234/346/260/224/345/205/254/345/221/212.png +0 -0
- package/src/assets//345/205/254/345/221/212/346/237/245/347/234/213.png +0 -0
- package/src/assets//345/205/261/344/272/253/350/256/241/345/210/222.png +0 -0
- package/src/assets//345/205/266/344/273/226/347/274/264/350/264/271.png +0 -0
- package/src/assets//345/206/214/345/206/205/351/241/272/345/272/217/344/277/256/346/224/271.png +0 -0
- package/src/assets//345/207/272/345/205/267/350/256/276/350/256/241/345/233/276/347/272/270.png +0 -0
- package/src/assets//345/215/241/350/241/250/345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
- package/src/assets//345/217/226/346/266/210/350/207/252/345/212/250/347/231/273/345/275/225.png +0 -0
- package/src/assets//345/220/210/345/220/214/347/255/276/350/256/242.png +0 -0
- package/src/assets//345/234/250/347/272/277/344/270/232/345/212/241/346/234/252/351/200/211/344/270/255.png +0 -0
- package/src/assets//345/234/250/347/272/277/344/270/232/345/212/241/351/200/211/344/270/255.png +0 -0
- package/src/assets//345/234/250/347/272/277/345/256/211/346/243/200.png +0 -0
- package/src/assets//345/234/250/347/272/277/345/267/241/346/243/200.png +0 -0
- package/src/assets//345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
- package/src/assets//345/234/250/347/272/277/346/212/242/344/277/256.png +0 -0
- package/src/assets//345/234/250/347/272/277/346/212/245/350/243/205.png +0 -0
- package/src/assets//345/234/250/347/272/277/346/216/245/345/215/225.png +0 -0
- package/src/assets//345/234/250/347/272/277/346/223/215/344/275/234.png +0 -0
- package/src/assets//345/234/250/347/272/277/347/273/237/350/256/241.png +0 -0
- package/src/assets//345/234/250/347/272/277/347/273/264/344/277/256.png +0 -0
- package/src/assets//345/234/250/347/272/277/347/274/264/350/264/271.png +0 -0
- package/src/assets//345/234/250/347/272/277/351/200/232/346/260/224.png +0 -0
- package/src/assets//345/256/211/346/243/200/344/270/212/344/274/240.png +0 -0
- package/src/assets//345/256/211/346/243/200/345/234/250/347/272/277/347/273/237/350/256/241.png +0 -0
- package/src/assets//345/256/211/346/243/200/345/267/262/345/212/236.png +0 -0
- package/src/assets//345/256/211/346/243/200/345/276/205/345/212/236.png +0 -0
- package/src/assets//345/256/211/346/243/200/346/212/275/345/215/225.png +0 -0
- package/src/assets//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/src/assets//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/src/assets//345/256/211/346/243/200/350/256/241/345/210/222/345/210/227/350/241/250.png +0 -0
- package/src/assets//345/256/211/350/243/205/344/270/212/344/274/240.png +0 -0
- package/src/assets//345/256/211/350/243/205/345/267/262/345/212/236.png +0 -0
- package/src/assets//345/256/211/350/243/205/345/276/205/345/212/236.png +0 -0
- package/src/assets//345/256/217/350/257/255/351/232/220/346/202/243/345/244/204/347/220/206.png +0 -0
- package/src/assets//345/256/236/345/220/215/350/256/244/350/257/201.png +0 -0
- package/src/assets//345/256/242/346/234/215/347/256/241/347/220/206.png +0 -0
- package/src/assets//345/257/271/345/217/267.png +0 -0
- package/src/assets//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
- package/src/assets//345/257/274/345/207/272/346/225/260/346/215/2561.png +0 -0
- package/src/assets//345/267/241/346/243/200/344/270/212/344/274/240.png +0 -0
- package/src/assets//345/267/241/346/243/200/345/267/262/345/212/236.png +0 -0
- package/src/assets//345/267/245/345/215/225/344/270/212/344/274/240.png +0 -0
- package/src/assets//345/267/245/347/250/213/345/217/221/350/265/267.png +0 -0
- package/src/assets//345/267/245/347/250/213/346/212/245/344/273/267.png +0 -0
- package/src/assets//345/267/245/347/250/213/346/226/275/345/267/245.png +0 -0
- package/src/assets//345/267/245/347/250/213/346/264/276/345/267/245.png +0 -0
- package/src/assets//345/267/262/345/212/236/345/267/245/344/275/234/346/234/252/351/200/211/344/270/255.png +0 -0
- package/src/assets//345/267/262/345/212/236/345/267/245/344/275/234/351/200/211/344/270/255.png +0 -0
- package/src/assets//345/267/262/345/212/236/345/267/245/345/215/225.png +0 -0
- package/src/assets//345/274/200/345/205/263/351/230/200.png +0 -0
- package/src/assets//345/275/242/347/212/2664.png +0 -0
- package/src/assets//345/276/205/345/212/236/345/267/245/344/275/234/346/234/252/351/200/211/344/270/255.png +0 -0
- package/src/assets//345/276/205/345/212/236/345/267/245/344/275/234/351/200/211/344/270/255.png +0 -0
- package/src/assets//345/276/205/345/212/236/345/267/245/345/215/225.png +0 -0
- package/src/assets//346/211/271/351/207/217/346/212/204/350/241/250.png +0 -0
- package/src/assets//346/212/204/350/241/250/344/270/212/344/274/240.png +0 -0
- package/src/assets//346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
- package/src/assets//346/212/204/350/241/250/345/276/205/345/212/236.png +0 -0
- package/src/assets//346/212/204/350/241/250/346/261/207/346/200/273.png +0 -0
- package/src/assets//346/212/204/350/241/250/350/256/260/345/275/225.png +0 -0
- package/src/assets//346/212/245/345/273/272/345/267/262/345/212/236.png +0 -0
- package/src/assets//346/212/245/345/273/272/345/276/205/345/212/236.png +0 -0
- package/src/assets//346/212/245/345/273/272/346/234/215/345/212/241.png +0 -0
- package/src/assets//346/214/207/344/273/244/346/237/245/347/234/213.png +0 -0
- package/src/assets//346/224/266/350/264/271/346/261/207/346/200/273/350/241/250.png +0 -0
- package/src/assets//346/224/266/350/264/271/350/256/260/345/275/225.png +0 -0
- package/src/assets//346/225/264/346/224/271/344/270/212/344/274/240.png +0 -0
- package/src/assets//346/225/264/346/224/271/345/267/262/345/212/236.png +0 -0
- package/src/assets//346/227/240/350/256/241/345/210/222/345/256/211/346/243/200.png +0 -0
- package/src/assets//346/227/245/346/212/245/346/237/245/350/257/242.png +0 -0
- package/src/assets//346/241/243/346/241/210/344/277/256/346/224/271.png +0 -0
- package/src/assets//346/264/201/350/203/275/351/232/220/346/202/243/345/244/204/347/220/206.png +0 -0
- package/src/assets//346/265/201/346/260/264/346/237/245/350/257/242.png +0 -0
- package/src/assets//346/265/201/347/250/213/344/270/232/345/212/241.png +0 -0
- package/src/assets//346/265/201/347/250/213/347/233/221/346/216/247.png +0 -0
- package/src/assets//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
- package/src/assets//346/270/205/347/251/272/346/225/260/346/215/2561.png +0 -0
- package/src/assets//346/270/205/351/231/244/346/225/260/346/215/256.png +0 -0
- package/src/assets//347/202/271/347/201/253/345/267/262/345/212/236.png +0 -0
- package/src/assets//347/202/271/347/201/253/345/276/205/345/212/236.png +0 -0
- package/src/assets//347/216/260/345/234/272/345/213/230/345/257/237.png +0 -0
- package/src/assets//347/217/255/347/273/204/351/225/277/347/256/241/347/220/206/347/253/226/345/261/2173.png +0 -0
- package/src/assets//347/224/250/346/210/267/347/274/226/345/217/267.png +0 -0
- package/src/assets//347/247/273/345/212/250/346/212/204/350/241/250.png +0 -0
- package/src/assets//347/247/273/345/212/250/346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
- package/src/assets//347/253/231/347/202/271/345/267/245/345/215/225.png +0 -0
- package/src/assets//347/253/231/347/202/271/346/264/276/345/217/221.png +0 -0
- package/src/assets//347/255/276/345/255/227/345/276/205/345/212/236.png +0 -0
- package/src/assets//347/263/273/347/273/237/350/256/276/347/275/256/346/234/252/351/200/211/344/270/255.png +0 -0
- package/src/assets//347/263/273/347/273/237/350/256/276/347/275/256/351/200/211/344/270/255.png +0 -0
- package/src/assets//347/273/237/350/256/241/346/212/245/350/241/250.png +0 -0
- package/src/assets//347/273/264/344/277/256/344/270/212/344/274/240.png +0 -0
- package/src/assets//347/273/264/344/277/256/345/267/245/345/215/225/347/253/226/345/261/2173.png +0 -0
- package/src/assets//347/273/264/344/277/256/345/267/262/345/212/236.png +0 -0
- package/src/assets//347/273/264/344/277/256/345/276/205/345/212/236.png +0 -0
- package/src/assets//347/273/264/344/277/256/346/264/276/345/217/221.png +0 -0
- package/src/assets//347/275/256/346/215/242/344/270/212/344/274/240.png +0 -0
- package/src/assets//347/275/256/346/215/242/345/267/262/345/212/236.png +0 -0
- package/src/assets//347/275/256/346/215/242/345/276/205/345/212/236.png +0 -0
- package/src/assets//347/275/256/346/215/242/351/200/232/346/260/224/347/253/226/345/261/2173.png +0 -0
- package/src/assets//350/220/245/344/270/232/345/233/276/350/241/250.png +0 -0
- package/src/assets//350/241/250/345/206/214/351/241/272/345/272/217.png +0 -0
- package/src/assets//350/241/250/345/217/267 (7).png +0 -0
- package/src/assets//350/241/250/345/217/267.png +0 -0
- package/src/assets//350/260/203/344/273/267/350/241/245/345/267/256/347/274/264/350/264/271.png +0 -0
- package/src/assets//350/277/224/345/233/236.png +0 -0
- package/src/assets//350/277/224/345/233/236/346/241/214/351/235/242.png +0 -0
- package/src/assets//350/277/233/345/272/246/345/210/227/350/241/250.png +0 -0
- package/src/assets//351/200/200/345/207/272/347/231/273/345/275/225.png +0 -0
- package/src/assets//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/src/assets//351/200/200/345/207/272/347/263/273/347/273/2371.png +0 -0
- package/src/assets//351/200/201/346/260/224/344/270/212/344/274/240.png +0 -0
- package/src/assets//351/200/201/346/260/224/345/267/262/345/212/236.png +0 -0
- package/src/assets//351/200/201/346/260/224/345/276/205/345/212/236.png +0 -0
- package/src/assets//351/200/232/346/260/224/347/202/271/347/201/253.png +0 -0
- package/src/assets//351/224/231/345/217/267.png +0 -0
- package/src/assets//351/232/220/346/202/243/345/244/204/347/220/206.png +0 -0
- package/src/assets//351/232/220/346/202/243/346/225/264/346/224/271.png +0 -0
- package/src/assets//351/233/206/344/270/255/345/256/211/346/243/200.png +0 -0
- package/src/assets//351/233/206/344/270/255/345/256/211/346/243/2002.png +0 -0
- package/src/assets//351/253/230/345/257/206/345/205/254/345/221/212.png +0 -0
- package/src/components/AlreadyService.vue +193 -0
- package/src/components/AttendManage.vue +397 -0
- package/src/components/LoginApp.vue +158 -42
- package/src/components/LoginAppNew.vue +587 -0
- package/src/components/ModifyPassWord.vue +17 -5
- package/src/components/NavBottom.vue +0 -1
- package/src/components/NavBottomV.vue +2 -1
- package/src/components/NavBottomVVV.vue +185 -0
- package/src/components/OnlineManage.vue +244 -0
- package/src/components/PhoneChangemeterInfo.vue +1 -4
- package/src/components/PhoneInfoTable.vue +5 -2
- package/src/components/PhoneRepairInfo.vue +146 -0
- package/src/components/PhoneSellInfo.vue +6 -5
- package/src/components/PhoneSellInfoLite.vue +112 -0
- package/src/components/PhoneUser.vue +202 -0
- package/src/components/PhoneUserDetil.vue +70 -0
- package/src/components/PhoneUserFind.vue +4 -3
- package/src/components/RightTree.vue +214 -0
- package/src/components/SystemSetUp.vue +277 -92
- package/src/components/TabBarPhone.vue +81 -0
- package/src/components/ToolsPage.vue +7 -5
- package/src/components/UploadManage.vue +194 -0
- package/src/components/gaomi/NavBottomV.vue +223 -0
- package/src/components/gaomi/NavBottomVVVV.vue +210 -0
- package/src/components/gaomi/Scroller.vue +63 -0
- package/src/components/gaomi/SystemSetUp.vue +186 -0
- package/src/components/gaomi/ToolsPage.vue +168 -0
- package/src/components/idea/feedBack.vue +150 -0
- package/src/components/idea/feedbackAdd.vue +366 -0
- package/src/components/iot/InstructMessage.vue +313 -0
- package/src/components/iot/IotBaseInfo.vue +97 -0
- package/src/components/iot/IotMeterInfo.vue +77 -0
- package/src/components/iot/iotMonitoringMain.vue +501 -0
- package/src/components/online/ApplyOnline.vue +582 -0
- package/src/components/online/BJZhongRan/ApplyOnline.vue +601 -0
- package/src/components/screen/ChargeContentPage.vue +656 -0
- package/src/components/screen/ContentPage.vue +611 -0
- package/src/components/screen/GongdanContentPage.vue +149 -0
- package/src/components/screen/ListCountItem.vue +93 -0
- package/src/components/screen/ModuleTitle.vue +48 -0
- package/src/components/screen/SafeOrderContentPage.vue +440 -0
- package/src/components/screen/SecurityCheckItem.vue +50 -0
- package/src/components/screen/TotalItem.vue +76 -0
- package/src/components/screen/TotalUserNumber.vue +77 -0
- package/src/components/screen/WorkOrderItem.vue +51 -0
- package/src/components/screen/WorkOrderRightDownItem.vue +103 -0
- package/src/components/screen/WorkOrderRightItem.vue +115 -0
- package/src/components/userinfo/paymentQuery.vue +189 -0
- package/src/components/userinfo/queryFile.vue +190 -0
- package/src/expandcssAndroid.less +4 -0
- package/src/image/touxiang.jpg +0 -0
- package/src/index.js +2 -0
- package/src/main.js +6 -3
- package/src/plugins/const.js +404 -0
- package/src/plugins/vue-py.js +37 -0
- package/src/stores/AppData.js +23 -33
- package/src/systemphone-gaomi.js +105 -0
- package/src/systemphone.js +16 -0
- package/src/systemphonegrid.js +125 -1
- package/src/util/LdapHelper.js +75 -0
- package/static/const.js +404 -0
- package/static/layui/css/layui.css +1 -0
- package/static/layui/css/modules/code.css +1 -0
- package/static/layui/css/modules/laydate/default/laydate.css +1 -0
- package/static/layui/css/modules/layer/default/icon-ext.png +0 -0
- package/static/layui/css/modules/layer/default/icon.png +0 -0
- package/static/layui/css/modules/layer/default/layer.css +1 -0
- package/static/layui/css/modules/layer/default/loading-0.gif +0 -0
- package/static/layui/css/modules/layer/default/loading-1.gif +0 -0
- package/static/layui/css/modules/layer/default/loading-2.gif +0 -0
- package/static/layui/font/iconfont.eot +0 -0
- package/static/layui/font/iconfont.svg +554 -0
- package/static/layui/font/iconfont.ttf +0 -0
- package/static/layui/font/iconfont.woff +0 -0
- package/static/layui/font/iconfont.woff2 +0 -0
- package/static/layui/layui.js +1 -0
- package/static/vue-py.js +37 -0
- package/.npmignore +0 -9
- package/src/assets//347/202/271/347/201/253/351/200/232/346/260/224/347/253/226/345/261/2173.png +0 -0
- package/yarn.lock +0 -6399
- /package/src/assets//347/253/231/347/202/271/{346/264/276 → 345/267/245}/345/215/225/347/253/226/345/261/2173.png" +0 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<template >
|
|
2
|
+
<div class="panel panel-default auto repair-info-content">
|
|
3
|
+
<div class="panel-body">
|
|
4
|
+
<div class="panel panel-default well" v-for="row in model">
|
|
5
|
+
<div class="bg-info">
|
|
6
|
+
<div class="row form-group">
|
|
7
|
+
<div class="col-xs-12 col-sm-12 col-md-12">
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-xs-6 col-sm-6 col-md-6">
|
|
10
|
+
购气量: {{row.f_pregas}}
|
|
11
|
+
</div>
|
|
12
|
+
<div class="col-xs-6 col-sm-6 col-md-6">
|
|
13
|
+
购气金额: {{row.f_preamount}}
|
|
14
|
+
</div>
|
|
15
|
+
<div class="col-xs-12 col-sm-12 col-md-12">
|
|
16
|
+
购气时间: {{row.f_delivery_date.substring(0,11)}} {{row.f_delivery_date.substring(11,19)}}
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<p v-show="model.length == 0 && noExp ">此用户暂无购气记录</p>
|
|
25
|
+
<p v-show="model.length == 0 && !noExp ">{{expMsg}}</p>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
import { PagedList } from 'vue-client'
|
|
32
|
+
import co from 'co'
|
|
33
|
+
export default {
|
|
34
|
+
title: '查询用户',
|
|
35
|
+
data () {
|
|
36
|
+
return {
|
|
37
|
+
model: [],
|
|
38
|
+
show: false,
|
|
39
|
+
row: Object,
|
|
40
|
+
noExp: false,
|
|
41
|
+
expMsg: '查询中......'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
props: {
|
|
45
|
+
user: {
|
|
46
|
+
type: Object
|
|
47
|
+
},
|
|
48
|
+
f_userinfo_id:''
|
|
49
|
+
},
|
|
50
|
+
methods: {
|
|
51
|
+
getmodel () {
|
|
52
|
+
let userinfoid
|
|
53
|
+
if(this.f_userinfo_id){
|
|
54
|
+
userinfoid = this.f_userinfo_id
|
|
55
|
+
}else{
|
|
56
|
+
userinfoid = this.user.f_userinfo_id
|
|
57
|
+
console.log(this.user.f_userinfo_id)
|
|
58
|
+
}
|
|
59
|
+
console.log(userinfoid)
|
|
60
|
+
this.noExp = false
|
|
61
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {items: '*', tablename: 't_sellinggas', orderitem: 'f_delivery_date desc', condition:`f_userinfo_id = '${userinfoid}'`}}).then((row) => {
|
|
62
|
+
this.model = row.data
|
|
63
|
+
this.noExp = true
|
|
64
|
+
})
|
|
65
|
+
},
|
|
66
|
+
back(){
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
watch: {
|
|
71
|
+
'user' (val) {
|
|
72
|
+
// this.model.search(`card_id = ${this.user.card_id}`)
|
|
73
|
+
if(this.user){
|
|
74
|
+
if (!(this.user.isNuN)) {
|
|
75
|
+
this.model= []
|
|
76
|
+
this.getmodel()
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
'f_userinfo_id'(){
|
|
81
|
+
if(this.f_userinfo_id){
|
|
82
|
+
this.model= []
|
|
83
|
+
this.getmodel()
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
ready () {
|
|
88
|
+
if (this.user && this.user.f_userinfo_id) {
|
|
89
|
+
// this.model.search(`card_id = ${this.user.card_id}`)
|
|
90
|
+
this.getmodel()
|
|
91
|
+
}
|
|
92
|
+
if(this.f_userinfo_id){
|
|
93
|
+
this.getmodel()
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
</script>
|
|
98
|
+
<style>
|
|
99
|
+
.app-botton {
|
|
100
|
+
position:fixed;
|
|
101
|
+
background: #87b2dd;
|
|
102
|
+
color: #FFF;
|
|
103
|
+
padding: 8px;
|
|
104
|
+
text-align: center;
|
|
105
|
+
font-size: 1.2em;
|
|
106
|
+
z-index: 10;
|
|
107
|
+
opacity:0.5;
|
|
108
|
+
bottom: 50px;
|
|
109
|
+
margin-top: -10px;
|
|
110
|
+
height: 40px;
|
|
111
|
+
}
|
|
112
|
+
</style>
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="row" >
|
|
4
|
+
<div class="col-sm-12 col-xs-12" style="height: auto" >
|
|
5
|
+
<input class="form-control" type="text" v-model="model.selectVal" placeholder="点击搜索按钮筛选"/>
|
|
6
|
+
</div>
|
|
7
|
+
<!--用户的显示-->
|
|
8
|
+
<div class="col-sm-11 col-xs-11" v-show="!show">
|
|
9
|
+
<span v-for="dd in beginarray">
|
|
10
|
+
<a name="{{dd}}" v-if="zz(dd)">
|
|
11
|
+
<p class="bq">{{dd}}</p>
|
|
12
|
+
</a>
|
|
13
|
+
<a name="#" v-if="sz(dd)">
|
|
14
|
+
<p class="bq">#</p>
|
|
15
|
+
</a>
|
|
16
|
+
<ul class="list-unstyled" v-for="user in beginarrayss">
|
|
17
|
+
<tr>
|
|
18
|
+
<li v-if="user.PY===dd" @click.prevent="confirm(user)">
|
|
19
|
+
  
|
|
20
|
+
<img src="../image/touxiang.jpg">
|
|
21
|
+
<strong id="name">{{user.name}}</strong>
|
|
22
|
+
<hr>
|
|
23
|
+
</li>
|
|
24
|
+
</tr>
|
|
25
|
+
</ul>
|
|
26
|
+
</span>
|
|
27
|
+
</div>
|
|
28
|
+
<!--根据首字母查找-->
|
|
29
|
+
<div class="col-sm-1 col-xs-1" id="inlineZM" v-show="!show">
|
|
30
|
+
<span v-for="cc in beginarrays">
|
|
31
|
+
<a id="a" href="#{{cc}}" >{{cc}}</a><br>
|
|
32
|
+
</span>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="col-sm-11 col-xs-11" v-if="show">
|
|
35
|
+
<span v-for="dd in quchong()">
|
|
36
|
+
<a name="{{dd}}" v-if="zz(dd)">
|
|
37
|
+
<p class="bq">{{dd}}</p>
|
|
38
|
+
</a>
|
|
39
|
+
<a name="#" v-if="sz(dd)">
|
|
40
|
+
<p class="bq">#</p>
|
|
41
|
+
</a>
|
|
42
|
+
<ul class="list-unstyled" v-for="user in model.like">
|
|
43
|
+
<tr>
|
|
44
|
+
<li v-if="user.PY===dd" @click.prevent="confirm(user)">
|
|
45
|
+
  
|
|
46
|
+
<img src="../image/touxiang.jpg">
|
|
47
|
+
<strong id="name">{{user.name}}</strong>
|
|
48
|
+
<hr>
|
|
49
|
+
</li>
|
|
50
|
+
</tr>
|
|
51
|
+
</ul>
|
|
52
|
+
</span>
|
|
53
|
+
</div>
|
|
54
|
+
<!--根据首字母查找-->
|
|
55
|
+
<div class="col-sm-1 col-xs-1" id="inlineZM" v-if="show">
|
|
56
|
+
<span v-for="cc in model.db">
|
|
57
|
+
<a id="a" href="#{{cc}}" >{{cc}}</a><br>
|
|
58
|
+
</span>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
<script type="module">
|
|
65
|
+
import Vue from 'vue'
|
|
66
|
+
import pinyin from '../plugins/vue-py'
|
|
67
|
+
|
|
68
|
+
export default {
|
|
69
|
+
title: '展示客户信息',
|
|
70
|
+
data () {
|
|
71
|
+
return {
|
|
72
|
+
show:false,
|
|
73
|
+
beginarray:'',
|
|
74
|
+
beginarrays:'',
|
|
75
|
+
beginarrayss:'',
|
|
76
|
+
model: {
|
|
77
|
+
pp: [],
|
|
78
|
+
db: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q',
|
|
79
|
+
'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '#'],
|
|
80
|
+
like: [],
|
|
81
|
+
data: [
|
|
82
|
+
{name: '张三', phone: '12321354213', userid: '11670', nickName: 'Z', img: '../assets/安检导航竖屏.png'},
|
|
83
|
+
{name: '李四', phone: '12341231114', userid: '11671', nickName: 'L', img: '../asss/安检导航竖屏1.png'},
|
|
84
|
+
{name: '王五', phone: '12345512345', userid: '11672', nickName: 'W', img: '../assets/安检导航竖屏2.png'}],
|
|
85
|
+
selectVal: ''//关键字
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
methods: {
|
|
90
|
+
sz (dd) {
|
|
91
|
+
let m = /[0-9]/.test(dd)
|
|
92
|
+
if (m) {
|
|
93
|
+
return true
|
|
94
|
+
} else {
|
|
95
|
+
return false
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
zz (dd) {
|
|
99
|
+
let m = /[a-zA-Z]/.test(dd)
|
|
100
|
+
if (m) {
|
|
101
|
+
return true
|
|
102
|
+
} else {
|
|
103
|
+
return false
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
confirm (user) {
|
|
107
|
+
let phone = 1122334455
|
|
108
|
+
this.$goto('phone-user-detil', {row: user, repair: phone})
|
|
109
|
+
},
|
|
110
|
+
search: function () {//搜索
|
|
111
|
+
this.model.like = []
|
|
112
|
+
let likename = this.model.selectVal
|
|
113
|
+
let name = this.model.data
|
|
114
|
+
if (likename){
|
|
115
|
+
for (let i = 0; i < name.length; i++) {
|
|
116
|
+
if (name[i].name.indexOf(likename) >= 0) {
|
|
117
|
+
this.model.like.push(name[i])
|
|
118
|
+
console.log(this.model.like)
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}else{
|
|
122
|
+
this.model.like = name
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
quchong () {
|
|
126
|
+
return Array.from(new Set(this.model.pp)).sort()
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
ready () {
|
|
130
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/search`, {
|
|
131
|
+
data: {
|
|
132
|
+
source: 'this.getParentByType($organization$).getSpecialResByType($user$)',
|
|
133
|
+
userid: Vue.user.id
|
|
134
|
+
}
|
|
135
|
+
}).then((res) => {
|
|
136
|
+
console.log(res.data)
|
|
137
|
+
this.model.data = res.data
|
|
138
|
+
this.model.like = res.data
|
|
139
|
+
for (let i = 0; i < this.model.like.length; i++) {
|
|
140
|
+
this.model.like[i].PY = pinyin.chineseToPinYin(this.model.like[i].name).charAt(0).toUpperCase()
|
|
141
|
+
this.model.pp.push(this.model.like[i].PY)
|
|
142
|
+
}
|
|
143
|
+
this.beginarray=Object.assign([],this.quchong())
|
|
144
|
+
console.log(this.beginarray)
|
|
145
|
+
|
|
146
|
+
this.beginarrays=Object.assign([],this.model.db)
|
|
147
|
+
this.beginarrayss=Object.assign([],this.model.like)
|
|
148
|
+
console.log(this.beginarrays)
|
|
149
|
+
})
|
|
150
|
+
},
|
|
151
|
+
watch: {
|
|
152
|
+
'model.selectVal'(val){
|
|
153
|
+
console.log("999999999")
|
|
154
|
+
console.log((val))
|
|
155
|
+
if (val){
|
|
156
|
+
this.search()
|
|
157
|
+
this.show=true
|
|
158
|
+
console.log("22222")
|
|
159
|
+
|
|
160
|
+
}else {
|
|
161
|
+
this.show=false
|
|
162
|
+
console.log("33333")
|
|
163
|
+
console.log(this.beginarray)
|
|
164
|
+
console.log(this.quchong())
|
|
165
|
+
console.log(this.beginarrays)
|
|
166
|
+
console.log(this.model.db)
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
</script>
|
|
173
|
+
<style scoped>
|
|
174
|
+
img {
|
|
175
|
+
height: 15px;
|
|
176
|
+
weight: 22%;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
#inlineZM {
|
|
180
|
+
text-align: center;
|
|
181
|
+
position: fixed;
|
|
182
|
+
right: 2%;
|
|
183
|
+
top: 7%;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
ul {
|
|
187
|
+
color: #5bc0de;
|
|
188
|
+
left: 1%;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
li {
|
|
192
|
+
list-style-type: none;
|
|
193
|
+
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.bq {
|
|
197
|
+
background-color: #dde2e5;
|
|
198
|
+
}
|
|
199
|
+
</style>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<template xmlns:v-bond="http://www.w3.org/1999/html">
|
|
2
|
+
<div>
|
|
3
|
+
<form align="center">
|
|
4
|
+
<h3 align="center">通讯录</h3>
|
|
5
|
+
<img class="touxiang" src="../image/touxiang.jpg"><br/>
|
|
6
|
+
<h5 align="center">{{ model.data.name }}</h5>
|
|
7
|
+
<p>   手机:</p>
|
|
8
|
+
<hr>
|
|
9
|
+
<p>   {{ model.data.phone }}<img src="../assets/phone.png" align="right"
|
|
10
|
+
@click.stop.prevent='makeAPhoneCall(model.data.phone)'>  </p>
|
|
11
|
+
<hr>
|
|
12
|
+
<p>   紧急联系人:</p>
|
|
13
|
+
<hr>
|
|
14
|
+
<p>   {{ model.data.accesstime }}<img src="../assets/phone.png" align="right">  </p>
|
|
15
|
+
<hr>
|
|
16
|
+
<p>   岗位服务:<span>{{ model.data.rolestr(1) }}  </span></p><br/>
|
|
17
|
+
<hr>
|
|
18
|
+
<p>   电子邮箱:<span align="right">{{ model.data.loginip }}  </span></p><br/>
|
|
19
|
+
<hr>
|
|
20
|
+
<p>   所属公司:<span align="right">{{ model.data.f_department_name }}  </span></p><br/>
|
|
21
|
+
<hr>
|
|
22
|
+
<p>   所属部门:<span al ign="right">{{ model.data.state }}  </span></p><br/>
|
|
23
|
+
</form>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
export default {
|
|
29
|
+
name: 'PhoneUserDetil',
|
|
30
|
+
title: '展示客户信息详情',
|
|
31
|
+
data () {
|
|
32
|
+
return {
|
|
33
|
+
model: {
|
|
34
|
+
data: [
|
|
35
|
+
{
|
|
36
|
+
name: '周杰伦', phone: '123', ectt: '123', JobSe: '待定', email: '1235@aqw.com', img: '../assets/安检导航竖屏.png'
|
|
37
|
+
, office: '梁平区聚源有限公司', depment: '安全运营部'
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
makeAPhoneCall (phoneNumber) {
|
|
45
|
+
alert('将要拨通的号码为:'+phoneNumber)
|
|
46
|
+
this.$androidUtil.makeAPhoneCall(phoneNumber)
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
ready () {
|
|
50
|
+
console.log(this.row)
|
|
51
|
+
this.model.data = this.row
|
|
52
|
+
this.model.data.phone=12345
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<style scoped>
|
|
58
|
+
.touxiang {
|
|
59
|
+
width: 30%;
|
|
60
|
+
height: 30%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
p {
|
|
64
|
+
text-align: left;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
span {
|
|
68
|
+
float: right;
|
|
69
|
+
}
|
|
70
|
+
</style>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
<div class="row">
|
|
19
19
|
<button type="button" name="button" class="btn btn-primary pull-right" @click="search()">查询</button>
|
|
20
|
-
<button type="button" name="button" class="btn btn-primary pull-right" @click="read()">读卡</button
|
|
20
|
+
<!-- <button type="button" name="button" class="btn btn-primary pull-right" @click="read()">读卡</button>-->
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
23
|
<div partial class="panel panel-default well" style="padding: 0px;background-color:#ffffff;" v-for="row in users">
|
|
@@ -73,11 +73,12 @@
|
|
|
73
73
|
},
|
|
74
74
|
methods: {
|
|
75
75
|
search() {
|
|
76
|
+
// console.log("Vue.user",Vue.user)
|
|
76
77
|
this.model.f_userid ? this.model.f_userid : '1=1'
|
|
77
|
-
let condition = `ti.
|
|
78
|
+
let condition = `ti.f_orgid = '${Vue.user.orgid}'`
|
|
78
79
|
condition += this.model.f_userid ? ` and ti.f_userinfo_code = '${this.model.f_userid}'` : ' and 1=1'
|
|
79
80
|
condition += this.model.f_username ? ` and ti.f_user_name like '%${this.model.f_username}%'` : ' and 1=1'
|
|
80
|
-
condition += this.model.f_address ? ` and
|
|
81
|
+
condition += this.model.f_address ? ` and tua.f_address like '%${this.model.f_address}%'` : ' and 1=1'
|
|
81
82
|
console.log(condition)
|
|
82
83
|
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_UserInfo`, {
|
|
83
84
|
data: {
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<dropdown :model='model' class="auto" id="res-tree" v-if="!islist" v-el:dropdown :style="{width:width}">
|
|
3
|
+
<button type="button" class="btn btn-default dropdown-toggle select-style" data-toggle="dropdown">
|
|
4
|
+
<span class='btn-content' :style="{textOverflow:'ellipsis',overflow: 'hidden'}">{{ resname }}</span>
|
|
5
|
+
<span class="caret"></span>
|
|
6
|
+
</button>
|
|
7
|
+
<tree :model='model' :is-click="false" slot="dropdown-menu" class="dropdown-menu auto" role="menu">
|
|
8
|
+
<span partial>
|
|
9
|
+
<span class="glyphicon glyphicon-chevron-down" v-show="row.open&&row.data.children.length>0" style="color:balck;"></span>
|
|
10
|
+
<span class="glyphicon glyphicon-chevron-right" v-show="!row.open&&row.data.children.length>0" style="color:balck;"></span>
|
|
11
|
+
<span class="RightTreeCanSelect" v-if="row.data.hasright" @click.stop="$parent.$parent.$parent.selectclick(row.data)">{{row.data.name}}</span>
|
|
12
|
+
<span class="RightTreeCanNotSelect" v-else>{{row.data.name}}</span>
|
|
13
|
+
<span class="glyphicon glyphicon-ok " v-if="$parent.$parent.$parent.isSelect(row.data.id)" style="color:balck;"></span>
|
|
14
|
+
</span>
|
|
15
|
+
</tree>
|
|
16
|
+
</dropdown>
|
|
17
|
+
<v-select v-if="islist"
|
|
18
|
+
placeholder='请选择'
|
|
19
|
+
:options='childrenOptions'
|
|
20
|
+
@change="selectclick"
|
|
21
|
+
:value-single="true"
|
|
22
|
+
close-on-select></v-select>
|
|
23
|
+
</template>
|
|
24
|
+
<script>
|
|
25
|
+
import * as ldapHelper from './../util/LdapHelper'
|
|
26
|
+
import Vue from 'vue'
|
|
27
|
+
export default {
|
|
28
|
+
title: '资源树',
|
|
29
|
+
props: {
|
|
30
|
+
source: {
|
|
31
|
+
type: String,
|
|
32
|
+
require: true,
|
|
33
|
+
default:`tool.getFullTree(this.getRights().where(row.getType() == $organization$))`
|
|
34
|
+
},
|
|
35
|
+
resid: {
|
|
36
|
+
},
|
|
37
|
+
islist: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
40
|
+
},
|
|
41
|
+
//是否有查看上级的权限
|
|
42
|
+
Url:{
|
|
43
|
+
type: String,
|
|
44
|
+
default:''
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
data () {
|
|
48
|
+
return {
|
|
49
|
+
width:'100%',
|
|
50
|
+
resobj:{res:Vue.user.orgs, resids:Vue.user.orgid},
|
|
51
|
+
userid: Vue.user.id,
|
|
52
|
+
resname:[Vue.user.orgs],
|
|
53
|
+
orgnames : [Vue.user.orgs],
|
|
54
|
+
orgids : [Vue.user.orgid],
|
|
55
|
+
orgobj:[],
|
|
56
|
+
model: [
|
|
57
|
+
|
|
58
|
+
],
|
|
59
|
+
childrenOptions: []
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
selectRes () {
|
|
64
|
+
let newobj={
|
|
65
|
+
"res": [this.resname],
|
|
66
|
+
"resids": [this.orgids],
|
|
67
|
+
}
|
|
68
|
+
this.$emit('re-res', newobj)
|
|
69
|
+
},
|
|
70
|
+
//点击资源的方法
|
|
71
|
+
selectclick (row) {
|
|
72
|
+
if(this.orgids.includes(row.id)){
|
|
73
|
+
this.orgnames=[]
|
|
74
|
+
this.orgids=[]
|
|
75
|
+
this.removeResChild(row)
|
|
76
|
+
this.orgnames.push(row.name)
|
|
77
|
+
this.orgids.push(row.id)
|
|
78
|
+
this.orgobj.push(row)
|
|
79
|
+
}else{
|
|
80
|
+
this.orgnames=[]
|
|
81
|
+
this.orgids=[]
|
|
82
|
+
this.orgobj=[]
|
|
83
|
+
this.addResChild(row)
|
|
84
|
+
}
|
|
85
|
+
console.log(this.orgnames.join(','))
|
|
86
|
+
this.resname = this.orgnames.length > 0 ? this.orgnames.join(','):'请选择'
|
|
87
|
+
let newobj={
|
|
88
|
+
"res": this.orgnames,
|
|
89
|
+
"resids": this.orgids,
|
|
90
|
+
"orgobj": this.orgobj,
|
|
91
|
+
}
|
|
92
|
+
this.$emit('re-res', newobj)
|
|
93
|
+
},
|
|
94
|
+
addResChild(val){
|
|
95
|
+
// if(this.orgids.includes(val.id)){
|
|
96
|
+
// this.orgnames.splice(this.orgnames.indexOf(val.name),1)
|
|
97
|
+
// this.orgids.splice(this.orgids.indexOf(val.id),1)
|
|
98
|
+
// }
|
|
99
|
+
this.orgnames.push(val.name)
|
|
100
|
+
this.orgids.push(val.id)
|
|
101
|
+
this.orgobj.push(val)
|
|
102
|
+
if(val.children && val.children.length>0){
|
|
103
|
+
Object.keys(val.children).forEach((key) => {
|
|
104
|
+
this.addResChild(val.children[key])
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
removeResChild(val){
|
|
109
|
+
this.orgnames.splice(this.orgnames.indexOf(val.name),1)
|
|
110
|
+
this.orgids.splice(this.orgids.indexOf(val.id),1)
|
|
111
|
+
this.orgobj.splice(this.orgids.indexOf(val),1)
|
|
112
|
+
if(val.children && val.children.length>0){
|
|
113
|
+
Object.keys(val.children).forEach((key) => {
|
|
114
|
+
this.removeResChild(val.children[key])
|
|
115
|
+
})
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
//检查是否显示对勾
|
|
119
|
+
isSelect(val) {
|
|
120
|
+
if(this.orgids.includes(val)){
|
|
121
|
+
return true
|
|
122
|
+
}else{
|
|
123
|
+
return false
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
//树形结构变成list
|
|
127
|
+
treetoList(val) {
|
|
128
|
+
for (let value of val) {
|
|
129
|
+
this.ergodicList(value)
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
//找到跟节点
|
|
133
|
+
ergodicList (val) {
|
|
134
|
+
val.children.length > 0 ? this.treetoList(val.children) : this.childrenOptions.push({label: val.name, value: val})
|
|
135
|
+
},
|
|
136
|
+
//处理显示默认值
|
|
137
|
+
dealResObj (val) {
|
|
138
|
+
try{
|
|
139
|
+
var arr=val.res.split(".")
|
|
140
|
+
//截取最后一个分公司名字
|
|
141
|
+
this.resname=arr[arr.length-1].toString()
|
|
142
|
+
this.resid = val.resids
|
|
143
|
+
}catch (e){
|
|
144
|
+
this.resname='请选择组织'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
judgBoundary(){
|
|
148
|
+
//判断是否超出边界,超出移动
|
|
149
|
+
if(document.documentElement.offsetWidth< this.$els.dropdown.getBoundingClientRect().right){
|
|
150
|
+
this.left = document.documentElement.offsetWidth - this.$els.dropdown.getBoundingClientRect().right - 25
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
events: {
|
|
155
|
+
|
|
156
|
+
},
|
|
157
|
+
ready () {
|
|
158
|
+
console.log('righttree ready')
|
|
159
|
+
if(this.$els.dropdown){
|
|
160
|
+
console.log('righttree1')
|
|
161
|
+
this.width = this.$els.dropdown.clientWidth * 0.7 +'px'
|
|
162
|
+
}
|
|
163
|
+
console.log('righttree2')
|
|
164
|
+
this.dealResObj (this.resobj)
|
|
165
|
+
console.log('righttree3')
|
|
166
|
+
var data = {
|
|
167
|
+
source: this.source,
|
|
168
|
+
userid: this.userid
|
|
169
|
+
}
|
|
170
|
+
console.log('向资源服务发送请求')
|
|
171
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/search`, data).then((ret) => {
|
|
172
|
+
console.log('向资源服务请求结束')
|
|
173
|
+
// 去掉前面的两层节点
|
|
174
|
+
ret.data[0].children[0].children.forEach((item) => {
|
|
175
|
+
this.model.push(item)
|
|
176
|
+
})
|
|
177
|
+
// 给资源添加父关系
|
|
178
|
+
ldapHelper.procParent(this.model)
|
|
179
|
+
if (this.islist) {
|
|
180
|
+
this.treetoList(this.model)
|
|
181
|
+
}
|
|
182
|
+
this.selectRes()
|
|
183
|
+
})
|
|
184
|
+
},
|
|
185
|
+
watch: {
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
</script>
|
|
189
|
+
<style lang="less">
|
|
190
|
+
#res-tree {
|
|
191
|
+
.list-group-item {
|
|
192
|
+
background-color: #FFF;
|
|
193
|
+
color: #000;
|
|
194
|
+
padding: 5px 10px;
|
|
195
|
+
border:0px;
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
#res-tree .list-group {
|
|
200
|
+
width: auto;
|
|
201
|
+
min-width: 100%;
|
|
202
|
+
}
|
|
203
|
+
.hide-text-overflow{
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
text-overflow: ellipsis
|
|
206
|
+
}
|
|
207
|
+
.select-style {
|
|
208
|
+
border: 0px;
|
|
209
|
+
/*border-bottom: 2px solid #C9CCCF;*/
|
|
210
|
+
border: 1px solid #93B2D3;
|
|
211
|
+
border-radius: 0px;
|
|
212
|
+
color: #555;
|
|
213
|
+
}
|
|
214
|
+
</style>
|