Bladeren bron

样式修改

lilei 4 jaren geleden
bovenliggende
commit
fb667bf4cf

+ 7 - 0
src/components/global.less

@@ -540,6 +540,7 @@ body {
   background-color: #39f;
   border-color: #39f;
   margin: 0 5px;
+  font-size: 12px;
   &:hover, &:focus {
     background-color: #52a6fb;
     border-color: #52a6fb;
@@ -555,6 +556,7 @@ body {
   background-color: #2db7f5;
   border-color: #2db7f5;
   margin: 0 5px;
+  font-size: 12px;
   &:hover, &:focus {
     background-color: #32c8f5;
     border-color: #32c8f5;
@@ -570,6 +572,7 @@ body {
   background-color: #0c6;
   border-color: #0c6;
   margin: 0 5px;
+  font-size: 12px;
   &:hover, &:focus {
     background-color: #01dc8c;
     border-color: #01dc8c;
@@ -585,6 +588,7 @@ body {
   background-color: #f90;
   border-color: #f90;
   margin: 0 5px;
+  font-size: 12px;
   &:hover, &:focus {
     background-color: #ffb60a;
     border-color: #ffb60a;
@@ -600,6 +604,7 @@ body {
   background-color: #f30;
   border-color: #f30;
   margin: 0 5px;
+  font-size: 12px;
   &:hover, &:focus {
     background-color: #ff4639;
     border-color: #ff4639;
@@ -615,6 +620,7 @@ body {
   background-color: #2F54EB;
   border-color: #2F54EB;
   margin: 0 5px;
+  font-size: 12px;
   &:hover, &:focus {
     background-color: #1d39c4;
     border-color: #1d39c4;
@@ -630,6 +636,7 @@ body {
   background-color: #722ED1;
   border-color: #722ED1;
   margin: 0 5px;
+  font-size: 12px;
   &:hover, &:focus {
     background-color: #9254de;
     border-color: #9254de;

+ 1 - 1
src/views/productManagement/productBrand/list.vue

@@ -44,7 +44,7 @@
           v-if="$hasPermissions('B_product_dealerProductBrand_enable')&&record.sysFlag == 0"
           @change="changeStatus(record)"
           :checked="record.enabledFlag == 1 ? true : false" />
-        <span v-else> {{ record.enabledFlag==1? '已启用': '已禁用' }} </span>
+        <span v-else :style="{color:(record.enabledFlag==1?'#00aa00':'#999')}"> {{ record.enabledFlag==1? '已启用': '已禁用' }} </span>
       </template>
       <!-- 操作 -->
       <template slot="action" slot-scope="text, record">

+ 1 - 0
src/views/productManagement/productCategory/list.vue

@@ -41,6 +41,7 @@
           icon="delete"
           id="productCategory-del"
           @click="handleDel(record)">删除</a-button>
+        <span v-if="record.sysFlag != 0">--</span>
       </template>
     </s-table>
     <!-- 新增/编辑产品分类 -->

+ 2 - 2
src/views/productManagement/productInfo/list.vue

@@ -100,7 +100,7 @@
           v-if="$hasPermissions('B_product_dealerProduct_enable')"
           @change="changeStatus(record)"
           :checked="record.enabledFlag == 1 ? true : false" />
-        <span v-else> {{ record.enabledFlag==1? '已启用': '已禁用' }} </span>
+        <span v-else :style="{color:(record.enabledFlag==1?'#00aa00':'#999')}"> {{ record.enabledFlag==1? '已启用': '已禁用' }} </span>
       </template>
       <!-- 操作 -->
       <template slot="action" slot-scope="text, record">
@@ -161,7 +161,7 @@ export default {
         { title: '终端价', dataIndex: 'terminalPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
         { title: '状态', scopedSlots: { customRender: 'enabledFlag' }, width: 140, align: 'center', fixed: 'right' },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' }
+        { title: '操作', scopedSlots: { customRender: 'action' }, width: 150, align: 'center', fixed: 'right' }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 5 - 1
src/views/supplierManagement/supplierInfo/list.vue

@@ -46,6 +46,10 @@
           @click="handleEdit(record)"
           id="supplierInfoList-edit-btn">编辑</a-button>
       </template>
+      <!-- 状态 -->
+      <template slot="status" slot-scope="text, record">
+        <span :style="{color:(record.enabledFlag==1?'#00aa00':'#999')}">{{ record.enabledFlagDictValue }}</span>
+      </template>
     </s-table>
   </a-card>
 </template>
@@ -70,7 +74,7 @@ export default {
         { title: '联系电话', dataIndex: 'contactTel', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '主营内容', dataIndex: 'businessScope', width: 200, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
         { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '状态', dataIndex: 'enabledFlagDictValue', width: 100, align: 'center' },
+        { title: '状态', scopedSlots: { customRender: 'status' }, width: 100, align: 'center' },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
       ],
       // 加载数据方法 必须为 Promise 对象