| | |
| | | <!-- |
| | | * @Date: 2024-05-26 16:12:09 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-11 22:18:42 |
| | | * @LastEditTime: 2024-06-16 16:19:02 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/craft/document/index.vue |
| | | --> |
| | | <!-- |
| | |
| | | <el-card shadow="never" style="height: 100%;" body-style="height: 100%"> |
| | | <el-container> |
| | | <el-aside width="200px"> |
| | | <el-tree ref="group" node-key="id" :props="{ |
| | | <el-tree :expand-on-click-node="false" ref="group" node-key="id" :props="{ |
| | | label: 'name', |
| | | hasChildren: 'id' |
| | | }" @node-click="nodeClick" highlight-current :current-node-key="selectNode.id" :load="loadNode" |
| | |
| | | @click="del">删除</el-button> |
| | | <el-button style="margin-left: 8px;margin-right: auto;" type="primary" |
| | | @click="addNew">新增</el-button> |
| | | <el-select v-model="params.type" style="width: 240px;margin-left: 8px;"> |
| | | <!-- <el-select v-model="params.type" style="width: 240px;margin-left: 8px;"> |
| | | <template #prefix> |
| | | 查询目标 |
| | | </template> |
| | | <el-option v-for="item in options.type" :key="item.value" :label="item.label" |
| | | :value="item.value" /> |
| | | </el-select> |
| | | <el-input style="width: 240px;margin-left: 8px;" v-model="params.keyword" |
| | | placeholder="请输入检索内容"></el-input> |
| | | <el-button @click="search" style="margin-left: 8px;" type="primary" |
| | | icon="el-icon-search"></el-button> |
| | | <el-option v-for="item in options.type" :key="item.value" :label="item.label" :value="item.value" /> |
| | | </el-select> |
| | | <el-input style="width: 240px;margin-left: 8px;" v-model="params.keyword" placeholder="请输入检索内容"></el-input> |
| | | <el-button @click="search" style="margin-left: 8px;" type="primary" icon="el-icon-search"></el-button> --> |
| | | </el-header> |
| | | <el-main v-if="selectNode.id || selectNode.id == 0"> |
| | | <el-row :gutter="20"> |
| | |
| | | 工艺包所在目录:{{ info.sourcePath }} |
| | | </el-col> |
| | | <el-col :span="24" style="margin: 14px 0;"> |
| | | <Children :list="list" @delete="deleteItem"></Children> |
| | | <Children @success="success" :list="list" @delete="searchFile" :id="info.id"> |
| | | </Children> |
| | | </el-col> |
| | | </el-row> |
| | | </el-col> |
| | |
| | | </el-main> |
| | | </el-container> |
| | | </scDialog> |
| | | |
| | | </el-main> |
| | | </template> |
| | | |
| | |
| | | this.row = row |
| | | }, |
| | | dataChange(data) { |
| | | console.log(data) |
| | | console.log(data, '>>>>>>>>dataChange') |
| | | this.rowClick(data.data.records[0]) |
| | | }, |
| | | rowClick(row) { |
| | |
| | | this.$HTTP.get(`/api/blade-dnc/dnc-art-bag/get/${row.id}`).then(res => { |
| | | if (res.success) { |
| | | this.info = res.data |
| | | this.searchFile() |
| | | } else { |
| | | this.info = {} |
| | | } |
| | | }) |
| | | this.$HTTP.get(`/api/blade-dnc/dnc-art-file/list?artBagId=${row.id}`).then(res => { |
| | | if (res.success) { |
| | | this.list = res.data |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | deleteItem() { |
| | | searchFile() { |
| | | this.$HTTP.get(`/api/blade-dnc/dnc-art-file/list?artBagId=${this.info.id}`).then(res => { |
| | | if (res.success) { |
| | | this.list = res.data |
| | |
| | | }, |
| | | search() { |
| | | |
| | | }, |
| | | success() { |
| | | this.searchFile() |
| | | } |
| | | } |
| | | } |