sufan пре 2 недеља
родитељ
комит
0321c6ade2
2 измењених фајлова са 5 додато и 1 уклоњено
  1. 2 1
      src/views/capitalManage/components/RateConfig.vue
  2. 3 0
      src/views/capitalManage/details.vue

+ 2 - 1
src/views/capitalManage/components/RateConfig.vue

@@ -2,7 +2,7 @@
   <div class="rate-config">
   <div class="rate-config">
     <cy-info-title style="margin-top: 10px; margin-bottom: 10px">
     <cy-info-title style="margin-top: 10px; margin-bottom: 10px">
       <div>授信基本信息</div>
       <div>授信基本信息</div>
-      <div slot="right">
+      <div v-if="!disabled" slot="right">
         <el-button
         <el-button
           type="primary"
           type="primary"
           @click="handlerOperate('add')"
           @click="handlerOperate('add')"
@@ -118,6 +118,7 @@ export default {
         },
         },
         {
         {
           label: '操作',
           label: '操作',
+          show: this.disabled,
           render: (h, row, index) => {
           render: (h, row, index) => {
             const btnList = [
             const btnList = [
               {
               {

+ 3 - 0
src/views/capitalManage/details.vue

@@ -5,17 +5,20 @@
     <credit-info
     <credit-info
       ref="creditInfoRef"
       ref="creditInfoRef"
       :details-info="detailsInfo"
       :details-info="detailsInfo"
+      :disabled="$route.query.type === 'see'"
       @capitalFinancingTermBlur="capitalFinancingTermBlur"
       @capitalFinancingTermBlur="capitalFinancingTermBlur"
     ></credit-info>
     ></credit-info>
     <letters-info
     <letters-info
       ref="lettersInfoRef"
       ref="lettersInfoRef"
       :details-info="detailsInfo"
       :details-info="detailsInfo"
+      :disabled="$route.query.type === 'see'"
       @financingRateBlur="financingRateBlur"
       @financingRateBlur="financingRateBlur"
     ></letters-info>
     ></letters-info>
     <rate-config
     <rate-config
       ref="rateConfigRef"
       ref="rateConfigRef"
       :details-info="detailsInfo"
       :details-info="detailsInfo"
       :financing-rate="financingRate || detailsInfo.financingRate"
       :financing-rate="financingRate || detailsInfo.financingRate"
+      :disabled="$route.query.type === 'see'"
     ></rate-config>
     ></rate-config>
     <div class="submit-btn">
     <div class="submit-btn">
       <el-button @click="$router.go(-1)">关闭</el-button>
       <el-button @click="$router.go(-1)">关闭</el-button>