Commit 7c33f78b authored by 黄奎's avatar 黄奎

页面修改

parent 03131675
......@@ -76,40 +76,40 @@
</template>
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="修改"
<q-btn flat size="xs" v-if="IsEditEduReceipAudit" icon="edit" color="accent" style="font-weight:400" label="修改"
@click="getCurrentAuditMan(props.row)" />
<q-popup-proxy v-if="isShowEdit">
<q-banner>
<div class="billDialog">
<div v-for="(item,index) in AuditList" class="col row" style="margin-top:20px;">
<div class="col-5" style="align-items:center;">
<q-select v-model="item.AuditEmId" :options="EmployeeList" filled disable
option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6" emit-value
map-options>
</q-select>
</div>
<span style="margin:20px;">-</span>
<div class="col-5">
<q-select v-model="item.NewAuditEmId" :options="EmployeeList" filled clearable use-input
label="审核人员" option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6"
emit-value map-options @filter="filterFn">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div>
<q-popup-proxy v-if="isShowEdit">
<q-banner>
<div class="billDialog">
<div v-for="(item,index) in AuditList" class="col row" style="margin-top:20px;">
<div class="col-5" style="align-items:center;">
<q-select v-model="item.AuditEmId" :options="EmployeeList" filled disable
option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6" emit-value
map-options>
</q-select>
</div>
<span style="margin:20px;">-</span>
<div class="col-5">
<q-select v-model="item.NewAuditEmId" :options="EmployeeList" filled clearable use-input
label="审核人员" option-label="EmployeeName" option-value="Id" ref="EmployeeName" class="col-6"
emit-value map-options @filter="filterFn">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div>
</div>
</q-banner>
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" @click="isShowEdit=false" style="font-weight:400 !important" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveBill" />
</q-card-actions>
</q-popup-proxy>
</div>
</q-banner>
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" @click="isShowEdit=false" style="font-weight:400 !important" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveBill" />
</q-card-actions>
</q-popup-proxy>
</q-btn>
<q-btn flat size="xs" icon="iconfont icon-View" color="accent" style="font-weight:400" label="查看"
@click="showBillForm(props.row,1)" />
......@@ -238,11 +238,20 @@
isShowEdit: false,
AuditList: [], //角色数组
EmployeeList: [],
AllemployeeList: []
AllemployeeList: [],
IsEditEduReceipAudit:false,//是否有修改审核人权限
}
},
created() {
var localStorageData = window.localStorage["loginUserInfo"];
let ActionMenuList = JSON.parse(localStorageData).data.ActionMenuList
if (ActionMenuList && ActionMenuList.length > 0) {
ActionMenuList.forEach(x => {
if (x.FunctionCode == 'Edit_EduReceipAudit') {
this.IsEditEduReceipAudit = true;
}
})
}
},
mounted() {
this.currentUrl = this.$route.path;
......@@ -284,7 +293,7 @@
}
this.showType = type;
this.billObj = item;
this.isShowEdit=false;
this.isShowEdit = false;
},
//重新查询
resetSearch() {
......@@ -372,10 +381,10 @@
//保存
saveBill() {
saveAuditMan({
Info:this.AuditList
Info: this.AuditList
}).then(res => {
if (res.Code == 1) {
this.isShow=false;
this.isShow = false;
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
......
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