Commit c63ecefa authored by renjintao's avatar renjintao

menuset

parent 96bc2e82
...@@ -205,6 +205,9 @@ html body { ...@@ -205,6 +205,9 @@ html body {
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
} }
.pb5 {
padding-bottom: 5px;
}
.pd10 { .pd10 {
padding: 10px; padding: 10px;
......
<template> <template>
<div style="width:800px;"> <div>
<DataGrid :columns="columns" ref="grid" :data="list"> <div class="fr pb5">
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys">
<Input placeholder="请输入关键字套餐名称/备注" v-model="easySearch.keys.value" />
</FormItem>
<FormItem>
<Button type="primary" @click="search">查询</Button>
</FormItem>
</Form>
</template>
<template slot="searchForm">
<Search />
</template>
<template slot="buttons">
<Button type="primary" @click="set()" :disabled="disabled">保存</Button> <Button type="primary" @click="set()" :disabled="disabled">保存</Button>
</template> </div>
</DataGrid> <DataGrid
:columns="columns"
ref="grid"
:data="list"
:high="false"
:set="false"
:tool="false"
:height="400"
></DataGrid>
<Modal v-model="detailModal" title="详情"> <Modal v-model="detailModal" title="详情">
<Detail :eid="curId" /> <Detail :eid="curId" />
</Modal> </Modal>
...@@ -33,7 +26,8 @@ import api from "../account/api"; ...@@ -33,7 +26,8 @@ import api from "../account/api";
export default { export default {
name: "menuSet", name: "menuSet",
components: { components: {
Detail,Search Detail,
Search
}, },
data() { data() {
return { return {
...@@ -47,45 +41,6 @@ export default { ...@@ -47,45 +41,6 @@ export default {
curId: 0, curId: 0,
currentChoose: 0, currentChoose: 0,
columns: [ columns: [
//{ key:"id",title:this.l("id") ,hide:true ,align:"left" },
{
key: "creatorUserId",
title: this.l("creatorUserId"),
hide: true,
align: "left"
},
{
key: "lastModificationTime",
title: this.l("lastModificationTime"),
hide: true,
align: "left"
},
{
key: "lastModifierUserId",
title: this.l("lastModifierUserId"),
hide: true,
align: "left"
},
{
key: "isDeleted",
title: this.l("isDeleted"),
hide: true,
align: "left"
},
{
key: "deletionTime",
title: this.l("deletionTime"),
hide: true,
align: "left"
},
// { key: "checked", hide: true, align: "left" },
{
key: "deleterUserId",
title: this.l("deleterUserId"),
hide: true,
align: "left"
},
{ {
key: "id", key: "id",
title: "", title: "",
...@@ -97,7 +52,7 @@ export default { ...@@ -97,7 +52,7 @@ export default {
// let cid=params.row.checkedId // let cid=params.row.checkedId
let flag = false; let flag = false;
if (self.currentChoose === id ) { if (self.currentChoose === id) {
flag = true; flag = true;
} else { } else {
flag = false; flag = false;
...@@ -124,7 +79,6 @@ export default { ...@@ -124,7 +79,6 @@ export default {
align: "center", align: "center",
easy: true, easy: true,
high: true, high: true,
width: 240
}, },
// { key:"remark",title:this.l("remark") ,align:"left" ,easy:true ,high:true }, // { key:"remark",title:this.l("remark") ,align:"left" ,easy:true ,high:true },
{ {
...@@ -164,7 +118,6 @@ export default { ...@@ -164,7 +118,6 @@ export default {
}, },
props: { props: {
v: Object, v: Object,
companyId: Number companyId: Number
}, },
mounted() { mounted() {
...@@ -198,9 +151,20 @@ export default { ...@@ -198,9 +151,20 @@ export default {
this.curId = id; this.curId = id;
}, },
getAll() { getAll() {
let params = { pageIndex: 1, pageSize: 20, conditions: [],type:this.companyId }; let params = {
pageIndex: 1,
pageSize: 20,
conditions: [],
type: this.companyId
};
this.currentChoose = 0;
Api.paged(params).then(r => { Api.paged(params).then(r => {
this.list=r.result.items ; this.list = r.result.items;
r.result.items.forEach(data => {
if (data.id == data.checkedId) {
this.currentChoose = data.id;
}
});
}); });
}, },
l(key) { l(key) {
......
...@@ -151,6 +151,9 @@ html body { ...@@ -151,6 +151,9 @@ html body {
padding-top: 5px; padding-top: 5px;
padding-bottom: 5px; padding-bottom: 5px;
} }
.pb5 {
padding-bottom: 5px;
}
.pd10 { .pd10 {
padding: 10px; padding: 10px;
} }
...@@ -646,7 +649,7 @@ html [type=button] { ...@@ -646,7 +649,7 @@ html [type=button] {
} }
.waitTask { .waitTask {
/*flex 布局*/ /*flex 布局*/
display: flex; display: flex!important;
align-items: center; align-items: center;
width: 200px; width: 200px;
height: 100px; height: 100px;
......
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