From 46723f74c8152fae880917d273b960900bd8508a Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期六, 27 五月 2023 10:09:47 +0800 Subject: [PATCH] 新增婚姻、隐私模块api --- /dev/null | 830 ------------------------------------------------ ruoyi-ui/src/api/secret/index.js | 67 +++ ruoyi-ui/src/api/marry/index.js | 71 ++++ 3 files changed, 138 insertions(+), 830 deletions(-) diff --git a/ruoyi-ui/src/api/marry/edit.vue b/ruoyi-ui/src/api/marry/edit.vue deleted file mode 100644 index f809bdd..0000000 --- a/ruoyi-ui/src/api/marry/edit.vue +++ /dev/null @@ -1,505 +0,0 @@ -<template> - <div class="app-container"> - <el-col :span="6"> - <el-input size="medium" v-model="input" placeholder="鎼滅储" clearable> - <i slot="prefix" class="el-input__icon el-icon-search"></i> - </el-input> - </el-col> - <br> - <h1 style="font-size:21px">涓汉绠�鍘�</h1> - <el-divider /> - <h2 style="font-size:16px">鍩烘湰淇℃伅</h2> - - <el-container> - <div style="padding-left:30px"> - <el-container> - <el-col> - <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left"> - <el-row :span="6"> - <el-form-item label="濮撳悕" prop="nickName"> - <el-input v-model="formData.nickName" placeholder="璇疯緭鍏ュ鍚�" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="6"> - <el-form-item label="鏇剧敤鍚�" prop="oldName"> - <el-input v-model="formData.oldName" placeholder="璇疯緭鍏ユ浘鐢ㄥ悕" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="8"> - <el-form-item label="韬唤璇佸彿" prop="idNum"> - <el-input v-model="formData.idNum" placeholder="璇疯緭鍏ヨ韩浠借瘉鍙�" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - </el-form> - </el-col> - </el-container> - </div> - <div style="padding-left:70px"> - <el-container> - <el-col > - <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left"> - <el-row :span="6"> - <el-form-item label="鎬у埆" prop="sex"> - <el-input v-model="formData.sex" placeholder="璇疯緭鍏ユ�у埆" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="6"> - <el-form-item label="姘戞棌" prop="nation"> - <el-input v-model="formData.nation" placeholder="璇疯緭鍏ユ皯鏃�" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="8"> - <el-form-item label="鑱旂郴鏂瑰紡" prop="phoneNumber"> - <el-input v-model="formData.phoneNumber" placeholder="璇疯緭鍏ヨ仈绯绘柟寮�" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - </el-form> - </el-col> - </el-container> - </div> - <div style="padding-left:70px"> - <el-container> - <el-col> - <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="70px" label-position="left"> - <el-row :span="6"> - <el-form-item label="鍥界睄" prop="nationality"> - <el-input v-model="formData.nationality" placeholder="璇疯緭鍏ュ浗绫�" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="6"> - <el-form-item label="濠氬Щ鐘跺喌" prop="maritalStatus"> - <el-input v-model="formData.maritalStatus" placeholder="璇疯緭鍏ュ濮荤姸鍐�" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - - </el-form> - </el-col> - </el-container> - </div> - <div style="padding-left:70px;padding-top:30px"> - <el-row :gutter="6" > - <el-upload ref="ref1" - action="" - :file-list="fileList" - list-type="picture-card" - accept="image/*" - :auto-upload="false" - :multiple="false" - :limit="1"> - <i class="el-icon-plus"></i> - </el-upload> - </el-row> - </div> - <div style="padding-left:50px;padding-top:30px" > - <el-container> - <el-row :span="2" style="flex-direction: column;"> - <el-button type="primary" @click="submitForm">缂栬緫</el-button> - <br> - <el-button type="primary" @click="submitForm">瀵煎叆</el-button> - </el-row> - </el-container> - </div> - </el-container> - <el-container> - <div style="padding-left:30px"> - <el-container> - <el-col> - <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px" label-position="left"> - <el-row :span="15"> - <el-form-item label="鎴风睄鍦板潃" prop="locationAddress"> - <el-input v-model="formData.locationAddress" placeholder="璇疯緭鍏ユ埛绫嶅湴鍧�" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="15"> - <el-form-item label="甯镐綇鍦板潃" prop="alwaysAddress"> - <el-input v-model="formData.alwaysAddress" placeholder="璇疯緭鍏ュ父浣忓湴鍧�" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="15"> - <el-form-item label="鍗曚綅鍙婅亴鍔¤亴绉�" prop="unit position "> - <el-input v-model="formData.unit,formData.position" placeholder="璇疯緭鍏ュ崟浣嶅強鑱屽姟鑱岀О" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - - </el-form> - </el-col> - </el-container> - </div> - <div style="padding-left:30px"> - <el-container> - <el-col> - <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px" label-position="left"> - <el-row :span="12"> - <el-form-item label="鎴风睄鍦板叕瀹夋満鍏�" prop="locationPolice"> - <el-input v-model="formData.locationPolice" placeholder="璇疯緭鍏ユ埛绫嶅湴鍏畨鏈哄叧" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="12"> - <el-form-item label="甯镐綇鍦板叕瀹夋満鍏�" prop=" alwaysPolice"> - <el-input v-model="formData. alwaysPolice" placeholder="璇疯緭鍏ュ父浣忓湴鍏畨鏈哄叧" clearable :style="{width: '100%'}"> - </el-input> - </el-form-item> - </el-row> - - </el-form> - </el-col> - </el-container> - </div> - </el-container> - - - <div style="padding-top:30px"> - <el-container> - <div style="width:100%"><h2 style="font-size:15px" >涓昏瀛︿範鍙婂伐浣滅粡鍘�</h2></div> - <el-button type="primary" icon="el-icon-edit" round></el-button> - <el-button type="primary" icon="el-icon-delete" round></el-button> - </el-container> - - <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> - <el-table-column type="selection" width="16" align="center" /> - <el-table-column label="璧锋鏃ユ湡" prop="startDate" sortable width="300" align="center" /> - <el-table-column label="涓昏瀛︿範缁忓巻銆佸伐浣滃崟浣嶅強浠昏亴鎯呭喌" prop="content" sortable width="350" align="center" /> - <el-table-column label="璇佹槑浜�" prop="witness" sortable width="300" align="center" /> - <el-table-column label="鍒犻櫎" align="center" class-name="small-padding fixed-width" sortable width="100"> - - </el-table-column> - </el-table> - </div> - - <div style="padding-top:30px"> - <el-container> - <div style="width:100%"><h2 style="font-size:15px" >瀹跺涵鎴愬憳鍙婁富瑕佺ぞ浼氬叧绯绘儏鍐�</h2></div> - <el-button type="primary" icon="el-icon-edit" round></el-button> - <el-button type="primary" icon="el-icon-delete" round></el-button> - </el-container> - - <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> - <el-table-column type="selection" width="16" align="center" /> - <el-table-column label="涓庢湰浜哄叧绯�" sortable width="270" align="center" /> - <el-table-column label="濮撳悕" sortable width="270" align="center" /> - <el-table-column label="鍗曚綅鍙婅亴鍔�" sortable width="270" align="center" /> - <el-table-column label="鏀挎不闈㈣矊" sortable width="270" align="center"> - </el-table-column> - </el-table> - </div> - - <el-container> - <div style="width:100%"><h2 style="font-size:15px" >绉诲眳鍥斤紙澧冿級鎯呭喌</h2></div> - - </el-container> - - <div style="padding-top:30px"> - <el-container> - <div style="width:100%"><h2 style="font-size:15px" >鎸佹湁鍑哄叆澧冭瘉浠舵儏鍐�</h2></div> - <el-button type="primary" icon="el-icon-edit" round></el-button> - <el-button type="primary" icon="el-icon-delete" round></el-button> - </el-container> - <!-- :data =""鍐呯殑涓滆タ涓嶇煡閬撹涓嶈鏀�--> - <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> - <el-table-column type="selection" width="16" align="center" /> - <el-table-column label="璇佷欢鍚嶇О" sortable width="270" align="center" /> - <el-table-column label="鎸佹湁鎯呭喌" sortable width="270" align="center" /> - <el-table-column label="璇佷欢鍙风爜" sortable width="270" align="center" /> - <el-table-column label="鏈夋晥鏈�" sortable width="270" align="center"> - </el-table-column> - </el-table> - </div> - <div style="padding-top:30px"> - <el-container> - <div style="width:100%"><h2 style="font-size:15px" >鍑哄浗锛堝锛夋儏鍐�</h2></div> - <el-button type="primary" icon="el-icon-edit" round></el-button> - <el-button type="primary" icon="el-icon-delete" round></el-button> - </el-container> - <el-table v-loading="loading" :data="experiencelList" @selection-change="handleSelectionChange"> - <el-table-column type="selection" width="16" align="center" /> - <el-table-column label="璧锋鏃ユ湡" prop="startDate" sortable width="300" align="center" /> - <el-table-column label="鎵�鍒板浗瀹舵垨鑰呭湴鍖�" prop="content" sortable width="350" align="center" /> - <el-table-column label="浜嬬敱锛堟梾娓搞�佽蛋璁裤�佹帰浜层�佺户鎵胯储浜с�佸叾浠栵級" prop="witness" sortable width="300" align="center" /> - <el-table-column label="鍒犻櫎" align="center" class-name="small-padding fixed-width" sortable width="100"> - </el-table-column> - </el-table> - - </div> - <pagination - v-show="total>0" - :total="total" - :page.sync="queryParams.pageNum" - :limit.sync="queryParams.pageSize" - @pagination="getList" - /> - </div> - - </template> - - <script> - import {getIndividualInfo, getIndividualRelation, delIndividual, updateIndividual, addIndividual,listExperience,updateExperience, - addExperience,delExperience} from "@/api/self/index"; - - export default { - name: 'edit', - components: {}, - props: [], - - data() { - return { - input: '', - filelist: [], - - // 閬僵灞� - disabled: false, - - loading: true, - // formData:[], - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - // 鎬绘潯鏁� - total: 0, - // 涓汉缁忓巻鏁版嵁 - experiencelList: [], - // 寮瑰嚭灞傛爣棰� - title: "", - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - // 鏄惁鏄剧ず寮瑰嚭灞傦紙鏁版嵁鏉冮檺锛� - openDataScope: false, - menuExpand: false, - menuNodeAll: false, - deptExpand: true, - deptNodeAll: false, - // 鏃ユ湡鑼冨洿 - dateRange: [], - // 鏁版嵁鑼冨洿閫夐」 - fot:[".jpg",".jif"], - fileList:[ - ], - fileListOther:[ - - ], - dsb:true, - btn:false, - - formData: { - userId:undefined, - nickName: undefined, - oldName: undefined, - sex: undefined, - nationality: undefined, - nation: undefined, - maritalStatus: undefined, - idNum: undefined, - politicalOutlook: undefined, - phoneNumber: undefined, - locationAddress: undefined, - alwaysPolice: undefined, - alwaysAddress: undefined, - unit:undefined, - position: undefined, - locationPolice: undefined, - outStatus:undefined, - url: undefined, - }, - rules: { - nickName: [{ - required: true, - message: '璇疯緭鍏ュ鍚�', - trigger: 'blur' - }], - sex: [{ - required: true, - message: '璇疯緭鍏ユ�у埆', - trigger: 'blur' - }], - nationality: [{ - required: true, - message: '璇疯緭鍏ュ浗绫�', - trigger: 'blur' - }], - oldName: [{ - required: true, - message: '璇疯緭鍏ユ浘鐢ㄥ悕', - trigger: 'blur' - }], - nation: [{ - required: true, - message: '璇疯緭鍏ユ皯鏃�', - trigger: 'blur' - }], - idNum: [{ - // required: true, - message: '璇疯緭鍏ヨ韩浠借瘉鍙�', - trigger: 'blur' - }], - maritalStatus: [{ - // required: true, - message: '璇疯緭鍏ュ濮荤姸鍐�', - trigger: 'blur' - }], - phoneNumber: [{ - // required: true, - message: '璇疯緭鍏ヨ仈绯绘柟寮�', - trigger: 'blur' - }], - locationAddress: [{ - // required: true, - message: '璇疯緭鍏ユ埛绫嶅湴鍧�', - trigger: 'blur' - }], - locationPolice: [{ - // required: true, - message: '璇疯緭鍏ユ埛绫嶅湴鍏畨鏈哄叧', - trigger: 'blur' - }], - alwaysAddress: [{ - // required: true, - message: '璇疯緭鍏ュ父浣忓湴鍧�', - trigger: 'blur' - }], - alwaysPolice: [{ - // required: true, - message: '璇疯緭鍏ュ父浣忓湴鍏畨鏈哄叧', - trigger: 'blur' - }], - unit: [{ - // required: true, - trigger: 'blur' - }], - position: [{ - // required: true, - message: '璇疯緭鍏ュ崟浣嶅強鑱屽姟鑱岀О', - trigger: 'blur' - }], - }, - - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 5, - startDate:undefined, - content:undefined, - witness:undefined, - createTime:undefined - }, - } - }, - computed: {}, - watch: {}, - created() { - this.getList(); - // this.getCateInfor() - }, - mounted() {}, - methods: { - submitForm() { - this.$refs['elForm'].validate(valid => { - if (!valid) return - // TODO 鎻愪氦琛ㄥ崟 - }) - }, - resetForm() { - this.$refs['elForm'].resetFields() - }, - fillFormData(){ - let formData = new FormData(); - let photo = this.$refs['ref1'].uploadFiles[0]; - if(photo===undefined){ - this.$message.error("璇烽�夋嫨鐓х墖"); - return false; - } - if(photo!==undefined){ - formData.append('鐓х墖', photo.raw);//鏍规嵁鍚庣闇�瑕佺殑鍙傛暟杩涜鐩稿簲鏇存敼锛屽ぇ澶氭槸鏂囦欢鏍煎紡 - } - return formData; - }, - dialogConfirm() { - let formData=this.fillFormData(); - if(this.dialogMode ==='edit_pic'){//dialogMode鐢ㄤ簬鍒ゆ柇褰撳墠鏃舵坊鍔犺繕鏄紪杈� - this.api.update(formData).then(res => {//璋冪敤淇敼鎺ュ彛 - if (res.data.code == "OK") { - this.$message({ - type: "success", - message: "淇敼鎴愬姛!", - duration:5000 - }); - this.fileList=[]; - } else { - this.$message.error(res.data.message); - } - },()=>{ - this.$message.error("淇敼澶辫触"); - }).finally(()=>{ - }); - }else{ - this.api.insert(formData).then(res => {//娣诲姞鎺ュ彛 - if (res.data.code == "OK") { - this.$message({ - type: "success", - message: "鏂板缓鎴愬姛!", - duration:5000 - }); - this.fileList=[]; - } else { - this.$message.error(res.data.message); - } - },()=>{ - this.$message.error("鏂板缓澶辫触"); - }).finally(()=>{ - }); - } - }, - //鐐瑰嚮缂栬緫鏃跺浘鐗囧洖鏄� - edit_pic(info){//info=>鍚庡彴鎺ュ彛杩斿洖鐨勬暟鎹� - let url=this.baseUrl+info.photo//url鐨勫湴鍧�鏍规嵁椤圭洰瀹為檯闇�瑕侊紝info.photo=>鍥剧墖璺緞,this.baseUrl=>涓婁紶鐨勭綉缁滃湴鍧� - this.fileList=[]; - this.fileList.push({ - 'url': url - }) - this.dialogMode='edit_pic';//璁剧疆涓虹紪杈� - }, - onCreateNew(){ - this.fileList=[]; - this.dialogMode='create';//璁剧疆涓烘坊鍔� - }, - /** 涓汉淇℃伅鍒楄〃 */ - getList() { - this.loading = true; - // console.log(this.queryParams) - // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { - listExperience(this.queryParams).then(response => { - // alert(123) - // console.log(response.data) - this.experiencelList = response.data.data; - - this.total = response.data.total; - this.loading = false; - } - - ); - }, - - - } - } - </script> - - <style scoped> - - </style> - \ No newline at end of file diff --git a/ruoyi-ui/src/api/marry/index.js b/ruoyi-ui/src/api/marry/index.js new file mode 100644 index 0000000..153f8fc --- /dev/null +++ b/ruoyi-ui/src/api/marry/index.js @@ -0,0 +1,71 @@ +import request from '@/utils/request' + +// 鏌ヨ鏁版嵁 +export function listMarry(query) { + return request({ + url: '/zMarry/list', + method: 'get', + params: query + }) +} + +//鏂板淇℃伅 +export function addMarry(data) { + return request({ + url: '/zMarry', + method: 'post' + }) + } + +// 鍒犻櫎璧勪骇淇℃伅 +export function delMarry(id) { + return request({ + url: '/zMarry/' + id, + method: 'delete' + }) +} +//淇敼淇℃伅 +export function updateMarry(data) { + return request({ + url: '/zMarry', + method: 'put', + data: data + }) +} +//涓婁紶鏂囦欢 +export function uploadPic(data) { + return request({ + url: '/common/upload', + method: 'post', + data: data + }) +} +//涓嬭浇鏂囦欢 +export function download(data) { + return request({ + url: '/common/downLoadFile', + method: 'get', + params: data, + responseType: 'blob' + }) +} + +//鎷垮埌绫诲埆 +export function getCategory() +{ + return request({ + url: '/zDict/byId', + method: 'get', + params: {'id':22} + }) +} + + +//涓婁紶鏂囦欢 +export function enload(data) { + return request({ + url: '/family/property/importData', + method: 'post', + data: data + }) +} diff --git a/ruoyi-ui/src/api/marry/index.vue b/ruoyi-ui/src/api/marry/index.vue deleted file mode 100644 index 46b997a..0000000 --- a/ruoyi-ui/src/api/marry/index.vue +++ /dev/null @@ -1,830 +0,0 @@ -<template> - <div class="app-container"> - <!-- 鍥炲埌椤堕儴--> - <el-backtop :bottom="150" :right="30"> - <el-button type="primary" circle - class="el-icon-top" - ></el-button> - </el-backtop> - <h1 style="font-size:21px;padding-top:30px">濠氬Щ鐘跺喌鐧昏琛�</h1> - <el-divider /> - <!-- 鍩烘湰淇℃伅--> - <h2 style="font-size:16px">鍩烘湰鎯呭喌</h2> - <el-container> - <div style="padding-left:0px" > - <el-container > - <el-col > - <el-form ref="elForm" :model="marryList" :rules="rules" size="medium" label-position="left" - v-loading="loading" :data="marryList" @selection-change="handleSelectionChange" > - <el-row :span="16"> - <el-form-item label="濮撳悕" prop="name" label-width="40px"> - <el-input v-model="marryList.name" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鍑虹敓鏃ユ湡" prop="birthday" label-width="70px"> - <el-input v-model="marryList.birthday" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="韬唤璇佸彿鐮�" prop="id" label-width="85px"> - <el-input v-model="marryList.id" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="濠氬Щ鐘跺喌" prop="marryStatus" label-width="70px"> - <el-input v-model="marryList.marryStatus" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb" > - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鎴风睄鍦板潃" prop="address" label-width="70px"> - <el-input v-model="marryList.address" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - - - </el-form> - </el-col> - </el-container> - </div> - <div style="padding-left:200px"> - <el-container> - <el-col v-loading="loading" :data="marryList" @selection-change="handleSelectionChange"> - <el-form ref="elForm" :model="marryList" :rules="rules" size="medium" label-position="left"> - <el-row :span="16"> - <el-form-item label="鎬у埆" prop="sex" label-width="40px"> - <el-input v-model="marryList.sex === 1 ? '鐢�':'濂�' " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="姘戞棌" prop="nation" label-width="40px"> - <el-input v-model="marryList.nation " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鑱旂郴鐢佃瘽" prop="phone" label-width="70px"> - <el-input v-model="marryList.phone" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="缁撳鏃堕棿" prop="marryTime" label-width="70px"> - <el-input v-model="marryList.marryTime" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - </el-form> - </el-col> - </el-container> - </div> - - - - <div style="padding-left:400px;padding-top:30px" > - <el-container > - - - <el-row > - <el-button - type="primary" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:role:edit']" - >缂栬緫</el-button> - - <br> - <el-button - type="primary" - @click="handleExport" - v-hasPermi="['family:note:export']" - >瀵煎嚭</el-button> - </el-row> - - </el-container> - </div> - <!-- </el-dialog> self:user:export--> - </el-container> - <h2 style="font-size:16px " >閰嶅伓鎯呭喌</h2> - <el-container> - <div style="padding-top:15px" > - <el-container > - <el-col > - <el-form ref="elForm" :model="marryList" :rules="rules" size="medium" label-position="left" - v-loading="loading" :data="marryList" @selection-change="handleSelectionChange" > - <el-row :span="16"> - <el-form-item label="濮撳悕" prop="spouseName" label-width="40px"> - <el-input v-model="marryList.spouseName" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鍑虹敓鏃ユ湡" prop="spouseBirthday" label-width="70px"> - <el-input v-model="marryList.spouseBirthday" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="韬唤璇佸彿鐮�" prop="spouseId" label-width="85px"> - <el-input v-model="marryList.spouseId" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="濠氬Щ鐘跺喌" prop="spouseMarryStatus" label-width="70px"> - <el-input v-model="marryList.spouseMarryStatus" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鎴风睄鍦板潃" prop="spouseAddress" label-width="70px"> - <el-input v-model="marryList.spouseAddress" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - - - </el-form> - </el-col> - </el-container> - </div> - <div style="padding-left:200px;padding-top:15px"> - <el-container> - <el-col v-loading="loading" :data="marryList" @selection-change="handleSelectionChange"> - <el-form ref="elForm" :model="marryList" :rules="rules" size="medium" label-position="left"> - <el-row :span="16"> - <el-form-item label="鎬у埆" prop="spouseSex" label-width="40px"> - <el-input v-model="marryList.spouseSex === 1 ? '鐢�':'濂�' " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="姘戞棌" prop="spouseNation" label-width="40px"> - <el-input v-model="marryList.spouseNation " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鑱旂郴鐢佃瘽" prop="spousePhone" label-width="70px"> - <el-input v-model="marryList.spousePhone" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="缁撳鏃堕棿" prop="marryTime" label-width="70px"> - <el-input v-model="marryList.marryTime" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - </el-form> - </el-col> - </el-container> - </div> - - - - <div style="padding-left:30px;padding-top:30px" > - <el-container > - <!-- <template slot-scope="scope" v-if="scope.row.roleId !== 1">--> - <!-- <el-button--> - <!-- size="mini"--> - <!-- type="text"--> - <!-- icon="el-icon-edit"--> - <!-- @click="handleUpdate(scope.row)"--> - <!-- v-hasPermi="['system:role:edit']"--> - <!-- >淇敼</el-button>--> - - <!-- </template>--> - - - </el-container> - </div> - <!-- </el-dialog> self:user:export--> - </el-container> - - <!-- <h2 style="font-size:16px " >鍓嶄换鎯呭喌</h2> - <el-container> - <div style="padding-top:15px" > - <el-container > - <el-col > - <el-form ref="elForm" :model="marryList.oldSpouseList" :rules="rules" size="medium" label-position="left" - v-loading="loading" :data="marryList.oldSpouseList" @selection-change="handleSelectionChange" > - <el-row :span="16"> - <el-form-item label="濮撳悕" prop="name" label-width="40px"> - <el-input v-model="marryList.oldSpouseList.name" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鍑虹敓鏃ユ湡" prop="spouseBirthday" label-width="70px"> - <el-input v-model="marryList.spouseBirthday" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="韬唤璇佸彿鐮�" prop="spouseId" label-width="85px"> - <el-input v-model="marryList.spouseId" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="濠氬Щ鐘跺喌" prop="spouseMarryStatus" label-width="70px"> - <el-input v-model="marryList.spouseMarryStatus" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鎴风睄鍦板潃" prop="spouseAddress" label-width="70px"> - <el-input v-model="marryList.spouseAddress" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - - - </el-form> - </el-col> - </el-container> - </div> - <div style="padding-left:200px;padding-top:15px"> - <el-container> - <el-col v-loading="loading" :data="marryList" @selection-change="handleSelectionChange"> - <el-form ref="elForm" :model="marryList" :rules="rules" size="medium" label-position="left"> - <el-row :span="16"> - <el-form-item label="鎬у埆" prop="spouseSex" label-width="40px"> - <el-input v-model="marryList.spouseSex === 1 ? '鐢�':'濂�' " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="姘戞棌" prop="spouseNation" label-width="40px"> - <el-input v-model="marryList.spouseNation " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="鑱旂郴鐢佃瘽" prop="spousePhone" label-width="70px"> - <el-input v-model="marryList.spousePhone" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="缁撳鏃堕棿" prop="marryTime" label-width="70px"> - <el-input v-model="marryList.marryTime" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - </el-form> - </el-col> - </el-container> - </div> - </el-container> --> - - <h2 style="font-size:16px " >鐢熻偛鎯呭喌</h2> - - - <el-container> - <div style="padding-left:0px" > - <el-container > - <el-col > - <el-form ref="elForm" :model="marryList" :rules="rules" size="medium" label-position="left" - v-loading="loading" :data="marryList" @selection-change="handleSelectionChange" > - <el-row :span="16"> - <el-form-item label="鐢熻偛鎯呭喌" prop="bearStatus" label-width="80px"> - <el-input v-model="marryList.bearStatus" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="棰嗗彇銆婅鍒掔敓鑲叉湇鍔℃墜鍐屻��" prop="handbookStatus" label-width="180px"> - <el-input v-model="marryList.handbookStatus ===1 ? '鏄�':'鍚�' " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="棰嗗彇銆婄嫭鐢熷瓙濂宠瘉銆�" prop="oneBorn" label-width="150px"> - <el-input v-model="marryList.oneBorn ===1 ? '鏄�':'鍚�' " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - - - </el-form> - </el-col> - </el-container> - </div> - <div style="padding-left:200px; padding-top: 58px; "> - <el-container> - <el-col v-loading="loading" :data="marryList" @selection-change="handleSelectionChange"> - <el-form ref="elForm" :model="marryList" :rules="rules" size="medium" label-position="left" > - - <el-row :span="16" > - <el-form-item label="棰嗚瘉鏃堕棿" prop="handbookTime" label-width="70px"> - <el-input v-model="marryList.handbookTime " placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - <el-row :span="16"> - <el-form-item label="棰嗚瘉鏃堕棿" prop="oneBornTime" label-width="70px"> - <el-input v-model="marryList.oneBornTime" placeholder="" clearable :style="{width: '100%'}" :disabled="dsb"> - </el-input> - </el-form-item> - </el-row> - - </el-form> - </el-col> - </el-container> - </div> - - - - <div style="padding-left:400px;padding-top:30px" > - </div> - <!-- </el-dialog> self:user:export--> - </el-container> - - </div> - </template> - - <script> - import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; - import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - - - - //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜� - import {listMarry} from "@/api/marry/index"; - import { delFamilyevent, uploadPic } from '../../api/bignote' - import { blobValidate } from '../../utils/ruoyi' - - export default { - name: "show", - dicts: ['sys_normal_disable'], - data() { - return { - - // 閬僵灞� - disabled: false, - - loading: true, - formData:[], - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - // 鎬绘潯鏁� - total: 0, - //澶村儚涓婁紶 - showBtnDealImg:true, - noneBtnImg:false, - limitCountImg:1,//涓婁紶鍥剧墖鐨勬渶澶ф暟閲� - //涓汉淇℃伅鏁版嵁 - marryList:[], - fit:['fill'], - - oldSpouseList:[], - //涓嬫媺瀹炵幇 - activeNames:['1'], - // 寮瑰嚭灞傛爣棰� - title: "", - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - // open:true, - // 鏄惁鏄剧ず寮瑰嚭灞傦紙鏁版嵁鏉冮檺锛� - openDataScope: false, - menuExpand: false, - menuNodeAll: false, - deptExpand: true, - deptNodeAll: false, - // 鏃ユ湡鑼冨洿 - dateRange: [], - // 鏁版嵁鑼冨洿閫夐」 - fot:[".jpg",".jif"], - fileList:[ - ], - fileListOther:[ - - ], - dsb:true, - btn:false, - - - formDat: { - //涓汉鍩烘湰淇℃伅 - name:undefined, - oldName:undefined, - sex:undefined, - nationality:undefined, - nation:undefined, - maritalStatus:undefined, - phoneNumber:undefined, - idNum:undefined, - locationAddress:undefined, - alwaysAddress:undefined, - locationPolice:undefined, - alwaysPolice:undefined, - outStatus:undefined, - idNo:undefined, - unit:undefined, - position:undefined, - politicalOutlook:undefined, - img:undefined, - fatherId:undefined, - momId:undefined, - birthday:undefined, - familyId:undefined, - - - //涓昏瀛︿範鍙婂伐浣滅粡鍘� - id:undefined, - userId:undefined, - startDate:undefined, - content:undefined, - witness:undefined, - remark: undefined, - //瀹跺涵鎴愬憳鍙婁富瑕佺ぞ浼氬叧绯绘儏鍐� - relation:undefined, - //鎸佹湁鍑哄叆澧冭瘉浠舵儏鍐� - cerName:undefined, - validityDate:undefined, - ownStatus:undefined, - //鍑哄浗锛堝锛夋儏鍐� - destination:undefined, - cause:undefined, - url: undefined, - }, - // 鑿滃崟鍒楄〃 - menuOptions: [], - // 閮ㄩ棬鍒楄〃 - deptOptions: [], - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 5, - startDate:undefined, - content:undefined, - witness:undefined, - }, - // 琛ㄥ崟鍙傛暟 - form: {}, - defaultProps: { - children: "children", - label: "label" - }, - // 琛ㄥ崟鏍¢獙 - rules: { - //鍩烘湰淇℃伅 - nickName: [{ - // required: true, - message: '璇疯緭鍏ュ鍚�', - trigger: 'blur' - }], - oldName: [{ - // required: true, - message: '璇疯緭鍏ユ浘鐢ㄥ悕', - trigger: 'blur' - }], - idNum: [{ - // required: true, - message: '璇疯緭鍏ヨ韩浠借瘉鍙�', - trigger: 'blur' - }], - nationality: [{ - // required: true, - message: '璇疯緭鍏ュ浗绫�', - trigger: 'blur' - }], - maritalStatus: [{ - // required: true, - message: '璇疯緭鍏ユ皯鏃�', - trigger: 'blur' - }], - locationAddress: [{ - // required: true, - message: '璇疯緭鍏ユ埛绫嶅湴鍧�', - trigger: 'blur' - }], - alwaysAddress: [{ - // required: true, - message: '璇疯緭鍏ュ父浣忓湴鍧�', - trigger: 'blur' - }], - unit: [{ - // required: true, - message: '璇疯緭鍏ュ崟浣�', - trigger: 'blur' - }], - position: [{ - // required: true, - message: '璇疯緭鍏ヨ亴鍔¤亴绉�', - trigger: 'blur' - }], - locationPolice: [{ - // required: true, - message: '璇疯緭鍏ユ埛绫嶅湴鍏畨鏈哄叧', - trigger: 'blur' - }], - alwaysPolice: [{ - // required: true, - message: '璇疯緭鍏ュ父浣忓湴鍏畨鏈哄叧', - trigger: 'blur' - }], - - //涓昏瀛︿範鍙婂伐浣滅粡鍘� - startDate: [{ - required: true, - message: '璇疯緭鍏ヨ捣濮嬫棩鏈�', - trigger: 'blur' - }], - content: [{ - required: true, - message: '璇疯緭鍏ヤ富瑕佸涔犵粡鍘嗐�佸伐浣滃崟浣嶅強浠昏亴鎯呭喌', - trigger: 'blur' - }], - witness: [{ - required: true, - message: '璇疯緭鍏ヨ瘉鏄庝汉', - trigger: 'blur' - }], - - }, - typeOptions: [], - }; - }, - created() { - this.getList() - }, - methods: { - - - // 鍙栨秷鎸夐挳 - cancelData() { - this.open = false; - this.reset(); - }, - //涓嬫媺 - handleChange(val) { - console.log(val); - }, - - // edit(row){ - // const id= row.id; - // this.reset(); - // this.title='缂栬緫涓汉淇℃伅'; - // this.$router.push('/self/self/edit/' + id); - // }, - //涓汉鑷紶 - handleClick(tab, event) { - // console.log(tab, event); - this.getAutobiographyInfor(); - if(tab.name == 0) { - - } - - //鏍规嵁涓嶅悓鏃舵鐨勪釜浜鸿嚜浼� - getAutobiographyTermList(this.queryParams).then(response => { - // alert(123) - // console.log(response.data) - this.AutobiographyTermList = response.data; - this.total = response.data.total; - this.loading = false; - }); - - getAutobiographyList(this.queryParams).then(response => { - // alert(123) - // console.log(response.data) - this.AutobiographyList = response.data; - this.total = response.data.total; - this.loading = false; - }); - }, - - - - - /** 鏌ヨ瑙掕壊鍒楄〃 */ - - - getList() { - this.loading = true; - - //涓汉淇℃伅 - listMarry(this.queryParams).then(response => { - // alert(123) - // console.log(response.data) - this.marryList = response.data; - this.total = response.data.total; - this.loading = false; - } - ); - listMarry(this.queryParams).then(response => { - // alert(123) - // console.log(response.data) - this.oldSpouseList = response.data; - this.total = response.data.total; - this.loading = false; - } - ); - - }, - - //鍥剧墖鐨勪笂浼犲強涓婁紶鎸夐挳闅愯棌 - - - // 鍙栨秷鎸夐挳 - cancel() { - this.open = false; - this.reset(); - }, - // 鍙栨秷鎸夐挳锛堟暟鎹潈闄愶級 - cancelDataScope() { - this.openDataScope = false; - this.reset(); - }, - // 琛ㄥ崟閲嶇疆 - reset() { - if (this.$refs.menu != undefined) { - this.$refs.menu.setCheckedKeys([]); - } - this.menuExpand = false, - this.menuNodeAll = false, - this.deptExpand = true, - this.deptNodeAll = false, - this.form = { - roleId: undefined, - roleName: undefined, - roleKey: undefined, - roleSort: 0, - status: "0", - menuIds: [], - deptIds: [], - menuCheckStrictly: true, - deptCheckStrictly: true, - remark: undefined - }; - this.resetForm("form"); - }, - /** 鎼滅储鎸夐挳鎿嶄綔 */ - handleQuery() { - this.queryParams.pageNum = 1; - this.getList(); - }, - /** 閲嶇疆鎸夐挳鎿嶄綔 */ - resetQuery() { - this.dateRange = []; - this.resetForm("queryForm"); - this.handleQuery(); - }, - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.ids = selection.map(item => item.id) - console.log(this.ids) - this.single = selection.length!=1 - this.multiple = !selection.length - }, - - /** 鏂板鎸夐挳鎿嶄綔 */ - handleAdd() { - this.reset(); - this.open = true; - this.title = "娣诲姞涓汉淇℃伅"; - }, - - - /** 鏌ョ湅璇︾粏淇℃伅 */ - handleCheck(row){ - const id = row.id; - this.$router.push("/self/self/edit/" + id); - }, - /** 淇敼鎸夐挳鎿嶄綔 */ - handleUpdate(row) { - const id = row.id; - let jd = true - - this.$router.push({ - path:"/self/marry/edit/" + id, - query:{ - detail:jd - } - }); - }, - - handleRemoveFile(file) { - alert(23) - }, - handleRemove(file) { - alert("鎿嶄綔鎴愬姛") - }, - handlePictureCardPreview(file) { - this.dialogImageUrl = file.url; - this.dialogVisible = true; - }, - //鐐瑰嚮涓嬭浇鍑芥暟 - handleDownload(url) { - var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")}; - - let lens = formData.path.split(".") - let suffix = lens[lens.length-1] - download(formData).then(async (response) => { - const isLogin = await blobValidate(response); - let nt = new Date().getTime() - let filename = 'selfevent_'+nt+'.'+suffix - const blob = new Blob([response]) - saveAs(blob, filename) - }) - }, - - /** 鏌ヨ鑷紶淇℃伅 */ - getAutobiographyInfor() - { - let _this = this - getAutobiography().then(response=>{ - - response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ - _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) - }) - }) - }, - /** 鎻愪氦鎸夐挳锛堟暟鎹潈闄愶級 */ - submitDataScope: function() { - - let ul = this.fileList.map(function (elem){ - return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") - }).join(",") - let uls = this.fileListOther.map(function (elem){ - return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") - }).join(",") - this.formDat.url = ul+","+uls - this.$refs["elForm"].validate(valid => { - if (valid) { - - addIndividual(this.formDat).then(response => { - this.$modal.msgSuccess("鏂板鎴愬姛"); - this.open = false; - this.getList(); - }); - } - }); - }, - requestUpload(params) - { - var file = params.file; - var formData = new FormData(); - formData.append('uploadFile', file); - let _this = this - - uploadPic(formData).then(response => { - let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) - - if(_this.fot.includes(pth) === true) - { - _this.fileList.push({name:response.data.fileName, "url":response.data.url}) - - } - - else{ - _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) - - } - }) - - }, - /** 鍒犻櫎涓汉缁忓巻鎸夐挳鎿嶄綔 */ - handleExperienceDelete(row) { - const Ids = row.id || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎搴忓彿涓�"' + Ids + '"鐨勬暟鎹」锛�').then(function() { - return delExperience(Ids); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - }).catch(() => {}); - }, - /** 鍒犻櫎鎸佹湁鍑哄叆澧冭瘉浠舵儏鍐垫寜閽搷浣� */ - handleCertificateDelete(row) { - const Ids = row.id || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎搴忓彿涓�"' + Ids + '"鐨勬暟鎹」锛�').then(function() { - return delCertificate(Ids); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); - }).catch(() => {}); - }, - /** 瀵煎嚭鎸夐挳鎿嶄綔 */ - handleExport() { - this.download('/self/user/export', { - ...this.queryParams - }, `self_${new Date().getTime()}.xlsx`) - } - } - }; - </script> - - \ No newline at end of file diff --git a/ruoyi-ui/src/api/secret/index.js b/ruoyi-ui/src/api/secret/index.js new file mode 100644 index 0000000..5a4677e --- /dev/null +++ b/ruoyi-ui/src/api/secret/index.js @@ -0,0 +1,67 @@ +import request from '@/utils/request' + +//Secret + +// 鏌ヨ鎵�鏈夋敹鏀彴璐� +export function listSecret(query) { + return request({ + url: '/zSecret/all', + method: 'get', + params: query + }) +} + + +// 鏍规嵁id鏌ヨ鎵�鏈夋敹鏀彴璐︿俊鎭� +export function getSecretInfo(id) { + return request({ + url: '/zSecret/' + id, + method: 'get', + + }) +} +//鏂板鏀舵敮鍙拌处 +export function addSecret(data) +{ + return request({ + url: '/zSecret', + method: 'post', + data: data + }) +} + +// 鍒犻櫎瀹跺涵璁惧 +export function delSecret(Ids) { + return request({ + url: '/zSecret/' + Ids, + method: 'delete' + }) +} + +//淇敼瀹跺涵璁惧 +export function updateSecret(data) { + return request({ + url: '/zSecret', + method: 'put', + data: data + }) +} +//涓婁紶鏂囦欢 +export function uploadPic(data) { + return request({ + url: '/common/upload', + method: 'post', + data: data + }) +} +//涓嬭浇鏂囦欢 +export function download(data) { + return request({ + url: '/common/downLoadFile', + method: 'get', + params: data, + responseType: 'blob' + }) +} + + -- Gitblit v1.9.1