| | |
| | | <!-- |
| | | * @Date: 2024-05-26 22:26:35 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-05-26 22:40:36 |
| | | * @LastEditTime: 2024-06-02 15:16:59 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/setting/FTP.vue |
| | | --> |
| | | <template> |
| | | <el-container> |
| | | <el-header> |
| | | <el-button type="primary">创建FTP目录</el-button> |
| | | <el-button type="primary" @click="addFtp">创建FTP目录</el-button> |
| | | <el-button type="primary" style="margin-right: auto;">关联工位</el-button> |
| | | </el-header> |
| | | <el-main> |
| | | <el-row :gutter="20" style="width: 100%;"> |
| | | <el-col :span="12"> |
| | | <el-table :data="tableData" style="width: 100%"> |
| | | <el-table-column label="目录名称" prop="" width=""></el-table-column> |
| | | <el-table-column label="关联工位" prop="" width=""></el-table-column> |
| | | <el-table-column label="目录名称" prop="name" width=""></el-table-column> |
| | | <el-table-column label="关联工位" prop="" width=""> |
| | | <template #default="scope"> |
| | | <span class="">{{ scope.row.workstationDTOS.map(v => v.name).join(';') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" prop="" width=""></el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | |
| | | <div>509</div> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | </el-main> |
| | | <scDialog v-model="showAdd"> |
| | | <scForm :config="config" :rules="rules"> |
| | | |
| | | </scForm> |
| | | </scDialog> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | tableData: [], |
| | | showAdd: false, |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: '请输入姓名' } |
| | | ] |
| | | }, |
| | | config: { |
| | | labelWidth: 120, |
| | | |
| | | formItems: [ |
| | | { |
| | | component: 'input', |
| | | label: '名称', |
| | | name: 'name', |
| | | options: { |
| | | placeholder: '', |
| | | maxlength: 100, |
| | | } |
| | | }, |
| | | { |
| | | component: 'input', |
| | | label: '关联工位', |
| | | name: 'workstationIds', |
| | | options: { |
| | | placeholder: '', |
| | | maxlength: 100, |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | getList() { |
| | | this.$HTTP.post(`/api/blade-dnc/ftp-director/ftp-workstation-list`, { name: '', workstationIds: [] }).then(res => { |
| | | this.tableData = res.data |
| | | }) |
| | | }, |
| | | addFtp() { |
| | | this.showAdd = true |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |