|
@@ -0,0 +1,156 @@
|
|
|
+
|
|
|
+<template>
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="showDialog"
|
|
|
+ :title="title"
|
|
|
+ :modal-append-to-body="true"
|
|
|
+ style="text-align: left;"
|
|
|
+ @close="closeDialog"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :append-to-body="true"
|
|
|
+ width="900px"
|
|
|
+ >
|
|
|
+ <div class="user-panel" v-loading="loading">
|
|
|
+ <el-descriptions title="详细信息">
|
|
|
+ <el-descriptions-item label="姓名"><span class="colorText">{{formModel.personName}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="手机号"><span class="colorText">{{formModel.personPhone}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="居住地"><span class="colorText">{{formModel.address}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="服务描述"><span class="colorText">{{formModel.serviceDesc}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="意向行业"><span class="colorText">{{formModel.intendedIndustriesN}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="意向岗位"><span class="colorText">{{formModel.intendedPosition}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="期望薪资"><span class="colorText">{{formModel.hopeSalary}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="结算方式"><span class="colorText">{{formModel.methodN}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="工作经验"><span class="colorText">{{formModel.workExperienceN}}</span></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="最高学历"><span class="colorText">{{formModel.educationN}}</span></el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="closeDialog">关 闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ </template>
|
|
|
+ <script>
|
|
|
+ import recruitPersonRelationApi from "@/api/base/recruitPersonRelation";
|
|
|
+ import dataDictionaryApi from "@/api/sys/dataDictionary";
|
|
|
+
|
|
|
+ export default {
|
|
|
+ props: ["relationId", "title"],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ showPwd: true,
|
|
|
+ ruleValidate: {
|
|
|
+ title: [
|
|
|
+ { required: true, message: "标题不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ author: [
|
|
|
+ { required: true, message: "作者不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ type: [
|
|
|
+ { required: true, message: "类型不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ roleList: [],
|
|
|
+ formModel: {},
|
|
|
+ showDialog: true,
|
|
|
+ loading: false,
|
|
|
+ submitting: false,
|
|
|
+ companyProps: {
|
|
|
+ value: "id",
|
|
|
+ label: "name",
|
|
|
+ },
|
|
|
+ typeList:[],
|
|
|
+ isStatus:false,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ dataDictionaryApi.findByCatalogName({catalogName: "共享用工类型",})
|
|
|
+ .then((response) => {
|
|
|
+ var jsonData = response.data;
|
|
|
+ this.typeList = jsonData.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ closeDialog() {
|
|
|
+ this.$emit("close", false,this.isStatus);
|
|
|
+ },
|
|
|
+ handleSubmit() {
|
|
|
+ var self = this;
|
|
|
+
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ (function () {
|
|
|
+ var id = self.formModel.id;
|
|
|
+
|
|
|
+ if (id == null || id.length == 0) {
|
|
|
+ return recruitPersonRelationApi.add(self.formModel);
|
|
|
+ } else {
|
|
|
+ return recruitPersonRelationApi.update(self.formModel);
|
|
|
+ }
|
|
|
+ })().then(function (response) {
|
|
|
+ var jsonData = response.data;
|
|
|
+
|
|
|
+ if (jsonData.result) {
|
|
|
+ self.$message({
|
|
|
+ message: "保存成功!",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+
|
|
|
+ self.$emit("close", true);
|
|
|
+ } else {
|
|
|
+ self.$message({
|
|
|
+ message: jsonData.message + "",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+
|
|
|
+ self.$emit("close", false);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+ async mounted() {
|
|
|
+ var self = this;
|
|
|
+ self.loading = true;
|
|
|
+
|
|
|
+ (function () {
|
|
|
+ return recruitPersonRelationApi.jobInformationDetail(self.relationId);
|
|
|
+ })()
|
|
|
+ .then((response) => {
|
|
|
+ var jsonData = response.data;
|
|
|
+
|
|
|
+ if (jsonData.result) {
|
|
|
+ self.formModel = jsonData.data;
|
|
|
+
|
|
|
+ if (self.formModel.content != null) {
|
|
|
+ self.$refs.editor.setContent(self.formModel.content);
|
|
|
+ }
|
|
|
+
|
|
|
+ if(self.formModel.isReadStatus){
|
|
|
+ self.isStatus = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ self.showModal = true;
|
|
|
+ } else {
|
|
|
+ self.$message.error(jsonData.message + "");
|
|
|
+ }
|
|
|
+
|
|
|
+ self.loading = false;
|
|
|
+ })
|
|
|
+ .catch((error) => {
|
|
|
+ self.$message.error(error + "");
|
|
|
+ self.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ },
|
|
|
+ };
|
|
|
+ </script>
|
|
|
+ <style scoped>
|
|
|
+ .user-panel {
|
|
|
+ margin: 10px auto;
|
|
|
+ }
|
|
|
+ .colorText{
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ </style>
|