Просмотр исходного кода

Dynamic ratte config need can not assign sites, can view details.
https://dev.wormwood.com.sg/zentao/task-view-454.html

vbea 1 год назад
Родитель
Сommit
1bee5763a1

+ 9 - 1
Strides-Admin/src/views/rate-base/index.vue

@@ -55,7 +55,15 @@
         align="center"
         label="No. of Sites Configured"
         prop="assignedSiteCount"
-        min-width="120"/>
+        min-width="180">
+        <template v-slot="{ row }">
+          <span v-if="$route.meta.onlyView">{{ row.assignedSiteCount }}</span>
+          <div
+            class="link-type"
+            @click="assignRates(row)"
+            v-else>{{row.assignedSiteCount}}</div>
+        </template>
+      </el-table-column>
       <el-table-column
         align="center"
         label="Status"

+ 5 - 1
Strides-Admin/src/views/rate-dynamic/index.vue

@@ -62,7 +62,11 @@
         prop="assignedSiteCount"
         min-width="180">
         <template v-slot="{ row }">
-          <div class="link-type" @click="assignRates(row)">{{row.assignedSiteCount}}</div>
+          <span v-if="$route.meta.onlyView">{{ row.assignedSiteCount }}</span>
+          <div
+            class="link-type"
+            @click="assignRates(row)"
+            v-else>{{row.assignedSiteCount}}</div>
         </template>
       </el-table-column>
       <el-table-column