|
@@ -177,8 +177,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="btns" v-if="!IS_FWS && type">
|
|
|
- <el-button class="btn" type="danger" @click="passClick(index, false, item.id, item)">不同意</el-button>
|
|
|
- <el-button class="btn" type="primary" @click="passClick(index, true, item.id, item)">同意</el-button>
|
|
|
+ <el-button class="btn" type="danger" @click="passClick(index, false, item.id, item)">{{ textB }}</el-button>
|
|
|
+ <el-button class="btn" type="primary" @click="passClick(index, true, item.id, item)">{{ textA }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -189,8 +189,8 @@
|
|
|
<el-form ref="allFormRef" :model="taskForm" label-width="120px" :rules="rules">
|
|
|
<el-form-item label="审批意见:" prop="supervision" class="formitem-box">
|
|
|
<el-radio-group v-model="taskForm.supervision">
|
|
|
- <el-radio :label="true">同意</el-radio>
|
|
|
- <el-radio :label="false">不同意</el-radio>
|
|
|
+ <el-radio :label="true">{{ textA }}</el-radio>
|
|
|
+ <el-radio :label="false">{{ textB }}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
@@ -273,7 +273,9 @@ export default {
|
|
|
},
|
|
|
getPageLoading: false,
|
|
|
noData: false,
|
|
|
- cardContainerheight: ''
|
|
|
+ cardContainerheight: '',
|
|
|
+ textA: '同意',
|
|
|
+ textB: '不同意'
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -292,6 +294,17 @@ export default {
|
|
|
if (this.userInfo.roles.includes(37)) {
|
|
|
this.IS_FWS = true;
|
|
|
}
|
|
|
+ const rolesArr = [49, 52, 53, 56];
|
|
|
+ const IS_JDY = this.userInfo.roles.some((item) => rolesArr.includes(item));
|
|
|
+ console.log('IS_JDY', IS_JDY);
|
|
|
+
|
|
|
+ if (IS_JDY) {
|
|
|
+ this.textA = '通过';
|
|
|
+ this.textB = '不通过';
|
|
|
+ } else {
|
|
|
+ this.textA = '同意';
|
|
|
+ this.textB = '不同意';
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
@@ -647,7 +660,7 @@ export default {
|
|
|
|
|
|
.card-list {
|
|
|
overflow: auto;
|
|
|
- min-height: 200px;
|
|
|
+ min-height: 400px;
|
|
|
box-sizing: border-box;
|
|
|
.cards {
|
|
|
box-sizing: border-box;
|