Explorar o código

修改组件配置

noob %!s(int64=3) %!d(string=hai) anos
pai
achega
ec8345039f

+ 9 - 1
src/pages/main/performance/components/form.vue

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-11-01 18:03:02
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-12-03 18:44:44
+ * @LastEditTime : 2021-12-03 20:27:50
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\form.vue
 -->
 <template>
@@ -29,6 +29,14 @@
                             ></el-option>
                         </el-select>
                     </template>
+                    <template v-else-if="['date','month'].includes(type)">
+                        <el-date-picker
+                            v-model="object[props]"
+                            :type="type"
+                            :placeholder="label"
+                        >
+                        </el-date-picker>
+                    </template>
                     <template v-else>
                         <el-input
                             v-model="object[props]"

+ 2 - 2
src/pages/main/performance/components/table.vue

@@ -2,7 +2,7 @@
  * @Author       : yuanrunwei
  * @Date         : 2021-11-01 18:02:58
  * @LastEditors  : yuanrunwei
- * @LastEditTime : 2021-12-03 18:26:56
+ * @LastEditTime : 2021-12-03 20:00:28
  * @FilePath     : \spfm-market-front\src\pages\main\performance\components\table.vue
 -->
 <template>
@@ -25,7 +25,7 @@
                         autosize
                         type="textarea"
                     />
-                    <div v-else v-html="scope.row[props]"></div>
+                    <pre v-else>{{ scope.row[props] }}</pre>
                     <el-button
                         size="mini"
                         class="margin-top-10"

+ 1 - 1
src/pages/main/performance/department.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <div class="simple-container">
     <!-- <simple-drawer
       title="新增服务类别"
       :visible="visible_class"