Explorar el Código

新增京东icon

limengbo hace 5 años
padre
commit
93dc9d00f9
Se han modificado 1 ficheros con 18 adiciones y 4 borrados
  1. 18 4
      src/views/dashboardRowItem/index.vue

+ 18 - 4
src/views/dashboardRowItem/index.vue

@@ -23,10 +23,18 @@
         />
         <el-table-column
           label="项目icon"
-          width="230"
+          width="180"
         >
           <template slot-scope="scope">
-            <img :src="scope.row.icon" style="width: 100%">
+            <img :src="scope.row.icon" style="width: 150px">
+          </template>
+        </el-table-column>
+        <el-table-column
+          label="京东icon"
+          width="180"
+        >
+          <template slot-scope="scope">
+            <img :src="scope.row.featureMap ? scope.row.featureMap['2018'] : ''" style="width: 150px">
           </template>
         </el-table-column>
         <el-table-column
@@ -79,9 +87,12 @@
           <el-form-item label="项目名称" :label-width="formLabelWidth">
             <el-input v-model="form.content" autocomplete="off" clearable />
           </el-form-item>
-          <el-form-item v-if="type === 'add'" label="icon" :label-width="formLabelWidth">
+          <el-form-item label="icon" :label-width="formLabelWidth">
             <el-input v-model="form.icon" autocomplete="off" clearable />
           </el-form-item>
+          <el-form-item label="京东icon" :label-width="formLabelWidth">
+            <el-input v-model="form.jdIcon" autocomplete="off" clearable />
+          </el-form-item>
           <el-form-item v-if="type === 'add'" label="跳转类型" :label-width="formLabelWidth">
             <el-select v-model="form.targetType" placeholder="请选择">
               <el-option value="LIBRARY" label="图书馆课程" />
@@ -238,6 +249,7 @@ export default {
         'rowId': '',
         'content': '',
         'icon': '',
+        'jdIcon': '',
         'targetType': '',
         'targetContent': '',
         'sort': '',
@@ -252,6 +264,7 @@ export default {
         'rowId': this.$route.query.id,
         'content': '',
         'icon': '',
+        'jdIcon': '',
         'targetType': '',
         'targetContent': '',
         'sort': '',
@@ -298,7 +311,8 @@ export default {
         'id': data.id,
         'rowId': data.rowId,
         'content': data.content,
-        'icon': data.icon,
+        'icon': '',
+        'jdIcon': '',
         'targetType': data.targetType,
         'targetContent': data.targetContent,
         'sort': data.sort,