| | |
| | | <el-form-item class="btn-group"> |
| | | <el-button type="" @click="onSearch">查询</el-button> |
| | | <el-button type="primary" @click="addOrUpdateHandle">新增</el-button> |
| | | <el-button @click="showImportDialog">导入</el-button> |
| | | <el-button type="primary" @click="showImportDialog">导入</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | ...mapGetters(['permissions']) |
| | | }, |
| | | created() { |
| | | this.loading = true |
| | | this.getData() |
| | | this.getParamType() |
| | | }, |
| | | beforeUpdate() { |
| | | console.log("updated"); |
| | | this.rowSort() |
| | | this.rowCalc() |
| | | this.loading = false |
| | | }, |
| | | watch: {}, |
| | | // beforeUpdate() { |
| | | // console.log("updated"); |
| | | // this.rowSort() |
| | | // this.rowCalc() |
| | | // this.loading = false |
| | | // }, |
| | | watch: { |
| | | tableData:{ |
| | | handler(old,newval){ |
| | | this.loading = true |
| | | // this.tableData=JSON.parse(JSON.stringify(this.tableTreeData)) |
| | | this.rowSort() |
| | | this.rowCalc() |
| | | this.loading = false |
| | | }, |
| | | deep: true |
| | | } |
| | | }, |
| | | methods: { |
| | | //下载模板 |
| | | downloadTemplate() { |