{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileMaterialStock\\components\\treePopup\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileMaterialStock\\components\\treePopup\\index.vue","mtime":1691463999696},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\n\r\nimport myTree from '@/components/myTree/index.vue'\r\nimport classManage from '@/api/manager/material/materialInfoManage'\r\n\r\nexport default {\r\n name: 'treePopup',\r\n components: {myTree},\r\n // 排查单位查询-筛选弹层\r\n props: {\r\n // 是否展示弹层\r\n treePopup: {\r\n default: false,\r\n type: Boolean\r\n },\r\n value: {\r\n default: '',\r\n type: String\r\n }\r\n },\r\n data() {\r\n return {\r\n tree: [],\r\n sonOptions: [\r\n {\r\n childrenkey: 'children',\r\n nameKey: 'name',\r\n idKey: 'id',\r\n height: '36px'\r\n }\r\n ],\r\n cloneValue: '',\r\n row: {}\r\n }\r\n },\r\n computed: {\r\n isShowPopup: {\r\n get() {\r\n return this.treePopup\r\n },\r\n set(val) {\r\n this.$emit('update:treePopup', val)\r\n }\r\n }\r\n },\r\n created() {\r\n this.cloneValue = this.value\r\n this.getTree()\r\n },\r\n methods: {\r\n // 取消\r\n cancel() {\r\n this.isShowPopup = false\r\n },\r\n\r\n // 确认\r\n confirm() {\r\n this.$emit('input', this.cloneValue)\r\n this.$emit('confirm', this.row)\r\n this.isShowPopup = false\r\n },\r\n\r\n // 分页查询物资信息\r\n getTree() {\r\n classManage.loadAllClass({}, res => {\r\n this.tree = [res.value.find(i => i.id === this.value)]\r\n this.row = res.value.find(i => i.id === this.value)\r\n })\r\n },\r\n\r\n clickRadio(row) {\r\n this.cloneValue = row.id\r\n this.row = row\r\n }\r\n }\r\n}\r\n",null]}