Commit 22a1e71a authored by renjintao's avatar renjintao

Merge branch 'master' of git.mes123.com:zhouyx/mes-ui into product-rjt

parents 1fe4d028 30622fe2
...@@ -21,9 +21,7 @@ ul, ...@@ -21,9 +21,7 @@ ul,
li { li {
list-style: none; list-style: none;
} }
.ivu-drawer-wrap{
z-index: 12000;
}
div::-webkit-scrollbar { div::-webkit-scrollbar {
width: 10px; width: 10px;
height: 10px; height: 10px;
......
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
background-color: @primary-color; background-color: @primary-color;
border-color: @primary-color; border-color: @primary-color;
} }
.ivu-drawer-wrap,.tree-drawer{
z-index: 12000;
}
.ivu-btn-group:not(.ivu-btn-group-vertical) .ivu-btn-primary:first-child:not(:last-child) { .ivu-btn-group:not(.ivu-btn-group-vertical) .ivu-btn-primary:first-child:not(:last-child) {
border-right-color: @primary-color; border-right-color: @primary-color;
......
This diff is collapsed.
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<Button @click="complexSearch" type="primary" style="margin-left: 10px">查询</Button> <Button @click="complexSearch" type="primary" style="margin-left: 10px">查询</Button>
</div> </div>
</Modal> </Modal>
<Drawer title="列设置" v-if="set" v-model="config" :scrollable="true" placement="left" :mask="false"> <Drawer title="列设置" v-if="set" v-model="config" :scrollable="true" placement="left" :mask="false" class-name="tree-drawer">
<div slot="header"> <div slot="header">
列设置 列设置
<a @click="undoConfig" class="ml50"> <a @click="undoConfig" class="ml50">
......
...@@ -132,7 +132,7 @@ henq.toTree = (list, rootId, format, parentFiledName) => { ...@@ -132,7 +132,7 @@ henq.toTree = (list, rootId, format, parentFiledName) => {
function toTree(data, parentId, level) { function toTree(data, parentId, level) {
let parents = data.filter(u => { let parents = data.filter(u => {
if(u[upId]=='') if(u[upId]==='')
{ {
u[upId]=null u[upId]=null
} }
......
...@@ -26,6 +26,9 @@ export default { ...@@ -26,6 +26,9 @@ export default {
} }
}); });
}, },
batch(ids) {
return Api.post(`${material}/projectplan/batchdelete`,ids);
},
///projecttemplate/list ///projecttemplate/list
templates(params){ templates(params){
return Api.post(`${material}/projecttemplate/list`,params) return Api.post(`${material}/projecttemplate/list`,params)
......
<template> <template>
<div> <div>
<Card> <Card>
<EditGrid :columns="columns" ref="grid" :batch="true" :items="list" :level="8" :drag="true" :exportTitle="exportTl"> <EditGrid :columns="columns" ref="grid" :batch="true" :items="list" :level="8" :drag="true" :exportTitle="exportTl" @on-selection-change="batchChange">
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys"><Input placeholder="请输入关键字标题" v-model="easySearch.keys.value" /> <FormItem prop="keys"><Input placeholder="请输入关键字标题" v-model="easySearch.keys.value" />
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
</DropdownMenu> </DropdownMenu>
</Dropdown> </Dropdown>
</template> </template>
<template slot="batch">
<Button type="primary" @click="bacthRemove()">批量删除</Button>
</template>
</EditGrid> </EditGrid>
</Card> </Card>
<Submenus :show="showStatu" :data="tempItems" :params="params"></Submenus> <Submenus :show="showStatu" :data="tempItems" :params="params"></Submenus>
...@@ -70,6 +73,7 @@ export default { ...@@ -70,6 +73,7 @@ export default {
data() { data() {
return { return {
entity: {}, entity: {},
batchItems:[],
row: {}, row: {},
action: Api.index, action: Api.index,
easySearch: { easySearch: {
...@@ -88,13 +92,15 @@ export default { ...@@ -88,13 +92,15 @@ export default {
key: "drag", key: "drag",
type: "drag", type: "drag",
width: 50, width: 50,
align: 'center' align: 'center',
title: '移动',
}, },
{ {
key: "upId", key: "upId",
width: 50, width: 50,
type: "selection", type: "selection",
align: 'center' align: 'center',
title: '选择',
}, },
{ {
key: "upTitle", key: "upTitle",
...@@ -466,6 +472,21 @@ export default { ...@@ -466,6 +472,21 @@ export default {
} }
]; ];
}, },
batchChange(items,list){
this.batchItems=items;
},
bacthRemove(){
var ids=this.batchItems.map(u=>{
return u.id;
})
if(ids.length>0){
Api.batch(ids).then(r=>{
if(r.success){
this.search();
}
})
}
},
//批量导入start //批量导入start
//导入功能 //导入功能
openModalIm() { openModalIm() {
......
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