Commit 4bd186e6 authored by 骆瑛's avatar 骆瑛

单选框修改

parent bc827bb1
...@@ -18,18 +18,12 @@ ...@@ -18,18 +18,12 @@
><FormItem :label="l('englishFullName')" prop="englishFullName"> ><FormItem :label="l('englishFullName')" prop="englishFullName">
<Input v-model="entity.englishFullName"> </Input> </FormItem <Input v-model="entity.englishFullName"> </Input> </FormItem
></Col> ></Col>
<Col :span="12"
><FormItem :label="l('englishName')" prop="englishName">
<Input v-model="entity.englishName"> </Input> </FormItem
></Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('status')" prop="status"> <FormItem :label="l('englishName')" prop="englishName">
<Dictionary <Input v-model="entity.englishName"> </Input>
code="base.project_atom.status"
v-model="entity.status"
></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12" <Col :span="12"
><FormItem :label="l('code')" prop="code"> ><FormItem :label="l('code')" prop="code">
<Input v-model="entity.code"> </Input> </FormItem <Input v-model="entity.code"> </Input> </FormItem
...@@ -42,6 +36,15 @@ ...@@ -42,6 +36,15 @@
><FormItem :label="l('version')" prop="version"> ><FormItem :label="l('version')" prop="version">
<InputNumber v-model="entity.version"></InputNumber> </FormItem <InputNumber v-model="entity.version"></InputNumber> </FormItem
></Col> ></Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary
code="base.project_atom.status"
v-model="entity.status"
type="radio"
></Dictionary>
</FormItem>
</Col>
<Col :span="24" <Col :span="24"
><FormItem :label="l('description')" prop="description"> ><FormItem :label="l('description')" prop="description">
<Input <Input
...@@ -66,10 +69,10 @@ ...@@ -66,10 +69,10 @@
:label="tab.name" :label="tab.name"
> >
</TabPane> </TabPane>
<Button @click="modal1 = true" size="small" slot="extra" <!-- <Button @click="modal1 = true" size="small" slot="extra"
>增加</Button >增加</Button
> > -->
<Modal <!-- <Modal
v-model="modal1" v-model="modal1"
title="增加" title="增加"
@on-ok="okModal('formline')" @on-ok="okModal('formline')"
...@@ -98,7 +101,7 @@ ...@@ -98,7 +101,7 @@
</FormItem> </FormItem>
</p> </p>
</Form> </Form>
</Modal> </Modal> -->
</Tabs> </Tabs>
</Row> </Row>
<Row> <Row>
...@@ -137,7 +140,7 @@ ...@@ -137,7 +140,7 @@
> >
<template slot-scope="{ row, index }" slot="columnDescription"> <template slot-scope="{ row, index }" slot="columnDescription">
<Input <Input
v-on:input='onIpnt(row, index)' v-on:input="onIpnt(row, index)"
v-model="row.columnDescription" v-model="row.columnDescription"
@on-change="setRow(row, index)" @on-change="setRow(row, index)"
placeholder="请输入" placeholder="请输入"
...@@ -155,7 +158,7 @@ ...@@ -155,7 +158,7 @@
</template> </template>
<template slot-scope="{ row, index }" slot="propertyName"> <template slot-scope="{ row, index }" slot="propertyName">
<Input <Input
v-on:input='onIpnt(row, index)' v-on:input="onIpnt(row, index)"
v-model="row.propertyName" v-model="row.propertyName"
@on-change="setRow(row, index)" @on-change="setRow(row, index)"
placeholder="请输入" placeholder="请输入"
...@@ -203,17 +206,7 @@ ...@@ -203,17 +206,7 @@
/> />
</template> </template>
<template slot-scope="{ row, index }" slot="systemName"> <template slot-scope="{ row, index }" slot="systemName">
<div> <state code="project.main.systemName" :value="row.systemName" />
{{ row.systemName }}
</div>
<!-- <Dictionary
@on-change="setRow(row, index)"
v-model="row.systemName"
code="project.main.systemName"
type="select"
:value="row.systemName"
:key="row.systemName"
></Dictionary> -->
</template> </template>
<template slot-scope="{ row, index }" slot="list"> <template slot-scope="{ row, index }" slot="list">
<Checkbox v-model="row.list" @on-change="setRow(row, index)"> <Checkbox v-model="row.list" @on-change="setRow(row, index)">
...@@ -271,7 +264,7 @@ export default { ...@@ -271,7 +264,7 @@ export default {
name: [{ required: true, message: "请输入名称", trigger: "blur" }], name: [{ required: true, message: "请输入名称", trigger: "blur" }],
code: [{ required: true, message: "请输入编码", trigger: "blur" }], code: [{ required: true, message: "请输入编码", trigger: "blur" }],
}, },
modal1: false, // modal1: false,
iconType: "ios-arrow-up", iconType: "ios-arrow-up",
textUp: "收起", textUp: "收起",
upDrop: true, upDrop: true,
...@@ -374,11 +367,11 @@ export default { ...@@ -374,11 +367,11 @@ export default {
align: "center", align: "center",
slot: "systemName", slot: "systemName",
width: 190, width: 190,
render: (h, params) => { // render: (h, params) => {
return h("div", [ // return h("div", [
h("span", {}, this.sysDist(params.row.systemName)), // h("span", {}, this.sysDist(params.row.systemName)),
]); // ]);
}, // },
}, },
{ {
title: "是否可空", title: "是否可空",
...@@ -466,34 +459,25 @@ export default { ...@@ -466,34 +459,25 @@ export default {
} }
}, },
methods: { methods: {
sysDist(value) { // okModal(name) {
if (value == 0) { // this.$refs[name].validate((valid) => {
return "系统"; // if (valid) {
} else if (value == 1) { // let obj = {
return "业务"; // name: this.formline.name,
} else if (value == 2) { // code: this.formline.code,
return "扩展"; // list: [],
} // };
}, // this.content.dtos.push(obj);
okModal(name) { // console.log(this.content.dtos);
this.$refs[name].validate((valid) => { // this.$refs[name].resetFields();
if (valid) { // this.modal1 = false;
let obj = { // }
name: this.formline.name, // });
code: this.formline.code, // },
list: [], // cancelModal(name) {
}; // this.$refs[name].resetFields();
this.content.dtos.push(obj); // this.modal1 = false;
console.log(this.content.dtos); // },
this.$refs[name].resetFields();
this.modal1 = false;
}
});
},
cancelModal(name) {
this.$refs[name].resetFields();
this.modal1 = false;
},
onDragDrop(a, b) { onDragDrop(a, b) {
this.checkList.splice(b, 0, ...this.checkList.splice(a, 1)); this.checkList.splice(b, 0, ...this.checkList.splice(a, 1));
}, },
...@@ -550,8 +534,8 @@ export default { ...@@ -550,8 +534,8 @@ export default {
this.checkList.splice(index, 1); this.checkList.splice(index, 1);
} }
}, },
onIpnt(a,b){ onIpnt(a, b) {
console.log(a,b) console.log(a, b);
}, },
setRow(row, index) { setRow(row, index) {
// if (index >= 1) { // if (index >= 1) {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
></Col> ></Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('status')" prop="status"> <FormItem :label="l('status')" prop="status">
<Dictionary code="base.project.status" v-model="entity.status" ></Dictionary> <Dictionary code="base.project.status" v-model="entity.status" type='radio'></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12" <Col :span="12"
......
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