Explorar o código

liubiya02081630

liuhj hai 7 meses
pai
achega
e15715c094

+ 5 - 1
src/components/OP/EntryDetails.vue

@@ -35,7 +35,7 @@
                         </el-option>
                     </el-select>
                     <el-button @click="eptschedule(2)" type="primary">导出下拉所选表格</el-button>
-                    <el-button @click="setpermissionsbtn" type="primary">设置权限</el-button>
+                    <el-button v-if="isAssignPerm" @click="setpermissionsbtn" type="primary">设置权限</el-button>
                     <el-button @click="eptschedule(3)" type="primary">团组成员名单</el-button>
                 </div>
             </div>
@@ -612,6 +612,8 @@ export default {
             airJJC_Checked: false,//经济舱选择框
             airGWC_Checked: false,//公务舱选择框
             airTDC_Checked: false,//公务舱选择框
+            
+            isAssignPerm:false,
 
             userId: '',
             token: '',
@@ -1377,6 +1379,7 @@ export default {
                     remark:'',
                 },
             ]
+            this.isAssignPerm=false;
             var url = "/api/Groups/GetEnterExitCostInfobyDiId"
             var that = this
             this.$axios({
@@ -1395,6 +1398,7 @@ export default {
                     that.ID = res.data.data.id;
                     //汇率
                     that.currencys = res.data.data.currencys;
+                    that.isAssignPerm=res.data.data.isAssignPerm;
                     //权限
                     that.isSave=res.data.data.isSave;
                     that.isView=res.data.data.isView;

+ 7 - 1
src/components/OP/EntryDetailsdraft.vue

@@ -47,7 +47,7 @@
                         </el-option>
                     </el-select>
                     <el-button @click="eptschedule(1)" type="primary">导出所选明细表</el-button>
-                    <el-button @click="setpermissionsbtn" type="primary">分配权限</el-button>
+                    <el-button v-if="isAssignPerm" @click="setpermissionsbtn" type="primary">分配权限</el-button>
                     <!-- <el-select style="width:202px" v-model="tablevalue" placeholder="请选择">
                         <el-option v-for="item in tablevalueoptions" :key="item.id" :label="item.name" :value="item.id">
                         </el-option>
@@ -615,6 +615,8 @@ export default {
             listvalueoptions: [],
             tablevalueoptions: [],
 
+            isAssignPerm:false,
+
             //是否计算Checkbox
             choiceOne: false,//境内费用(其他费用)选择框
             choiceTwo: false,//国际旅费合计选择框
@@ -1467,6 +1469,7 @@ export default {
                     remark:'',
                 },
             ]
+            this.isAssignPerm=false;
             var url = "/api/Groups/EnterExitCostDraftInfoById"
             var that = this
             this.$axios({
@@ -1485,6 +1488,7 @@ export default {
                     that.ID = res.data.data.id;
                     //汇率
                     that.currencys = res.data.data.currencys;
+                    that.isAssignPerm = res.data.data.isAssignPerm;
                     //权限
                     that.isSave=res.data.data.isSave;
                     that.isView=res.data.data.isView;
@@ -1610,6 +1614,8 @@ export default {
             this.airGWC_Checked = false//公务舱选择框
             this.storageid = 0
 
+            this.isAssignPerm=true;
+
             this.quarterageData = [
                 {
                     id: 0,