2 Commits 20843559e9 ... 48921664a0

Author SHA1 Message Date
  hlp 48921664a0 Merge branch 'master' of http://47.100.37.243:10191/wutt/manHourHousekeeper 1 year ago
  hlp df44a6eea6 组件变成中文 1 year ago

+ 5 - 3
fhKeeper/formulahousekeeper/customerBuler-crm/src/main.ts

@@ -9,7 +9,7 @@ import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
 import App from './App.vue'
 import App from './App.vue'
 import router from './router/index'
 import router from './router/index'
 import * as echarts from 'echarts';
 import * as echarts from 'echarts';
-
+import zhCn from "element-plus/dist/locale/zh-cn.mjs";
 const app = createApp(App)
 const app = createApp(App)
 const pinia = createPinia()
 const pinia = createPinia()
 
 
@@ -21,8 +21,10 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
 
 
 app.config.globalProperties.$echarts = echarts;
 app.config.globalProperties.$echarts = echarts;
 app
 app
-  .use(ElementPlus)
+  .use(ElementPlus, {
+    locale: zhCn,
+  })
   .use(createPinia())
   .use(createPinia())
   .use(router)
   .use(router)
   .use(pinia)
   .use(pinia)
-  .mount('#app')
+  .mount("#app");

+ 4 - 3
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/tasks/index.vue

@@ -36,11 +36,12 @@
             <el-form-item label="结束日期" label-width="7em" prop="endDate">
             <el-form-item label="结束日期" label-width="7em" prop="endDate">
               <el-date-picker v-model="ruleForm.endDate" type="date" placeholder="选择日期" value-format="YYYY-MM-DD" />
               <el-date-picker v-model="ruleForm.endDate" type="date" placeholder="选择日期" value-format="YYYY-MM-DD" />
             </el-form-item>
             </el-form-item>
+
           </el-form>
           </el-form>
         </div>
         </div>
         <div class="w-full flex p-3 shadow-[0_-3px_5px_0px_rgba(0,0,0,0.2)]">
         <div class="w-full flex p-3 shadow-[0_-3px_5px_0px_rgba(0,0,0,0.2)]">
-          <El-button class="w-full" @click="reset()">重置</El-Button>
-          <El-button type="primary" class="w-full" @click="search()">搜索</El-Button>
+          <el-button size="large" class="w-full" @click="reset()">重置</el-Button>
+          <el-button type="primary" size="large" class="w-full" @click="search()">搜索</el-Button>
         </div>
         </div>
       </div>
       </div>
     </div>
     </div>
@@ -70,7 +71,7 @@ const reset = () => {
   ruleForm.value = defaultForm;
   ruleForm.value = defaultForm;
 }
 }
 const search = () => {
 const search = () => {
-  //console.log("ruleForm", ruleForm.value);
+  console.log("ruleForm", ruleForm.value);
 }
 }
 onBeforeMount(() => {
 onBeforeMount(() => {
   config.value = getFunctionList(MDO);
   config.value = getFunctionList(MDO);

+ 1 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/vite-env.d.ts

@@ -5,3 +5,4 @@ declare module "*.vue" {
     export default vueComponent;
     export default vueComponent;
 }
 }
 
 
+declare module "element-plus/dist/locale/zh-cn.mjs";