소스 검색

修改组件配置

noob 3 년 전
부모
커밋
ec8345039f
3개의 변경된 파일12개의 추가작업 그리고 4개의 파일을 삭제
  1. 9 1
      src/pages/main/performance/components/form.vue
  2. 2 2
      src/pages/main/performance/components/table.vue
  3. 1 1
      src/pages/main/performance/department.vue

+ 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"