qymljy 2 rokov pred
rodič
commit
f8c2c6910f

+ 1 - 2
src/operation/moduleNormal/depManage/detail/index.vue

@@ -39,8 +39,7 @@ const param = ref({
 const userData = ref({})
 const mianData = async ()=>{
   const res = await Api.requested({
-    "classname": "webmanage.hr.hr",
-    "method": "query_hrMain",
+    "id":20230613102802,
     "content": {
       "nocache":true,
       "hrid": router.currentRoute.value.query.id

+ 3 - 4
src/operation/moduleNormal/depManage/detail/modules/bindUserToAccount.vue

@@ -9,7 +9,7 @@
       width="600"
       :closable="false"
       @close="onClose"
-    > 
+    >
     <normalTable :filterMultiple="true" rowKey="userid" size="small" :param="param" :columns="utils.TBLayout('unBindtACTable')" @onSelect="onSelect"/>
       <template #extra>
         <a-space>
@@ -55,8 +55,7 @@ const submit = async ()=>{
     console.log(props.data.userid,selectedAccount.value.userid)
     props.data.userid = selectedAccount.value.userid
     const res = await Api.requested({
-      "classname": "webmanage.hr.hr",
-      "method": "insertormodify_hr",
+      "id":20230613102902,
       "content":props.data
     })
     utils.message(res,'绑定成功',()=>{
@@ -74,4 +73,4 @@ const onSelect = (val)=>{
 }
 </script>
 <style>
-</style>
+</style>

+ 2 - 3
src/operation/moduleNormal/depManage/detail/modules/ceateAccount.vue

@@ -72,8 +72,7 @@ const submit = async ()=>{
   try {
     const values = await formRef.value.validateFields();
     const res = await Api.requested({
-      "classname": "webmanage.hr.hr",
-      "method": "createUser",
+      "id":20230613103002,
       "content": {
         "phonenumber":form.value.phonenumber,
         "accountno":form.value.accountno,
@@ -96,4 +95,4 @@ const roles = async ()=>{
 }
 </script>
 <style>
-</style>
+</style>

+ 1 - 2
src/operation/moduleNormal/depManage/detail/modules/edit.vue

@@ -134,8 +134,7 @@ const submit = async ()=>{
   try {
     const values = await formRef.value.validateFields();
     const res = await Api.requested({
-      classname: "webmanage.hr.hr",
-      method: "insertormodify_hr",
+     id:20230613102902,
       content:form.value
     })
     utils.message(res,'添加成功',()=>{

+ 3 - 3
src/operation/moduleNormal/depManage/modules/addWorker.vue

@@ -45,7 +45,7 @@
           <a-col :span="8">
             <a-form-item label="人员性别" name="name">
               <a-select v-model:value="form.sex" style="width: 100%" placeholder="选择人员性别">
-                <a-select-option v-for="item in sexOptions" :key="item.index" :value="item.value">{{item.remarks}}</a-select-option>
+                <a-select-option v-for="item in sexOptions" :key="item.index" :value="item.value">{{item.value}}</a-select-option>
               </a-select>
             </a-form-item>
           </a-col>
@@ -115,6 +115,7 @@ const form = ref({
   hrcode:"",
   isleader:1,
   isworker:0,
+  position:'',
   remarks:''
 })
 const Provinces = ref([])
@@ -132,8 +133,7 @@ const submit = async ()=>{
   try {
     const values = await formRef.value.validateFields();
     const res = await Api.requested({
-      classname: "webmanage.hr.hr",
-      method: "insertormodify_hr",
+     id:20230613102902,
       content:form.value
     })
     utils.message(res,'添加成功',()=>{

+ 7 - 7
src/views/login/login.vue

@@ -17,7 +17,7 @@
         <a-form-item
           label="账号"
           name="phonenumber"
-          :rules="[{ required: true, message: '请输入账号' }]" 
+          :rules="[{ required: true, message: '请输入账号' }]"
         >
           <a-input v-model:value="formState.phonenumber" size="large" placeholder="请输入账号"/>
         </a-form-item>
@@ -43,7 +43,7 @@
     </div>
     <div class="login-wrap">
       <div class="top">
-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#1890ff" fill-opacity="1" d="M0,288L48,266.7C96,245,192,203,288,202.7C384,203,480,245,576,245.3C672,245,768,203,864,202.7C960,203,1056,245,1152,272C1248,299,1344,309,1392,314.7L1440,320L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>    
+        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#1890ff" fill-opacity="1" d="M0,288L48,266.7C96,245,192,203,288,202.7C384,203,480,245,576,245.3C672,245,768,203,864,202.7C960,203,1056,245,1152,272C1248,299,1344,309,1392,314.7L1440,320L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>
       </div>
     </div>
     <a-layout-footer class="footer">
@@ -85,8 +85,8 @@ export default defineComponent({
       loading.value = true
       const res = await Api.loginbyaccount({
         "accountno":formState.phonenumber,
-        "password":md5(formState.password),  
-        "systemclient": "cweb"
+        "password":md5(formState.password),
+        "systemclient": "web"
       })
       if (res.code === 1) {
         if (res.account_list[0].status == 'INACTIVE')
@@ -95,7 +95,7 @@ export default defineComponent({
         accountList.value = res.account_list
         store.defaultAccount(res.account_list[0])
         router.replace({path:'/home'})
-        
+
       } else {
         loading.value = false
         message.error(res.msg)
@@ -178,7 +178,7 @@ export default defineComponent({
   overflow: hidden; /* 隐藏超出部分 */
   max-width: 700px; /* 固定宽度为 200 像素 */
   animation: typingH 5s forwards;
-  
+
   display: inline-block; /* 让行内元素可以自适应宽度、允许换行 */
 }
 
@@ -207,4 +207,4 @@ export default defineComponent({
     font-size: 15px;
   }
 }
-</style>
+</style>