| File was renamed from src/cool/modules/huaneng/views/huaneng.vue |
| | |
| | | const upsert = reactive<Upsert>({
|
| | | items: [
|
| | | {
|
| | | label: "姓名",
|
| | | prop: "name",
|
| | | label: "逻辑ID",
|
| | | prop: "logic_id",
|
| | | component: {
|
| | | name: "el-input"
|
| | | },
|
| | | //是否为必填项,注:接口配置字段时没有设置默认值时,都需要选择必填
|
| | | required: true
|
| | | },
|
| | | {
|
| | | label: "操作人",
|
| | | prop: "configurator",
|
| | | component: {
|
| | | name: "el-input"
|
| | | },
|
| | | required: true
|
| | | },
|
| | | {
|
| | | label: "备注",
|
| | | prop: "remark",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "名称",
|
| | | prop: "title",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "序号",
|
| | | prop: "price",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "分类",
|
| | | prop: "type",
|
| | | label: "状态",
|
| | | prop: "status",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | |
| | | align: "center"
|
| | | },
|
| | | {
|
| | | label: "姓名",
|
| | | prop: "name"
|
| | | label: "id",
|
| | | prop: "id",
|
| | | sortable: true //是否排序功能
|
| | | },
|
| | | {
|
| | | label: "设备",
|
| | | prop: "title"
|
| | | label: "逻辑ID",
|
| | | prop: "logic_id"
|
| | | },
|
| | | {
|
| | | label: "序号",
|
| | | prop: "price"
|
| | | label: "操作人",
|
| | | prop: "configurator"
|
| | | },
|
| | | {
|
| | | label: "分类",
|
| | | prop: "type"
|
| | | label: "备注",
|
| | | prop: "remark"
|
| | | },
|
| | | {
|
| | | label: "状态",
|
| | | prop: "status"
|
| | | },
|
| | | {
|
| | | label: "操作",
|
| | |
| | |
|
| | | // crud 加载
|
| | | function onLoad({ ctx, app }: CrudLoad) {
|
| | | console.log("service", service);
|
| | |
|
| | | // 绑定 service
|
| | | ctx.service(service.huaneng.huaneng).done();
|
| | | ctx.service(service.business.devicegroup).done();
|
| | | app.refresh();
|
| | | }
|
| | |
|