Commit 9367d349 authored by 仇晓婷's avatar 仇晓婷

排产资源

parent 51679675
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
<Col span="8"> <Col span="8">
<FormItem :label="l('isimportant')" prop="isimportant"> <FormItem :label="l('isimportant')" prop="isimportant">
<RadioGroup v-model="entity.isimportant"> <RadioGroup v-model="entity.isimportant">
<Radio label="0"></Radio> <Radio label="1"></Radio>
<Radio label="1"></Radio> <Radio label="2"></Radio>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>
</Col> </Col>
...@@ -132,6 +132,23 @@ export default { ...@@ -132,6 +132,23 @@ export default {
easy: true, easy: true,
high: true high: true
}, },
{
key: "isimportant",
title: this.l("isimportant"),
align: "left",
render: (h, params) => {
let statuse = params.row.isimportant;
let text = statuse == 1 ? "是" : statuse == 2 ? "否" : "";
return h("span", {}, text);
}
},
{
key: "capabilityValue",
title: this.l("capabilityValue"),
align: "left",
easy: true,
high: true
},
{ {
key: "calId", key: "calId",
title: this.l("calId"), title: this.l("calId"),
...@@ -173,12 +190,12 @@ export default { ...@@ -173,12 +190,12 @@ export default {
attrs: { oprate: "edit" }, attrs: { oprate: "edit" },
on: { click: () => this.edit(params.row.id) } on: { click: () => this.edit(params.row.id) }
}, },
"设置日历" "设置"
), ),
h( h(
"op", "op",
{ {
attrs: { oprate: "remove",title: "删除" }, attrs: { oprate: "remove", title: "删除" },
on: { click: () => this.remove(params.row.id) } on: { click: () => this.remove(params.row.id) }
}, },
"删除" "删除"
......
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="formItem" :rules="rules" :label-width="90">
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem label="资源名称" prop="equip_name"> <FormItem label="资源名称" prop="equip_name">
...@@ -29,6 +29,19 @@ ...@@ -29,6 +29,19 @@
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12">
<FormItem label="是否关重" prop="isimportant">
<RadioGroup v-model="formItem.isimportant">
<Radio label="1"></Radio>
<Radio label="2"></Radio>
</RadioGroup>
</FormItem>
</Col>
<Col :span="12">
<FormItem label="能力值" prop="capabilityValue">
<Input v-model="formItem.capabilityValue" placeholder="请输入能力值"></Input>
</FormItem>
</Col>
</Row> </Row>
<FormItem> <FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button> <Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button>
...@@ -47,7 +60,9 @@ export default { ...@@ -47,7 +60,9 @@ export default {
overtimeList: [], overtimeList: [],
formItem: { formItem: {
equip_name: "", equip_name: "",
equip_id: "" equip_id: "",
isimportant: "",
capabilityValue: ""
}, },
formItem1: { formItem1: {
id: 0, id: 0,
...@@ -97,6 +112,8 @@ export default { ...@@ -97,6 +112,8 @@ export default {
Api.get({ id: v }).then(r => { Api.get({ id: v }).then(r => {
this.formItem.equip_name = r.result.title; this.formItem.equip_name = r.result.title;
this.formItem.equip_id = r.result.code; this.formItem.equip_id = r.result.code;
this.formItem.capabilityValue = r.result.capabilityValue;
this.formItem.isimportant = r.result.isimportant + "";
this.formItem1.calendarwork_pk = r.result.calKey; this.formItem1.calendarwork_pk = r.result.calKey;
this.formItem2.calendarovertime_pk = r.result.holidayKey; this.formItem2.calendarovertime_pk = r.result.holidayKey;
this.formItem1.equip_pk = r.result.id; this.formItem1.equip_pk = r.result.id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment