Browse Source

正式平台发布

liao-sea 9 months ago
parent
commit
6ad8a27a6b

+ 38 - 1
doc/已更新脚本

@@ -1327,4 +1327,41 @@ ALTER TABLE pc_jobuser ADD COLUMN FinishDate VARCHAR(20) COMMENT '毕业日期'
 -- 2024-6-17 系统月度使用情况统计菜单与权限数据
 INSERT INTO sys_function_code VALUES ('T010503', '系统月度使用情况统计', 'T0105', 3);
 INSERT INTO `sys_menu` VALUES ('T010503', 3, '系统月度使用情况统计', NULL, 'views/statistics/MonthSystemApplyCount', '/MonthSystemApplyCount', 'T0105', NULL, 0, 1, 1, 'T010503', 1, NULL,NULL);
-insert into sys_role_sys_function_code (`RoleID`, `FunctionCode`) values('20afde90-a81a-11ed-a6c5-7085c2a9999e','T010503');
+insert into sys_role_sys_function_code (`RoleID`, `FunctionCode`) values('20afde90-a81a-11ed-a6c5-7085c2a9999e','T010503');
+
+-- 2024-6-17 求职人员统计菜单与权限数据
+insert into sys_function_code values ('T010504', '求职人员统计', 'T0105', 4);
+insert into`sys_menu` values ('T010504', 4, '求职人员统计', NULL, 'views/statistics/JobUserCount', '/JobUserCount', 'T0105', NULL, 0, 1, 1, 'T010504', 1, NULL,NULL);
+insert into sys_role_sys_function_code (`RoleID`, `FunctionCode`) values('20afde90-a81a-11ed-a6c5-7085c2a9999e','T010504');
+
+-- 2024-6-18 求职人员服务记录表
+CREATE TABLE pc_jobuser_service (
+  `ServiceID` varchar(50) NOT NULL,
+  `JobUserID` varchar(50) NULL,
+  `ServiceContent` varchar(255) NULL,
+  `ServiceTime` datetime NULL,
+  `ServiceUserID` varchar(50) NULL,
+  `CreateUserID` varchar(50) NULL,
+  `CreateTime` datetime NULL,
+  `ModifyUserID` varchar(50) NULL,
+  `ModifyTime` datetime NULL,
+  PRIMARY KEY (`ServiceID`)
+);
+
+-- 2024.06.18 企业表新增注册资本类型字段,字典表新增注册资本类型字典
+insert into sys_dictionary values ('RegisteredCapitalType','注册资本类型','10','1');
+insert into sys_dictionary_item  values
+(uuid(), '', 'RegisteredCapitalType', 1, '万元(人民币)', 10, 1, 0),
+(uuid(), '', 'RegisteredCapitalType', 2, '万元(港币)', 20, 1, 0),
+(uuid(), '', 'RegisteredCapitalType', 3, '万元(美元)', 30, 1, 0),
+(uuid(), '', 'RegisteredCapitalType', 4, '万元(欧元)', 40, 1, 0),
+(uuid(), '', 'RegisteredCapitalType', 5, '万元(日元)', 50, 1, 0),
+(uuid(), '', 'RegisteredCapitalType', 6, '万元(其他)', 60, 1, 0);
+
+alter table pc_company add column RegisteredCapitalType int  comment '注册资本类型' after RegisteredCapital;
+update pc_company set RegisteredCapitalType =1
+
+-- 2024-6-19 求职人员服务跟进权限字典码与权限赋值
+insert into sys_function_code values ('T01030108', '服务跟进', 'T010301', 8);
+insert into sys_role_sys_function_code (`RoleID`, `FunctionCode`) values('20afde90-a81a-11ed-a6c5-7085c2a9999e','T01030108');
+insert into sys_role_sys_function_code (`RoleID`, `FunctionCode`) values('10a12f77-0958-4220-b9ce-07b9215046f2','T01030108');

+ 0 - 32
doc/待更新脚本.txt

