| 123456789101112131415161718192021222324252627282930313233 |
- <template>
- <el-card shadow="never" style="border: 0;">
- <yun-form :data="row" :columns="columns">
- {:token_field()}
- </yun-form>
- </el-card>
- </template>
- <script>
- import form from "@components/Form.js";
- export default {
- components: { 'YunForm': form },
- data: {
- row: Yunqi.data.row,
- columns: [
- { field: 'id', title: __('ID'), edit: 'hidden' },
- { field: 'type_id', title: __('类型'), edit: 'radio', rules: "required", searchList: Yunqi.data.varietyList },
- { field: 'title', title: __('名称'), edit: 'text', rules: 'required' },
- { field: 'another_name', title: __('别名'), edit: 'text'},
- { field: 'weight', title: __('重量(斤)'), edit: 'text', rules: 'required' },
- { field: "pack_specs_id", title: "打包规格", searchList: Yunqi.data.packSpecsList, edit: 'select'},
- //{field: 'box_id',title: __('包装箱'),edit:'radio',rules:'required', searchList: Yunqi.data.packingList},
- { field: 'sort', title: __('排序'), edit: 'text' },
- { field: 'status', title: __('状态'), edit: 'switch', searchList: { 1: __('正常'), 2: __('隐藏') } },
- ]
- },
- methods: {
- }
- }
- </script>
- <style>
- </style>
|