| | |
| | | <!-- |
| | | * @Date: 2024-05-12 20:02:31 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-05-15 22:46:30 |
| | | * @LastEditTime: 2024-05-19 13:57:46 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/tooling/Tray.vue |
| | | --> |
| | | <template> |
| | |
| | | <el-container v-if="selectNode.id"> |
| | | <el-header> |
| | | <el-button @click="table_add" type="primary" icon="el-icon-plus"></el-button> |
| | | <import-table style="margin:0 8px" :exportUrl="exportUrl" :uploadUrl="uploadUrl"></import-table> |
| | | <import-table style="margin:0 8px" exportUrl="/api/blade-cps/tray/excel/template" |
| | | uploadUrl="/api/blade-cps/tray/import-tray"></import-table> |
| | | <el-button type="danger" plain icon="el-icon-delete" @click="batchDel"></el-button> |
| | | <el-input v-model="params.keyword" style="width: 240px;margin-left: auto;" placeholder="请输入检索内容" |
| | | clearable></el-input> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="托盘类别" prop="category"> |
| | | <el-select style="width: 240px" v-model="trayForm.category" placeholder=""> |
| | | <el-option label="激活" :value="1" /> |
| | | <el-option label="冻结" :value="0" /> |
| | | <el-option v-for="item in tray_category" :key="item.value" :label="item.label" |
| | | :value="item.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="托盘规格" prop="standardModel"> |
| | |
| | | availability: [ |
| | | { required: true, message: '必填' } |
| | | ], |
| | | } |
| | | }, |
| | | tray_category: [] |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | created() { |
| | | this.init() |
| | | this.$HTTP.get(`/api/blade-system/dict/dictionary?code=tray_category`).then(res => { |
| | | this.tray_category = res.data.map(v => ({ |
| | | label: v.dictValue, |
| | | value: v.dictKey |
| | | })) |
| | | }) |
| | | }, |
| | | methods: { |
| | | addTrayGroup() { |