| | |
| | | * @Author: 李喆(开发组) lzhe@yxqiche.com |
| | | * @Date: 2025-08-11 09:25:36 |
| | | * @LastEditors: 李喆(开发组) lzhe@yxqiche.com |
| | | * @LastEditTime: 2025-08-12 17:13:14 |
| | | * @LastEditTime: 2025-08-12 17:43:58 |
| | | * @FilePath: /mdmweb/src/views/wel/gongkong.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="paginationTree"> |
| | | <el-pagination layout="prev, pager, next" :total="total" @size-change="sizeChange" @current-change="currentChange" /> |
| | | <el-pagination layout="prev, pager, next" :total="fileTotal" @size-change="sizeChange" @current-change="currentChange" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | treeData: [], |
| | | current: 1, |
| | | size: 10, |
| | | total: 0, |
| | | fileTotal: 0, |
| | | treecFileData: [], |
| | | TreeNode: {}, |
| | | fileRow: {}, |
| | |
| | | }, |
| | | methods: { |
| | | fileDialogComit() { |
| | | console.log(this.fileRow); |
| | | // this.loading = true; |
| | | // axios({ |
| | | // url: '/blade-mdm/gkw/node/file-content', |
| | | // method: 'get', |
| | | // params: {id:row.id}, |
| | | // }).then( |
| | | // res => { |
| | | // this.loading = false; |
| | | // this.fileDialogVisible = true; |
| | | // this.fileContent = res.data.data.replace(/\n/g, '<br>'); |
| | | // } |
| | | // ); |
| | | this.loading = true; |
| | | axios({ |
| | | url: '/blade-mdm/gkw/node/file-save', |
| | | method: 'post', |
| | | params: {id:this.fileRow.id,content: this.fileContent}, |
| | | }).then( |
| | | res => { |
| | | this.loading = false; |
| | | this.fileDialogVisible = false; |
| | | this.$message.success("操作成功"); |
| | | } |
| | | ); |
| | | }, |
| | | fileView(row) { |
| | | this.fileOptionTitle = "查看"; |
| | |
| | | }).then( |
| | | res => { |
| | | this.treecFileData = res.data.data.records; |
| | | this.total = res.data.data.total; |
| | | this.fileTotal = res.data.data.total; |
| | | } |
| | | ) |
| | | }else { |