Commit 6a296164 authored by denghr's avatar denghr

权限按钮

parent ce391b28
......@@ -92,7 +92,7 @@
<el-table-column align="center" label="操作" width="150" fixed="right">
<template scope="scope">
<el-button v-if="branchCompany_btn_edit" size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">编辑
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">{{branchCompany_btn_edit?'编辑':'查看'}}
</el-button>
<el-button v-if="branchCompany_btn_del" size="small" class="el-button el-button--text el-button--small" style="color: red;" @click="handleDelete(scope.row)">删除
</el-button>
......@@ -180,7 +180,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="cancel('form')">取 消</el-button>
<el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')">确 定</el-button>
<el-button v-else type="primary" @click="update('form')">确 定</el-button>
<el-button type="primary" @click="update('form')" v-if="branchCompany_btn_edit&&dialogStatus=='update'">确 定</el-button>
</div>
</el-dialog>
</div>
......
......@@ -84,8 +84,7 @@
<el-table-column align="center" label="操作" width="150">
<template scope="scope">
<el-button v-if="campsite_btn_edit" size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">编辑
</el-button>
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">{{campsite_btn_edit?'编辑':'查看'}}</el-button>
<el-button v-if="campsite_btn_del" size="small" style="color:red;" class="el-button el-button--text el-button--small" @click="handleDelete(scope.row)">删除
</el-button>
</template>
......@@ -164,7 +163,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="cancel('form')">取 消</el-button>
<el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')">确 定</el-button>
<el-button v-else type="primary" @click="update('form')">确 定</el-button>
<el-button v-if="campsite_btn_edit&&dialogStatus=='update'" type="primary" @click="update('form')">确 定</el-button>
</div>
</el-dialog>
</div>
......
......@@ -55,8 +55,7 @@
<el-table-column align="center" label="操作" width="150">
<template scope="scope">
<el-button v-if="btn_edit" size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">编辑
</el-button>
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">{{btn_edit?'编辑':'查看'}}</el-button>
<el-button v-if="btn_del" size="small" class="el-button el-button--text el-button--small" style="color:red;" @click="handleDelete(scope.row)">删除
</el-button>
</template>
......@@ -118,7 +117,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="handleCancel('form')">取 消</el-button>
<el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')">确 定</el-button>
<el-button v-else type="primary" @click="update('form')">确 定</el-button>
<el-button v-if="btn_edit&&dialogStatus=='update'" type="primary" @click="update('form')">确 定</el-button>
</div>
</el-dialog>
</div>
......
......@@ -2,7 +2,7 @@
<div class="app-container calendar-list-container" v-loading.body="showLoadingBody">
<div class="filter-container" ref="filter-container">
<el-button class="filter-item" style="margin-left: 10px;" @click="handleCreate"
type="primary" icon="edit">添加
type="primary" icon="edit" v-if="campsite_tag_btn_save">添加
</el-button>
</div>
<el-table :key='tableKey' :data="list" border fit highlight-current-row
......@@ -24,15 +24,14 @@
<el-table-column width="200" align="center" label="筛选条件">
<template scope="scope">
<el-button size="mini" type="text" @click="isSearchChange(scope.row)" v-if="scope.row.isSearch==1" ><i style="color: #208ee1;font-size:24px;" class="el-icon-star-on el-icon--right"></i></el-button>
<el-button size="mini" type="text" @click="isSearchChange(scope.row)" v-else ><i style="font-size:24px;" class="el-icon-star-off el-icon--right"></i></el-button>
<el-button size="mini" type="text" @click="isSearchChange(scope.row)" v-if="scope.row.isSearch==1&&campsite_btn_sing" ><i style="color: #208ee1;font-size:24px;" class="el-icon-star-on el-icon--right"></i></el-button>
<el-button size="mini" type="text" @click="isSearchChange(scope.row)" v-if="scope.row.isSearch==0&&campsite_btn_sing" ><i style="font-size:24px;" class="el-icon-star-off el-icon--right"></i></el-button>
</template>
</el-table-column>
<el-table-column align="center" width="100" label="操作" fixed="right">
<template scope="scope">
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">编辑
</el-button>
<el-button class="el-button el-button--text el-button--small" style="color:red;" size="small" @click="deleteHandler(scope.row)">删除</el-button>
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">{{campsite_tag_btn_update?'编辑':'查看'}}</el-button>
<el-button v-if="campsite_btn_del" class="el-button el-button--text el-button--small" style="color:red;" size="small" @click="deleteHandler(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -67,7 +66,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="cancelHandel">取 消</el-button>
<el-button v-if="modalTitle=='创建' && !isCreate" type="primary" @click="create('form')">确 定</el-button>
<el-button v-if="modalTitle=='编辑' && !isCreate" type="primary" @click="update('form')">确 定</el-button>
<el-button v-if="modalTitle=='编辑' && !isCreate&&campsite_tag_btn_update" type="primary" @click="update('form')">确 定</el-button>
</div>
</el-dialog>
</div>
......@@ -145,12 +144,18 @@
},
inline: true,
tableKey: 0,
campsite_tag_btn_save: false,//营地标签新增
campsite_tag_btn_update: false,//标签编辑
campsite_btn_del: false,//标签删除
campsite_btn_sing: false,//是否作为筛选条件
}
},
created() {
this.getList();
this.tourManage_btn_edit = true;//this.elements['tourManage:btn_edit'];
this.tourManage_btn_add = true;//this.elements['tourManage:btn_add'];
this.campsite_tag_btn_save=this.elements['campsite_tag:btn_save'];//营地标签新增
this.campsite_tag_btn_update=this.elements['campsite_tag:btn_update'];//标签编辑
this.campsite_btn_del=this.elements['campsite:btn_del'];//标签删除
this.campsite_btn_sing=this.elements['campsite:btn_sing'];//是否作为筛选条件
},
computed: {
...mapGetters([
......
......@@ -22,7 +22,7 @@
</el-form>
<el-button class="filter-item" type="primary" v-waves icon="search" @click="handleFilter">搜索</el-button>
<el-button class="filter-item" style="margin-left: 10px;" @click="handleCreate"
type="primary" icon="edit">添加
type="primary" icon="edit" v-if="good_btn_add">添加
</el-button>
</div>
<el-table :key='tableKey' :data="list" border fit highlight-current-row
......@@ -57,13 +57,13 @@
</el-table-column>
<el-table-column align="center" width="150" fixed="right" label="操作">
<template scope="scope">
<el-button v-if="tourManage_btn_edit" size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">编辑
<el-button v-if="tourManage_btn_edit" size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">{{good_btn_update?'编辑':'查看'}}
</el-button>
<el-button size="small"class="el-button el-button--text el-button--small" style="color: #6ce26c;" v-if="scope.row.status==2|| scope.row.status==0" @click="upStatus(scope.row)">上架
<el-button size="small" class="el-button el-button--text el-button--small" style="color: #6ce26c;" v-if="(scope.row.status==2&&good_btn_upstatus)||(scope.row.status==0&&good_btn_upstatus)" @click="upStatus(scope.row)">上架
</el-button>
<el-button size="small" class="el-button el-button--text el-button--small" style="color: #1d90e6" v-if="scope.row.status==1" @click="upStatus(scope.row)">下架
<el-button size="small" class="el-button el-button--text el-button--small" style="color: #1d90e6" v-if="scope.row.status==1&&good_btn_upstatus" @click="upStatus(scope.row)">下架
</el-button>
<el-button class="el-button el-button--text el-button--small" style="color:red;" size="small" @click="deleteHandler(scope.row)">删除</el-button>
<el-button class="el-button el-button--text el-button--small" style="color:red;" size="small" @click="deleteHandler(scope.row)" v-if="good_btn_del">删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -74,7 +74,7 @@
</div>
</div>
<!-- 旅游modal弹窗 -->
<oneTour v-if="oneTourDialogVisible" :oneTourRow="oneTourRow" :title="modalTitle" v-on:oneTourDialogEvent = "oneTourDialogEvent"></oneTour>
<oneTour v-if="oneTourDialogVisible" :oneTourRow="oneTourRow" :good_btn_update="good_btn_update" :title="modalTitle" v-on:oneTourDialogEvent = "oneTourDialogEvent"></oneTour>
</div>
</template>
......@@ -325,14 +325,20 @@
},
tableKey: 0,
departureDialogVisible: false,
arrivalDialogVisible: false
arrivalDialogVisible: false,
good_btn_add: false,//旅游添加
good_btn_update: false,//旅游编辑
good_btn_upstatus: false,//旅游上下架
good_btn_del: false,//旅游删除
}
},
created() {
this.getList();
this.getAllLabelList();//获取全部标签
this.tourManage_btn_edit = true;//this.elements['tourManage:btn_edit'];
this.tourManage_btn_add = true;//this.elements['tourManage:btn_add'];
this.good_btn_add=this.elements['tourManage:btn_edit'];//旅游添加
this.good_btn_update=this.elements['tourManage:btn_edit'];//旅游编辑
this.good_btn_upstatus=this.elements['tourManage:btn_edit'];//旅游上下架
this.good_btn_del=this.elements['tourManage:btn_edit'];//旅游删除
},
computed: {
...mapGetters([
......
......@@ -186,7 +186,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="cancelTour">取 消</el-button>
<el-button type="primary" v-if="title=='创建' && !isCreate" @click="create()">确 定</el-button>
<el-button type="primary" v-if="title=='编辑' && !isCreate" @click="update()">确 定</el-button>
<el-button type="primary" v-if="title=='编辑' && !isCreate&&good_btn_update" @click="update()">确 定</el-button>
</div>
<!--编辑出发地-->
<departureModal v-if="editDepartureVisible" :list="departureList" v-on:departureEvent = "departureEvent"></departureModal>
......@@ -245,7 +245,7 @@ import UE from '../../modal/Ueditor';//百度ue富文本
} from 'api/tourManage';
import ElRow from "element-ui/packages/row/src/row";
export default {
props: ["oneTourRow", "title"],
props: ["oneTourRow", "title","good_btn_update"],
name: 'upkeepDialog',
components: {
// Editor,
......
......@@ -2,7 +2,7 @@
<div class="app-container calendar-list-container" v-loading.body="showLoadingBody">
<div class="filter-container" ref="filter-container">
<el-button class="filter-item" style="margin-left: 10px;" @click="handleCreate"
type="primary" icon="edit">添加
type="primary" icon="edit" v-if="toutag_btn_save">添加
</el-button>
</div>
<el-table :key='tableKey' :data="list" border fit highlight-current-row
......@@ -39,17 +39,17 @@
<el-table-column width="200" align="center" label="热门标签">
<template scope="scope">
<!--isHot-->
<el-button size="mini" type="text" @click="tourTagHotChange(scope.row)" v-if="scope.row.tourTagDTO.isHot==1" ><i style="color: #208ee1;font-size:24px;" class="el-icon-star-on el-icon--right"></i></el-button>
<el-button size="mini" type="text" @click="tourTagHotChange(scope.row)" v-if="scope.row.tourTagDTO.isHot==0" ><i style="font-size:24px;" class="el-icon-star-off el-icon--right"></i></el-button>
<el-button size="mini" type="text" @click="tourTagHotChange(scope.row)" v-if="scope.row.tourTagDTO.isHot==1&&tourtag_btn_hot" ><i style="color: #208ee1;font-size:24px;" class="el-icon-star-on el-icon--right"></i></el-button>
<el-button size="mini" type="text" @click="tourTagHotChange(scope.row)" v-if="scope.row.tourTagDTO.isHot==0&&tourtag_btn_hot" ><i style="font-size:24px;" class="el-icon-star-off el-icon--right"></i></el-button>
<!--<el-icon v-if="scope.row.tourTagDTO.isHot==1" style="color: #208ee1;" class="el-icon-star-on" @click="tourTagHotChange(scope.row)"></el-icon>-->
<!--<el-icon v-else class="el-icon-star-off" @click="tourTagHotChange(scope.row)"></el-icon>-->
</template>
</el-table-column>
<el-table-column align="center" width="100" label="操作" fixed="right">
<template scope="scope">
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">编辑
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">{{tourtag_btn_update?'编辑':'查看'}}
</el-button>
<el-button class="el-button el-button--text el-button--small" style="color:red;" size="small" @click="deleteHandler(scope.row)">删除</el-button>
<el-button class="el-button el-button--text el-button--small" style="color:red;" size="small" @click="deleteHandler(scope.row)" v-if="tourtag_btn_del">删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -97,7 +97,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="cancelHandel">取 消</el-button>
<el-button v-if="modalTitle=='创建' && !isCreate" type="primary" @click="create('form')">确 定</el-button>
<el-button v-if="modalTitle=='编辑' && !isCreate" type="primary" @click="update('form')">确 定</el-button>
<el-button v-if="modalTitle=='编辑' && !isCreate && tourtag_btn_update" type="primary" @click="update('form')">确 定</el-button>
</div>
</el-dialog>
</div>
......@@ -207,14 +207,18 @@
total: null,
listLoading: true,
inline: true,
banner_btn_edit: false,//编辑
banner_btn_add: false,//添加
toutag_btn_save: false,//旅游标签添加
tourtag_btn_update: false,//旅游标签编辑
tourtag_btn_del: false,//旅游标签删除
tourtag_btn_hot: false,//更改是否作为热门标签
}
},
created() {
this.getList();
this.banner_btn_edit = true;//this.elements['tourManage:btn_edit'];
this.banner_btn_add = true;//this.elements['tourManage:btn_add'];
this.toutag_btn_save=this.elements['toutag:btn_save'];//旅游标签添加
this.tourtag_btn_update=this.elements['tourtag:btn_update'];//旅游标签编辑
this.tourtag_btn_del=this.elements['tourtag:btn_del'];//旅游标签删除
this.tourtag_btn_hot=this.elements['tourtag:btn_hot'];//更改是否作为热门标签
},
computed: {
...mapGetters([
......
......@@ -59,9 +59,7 @@
<el-table-column align="center" label="操作" width="250">
<template scope="scope">
<el-button v-if="accompanying_item_btn_update " size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">
编辑
</el-button>
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">{{accompanying_item_btn_update?'编辑':'查看'}}</el-button>
<el-button v-if="accompanying_item_btn_del " size="small" class="el-button el-button--text el-button--small" style="color: red;" @click="handleDelete(scope.row)">删除
</el-button>
</template>
......@@ -98,7 +96,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="cancel('form4Apply')">取 消</el-button>
<el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')">确 定</el-button>
<el-button v-else type="primary" @click="update('form')">确 定</el-button>
<el-button v-if="accompanying_item_btn_update&&dialogStatus=='update'" type="primary" @click="update('form')">确 定</el-button>
</div>
</el-dialog>
......@@ -170,9 +168,9 @@
},
dialogStatus: undefined,
tableKey: 0,
accompanying_item_btn_edit: false,
accompanying_item_btn_update: false,
accompanying_item_btn_del: false,
accompanying_item_btn_load: false
accompanying_item_btn_add: false
}
},
created() {
......
......@@ -199,7 +199,7 @@
<template v-if="scope.row.vehicleDepartureLogVo!=undefined">
<el-button v-if="bookRecord_btn_ret&&scope.row.vehicleDepartureLogVo.state==0&&scope.row.retStatus==1" size="small" class="el-button el-button--text el-button--small" @click="handleRet(scope.row)">收车</el-button>
</template>
<el-button v-if="bookRecord_btn_unbook && scope.row.state==2" size="small" class="el-button el-button--text el-button--small" style="color: red;" @click="handleUnbook(scope.row)">取消预定
<el-button v-if="bookRecord_btn_unbook&&scope.row.state==2" size="small" class="el-button el-button--text el-button--small" style="color: red;" @click="handleUnbook(scope.row)">取消预定
</el-button>
</template>
</el-table-column>
......
......@@ -206,11 +206,11 @@
</template>
</el-table-column>
<el-table-column width="180" align="center" label="目的地分公司">
<!-- <el-table-column width="180" align="center" label="目的地分公司">
<template scope="scope">
<span>{{scope.row.expectDestinationBranchCompanyName}}</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column width="100" align="center" label="用途">
<template scope="scope">
......
......@@ -13,7 +13,7 @@
</el-table-column>
<el-table-column align="center" label="操作" width="150">
<template scope="scope">
<el-button v-if="vehicleUpkeepItem_btn_edit" size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">编辑
<el-button size="small" class="el-button el-button--text el-button--small" @click="handleUpdate(scope.row)">{{vehicleUpkeepItem_btn_edit?'编辑':'查看'}}
</el-button>
<el-button v-if="vehicleUpkeepItem_btn_del" size="small" class="el-button el-button--text el-button--small" style="color:red;" @click="handleDelete(scope.row)">删除
</el-button>
......@@ -35,7 +35,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="cancel('form')">取 消</el-button>
<el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')">确 定</el-button>
<el-button v-else type="primary" @click="update('form')">确 定</el-button>
<el-button v-if="vehicleUpkeepItem_btn_edit&&dialogStatus=='update'" type="primary" @click="update('form')">确 定</el-button>
</div>
</el-dialog>
</div>
......
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