Explorar o código

组件变成中文

hlp hai 1 ano
pai
achega
df44a6eea6

+ 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 router from './router/index'
 import * as echarts from 'echarts';
-
+import zhCn from "element-plus/dist/locale/zh-cn.mjs";
 const app = createApp(App)
 const pinia = createPinia()
 
@@ -21,8 +21,10 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
 
 app.config.globalProperties.$echarts = echarts;
 app
-  .use(ElementPlus)
+  .use(ElementPlus, {
+    locale: zhCn,
+  })
   .use(createPinia())
   .use(router)
   .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-date-picker v-model="ruleForm.endDate" type="date" placeholder="选择日期" value-format="YYYY-MM-DD" />
             </el-form-item>
+
           </el-form>
         </div>
         <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>
@@ -70,7 +71,7 @@ const reset = () => {
   ruleForm.value = defaultForm;
 }
 const search = () => {
-  //console.log("ruleForm", ruleForm.value);
+  console.log("ruleForm", ruleForm.value);
 }
 onBeforeMount(() => {
   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;
 }
 
+declare module "element-plus/dist/locale/zh-cn.mjs";