ソースを参照

列表展示内容为空时,显示’-‘

wyy 2 年 前
コミット
52ef5918ea

+ 1 - 0
mall4v/src/crud/prod/prodComm.js

@@ -28,6 +28,7 @@ export const tableOption = {
     },
     {
       label: '回复时间',
+      slot: true,
       prop: 'replyTime',
       width: '200',
       dicData: [

+ 2 - 1
mall4v/src/crud/prod/prodTag.js

@@ -14,7 +14,8 @@ export const tableOption = {
     {
       label: '标签名称',
       prop: 'title',
-      search: true
+      search: true,
+      slot: true
     },
     {
       label: '状态',

+ 4 - 1
mall4v/src/views/modules/prod/prodComm.vue

@@ -14,7 +14,10 @@
                 slot="nickName">
         {{scope.row.user.nickName}}
       </template>
-
+      <template slot-scope="scope"
+                slot="replyTime">
+        {{scope.row.replyTime ? scope.row.replyTime : '-'}}
+      </template>
       <template slot-scope="scope"
                 slot="menu">
         <el-button type="primary"

+ 4 - 1
mall4v/src/views/modules/prod/prodTag.vue

@@ -15,7 +15,10 @@
                    icon="el-icon-plus"
                    @click="addOrUpdateHandle()">新增</el-button>
       </template>
-
+      <template slot-scope="scope"
+                slot="title">
+        {{ scope.row.title || '-' }}
+      </template>
       <template slot-scope="scope"
                 slot="status">
         <el-tag v-if="scope.row.status === 0"

+ 2 - 0
mall4v/src/views/modules/sys/menu.vue

@@ -51,6 +51,7 @@
                        width="150"
                        :show-overflow-tooltip="true"
                        label="菜单URL">
+        <template slot-scope="scope">{{scope.row.url || '-'}}</template>
       </el-table-column>
       <el-table-column prop="perms"
                        header-align="center"
@@ -58,6 +59,7 @@
                        width="150"
                        :show-overflow-tooltip="true"
                        label="授权标识">
+        <template slot-scope="scope">{{scope.row.perms || '-'}}</template>
       </el-table-column>
       <el-table-column fixed="right"
                        header-align="center"