@@ -1,36 +0,0 @@
-insert into sys_function_code values ('T010504', '求职人员统计', 'T0105', 4);
-insert into`sys_menu` values ('T010504', 4, '求职人员统计', NULL, 'views/statistics/JobUserCount', '/JobUserCount', 'T0105', NULL, 0, 1, 1, 'T010504', 1, NULL,NULL);
-insert into sys_role_sys_function_code (`RoleID`, `FunctionCode`) values('20afde90-a81a-11ed-a6c5-7085c2a9999e','T010504');
-
-CREATE TABLE `employmentsitedb`.`pc_jobuser_service`  (
-  `ServiceID` varchar(50) NOT NULL,
-  `JobUserID` varchar(50) NULL,
-  `ServiceContent` varchar(255) NULL,
-  `ServiceTime` datetime NULL,
-  `ServiceUserID` varchar(50) NULL,
-  `CreateUserID` varchar(50) NULL,
-  `CreateTime` datetime NULL,
-  `ModifyUserID` varchar(50) NULL,
-  `ModifyTime` datetime NULL,
-  PRIMARY KEY (`ServiceID`)
-);
-
-insert into sys_dictionary values ('RegisteredCapitalType','注册资本类型','10','1');
-insert into sys_dictionary_item  values
-(uuid(), '', 'RegisteredCapitalType', 1, '万元(人民币)', 10, 1, 0),
-(uuid(), '', 'RegisteredCapitalType', 2, '万元(港币)', 20, 1, 0),
-(uuid(), '', 'RegisteredCapitalType', 3, '万元(美元)', 30, 1, 0),
-(uuid(), '', 'RegisteredCapitalType', 4, '万元(欧元)', 40, 1, 0),
-(uuid(), '', 'RegisteredCapitalType', 5, '万元(日元)', 50, 1, 0),
-(uuid(), '', 'RegisteredCapitalType', 6, '万元(其他)', 60, 1, 0);
-
-alter table pc_company add column RegisteredCapitalType int  comment '注册资本类型' after RegisteredCapital;
-update pc_company set RegisteredCapitalType =1
-
-insert into sys_function_code values ('T01030108', '服务跟进', 'T010301', 8);
-insert into sys_role_sys_function_code (`RoleID`, `FunctionCode`) values('20afde90-a81a-11ed-a6c5-7085c2a9999e','T01030108');
-insert into sys_role_sys_function_code (`RoleID`, `FunctionCode`) values('10a12f77-0958-4220-b9ce-07b9215046f2','T01030108');

+ 1 - 8
vue/src/views/jobUserManager/recommendMgt/index.vue

@@ -155,7 +155,7 @@
         </template>
       </a-table>
     </div>
-    <RemarkAddModal ref="modalAddRemarkRef" @modalClosed="theModalClosed"  ></RemarkAddModal>
+    <RemarkAddModal ref="modalAddRemarkRef"  ></RemarkAddModal>
   </div>
 </template>
 
@@ -293,12 +293,6 @@ export default defineComponent({
       modalAddRemarkRef.value.show(item);
     }
 
-    const theModalClosed = (d) => {
-      if (d) {
-        loadData();
-      }
-    }
-
     const getRecommendTypeList = () => {
       getSysDictionaryList('RecommendType').then((data) => {
         recommendTypeList.value = data;
@@ -329,7 +323,6 @@ export default defineComponent({
       modalRoleUserRef,
       modalRoleEditRef,
       modalAddRemarkRef,
-      theModalClosed,
       formRef,
       loadData,
       searchParamsState,

+ 73 - 64
vue/src/views/jobUserManager/recommendMgt/remarkAdd.vue

@@ -1,7 +1,17 @@
 <template>
-  <Modal  v-model:visible="visible" title="操作" ok-text="提交" @ok="onCommit" @cancel="onCancel()" >
+  <a-modal
+    :width="1200"
+    v-model:visible="visible"
+    title="查看岗位信息"
+    :closable="true"
+    :keyboard="false"
+    :mask-closable="true"
+    ok-text="确定"
+    @ok="onCommit"
+    @cancel="onCancel"
+  >
     <div class="modal-search">
-      <Form ref="modalFormRef" :model="thePostRecommend" autocomplete="off">
+      <a-form ref="modalFormRef" :model="thePostRecommend" autocomplete="off">
         <a-form-item label="入职状态" :label-col="{ span: 4}" name="entryState">
           <a-select ref="select" v-model:value="thePostRecommend.entryState"
                     :options="entryStateList" :field-names="{ label: 'name', value: 'value' }">
@@ -10,79 +20,78 @@
         <a-form-item label="备注" :label-col="{ span: 4 }" name="remark">
           <a-textarea :auto-size="{ minRows: 4, maxRows: 10 }"  v-model:value="thePostRecommend.remark" placeholder="请输入备注" :allow-clear="true"/>
         </a-form-item>
-        </Form>
+      </a-form>
     </div>
-  </Modal>
+  </a-modal>
 </template>
-<script setup lang="ts">
-import {Form, Modal, SelectProps} from 'ant-design-vue';
-import {ref} from "vue";
-import type {FormInstance} from 'ant-design-vue';
-import {setEntryState,saveRemark} from '@/api/jobUserManager/recommendMgt';
+
+<script lang="ts">
+import {defineComponent, ref} from "vue";
+import type {SelectProps,FormInstance} from "ant-design-vue";
+import {saveRemark, setEntryState} from "@/api/jobUserManager/recommendMgt";
 import {getSysDictionaryList} from "@/api/system/dictionary";
-import dayjs from "dayjs";
-import {useUserStore} from "@/store/modules/user";
-import {save} from "@/api/jobUserManager/jobuser/jobUserService";
 
-defineOptions({
-  name:'remarkAddModal',
-  inheritAttrs: false,
-  components: {
-    Form,Modal
-  }
-});
+export default defineComponent({
+  props: {
+    loadData: {
+      type: Function,
+      default: null
+    }
+  },
+  setup() {
 
-const userStore = useUserStore();
-const userInfo = ref(userStore.getUserInfo);
+    const visible = ref<boolean>(false);
+    const loading = ref<boolean>(false);
+    const modalFormRef = ref<FormInstance>();
+    const entryStateList = ref<SelectProps['options']>();
+    const thePostRecommend = ref({
+      recommendMgtID:"",
+      entryState:0,
+      remark:""
+    });
 
-const visible = ref<boolean>(false);
-const loading = ref<boolean>(false);
-const entryStateList = ref<SelectProps['options']>();
-const thePostRecommend = ref({
-    recommendMgtID:"",
-    entryState:0,
-    remark:""
-});
-const modalFormRef = ref<FormInstance>();
+    const show = async function (curRecommend:any) {
+      loading.value = true;
+      getSysDictionaryList('EntryState').then((data) => {
+        entryStateList.value = data;
+      });
+      thePostRecommend.value = curRecommend;
+      console.log(thePostRecommend.value);
+      loading.value = false;
+      visible.value = true;
+    };
 
-const show = async function (curRecommend:any) {
-  loading.value = true;
-  getSysDictionaryList('EntryState').then((data) => {
-    entryStateList.value = data;
-  });
-  thePostRecommend.value = curRecommend;
-  console.log(thePostRecommend.value);
-  loading.value = false;
-  visible.value = true;
-};
 
-defineExpose({show});
-const emits = defineEmits(['modalClosed']);
-const handleModalClosed = (e) => {
-  emits('modalClosed', e);
-};
+    const onCommit =() =>{
+      saveRemark(thePostRecommend.value).then(()=>{
+        setEntryState(thePostRecommend.value).then(()=>{
+          visible.value = false;
+        });
+      });
+    };
 
-const onCommit =() =>{
-  saveRemark(thePostRecommend.value).then(()=>{
-    setEntryState(thePostRecommend.value).then(()=>{
+    const onCancel =() =>{
       visible.value = false;
-      handleModalClosed(true);
-    });
-    // 保存跟进服务记录
-    // let serviceData = {
-    //   jobUserID: thePostRecommend.value.jobuserId,
-    //   serviceContent: `${thePostRecommend.value.entryState == 0 ? '未入职' : '已入职'}被推荐的 ${thePostRecommend.value.companyName} 的 ${thePostRecommend.value.zpProfessionName} 岗位。${thePostRecommend.value.remark ? '备注:' + thePostRecommend.value.remark : ''}`,
-    //   serviceTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
-    //   serviceUserID: userInfo.value.userID
-    // }
-    // save(serviceData);
-  });
-};
+    };
 
-const onCancel =() =>{
-  visible.value = false;
-  handleModalClosed(true);
-};
+    return {
+      visible,
+      loading,
+      modalFormRef,
+      entryStateList,
+      thePostRecommend,
+      show,
+      onCommit,
+      onCancel,
+    };
+  },
+  created() {
 
+  }
+})
 </script>
+<style scoped>
+
+</style>
+