{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\AreaManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\AreaManage.vue","mtime":1697007204911},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-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//\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//\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// import pilotprojects from '@/api/pilotprojects'\r\nimport utils from '@/utils.js'\r\nexport default {\r\n name: 'AreaManage',\r\n components: {},\r\n data() {\r\n return {\r\n rules: {\r\n name: [\r\n {\r\n required: true,\r\n message: '请输入父级行政区域名',\r\n trigger: 'blur',\r\n },\r\n ],\r\n xb: [\r\n {\r\n required: true,\r\n message: '请输入行政区域名',\r\n trigger: 'blur',\r\n },\r\n ],\r\n tel: [\r\n {\r\n required: true,\r\n message: '请输入邮政编码',\r\n trigger: 'blur',\r\n },\r\n ],\r\n },\r\n formData: {},\r\n isShowButton: true,\r\n filterText: '',\r\n data: [\r\n {\r\n id: 1,\r\n label: '一级 1',\r\n children: [\r\n {\r\n id: 4,\r\n label: '二级 1-1',\r\n children: [\r\n {\r\n id: 9,\r\n label: '三级 1-1-1',\r\n },\r\n {\r\n id: 10,\r\n label: '三级 1-1-2',\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n {\r\n id: 2,\r\n label: '一级 2',\r\n children: [\r\n {\r\n id: 5,\r\n label: '二级 2-1',\r\n },\r\n {\r\n id: 6,\r\n label: '二级 2-2',\r\n },\r\n ],\r\n },\r\n {\r\n id: 3,\r\n label: '一级 3',\r\n children: [\r\n {\r\n id: 7,\r\n label: '二级 3-1',\r\n },\r\n {\r\n id: 8,\r\n label: '二级 3-2',\r\n },\r\n ],\r\n },\r\n ],\r\n }\r\n },\r\n watch: {\r\n filterText(val) {\r\n this.$refs.tree.filter(val)\r\n },\r\n },\r\n methods: {\r\n handleCancel() {\r\n this.isShowButton = false\r\n },\r\n append(data) {\r\n const newChild = {id: id++, label: 'testtest', children: []}\r\n if (!data.children) {\r\n this.$set(data, 'children', [])\r\n }\r\n data.children.push(newChild)\r\n },\r\n\r\n remove(node, data) {\r\n const parent = node.parent\r\n const children = parent.data.children || parent.data\r\n const index = children.findIndex((d) => d.id === data.id)\r\n children.splice(index, 1)\r\n },\r\n\r\n filterNode(value, data) {\r\n if (!value) return true\r\n return data.label.indexOf(value) !== -1\r\n },\r\n },\r\n}\r\n",null]}