| | |
| | | > |
| | | <div class="bodyTopButtonGroup" style="justify-content: space-between"> |
| | | <el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <el-button v-waves type="success" icon="el-icon-download" @click="$router.push('./../systemSetting/dataImport?fileCode=7')">导入</el-button> |
| | | <el-button |
| | | v-waves |
| | | type="success" |
| | | icon="el-icon-download" |
| | | @click="$router.push('./../systemSetting/dataImport?fileCode=7')" |
| | | >导入 |
| | | </el-button> |
| | | </div> |
| | | |
| | | <div class="bodyTopFormGroup"> |
| | |
| | | |
| | | stckcodeChange(val) { |
| | | this.dialogForm.parentlocacode = '' |
| | | this.parentlocacodeArr = this.treeLeftArr.filter(i => i.idparent === val) |
| | | const res = this.recursiveLookupArray([], val)// 递归查找数组 |
| | | this.parentlocacodeArr = res |
| | | }, |
| | | recursiveLookupArray(newArr, val) { |
| | | const temp = this.treeLeftArr.filter(i => i.idparent === val) |
| | | if (temp.length > 0 && temp) { |
| | | temp.forEach(i => { |
| | | newArr.push(i) |
| | | this.recursiveLookupArray(newArr, i.code) |
| | | }) |
| | | } |
| | | return newArr |
| | | }, |
| | | |
| | | // 递归取子集的所有code |