apply-clients 3.0.4 → 3.0.5-ys
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/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/{dist-android/static/.gitkeep → .gradle/5.2.1/gc.properties} +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/doc//346/226/260/347/224/250/346/210/267/350/212/261/345/220/215/345/206/214/345/257/274/345/205/245/346/250/241/346/235/277.xls +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +0 -0
- package/gradlew.bat +84 -0
- package/index.html +26 -17
- package/package.json +8 -5
- package/src/App.vue +14 -21
- package/src/apply.js +55 -2
- package/src/applyAndroid.js +1 -1
- package/src/bootstrap/less/aofeng/animate.min.css +11 -0
- package/src/bootstrap/less/aofeng/standard.less +591 -0
- package/src/bootstrap/less/aofeng/themeOne/BinaryTemplate.less +478 -0
- package/src/bootstrap/less/aofeng/themeOne/loginStyle.less +1586 -0
- package/src/bootstrap/less/aofeng/themeOne/systemStyle.less +1915 -0
- package/src/bootstrap/less/aofeng/themeOne.less +10 -0
- package/src/bootstrap/less/aofeng/themeTwo/newStyle1.less +415 -0
- package/src/bootstrap/less/aofeng/themeTwo.less +2 -0
- package/src/bootstrap/less/bootstrap.less +11 -0
- package/src/bootstrap/less/forms.less +2 -2
- package/src/bootstrap/less/manageStyle/manageChile.less +180 -0
- package/src/bootstrap/less/manageStyle/manageStyle.less +1103 -0
- package/src/bootstrap/less/manageStyle/qinhuaStyle.less +116 -0
- package/src/bootstrap/less/manageStyle/safeStyle.less +498 -0
- package/src/bootstrap/less/manageStyle/telephoneanaly.less +92 -0
- package/src/bootstrap/less/navs.less +2 -3
- package/src/bootstrap/less/stand.less +207 -0
- package/src/bootstrap/less/standard.less +503 -0
- package/src/bootstrap/less/systemStyle.less +860 -0
- package/src/bootstrap/less/variables.less +2 -1
- package/src/components/Util.js +26 -22
- package/src/components/app_apply/ApplyDownList.vue +21 -8
- package/src/components/app_apply/ApplyToDoList.vue +94 -59
- package/src/components/app_apply/ApplyUserInfo.vue +3 -3
- package/src/components/app_apply/FieldExploration.vue +2 -2
- package/src/components/app_apply/PlaceControler.vue +16 -19
- package/src/components/app_apply/ServiceControl.vue +1136 -16
- package/src/components/app_apply/ServiceView.vue +395 -167
- package/src/components/app_apply/Ventilation.vue +2 -2
- package/src/components/image/doc.jpg +0 -0
- package/src/components/image/excel.jpg +0 -0
- package/src/components/image/pdf.jpg +0 -0
- package/src/components/image//345/233/276/345/261/20212.png +0 -0
- package/src/components/image//345/233/276/345/261/20213.png +0 -0
- package/src/components/image//345/233/276/345/261/20216.png +0 -0
- package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
- package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
- package/src/components/image//346/244/255/345/234/2062.png +0 -0
- package/src/components/image//346/244/255/345/234/2065.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
- package/src/components/image//347/273/2044.png +0 -0
- package/src/components/image//347/273/2045.png +0 -0
- package/src/components/image//347/273/2046.png +0 -0
- package/src/components/image//350/257/235/345/212/241/347/273/237/350/256/241/346/225/260/346/215/256/345/261/225/347/244/272.png +0 -0
- package/src/components/product/BatchFunction/BatchPay.vue +694 -0
- package/src/components/product/Bill/BillXSDMakeInfo.vue +1 -1
- package/src/components/product/Function/InstallFunction.vue +17 -13
- package/src/components/product/Function/InstallInfoSelect.vue +293 -71
- package/src/components/product/Function/Service/FunctionServiceControl.vue +50 -5
- package/src/components/product/Function/functions/AddContract.vue +161 -139
- package/src/components/product/Function/functions/BuyerMessage.vue +285 -137
- package/src/components/product/Function/functions/InstallFee.vue +1141 -912
- package/src/components/product/Function/functions/InstallFeeInfo.vue +5 -5
- package/src/components/product/Function/functions/PrestoreFee.vue +4 -4
- package/src/components/product/Function/functions/StopInstall.vue +14 -2
- package/src/components/product/HiddenDangersInProjects/AddHiddenDangers.vue +965 -0
- package/src/components/product/HiddenDangersInProjects/HiddenProjectList.vue +433 -0
- package/src/components/product/HiddenDangersInProjects/HiddenProjectSchedule.vue +146 -0
- package/src/components/product/MaterialBatchList.vue +109 -0
- package/src/components/product/MaterialBatchManage.vue +34 -0
- package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -0
- package/src/components/product/Process/ExplorationSelect.vue +767 -416
- package/src/components/product/Process/ExplorationUser.vue +96 -51
- package/src/components/product/Process/MaterialUseList.vue +159 -0
- package/src/components/product/Process/ModifyUserFiles.vue +1 -1
- package/src/components/product/Process/ProcessInfo/history_control.vue +29 -6
- package/src/components/product/Process/Processes/CustomerBuildingMessage.vue +5 -5
- package/src/components/product/Process/Processes/CustomerEquipmentMessage.vue +1 -1
- package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +499 -210
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +1457 -753
- package/src/components/product/Process/Processes/ProjectSettlement.vue +535 -24
- package/src/components/product/Process/Processes/ReceiveBatch.vue +301 -121
- package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -0
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +87 -68
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2521 -422
- package/src/components/product/Process/ShowBackReason.vue +1 -1
- package/src/components/product/ProjectManagement/AddProjectSchedule.vue +896 -0
- package/src/components/product/ProjectManagement/ProjectList.vue +406 -0
- package/src/components/product/ProjectManagement/ProjectSchedule.vue +144 -0
- package/src/components/product/ReportForm/PaymentRecord.vue +801 -0
- package/src/components/product/ReportForm/PaymentRecordAdd.vue +105 -0
- package/src/components/product/ReportForm/PaymentRecordBad.vue +1273 -0
- package/src/components/product/ReportForm/PaymentRecordDetailed.vue +472 -0
- package/src/components/product/ReportForm/PaymentRecordTooBad.vue +60 -0
- package/src/components/product/ReportForm/PaymentReport.vue +532 -0
- package/src/components/product/ReportForm/ProjectReport.vue +447 -0
- package/src/components/product/ReportForm/SettlementReport.vue +336 -0
- package/src/components/product/ReportForm/SummaryReport.vue +451 -0
- package/src/components/product/ReportForm/UserReport.vue +402 -0
- package/src/components/product/ServiceView.vue +383 -123
- package/src/components/product/Statistics/ApplyStatisticsROOT.vue +27 -0
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +247 -23
- package/src/components/product/Supervisory/SupervisoryControl.vue +104 -44
- package/src/components/product/Supervisory/SupervisoryList.vue +412 -54
- package/src/components/product/Supervisory/SupervisoryhCart.vue +6 -3
- package/src/components/product/VueUtils/ApplyUpload.vue +310 -0
- package/src/components/product/VueUtils/Tree.vue +330 -0
- package/src/components/product/VueUtils/rightview/InstallCardList2.vue +35 -44
- package/src/components/product/VueUtils/rightview/carddetail/BuildFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/ChangeFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/ReduceFeeDetail2.vue +1 -1
- package/src/components/product/VueUtils/rightview/carddetail/StopApplyDetail2.vue +2 -2
- package/src/main.js +4 -2
- package/src/stores/ApplyLoadParams.js +1 -1
- package/src/stores/PagedListLogic.js +173 -0
- package/{dist-android/static/denglu.png → static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png} +0 -0
- package/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
- package/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/static/newStyle/clear.png +0 -0
- package/static/newStyle/fife.png +0 -0
- package/static/newStyle/hidden.png +0 -0
- package/static/newStyle/label-clear.png +0 -0
- package/{dist-android/static/psicon.png → static/newStyle/left-img.png} +0 -0
- package/static/newStyle/list_ok.png +0 -0
- package/static/newStyle/login-check.png +0 -0
- package/static/newStyle/login-con.png +0 -0
- package/static/newStyle/login-do.gif +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/login-info.png +0 -0
- package/static/newStyle/login-left.png +0 -0
- package/static/newStyle/login-org.png +0 -0
- package/static/newStyle/login-pwd.png +0 -0
- package/static/newStyle/login-user.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1280.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/setting.png +0 -0
- package/static/newStyle/setting1.png +0 -0
- package/static/newStyle/shirk.png +0 -0
- package/static/newStyle/stretch_bottom.png +0 -0
- package/static/newStyle/stretch_left.png +0 -0
- package/static/newStyle/stretch_right.png +0 -0
- package/static/newStyle/stretch_top.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/success.rar +0 -0
- package/.npmignore +0 -12
- package/dist-android/index.html +0 -3
- package/dist-android/static/0.js +0 -2
- package/dist-android/static/0.js.map +0 -1
- package/dist-android/static/1.js +0 -2
- package/dist-android/static/1.js.map +0 -1
- package/dist-android/static/10.js +0 -2
- package/dist-android/static/10.js.map +0 -1
- package/dist-android/static/11.js +0 -2
- package/dist-android/static/11.js.map +0 -1
- package/dist-android/static/12.js +0 -2
- package/dist-android/static/12.js.map +0 -1
- package/dist-android/static/13.js +0 -2
- package/dist-android/static/13.js.map +0 -1
- package/dist-android/static/14.js +0 -2
- package/dist-android/static/14.js.map +0 -1
- package/dist-android/static/15.js +0 -2
- package/dist-android/static/15.js.map +0 -1
- package/dist-android/static/16.js +0 -2
- package/dist-android/static/16.js.map +0 -1
- package/dist-android/static/17.js +0 -2
- package/dist-android/static/17.js.map +0 -1
- package/dist-android/static/18.js +0 -2
- package/dist-android/static/18.js.map +0 -1
- package/dist-android/static/19.js +0 -2
- package/dist-android/static/19.js.map +0 -1
- package/dist-android/static/2.js +0 -2
- package/dist-android/static/2.js.map +0 -1
- package/dist-android/static/20.js +0 -2
- package/dist-android/static/20.js.map +0 -1
- package/dist-android/static/21.js +0 -2
- package/dist-android/static/21.js.map +0 -1
- package/dist-android/static/22.js +0 -2
- package/dist-android/static/22.js.map +0 -1
- package/dist-android/static/23.js +0 -2
- package/dist-android/static/23.js.map +0 -1
- package/dist-android/static/24.js +0 -2
- package/dist-android/static/24.js.map +0 -1
- package/dist-android/static/25.js +0 -2
- package/dist-android/static/25.js.map +0 -1
- package/dist-android/static/26.js +0 -2
- package/dist-android/static/26.js.map +0 -1
- package/dist-android/static/27.js +0 -2
- package/dist-android/static/27.js.map +0 -1
- package/dist-android/static/28.js +0 -2
- package/dist-android/static/28.js.map +0 -1
- package/dist-android/static/29.js +0 -2
- package/dist-android/static/29.js.map +0 -1
- package/dist-android/static/3.js +0 -2
- package/dist-android/static/3.js.map +0 -1
- package/dist-android/static/30.js +0 -2
- package/dist-android/static/30.js.map +0 -1
- package/dist-android/static/31.js +0 -2
- package/dist-android/static/31.js.map +0 -1
- package/dist-android/static/32.js +0 -2
- package/dist-android/static/32.js.map +0 -1
- package/dist-android/static/33.js +0 -2
- package/dist-android/static/33.js.map +0 -1
- package/dist-android/static/34.js +0 -2
- package/dist-android/static/34.js.map +0 -1
- package/dist-android/static/35.js +0 -2
- package/dist-android/static/35.js.map +0 -1
- package/dist-android/static/36.js +0 -2
- package/dist-android/static/36.js.map +0 -1
- package/dist-android/static/37.js +0 -2
- package/dist-android/static/37.js.map +0 -1
- package/dist-android/static/38.js +0 -2
- package/dist-android/static/38.js.map +0 -1
- package/dist-android/static/39.js +0 -2
- package/dist-android/static/39.js.map +0 -1
- package/dist-android/static/4.js +0 -2
- package/dist-android/static/4.js.map +0 -1
- package/dist-android/static/40.js +0 -2
- package/dist-android/static/40.js.map +0 -1
- package/dist-android/static/41.js +0 -2
- package/dist-android/static/41.js.map +0 -1
- package/dist-android/static/42.js +0 -2
- package/dist-android/static/42.js.map +0 -1
- package/dist-android/static/43.js +0 -2
- package/dist-android/static/43.js.map +0 -1
- package/dist-android/static/44.js +0 -2
- package/dist-android/static/44.js.map +0 -1
- package/dist-android/static/45.js +0 -2
- package/dist-android/static/45.js.map +0 -1
- package/dist-android/static/46.js +0 -2
- package/dist-android/static/46.js.map +0 -1
- package/dist-android/static/47.js +0 -2
- package/dist-android/static/47.js.map +0 -1
- package/dist-android/static/48.js +0 -2
- package/dist-android/static/48.js.map +0 -1
- package/dist-android/static/49.js +0 -2
- package/dist-android/static/49.js.map +0 -1
- package/dist-android/static/5.js +0 -2
- package/dist-android/static/5.js.map +0 -1
- package/dist-android/static/50.js +0 -2
- package/dist-android/static/50.js.map +0 -1
- package/dist-android/static/51.js +0 -2
- package/dist-android/static/51.js.map +0 -1
- package/dist-android/static/52.js +0 -2
- package/dist-android/static/52.js.map +0 -1
- package/dist-android/static/53.js +0 -2
- package/dist-android/static/53.js.map +0 -1
- package/dist-android/static/54.js +0 -2
- package/dist-android/static/54.js.map +0 -1
- package/dist-android/static/55.js +0 -2
- package/dist-android/static/55.js.map +0 -1
- package/dist-android/static/56.js +0 -2
- package/dist-android/static/56.js.map +0 -1
- package/dist-android/static/57.js +0 -2
- package/dist-android/static/57.js.map +0 -1
- package/dist-android/static/58.js +0 -2
- package/dist-android/static/58.js.map +0 -1
- package/dist-android/static/59.js +0 -2
- package/dist-android/static/59.js.map +0 -1
- package/dist-android/static/60.js +0 -2
- package/dist-android/static/60.js.map +0 -1
- package/dist-android/static/61.js +0 -2
- package/dist-android/static/61.js.map +0 -1
- package/dist-android/static/62.js +0 -2
- package/dist-android/static/62.js.map +0 -1
- package/dist-android/static/63.js +0 -2
- package/dist-android/static/63.js.map +0 -1
- package/dist-android/static/64.js +0 -2
- package/dist-android/static/64.js.map +0 -1
- package/dist-android/static/65.js +0 -2
- package/dist-android/static/65.js.map +0 -1
- package/dist-android/static/66.js +0 -2
- package/dist-android/static/66.js.map +0 -1
- package/dist-android/static/67.js +0 -2
- package/dist-android/static/67.js.map +0 -1
- package/dist-android/static/68.js +0 -2
- package/dist-android/static/68.js.map +0 -1
- package/dist-android/static/69.js +0 -2
- package/dist-android/static/69.js.map +0 -1
- package/dist-android/static/7.js +0 -6
- package/dist-android/static/7.js.map +0 -1
- package/dist-android/static/70.js +0 -2
- package/dist-android/static/70.js.map +0 -1
- package/dist-android/static/71.js +0 -2
- package/dist-android/static/71.js.map +0 -1
- package/dist-android/static/72.js +0 -2
- package/dist-android/static/72.js.map +0 -1
- package/dist-android/static/73.js +0 -2
- package/dist-android/static/73.js.map +0 -1
- package/dist-android/static/74.js +0 -2
- package/dist-android/static/74.js.map +0 -1
- package/dist-android/static/75.js +0 -2
- package/dist-android/static/75.js.map +0 -1
- package/dist-android/static/76.js +0 -2
- package/dist-android/static/76.js.map +0 -1
- package/dist-android/static/8.js +0 -2
- package/dist-android/static/8.js.map +0 -1
- package/dist-android/static/9.js +0 -3
- package/dist-android/static/9.js.map +0 -1
- package/dist-android/static/app.css +0 -2
- package/dist-android/static/app.css.map +0 -1
- package/dist-android/static/app.js +0 -80
- package/dist-android/static/app.js.map +0 -1
- package/dist-android/static/batchleft.png +0 -0
- package/dist-android/static/batchright.png +0 -0
- package/dist-android/static/bluemainbg.jpg +0 -0
- package/dist-android/static/config.json +0 -7
- package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
- package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
- package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
- package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
- package/dist-android/static/huangtengbiaozhi.png +0 -0
- package/dist-android/static/jingyin.jpg +0 -0
- package/dist-android/static/login_bg.jpg +0 -0
- package/dist-android/static/login_title.png +0 -0
- package/dist-android/static/login_title1.png +0 -0
- package/dist-android/static/loginbg.jpg +0 -0
- package/dist-android/static/loginlogo.png +0 -0
- package/dist-android/static/main_logo.png +0 -0
- package/dist-android/static/mainbg.jpg +0 -0
- package/dist-android/static/menulogo.png +0 -0
- package/dist-android/static/newmainbg.jpg +0 -0
- package/dist-android/static/singleleft.png +0 -0
- package/dist-android/static/singleright.png +0 -0
- package/dist-android/static/treeopen.png +0 -0
- package/dist-android/static/treeout.png +0 -0
- package/dist-android/static/treeset.png +0 -0
- package/dist-android/static/usericon.png +0 -0
- package/dist-android/static/workflow_apply.json +0 -766
- package/dist-android/static/xinxi.png +0 -0
- package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
- package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
- package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
- package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
- package/src/assets/shipin1.mp4 +0 -0
- package/yarn.lock +0 -9008
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12" style="background-color: #FFFFFF">
|
|
3
|
+
<div class="col-sm-12" style="padding:50px 100px;height: 25%">
|
|
4
|
+
<div class="form-group col-sm-5" v-if="issearch">
|
|
5
|
+
<v-select
|
|
6
|
+
class="select select_list"
|
|
7
|
+
:value.sync="useType"
|
|
8
|
+
width="90%"
|
|
9
|
+
v-model="useType"
|
|
10
|
+
:options='typeOfUse'
|
|
11
|
+
:valueSingle="true"></v-select>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="form-group col-sm-2" style="text-align: center" v-if="issearch">
|
|
14
|
+
<button type="button" class="btn btn-primary item_btn" @click="load">搜索</button>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="form-group col-sm-2" style="text-align: center" v-if="isupload">
|
|
17
|
+
<button type="button" class="btn btn-primary item_btn" @click="showUpload = !showUpload">本地上传</button>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="form-group col-sm-2" style="text-align: center" v-if="takeimg">
|
|
20
|
+
<button type="button" class="btn btn-primary item_btn" @click="upload()">拍照</button>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<hr style="width: 90%;margin: 0px auto;border: #999999 1px solid;"/>
|
|
24
|
+
<div class="col-sm-12" style="overflow: scroll;height: 75%">
|
|
25
|
+
<div :class="bootstraped ? bootstraped + ' showData' : 'col-sm-6 showData'" v-for="row in fileInfoData">
|
|
26
|
+
<div class="col-sm-12 item">
|
|
27
|
+
<div class="left col-sm-5">
|
|
28
|
+
<a href="#" class="thumbnail" style="width: 100%;height: 100%">
|
|
29
|
+
<img v-if="row.f_filetype === 'jpg'||row.f_filetype === 'png'||row.f_filetype === 'gif'||row.f_filetype === 'bmp'" :src="row.f_downloadURL" alt="..."/>
|
|
30
|
+
<img v-if="row.f_filetype === 'pdf'" src="../../image/pdf.jpg" alt="" />
|
|
31
|
+
<img v-if="row.f_filetype === 'xls'||row.f_filetype === 'xlsx'" src="../../image/excel.jpg" alt="" />
|
|
32
|
+
<img v-if="row.f_filetype === 'doc'||row.f_filetype === 'docx'" src="../../image/doc.jpg" alt="" />
|
|
33
|
+
</a>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="right col-sm-7">
|
|
36
|
+
<p :title="row.f_filename" class="clears"><strong>文件名:</strong>{{row.f_filename}}</p>
|
|
37
|
+
<p :title="row.f_username" class="clears"><strong>操作员:</strong><span>{{row.f_username}}</span></p>
|
|
38
|
+
<p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{row.fusetype}}</span></p>
|
|
39
|
+
<p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{row.f_uploaddate}}</span></p>
|
|
40
|
+
<p :title="row.fremarks" class="clears"><strong>文件说明:</strong>{{row.fremarks}}</p>
|
|
41
|
+
<p class="clears">
|
|
42
|
+
<a v-if="row.f_filetype === 'jpg' || row.f_filetype==='png' || row.f_filetype==='gif' || row.f_filetype==='bmp'" :href="row.f_downloadURL" style="background:#6aa6e2" class="btn btn-primary" target="_blank" role="button">预览</a>
|
|
43
|
+
<a v-else @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button" :href="row.f_downloadURL" download>下载</a>
|
|
44
|
+
<a v-if="isdelete" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
|
|
45
|
+
</p>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<apply-high-meter
|
|
52
|
+
v-if="showhighmeter"
|
|
53
|
+
:show.sync="showhighmeter"
|
|
54
|
+
:isusetype="isusetype"
|
|
55
|
+
:isremark="isremark"
|
|
56
|
+
@photo-finish="newPhoto"
|
|
57
|
+
v-ref:ltgao
|
|
58
|
+
></apply-high-meter>
|
|
59
|
+
<modal :show.sync="showUpload" v-ref:modal backdrop="false">
|
|
60
|
+
<header slot="modal-header" class="modal-header">
|
|
61
|
+
<button type="button" class="close" @click="close"><span class="glyphicon glyphicon-remove"></span></button>
|
|
62
|
+
<h4 class="modal-title" style="text-align: center">文件上传</h4>
|
|
63
|
+
</header>
|
|
64
|
+
<article slot="modal-body" class="modal-body form-horizontal">
|
|
65
|
+
<div class="form-group" style="text-align: center">
|
|
66
|
+
<file-upload class="my-file-uploader" :name="'myFile' + blodid"
|
|
67
|
+
action="rs/file/uploadFile" tagname="文件上传" :headers="headers" multiple v-ref:file></file-upload>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="form-group" v-if="isusetype">
|
|
70
|
+
<label class="col-sm-2 control-label">文件类型:</label>
|
|
71
|
+
<div class="col-sm-10">
|
|
72
|
+
<input-select
|
|
73
|
+
class="select select_list"
|
|
74
|
+
:value.sync="headers.fusetype"
|
|
75
|
+
v-model="headers.fusetype"
|
|
76
|
+
:options="$appdata.getParam('使用类型')"
|
|
77
|
+
:valueSingle="true"></input-select>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="form-group" v-if="isremark">
|
|
81
|
+
<label class="col-sm-2 control-label">文件说明:</label>
|
|
82
|
+
<div class="col-sm-10">
|
|
83
|
+
<input class="form-control input_view" style=""
|
|
84
|
+
v-model="headers.fremarks"
|
|
85
|
+
:value="headers.fremarks"/>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</article>
|
|
89
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
90
|
+
</footer>
|
|
91
|
+
</modal>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<script>
|
|
95
|
+
import {HttpResetClass} from 'vue-client'
|
|
96
|
+
import {isEmpty} from "../../Util";
|
|
97
|
+
export default {
|
|
98
|
+
title: '附件',
|
|
99
|
+
props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch'],
|
|
100
|
+
data () {
|
|
101
|
+
return {
|
|
102
|
+
fileInfoData: [], // 数据库存储的文件记录对象数组
|
|
103
|
+
headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
|
|
104
|
+
showUpload: false, // 上传模态框控制
|
|
105
|
+
showhighmeter: false, // 高拍仪组件控制
|
|
106
|
+
useType: null
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
ready () {
|
|
110
|
+
this.headers.blodid = this.blodid
|
|
111
|
+
this.headers.businessid = this.businessid
|
|
112
|
+
this.headers.defname = this.defname
|
|
113
|
+
if (this.blodid || this.businessid) {
|
|
114
|
+
this.load()
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
methods: {
|
|
118
|
+
delet(index, row) {
|
|
119
|
+
this.$resetdelete('rs/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
120
|
+
this.$dispatch("delResid",row.id)
|
|
121
|
+
this.load()
|
|
122
|
+
})
|
|
123
|
+
},
|
|
124
|
+
// 下载
|
|
125
|
+
downloadfile(filepath){
|
|
126
|
+
var link = document.createElement('a');
|
|
127
|
+
link.href = filepath;
|
|
128
|
+
link.target='_blank'
|
|
129
|
+
link.dispatchEvent(new MouseEvent('click'));
|
|
130
|
+
},
|
|
131
|
+
// 关闭文件上传对话框
|
|
132
|
+
close () {
|
|
133
|
+
this.showUpload = false
|
|
134
|
+
this.showhighmeter = false
|
|
135
|
+
// 将选的文件清空
|
|
136
|
+
this.$refs.file.$el.querySelector('input').value = ''
|
|
137
|
+
this.headers.fusetype = ''
|
|
138
|
+
this.headers.fremarks = ''
|
|
139
|
+
this.load()
|
|
140
|
+
},
|
|
141
|
+
// 查询
|
|
142
|
+
async load() {
|
|
143
|
+
let condition = ''
|
|
144
|
+
if(this.businessid){
|
|
145
|
+
condition = `f_businessid= '${this.headers.businessid}' `
|
|
146
|
+
}else{
|
|
147
|
+
condition = `f_blobid= '${this.headers.blodid}' `
|
|
148
|
+
}
|
|
149
|
+
if (!isEmpty(this.useType)) {
|
|
150
|
+
condition += `and fusetype like '${this.useType}'`
|
|
151
|
+
}
|
|
152
|
+
let http = new HttpResetClass()
|
|
153
|
+
let data = {
|
|
154
|
+
tablename: 't_files',
|
|
155
|
+
condition: condition + ` order by f_uploaddate desc `
|
|
156
|
+
}
|
|
157
|
+
let getFile = await http.load('POST', 'rs/sql/applySingleTable', {data: data}, {
|
|
158
|
+
warnMsg: null,
|
|
159
|
+
resolveMsg: null
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
for (var i = 0; i < getFile.data.length; i++) {
|
|
163
|
+
// 如果使用类型包含导入字样,则是execl文件导入的,不做显示
|
|
164
|
+
if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
|
|
165
|
+
getFile.data.splice(i,1)
|
|
166
|
+
i--
|
|
167
|
+
continue
|
|
168
|
+
}
|
|
169
|
+
let temp = getFile.data[i].f_downloadpath
|
|
170
|
+
let URL = temp.substring(temp.lastIndexOf(":\\") + 2)
|
|
171
|
+
getFile.data[i].f_downloadURL = "http://" + location.host + "/" + URL
|
|
172
|
+
}
|
|
173
|
+
this.fileInfoData = []
|
|
174
|
+
this.fileInfoData = getFile.data
|
|
175
|
+
},
|
|
176
|
+
// 打开高拍仪
|
|
177
|
+
upload () {
|
|
178
|
+
if(this.showhighmeter){
|
|
179
|
+
this.$refs.ltgao.closeVideo()
|
|
180
|
+
}
|
|
181
|
+
this.showhighmeter = !this.showhighmeter
|
|
182
|
+
},
|
|
183
|
+
// 高拍仪回调
|
|
184
|
+
newPhoto(Imgbase64, fusetype, fremarks) {
|
|
185
|
+
this.headers.fusetype = fusetype
|
|
186
|
+
this.headers.fremarks = fremarks
|
|
187
|
+
|
|
188
|
+
let form = new FormData()
|
|
189
|
+
let xhr = new XMLHttpRequest()
|
|
190
|
+
let formDataBoundary = "----WebkitFormBoundary" + "GaoPaiYi";
|
|
191
|
+
form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
|
|
192
|
+
form.append('file', this.convertBase64ToBlob(Imgbase64), "GaoPaiYi.jpg")
|
|
193
|
+
xhr.open("POST", "rs/file/uploadFile")
|
|
194
|
+
|
|
195
|
+
if (this.headers) {
|
|
196
|
+
for (var header in this.headers) {
|
|
197
|
+
xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
xhr.send(form)
|
|
201
|
+
setTimeout(() => {
|
|
202
|
+
this.close()
|
|
203
|
+
}, 5000)
|
|
204
|
+
},
|
|
205
|
+
convertBase64ToBlob(base64String) {
|
|
206
|
+
// 将base64解码
|
|
207
|
+
var bytes = atob(base64String);
|
|
208
|
+
//var bytes = base64;
|
|
209
|
+
var bytesCode = new ArrayBuffer(bytes.length);
|
|
210
|
+
// 转换为类型化数组
|
|
211
|
+
var byteArray = new Uint8Array(bytesCode);
|
|
212
|
+
|
|
213
|
+
// 将base64转换为ascii码
|
|
214
|
+
for (var i = 0; i < bytes.length; i++) {
|
|
215
|
+
byteArray[i] = bytes.charCodeAt(i);
|
|
216
|
+
}
|
|
217
|
+
// 生成Blob对象(文件对象)
|
|
218
|
+
return new Blob([bytesCode], {type: 'image/jpeg'});
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
computed: {
|
|
222
|
+
typeOfUse () {
|
|
223
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('使用类型')]
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
watch: {
|
|
227
|
+
'blodid' () {
|
|
228
|
+
this.headers.blodid = this.blodid
|
|
229
|
+
this.headers.businessid = this.businessid
|
|
230
|
+
this.headers.defname = this.defname
|
|
231
|
+
if (this.blodid || this.businessid) {
|
|
232
|
+
this.load()
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
'businessid' () {
|
|
236
|
+
this.headers.blodid = this.blodid
|
|
237
|
+
this.headers.businessid = this.businessid
|
|
238
|
+
this.headers.defname = this.defname
|
|
239
|
+
if (this.blodid || this.businessid) {
|
|
240
|
+
this.load()
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
'defname' () {
|
|
244
|
+
this.headers.blodid = this.blodid
|
|
245
|
+
this.headers.businessid = this.businessid
|
|
246
|
+
this.headers.defname = this.defname
|
|
247
|
+
if (this.blodid || this.businessid) {
|
|
248
|
+
this.load()
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
events: {
|
|
253
|
+
beforeFileUpload: function (file) {
|
|
254
|
+
if (this.headers.fusetype === '安装合同') {
|
|
255
|
+
let res = this.fileInfoData.some(item => {
|
|
256
|
+
return item.fusetype === this.headers.fusetype
|
|
257
|
+
})
|
|
258
|
+
if (res) {
|
|
259
|
+
this.$showAlert(`${this.headers.fusetype}文件已上传!!!`, 'warning', 3000)
|
|
260
|
+
throw `${this.headers.fusetype}文件已上传!!!`
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
onFileUpload: function (file, res) {
|
|
265
|
+
this.$dispatch("resid",res.id)
|
|
266
|
+
this.headers.fremarks=''
|
|
267
|
+
this.close()
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
</script>
|
|
272
|
+
|
|
273
|
+
<style scoped>
|
|
274
|
+
.clears{
|
|
275
|
+
overflow:hidden;
|
|
276
|
+
text-overflow:ellipsis;
|
|
277
|
+
white-space:nowrap;
|
|
278
|
+
}
|
|
279
|
+
.showData {
|
|
280
|
+
padding: 15px 10px 0px 10px;
|
|
281
|
+
box-sizing: border-box;
|
|
282
|
+
height: 230px;
|
|
283
|
+
font-family: "微软雅黑";
|
|
284
|
+
}
|
|
285
|
+
.showData .item{
|
|
286
|
+
padding-bottom: 10px;
|
|
287
|
+
border-bottom: solid 1px #c1c1c1;
|
|
288
|
+
}
|
|
289
|
+
.left {
|
|
290
|
+
padding-right: 10px;
|
|
291
|
+
}
|
|
292
|
+
.left img{
|
|
293
|
+
height: 100%;
|
|
294
|
+
width: 100%;
|
|
295
|
+
}
|
|
296
|
+
.right{
|
|
297
|
+
height: 100%;
|
|
298
|
+
/*display: -webkit-flex;*/
|
|
299
|
+
/*display: flex;*/
|
|
300
|
+
/*flex-direction: column;*/
|
|
301
|
+
/*justify-content: space-around;*/
|
|
302
|
+
}
|
|
303
|
+
.item_btn{
|
|
304
|
+
width: 80%;
|
|
305
|
+
background-color: #6aa6e2;
|
|
306
|
+
border-radius: 4px;
|
|
307
|
+
color: #FFFFFF;
|
|
308
|
+
font-family: PingFang;
|
|
309
|
+
}
|
|
310
|
+
</style>
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="treemx" class="tree fonte" v-if="refreshed" style="overflow-x: scroll;max-height: 80vh" >
|
|
3
|
+
<ul v-for='(rootindex,item) in menulist' :key="item.id">
|
|
4
|
+
<!-- 没有子集 -->
|
|
5
|
+
<li v-if='!item._child'>
|
|
6
|
+
<div class="treeItem" @click="selected(item)">
|
|
7
|
+
<a href="#">{{item.catename}}</a>
|
|
8
|
+
<div class="liright">
|
|
9
|
+
<span :class="item.enabled_text == '启用'?'bgYes':'bgNo'">{{item.enabled_text}}</span>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</li>
|
|
13
|
+
<!-- 有子集 -->
|
|
14
|
+
<li v-if='item._child'>
|
|
15
|
+
<div class="onechild treeItem" >
|
|
16
|
+
<a href="#" @click.native='toggleChildren(rootindex)'>{{item.expanded?'▼ ':'►'}}{{item.catename}}</a>
|
|
17
|
+
<div class="liright">
|
|
18
|
+
<span :class="item.enabled_text == '启用'?'bgYes':'bgNo'">{{item.enabled_text}}</span>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<ul v-show='item.expanded' class="childs" style="overflow-x: auto;">
|
|
22
|
+
<li v-for='(parentindex,child) in item._child' :key="child.id" >
|
|
23
|
+
<!-- 没有子集 -->
|
|
24
|
+
<div class="twochild treeItem marginL60" v-if="!child._child" @click="selected(child,rootindex)"><a href="#">{{child.catename}}</a>
|
|
25
|
+
<div class="liright">
|
|
26
|
+
<span :class="child.enabled_text == '启用'?'bgYes':'bgNo'">{{child.enabled_text}}</span>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<!-- 有子集 -->
|
|
30
|
+
<div class="twochild marginL60" v-if="child._child">
|
|
31
|
+
<div class="treeItem" >
|
|
32
|
+
<a href="#" @click.native='toggleChildren(rootindex,parentindex)'>{{child.expanded?'▼ ':'►'}}{{child.catename}}</a>
|
|
33
|
+
<div class="liright">
|
|
34
|
+
<span :class="child.enabled_text == '启用'?'bgYes':'bgNo'">{{child.enabled_text}}</span>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<ul v-show='child.expanded'>
|
|
39
|
+
<!-- 遍历第三层 -->
|
|
40
|
+
<li class="threechild" v-for="(childIndex,child1) in child._child" :key="child1.id" style="overflow-x: auto;">
|
|
41
|
+
<div class="treeItem marginL60">
|
|
42
|
+
<a href="#" @click.native="add(rootindex,parentindex,childIndex)">{{child1.catename}} <span v-if="child1.count">数量:{{child1.count}}</span></a>
|
|
43
|
+
</div>
|
|
44
|
+
</li>
|
|
45
|
+
</ul>
|
|
46
|
+
</div>
|
|
47
|
+
</li>
|
|
48
|
+
</ul>
|
|
49
|
+
</li>
|
|
50
|
+
|
|
51
|
+
</ul>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<modal :show.sync="addshow2" v-ref:modal backdrop="false">
|
|
55
|
+
<header slot="modal-header" class="modal-header">
|
|
56
|
+
<button type="button" class="close" @click="closeadd"><span>×</span></button>
|
|
57
|
+
<h4 class="modal-title">数量</h4>
|
|
58
|
+
</header>
|
|
59
|
+
<article slot="modal-body" class="modal-body">
|
|
60
|
+
<input class="form-control" style="background-color: #f7fbff;"
|
|
61
|
+
type="number"
|
|
62
|
+
v-model="inputvalue"
|
|
63
|
+
:value="inputvalue"
|
|
64
|
+
/>
|
|
65
|
+
</article>
|
|
66
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
67
|
+
<!--<button type="button" class="btn btn-default" @click='addclose'>取消</button>-->
|
|
68
|
+
<button type="button" class="btn btn-success" @click='addconfirm2'>确认</button>
|
|
69
|
+
</footer>
|
|
70
|
+
</modal>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<script>
|
|
74
|
+
export default {
|
|
75
|
+
title: 'new',
|
|
76
|
+
props: {
|
|
77
|
+
menulist: {
|
|
78
|
+
type: Array,
|
|
79
|
+
default: []
|
|
80
|
+
},
|
|
81
|
+
scrolltop:{
|
|
82
|
+
default:0
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
data() {
|
|
86
|
+
return {
|
|
87
|
+
rootindex:null,
|
|
88
|
+
parentindex:null,
|
|
89
|
+
childIndex:null,
|
|
90
|
+
inputvalue:null,
|
|
91
|
+
addshow2:false,
|
|
92
|
+
refreshed:true, //强制刷新
|
|
93
|
+
menulist: [{
|
|
94
|
+
catename: '水果',
|
|
95
|
+
expanded: false,
|
|
96
|
+
_child: [{
|
|
97
|
+
catename: '苹果',
|
|
98
|
+
}, {
|
|
99
|
+
catename: '荔枝'
|
|
100
|
+
}, {
|
|
101
|
+
catename: '葡萄'
|
|
102
|
+
}, {
|
|
103
|
+
catename: '火龙果',
|
|
104
|
+
expanded: false,
|
|
105
|
+
_child: [
|
|
106
|
+
{
|
|
107
|
+
id: 0,
|
|
108
|
+
catename: '白心',
|
|
109
|
+
}, {
|
|
110
|
+
id: 1,
|
|
111
|
+
catename: '红心',
|
|
112
|
+
},
|
|
113
|
+
]
|
|
114
|
+
}]
|
|
115
|
+
}]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
ready(){
|
|
119
|
+
this.updatecrollTop(this.scrolltop)
|
|
120
|
+
},
|
|
121
|
+
methods: {
|
|
122
|
+
updatecrollTop(hight){
|
|
123
|
+
console.log("scrollTop",hight)
|
|
124
|
+
let doc = document.getElementById("treemx")
|
|
125
|
+
doc.scrollTop = 0
|
|
126
|
+
doc.scrollTop = hight
|
|
127
|
+
// document.getElementById("treemx").scrollTop = hight
|
|
128
|
+
// document.documentElement.scrollTop = hight
|
|
129
|
+
// window.pageYOffset = hight
|
|
130
|
+
// document.body.scrollTop = hight
|
|
131
|
+
},
|
|
132
|
+
closeadd(){
|
|
133
|
+
this.rootindex = null
|
|
134
|
+
this.parentindex = null
|
|
135
|
+
this.childIndex = null
|
|
136
|
+
this.inputvalue = null
|
|
137
|
+
this.addshow2 = false
|
|
138
|
+
},
|
|
139
|
+
addconfirm2(){
|
|
140
|
+
this.menulist[this.rootindex]._child[this.parentindex]._child[this.childIndex].count = this.inputvalue
|
|
141
|
+
this.$dispatch('menulistSelected', this.menulist[this.rootindex]._child[this.parentindex]._child[this.childIndex],this.rootindex,this.parentindex)
|
|
142
|
+
this.closeadd()
|
|
143
|
+
},
|
|
144
|
+
add(rootindex,parentindex,childIndex){
|
|
145
|
+
this.rootindex = rootindex
|
|
146
|
+
this.parentindex = parentindex
|
|
147
|
+
this.childIndex = childIndex
|
|
148
|
+
this.addshow2 = true
|
|
149
|
+
},
|
|
150
|
+
selectedFormat(rootindex,parentindex,childIndex){
|
|
151
|
+
if(this.menulist[rootindex]._child[parentindex]._child[childIndex].showButton == undefined){
|
|
152
|
+
this.menulist[rootindex]._child[parentindex]._child[childIndex].showButton = false
|
|
153
|
+
}
|
|
154
|
+
this.menulist[rootindex]._child[parentindex]._child[childIndex].showButton = !this.menulist[rootindex]._child[parentindex]._child[childIndex].showButton
|
|
155
|
+
// this.refreshed = false
|
|
156
|
+
// this.$nextTick(()=>{
|
|
157
|
+
// this.refreshed = true
|
|
158
|
+
// })
|
|
159
|
+
},
|
|
160
|
+
selectedCount(rootindex,parentindex,childIndex){
|
|
161
|
+
this.menulist[rootindex]._child[parentindex]._child[childIndex].expanded = true
|
|
162
|
+
},
|
|
163
|
+
inputCount(item,parentindex,childIndex){
|
|
164
|
+
console.log('count',item.count)
|
|
165
|
+
this.$dispatch('menulistSelected', item,val1,val2)
|
|
166
|
+
},
|
|
167
|
+
selected(item,val1,val2) {
|
|
168
|
+
console.log('item', item)
|
|
169
|
+
this.$dispatch('menulistSelected', item,val1,val2)
|
|
170
|
+
},
|
|
171
|
+
toggleChildren(rootindex,parentindex) {
|
|
172
|
+
if(parentindex!=undefined){
|
|
173
|
+
this.menulist[rootindex]._child[parentindex].expanded = !this.menulist[rootindex]._child[parentindex].expanded
|
|
174
|
+
// this.refreshed = false
|
|
175
|
+
// this.$nextTick(()=>{
|
|
176
|
+
// this.refreshed = true
|
|
177
|
+
// })
|
|
178
|
+
}else if(rootindex!=undefined) {
|
|
179
|
+
this.menulist[rootindex].expanded = !this.menulist[rootindex].expanded
|
|
180
|
+
}
|
|
181
|
+
this.$dispatch('updateTree')
|
|
182
|
+
|
|
183
|
+
},
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
</script>
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
<style scoped>
|
|
190
|
+
|
|
191
|
+
ul {
|
|
192
|
+
display: block;
|
|
193
|
+
list-style-type: disc;
|
|
194
|
+
margin-block-start: 1em;
|
|
195
|
+
margin-block-end: 1em;
|
|
196
|
+
margin-inline-start: 0px;
|
|
197
|
+
margin-inline-end: 0px;
|
|
198
|
+
padding-inline-start: 40px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.addressBox {
|
|
202
|
+
position: fixed;
|
|
203
|
+
bottom: 0;
|
|
204
|
+
left: 0;
|
|
205
|
+
width: 100%;
|
|
206
|
+
height: 5.1rem;
|
|
207
|
+
z-index: 9;
|
|
208
|
+
background: #f5f5f5;
|
|
209
|
+
display: block !important;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
span:focus {
|
|
213
|
+
background-color: silver;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
a {
|
|
217
|
+
font-size: 20px;
|
|
218
|
+
text-decoration: none;
|
|
219
|
+
color: black;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
a:hover {
|
|
223
|
+
font-size: 20px;
|
|
224
|
+
text-decoration: none;
|
|
225
|
+
color: deepskyblue;
|
|
226
|
+
/*background-color: silver;*/
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.addressBox ul {
|
|
230
|
+
width: 33%;
|
|
231
|
+
height: 5.1rem;
|
|
232
|
+
background: #E6E6E6;
|
|
233
|
+
overflow-y: scroll;
|
|
234
|
+
overflow-x: auto;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.addressBox li {
|
|
238
|
+
height: 0.62rem;
|
|
239
|
+
font: normal 0.26rem/0.62rem "微软雅黑";
|
|
240
|
+
color: #666;
|
|
241
|
+
text-align: center;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.cityBox {
|
|
245
|
+
position: absolute;
|
|
246
|
+
top: 0;
|
|
247
|
+
left: 33%;
|
|
248
|
+
width: 100%;
|
|
249
|
+
height: 5.1rem;
|
|
250
|
+
display: none;
|
|
251
|
+
overflow-y: scroll;
|
|
252
|
+
z-index: 19;
|
|
253
|
+
background: #E6E6E6;
|
|
254
|
+
-webkit-overflow-scrolling: touch;
|
|
255
|
+
overflow-x: auto;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.cityBox ul {
|
|
259
|
+
width: 100%;
|
|
260
|
+
height: 5.1rem;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.cityBox li {
|
|
264
|
+
padding-left: 0.17rem;
|
|
265
|
+
text-align: left;
|
|
266
|
+
border-bottom: 0.01rem solid #e6e6e6;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.areaBox {
|
|
270
|
+
position: absolute;
|
|
271
|
+
top: 0;
|
|
272
|
+
left: 33%;
|
|
273
|
+
width: 33%;
|
|
274
|
+
height: 5.1rem;
|
|
275
|
+
display: none;
|
|
276
|
+
overflow-y: scroll;
|
|
277
|
+
z-index: 9999;
|
|
278
|
+
-webkit-overflow-scrolling: touch;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/*模态框*/
|
|
282
|
+
.model {
|
|
283
|
+
position: absolute;
|
|
284
|
+
top: 0%;
|
|
285
|
+
left: 0%;
|
|
286
|
+
background: rgba(0, 0, 0, 0.3);
|
|
287
|
+
width: 100%;
|
|
288
|
+
height: 100%;
|
|
289
|
+
position: fixed;
|
|
290
|
+
z-index: 9999;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.model-content {
|
|
294
|
+
position: absolute;
|
|
295
|
+
left: 0;
|
|
296
|
+
right: 0;
|
|
297
|
+
bottom: 0;
|
|
298
|
+
border-radius: .15rem;
|
|
299
|
+
margin: auto;
|
|
300
|
+
background-color: #ffffff;
|
|
301
|
+
text-align: center;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
input {
|
|
305
|
+
font-size: 0.32rem;
|
|
306
|
+
width: 100%;
|
|
307
|
+
text-align: center;
|
|
308
|
+
margin-top: .3rem;
|
|
309
|
+
border: 1px solid #ccc;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/*点击省份,出现城市*/
|
|
313
|
+
.addressBox .active {
|
|
314
|
+
background: #f5f5f5;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.addressBox .active .cityBox {
|
|
318
|
+
display: block;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/*点击城市,出现区域*/
|
|
322
|
+
.cityBox .active {
|
|
323
|
+
background: #f5f5f5;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.cityBox .active .areaBox {
|
|
327
|
+
display: block;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
</style>
|