empInfoFilling.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. <template>
  2. <fullscreen :fullscreen.sync="fullscreen" class="container">
  3. <div class="container-box">
  4. <toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
  5. <div class="search">
  6. <mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch>
  7. </div>
  8. <div class="tabbox">
  9. <el-table height="calc(100% - 40px)" class="com-table" ref="multipleTable" :data="tableData"
  10. tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
  11. <el-table-column prop="woName" label="名称">
  12. </el-table-column>
  13. <el-table-column prop="supplierCode" label="统计周期">
  14. <template slot-scope="scope">
  15. {{scope.row.startTime}}-{{scope.row.endTime}}
  16. </template>
  17. </el-table-column>
  18. <el-table-column prop="initiatorName" label="发起人">
  19. </el-table-column>
  20. <el-table-column prop="stsDesc" label="状态">
  21. </el-table-column>
  22. <el-table-column prop="fillTime" label="最后一次提交时间">
  23. </el-table-column>
  24. <el-table-column label="操作" width="160px" align="center">
  25. <template slot-scope="scope">
  26. <el-button size="mini" type="primary" @click="dialogCheck(1,scope.row)">查看</el-button>
  27. <el-button size="mini" v-if="scope.row.sts != 1" type="primary" @click="dialogCheck(2,scope.row)">编辑</el-button>
  28. </template>
  29. </el-table-column>
  30. </el-table>
  31. <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
  32. :total="total">
  33. </el-pagination>
  34. </div>
  35. </div>
  36. <el-dialog title="员工信息" :visible.sync="dialogStatus" width="50%" :destroy-on-close="true"
  37. :modal-append-to-body="false" :close-on-click-modal="false" :before-close="closedia" :fullscreen="true">
  38. <div>
  39. <el-table class="com-table" ref="multipleTable" :data="infodata" tooltip-effect="dark" size="small"
  40. border style="width: 100%">
  41. <el-table-column prop="memberRelation" label="成员关系">
  42. <template slot-scope="scope">
  43. <el-select clearable v-model="scope.row.memberRelation" :disabled="disableStatus">
  44. <el-option v-for="items in relationopt" :key="items.dataCode" :label="items.dataName"
  45. :value="items.dataCode">
  46. </el-option>
  47. </el-select>
  48. </template>
  49. </el-table-column>
  50. <el-table-column prop="memberName" label="成员姓名">
  51. <template slot-scope="scope">
  52. <el-input v-model="scope.row.memberName" :disabled="disableStatus"></el-input>
  53. </template>
  54. </el-table-column>
  55. <!-- <el-table-column prop="bornDate" label="成员出生日期" width="250" >
  56. <template slot-scope="scope">
  57. <el-date-picker v-model="scope.row.bornDate" type="date"
  58. disabled>
  59. </el-date-picker>
  60. </template>
  61. </el-table-column> -->
  62. <el-table-column prop="memberSex" label="成员性别">
  63. <template slot-scope="scope">
  64. <el-select clearable v-model="scope.row.memberSex" :disabled="disableStatus">
  65. <el-option v-for="items in sexopt" :key="items.dataCode" :label="items.dataName"
  66. :value="items.dataCode">
  67. </el-option>
  68. </el-select>
  69. </template>
  70. </el-table-column>
  71. <el-table-column prop="idCard" label="成员身份证号">
  72. <template slot-scope="scope">
  73. <el-input v-model="scope.row.idCard" :disabled="disableStatus" @change="sfzyz(scope.row)"></el-input>
  74. </template>
  75. </el-table-column>
  76. <!-- <el-table-column prop="memberEdu" label="成员学历" width="200">eduBack
  77. <template slot-scope="scope">
  78. <el-select clearable v-model="scope.row.memberEdu" disabled>
  79. <el-option v-for="items in eduBackopt" :key="items.dataCode" :label="items.dataName"
  80. :value="items.dataCode">
  81. </el-option>
  82. </el-select>
  83. </template>
  84. </el-table-column>
  85. <el-table-column prop="partyGroup" label="成员政治面貌" width="200">
  86. <template slot-scope="scope">
  87. <el-select clearable v-model="scope.row.partyGroup" disabled>
  88. <el-option v-for="items in partyGroupopt" :key="items.dataCode" :label="items.dataName"
  89. :value="items.dataCode">
  90. </el-option>
  91. </el-select>
  92. </template>
  93. </el-table-column>
  94. <el-table-column prop="memberNation" label="成员民族信息" width="200">
  95. <template slot-scope="scope">
  96. <el-select clearable v-model="scope.row.memberNation" disabled>
  97. <el-option v-for="items in nationopt" :key="items.dataCode" :label="items.dataName"
  98. :value="items.dataCode">
  99. </el-option>
  100. </el-select>
  101. </template>
  102. </el-table-column>
  103. <el-table-column prop="workUnit" label="成员工作单位" width="200">
  104. <template slot-scope="scope">
  105. <el-input v-model="scope.row.workUnit" disabled></el-input>
  106. </template>
  107. </el-table-column>
  108. <el-table-column prop="workDuty" label="成员职位职务" width="200">
  109. <template slot-scope="scope">
  110. <el-input v-model="scope.row.workDuty" disabled></el-input>
  111. </template>
  112. </el-table-column>
  113. <el-table-column prop="emerContact" label="是否为紧急联系人" width="200">
  114. <template slot-scope="scope">
  115. <el-input v-model="scope.row.emerContact" disabled></el-input>
  116. </template>
  117. </el-table-column>
  118. <el-table-column prop="memberTel" label="成员联系电话" width="200">
  119. <template slot-scope="scope">
  120. <el-input v-model="scope.row.memberTel" disabled></el-input>
  121. </template>
  122. </el-table-column>
  123. <el-table-column prop="interiorStaff" label="是否移动系统内工作" width="200">
  124. <template slot-scope="scope">
  125. <el-input v-model="scope.row.interiorStaff" disabled></el-input>
  126. </template>
  127. </el-table-column>
  128. <el-table-column prop="staffName" label="系统内员工职务" width="200">
  129. <template slot-scope="scope">
  130. <el-input v-model="scope.row.staffName" disabled></el-input>
  131. </template>
  132. </el-table-column>
  133. <el-table-column prop="isMove" label="是否移居海外" width="200">
  134. <template slot-scope="scope">
  135. <el-input v-model="scope.row.isMove" disabled></el-input>
  136. </template>
  137. </el-table-column>
  138. <el-table-column prop="immiType" label="移居类型" width="200">
  139. <template slot-scope="scope">
  140. <el-select clearable v-model="scope.row.immiType" disabled>
  141. <el-option v-for="items in immiTypeopt" :key="items.dataCode" :label="items.dataName"
  142. :value="items.dataCode">
  143. </el-option>
  144. </el-select>
  145. </template>
  146. </el-table-column>
  147. <el-table-column prop="memberAddress" label="成员联系地址" width="200">
  148. <template slot-scope="scope">
  149. <el-input v-model="scope.row.memberAddress" disabled></el-input>
  150. </template>
  151. </el-table-column> -->
  152. <el-table-column label="操作" align="center" v-if="!disableStatus">
  153. <template slot-scope="scope">
  154. <el-button size="mini" type="primary" @click="choline(1,scope)" v-if="!scope.row.id">添加
  155. </el-button>
  156. <el-button size="mini" type="primary" @click="choline(3,scope)" v-if="scope.row.id">修改
  157. </el-button>
  158. <el-button size="mini" type="danger" @click="choline(2,scope)" v-if="scope.row.id">删除
  159. </el-button>
  160. </template>
  161. </el-table-column>
  162. </el-table>
  163. <div slot="footer" class="dialog-footer myfooter">
  164. <el-button type="primary" @click="dialogCli(2)">确 定</el-button>
  165. <!-- <el-button @click="dialogCli(1)">取 消</el-button> -->
  166. </div>
  167. </div>
  168. </el-dialog>
  169. <myMessage :messTit='messTit' @closeMessage="closeMessage" :centerDialogVisible="centerDialogVisible"
  170. v-if="centerDialogVisible"></myMessage>
  171. </fullscreen>
  172. </template>
  173. <script>
  174. import mySearch from "../../../components/search.vue";
  175. import myMessage from "../../../components/myMessage.vue"
  176. import toolList from '../../../components/toolList'
  177. export default {
  178. components: {
  179. mySearch,
  180. myMessage,
  181. toolList
  182. },
  183. data() {
  184. const supplierName = (rule, value, callback) => {
  185. if (!this.infolist.supplierName) {
  186. callback(new Error('不能为空'))
  187. } else {
  188. callback()
  189. }
  190. }
  191. return {
  192. rules: {
  193. supplierName: [{
  194. required: true,
  195. trigger: 'blur',
  196. validator: supplierName
  197. }],
  198. },
  199. searchList: [{
  200. type: 'input',
  201. tit: '名称',
  202. value: '',
  203. width: '98%',
  204. }],
  205. tooltit: '员工信息',
  206. fullscreen: false,
  207. total: 0,
  208. pageSize: 1,
  209. tableData: [{}],
  210. dialogStatus: false,
  211. disableStatus: false,
  212. titname: '',
  213. infolist: {},
  214. userInfo: {},
  215. params: {},
  216. centerDialogVisible: false,
  217. messTit: '',
  218. delid: '',
  219. loading: false,
  220. loadinged: false,
  221. infodata: [{}],
  222. nationopt: [],
  223. relationopt: [],
  224. sexopt: [],
  225. eduBackopt: [],
  226. partyGroupopt: [],
  227. immiTypeopt: [],
  228. fillId: '',
  229. }
  230. },
  231. methods: {
  232. sfzyz(v){
  233. let card = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
  234. if(!card.test(v.idCard)){
  235. this.$message({
  236. message: '请填写正确的身份证号!',
  237. type: 'error'
  238. });
  239. v.idCard='';
  240. }
  241. },
  242. choline(v, n) {
  243. let _this = this;
  244. n.row.fillId = this.fillId;
  245. // console.log(n.row);
  246. let url = '';
  247. if (v == 1) {
  248. url = "/market/cMemberFillDetail/add"
  249. // _this.infodata.push({});
  250. } else if (v == 3) {
  251. url = "/market/cMemberFillDetail/update"
  252. } else if (v == 2) {
  253. url = "/market/cMemberFillDetail/del"
  254. }
  255. if(!n.row.memberRelation){
  256. this.$message({
  257. message: '请填写成员关系',
  258. type: 'error'
  259. });
  260. return
  261. }
  262. if(!n.row.memberName){
  263. this.$message({
  264. message: '请填写成员姓名',
  265. type: 'error'
  266. });
  267. return
  268. }
  269. // if(!n.row.bornDate){
  270. // this.$message({
  271. // message: '请填写成员出生日期',
  272. // type: 'error'
  273. // });
  274. // return
  275. // }
  276. if(!n.row.memberSex){
  277. this.$message({
  278. message: '请填写成员性别',
  279. type: 'error'
  280. });
  281. return
  282. }
  283. if(!n.row.idCard){
  284. this.$message({
  285. message: '请填写成员身份证号',
  286. type: 'error'
  287. });
  288. return
  289. }
  290. // if(!n.row.partyGroup){
  291. // this.$message({
  292. // message: '请填写成员政治面貌',
  293. // type: 'error'
  294. // });
  295. // return
  296. // }
  297. // if(!n.row.workUnit){
  298. // this.$message({
  299. // message: '请填写成员工作单位',
  300. // type: 'error'
  301. // });
  302. // return
  303. // }
  304. // if(!n.row.memberTel){
  305. // this.$message({
  306. // message: '请填写成员联系电话',
  307. // type: 'error'
  308. // });
  309. // return
  310. // }
  311. // if(!n.row.memberAddress){
  312. // this.$message({
  313. // message: '请填写成员联系地址',
  314. // type: 'error'
  315. // });
  316. // return
  317. // }
  318. // if(!n.row.interiorStaff){
  319. // this.$message({
  320. // message: '请填写是否移动系统内工作',
  321. // type: 'error'
  322. // });
  323. // return
  324. // }
  325. // if(!n.row.staffName){
  326. // this.$message({
  327. // message: '请填写系统内员工职务',
  328. // type: 'error'
  329. // });
  330. // return
  331. // }
  332. this.$http({
  333. url: url,
  334. method: "post",
  335. headers: {
  336. "Content-Type": "application/json",
  337. },
  338. data: n.row,
  339. }).then((res) => {
  340. if (res.data.result === 1) {
  341. _this.$message({
  342. message: res.data.desc,
  343. type: 'error'
  344. });
  345. } else {
  346. _this.$message({
  347. message: '成功',
  348. type: 'success'
  349. });
  350. _this.$http({
  351. url: "/market/cMemberFillDetail/queryPage",
  352. method: "post",
  353. headers: {
  354. "Content-Type": "application/json",
  355. "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  356. },
  357. data: {
  358. fillId: _this.fillId
  359. },
  360. }).then((res) => {
  361. _this.infodata = res.data.data;
  362. _this.infodata.push({});
  363. });
  364. }
  365. });
  366. },
  367. jumpfw() {
  368. this.$router.push({
  369. path: "/reportProgress",
  370. });
  371. this.setabList("填报进度跟踪", "/reportProgress");
  372. },
  373. jumpjd() {
  374. this.$router.push({
  375. path: "/speedOfProgress",
  376. });
  377. this.setabList("进度跟踪", "/speedOfProgress");
  378. },
  379. setabList(n, p) {
  380. let params = {
  381. children: "",
  382. name: n,
  383. rountPath: p,
  384. target: "_self",
  385. };
  386. for (let i = 0; i < this.$store.state.tabList.length; i++) {
  387. if (this.$store.state.tabList[i].name === params.name) {
  388. this.$store.state.tabList[i] = params;
  389. }
  390. }
  391. let set = new Set([...this.$store.state.tabList, params]);
  392. set.add(params);
  393. this.$store.commit("setDefaultActive", params.rountPath);
  394. this.$store.commit("setTabList", Array.from(set));
  395. },
  396. closedia() {
  397. this.infolist = {};
  398. this.dialogStatus = false;
  399. },
  400. //搜索数据
  401. searchInfo(v) {
  402. this.params = {};
  403. v[0] ? this.params.woName = v[0] : '';
  404. this.getList(this.params, this.pageSize);
  405. },
  406. //获取列表
  407. getList(v, n) {
  408. this.pageSize = n;
  409. let _this = this;
  410. this.loading = true;
  411. this.tableData = [];
  412. this.$http({
  413. url: "/market/cMemberFill/queryMkMemberFillPage",
  414. method: "post",
  415. headers: {
  416. "Content-Type": "application/json",
  417. "page": '{"pageNo":"' + n + '","pageSize":"10"}'
  418. },
  419. data: v,
  420. }).then((res) => {
  421. this.tableData = res.data.data;
  422. this.total = res.data.totalRecord;
  423. this.loading = false;
  424. });
  425. },
  426. // 分页
  427. currchange(v) {
  428. this.pageSize = v;
  429. this.getList(this.params, this.pageSize);
  430. },
  431. //申请
  432. dialogCheck(v, n) {
  433. this.dialogStatus = true;
  434. if (v === 1) {
  435. this.titname = '查看';
  436. this.disableStatus = true;
  437. } else if (v === 2) {
  438. this.titname = '修改';
  439. this.disableStatus = false;
  440. }
  441. this.fillId = n.id;
  442. this.$http({
  443. url: "/market/cMemberFillDetail/queryPage",
  444. method: "post",
  445. headers: {
  446. "Content-Type": "application/json",
  447. "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  448. },
  449. data: {
  450. fillId: n.id
  451. },
  452. }).then((res) => {
  453. this.infodata = res.data.data;
  454. this.infodata.push({fillId: this.fillId});
  455. });
  456. },
  457. //添加
  458. dialogCli(v) {
  459. if(this.disableStatus){
  460. this.infolist = {};
  461. this.dialogStatus = false;
  462. }else{
  463. let _this = this;
  464. let infodata1 = JSON.parse(JSON.stringify(this.infodata))
  465. let infodataLast = infodata1[infodata1.length-1]
  466. if(Object.keys(infodataLast).length >= 2){
  467. if(!infodataLast.memberRelation && !infodataLast.memberName && !infodataLast.memberSex && !infodataLast.idCard){
  468. this.loadinged = true;
  469. this.$http({
  470. url: "/market/cMemberFillDetail/saveFillDetailSummaryNew",
  471. method: "post",
  472. headers: {
  473. "Content-Type": "application/json",
  474. "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  475. },
  476. data: infodata1,
  477. }).then((res) => {
  478. // this.infolist = {};
  479. // this.dialogStatus = false;
  480. this.loadinged = false;
  481. if (res.data.result === 1) {
  482. _this.$message({
  483. message: res.data.desc,
  484. type: 'error'
  485. });
  486. } else {
  487. _this.$message({
  488. message: '成功',
  489. type: 'success'
  490. });
  491. _this.infolist = {};
  492. _this.dialogStatus = false;
  493. _this.getList({}, _this.pageSize);
  494. }
  495. });
  496. }else if(!infodataLast.memberRelation || !infodataLast.memberName || !infodataLast.memberSex || !infodataLast.idCard){
  497. if(!infodataLast.memberRelation){
  498. this.$message({
  499. message: '请填写成员关系',
  500. type: 'error'
  501. });
  502. return false
  503. }
  504. if(!infodataLast.memberName){
  505. this.$message({
  506. message: '请填写成员姓名',
  507. type: 'error'
  508. });
  509. return false
  510. }
  511. if(!infodataLast.memberSex){
  512. this.$message({
  513. message: '请填写成员性别',
  514. type: 'error'
  515. });
  516. return false
  517. }
  518. if(!infodataLast.idCard){
  519. this.$message({
  520. message: '请填写成员身份证号',
  521. type: 'error'
  522. });
  523. return false
  524. }
  525. this.loadinged = true;
  526. this.$http({
  527. url: "/market/cMemberFillDetail/saveFillDetailSummaryNew",
  528. method: "post",
  529. headers: {
  530. "Content-Type": "application/json",
  531. "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  532. },
  533. data: infodata1,
  534. }).then((res) => {
  535. // this.infolist = {};
  536. // this.dialogStatus = false;
  537. this.loadinged = false;
  538. if (res.data.result === 1) {
  539. _this.$message({
  540. message: res.data.desc,
  541. type: 'error'
  542. });
  543. } else {
  544. _this.$message({
  545. message: '成功',
  546. type: 'success'
  547. });
  548. _this.infolist = {};
  549. _this.dialogStatus = false;
  550. _this.getList({}, _this.pageSize);
  551. }
  552. });
  553. }
  554. }else if(Object.keys(infodataLast).length == 1){
  555. this.loadinged = true;
  556. this.$http({
  557. url: "/market/cMemberFillDetail/saveFillDetailSummaryNew",
  558. method: "post",
  559. headers: {
  560. "Content-Type": "application/json",
  561. "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  562. },
  563. data: infodata1,
  564. }).then((res) => {
  565. // this.infolist = {};
  566. // this.dialogStatus = false;
  567. this.loadinged = false;
  568. if (res.data.result === 1) {
  569. _this.$message({
  570. message: res.data.desc,
  571. type: 'error'
  572. });
  573. } else {
  574. _this.$message({
  575. message: '成功',
  576. type: 'success'
  577. });
  578. _this.infolist = {};
  579. _this.dialogStatus = false;
  580. _this.getList({}, _this.pageSize);
  581. }
  582. });
  583. }
  584. // let isInfodataNull = infodataLast.filter((item)=>{
  585. // console.log(item.length);
  586. // return item.length
  587. // })
  588. // console.log(isInfodataNull);
  589. // this.infodata.forEach((item,index)=>{
  590. // if(!infodataLast.memberRelation){
  591. // this.$message({
  592. // message: '请填写成员关系',
  593. // type: 'error'
  594. // });
  595. // return false
  596. // }
  597. // if(!infodataLast.memberName){
  598. // this.$message({
  599. // message: '请填写成员姓名',
  600. // type: 'error'
  601. // });
  602. // return false
  603. // }
  604. // if(!infodataLast.memberSex){
  605. // this.$message({
  606. // message: '请填写成员性别',
  607. // type: 'error'
  608. // });
  609. // return false
  610. // }
  611. // if(!infodataLast.idCard){
  612. // this.$message({
  613. // message: '请填写成员身份证号',
  614. // type: 'error'
  615. // });
  616. // return false
  617. // }
  618. // })
  619. // this.$http({
  620. // url: "/market/cMemberFillDetail/saveFillDetailSummaryNew",
  621. // method: "post",
  622. // headers: {
  623. // "Content-Type": "application/json",
  624. // "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  625. // },
  626. // data: infodata1,
  627. // }).then((res) => {
  628. // this.infolist = {};
  629. // this.dialogStatus = false;
  630. // });
  631. // console.log(infodata1)
  632. }
  633. },
  634. submitInfo(u) {
  635. let _this = this;
  636. this.$refs.infolist.validate(valid => {
  637. if (valid) {
  638. this.loadinged = true;
  639. this.$http({
  640. url: u,
  641. method: "post",
  642. headers: {
  643. "Content-Type": "application/json",
  644. },
  645. data: this.infolist,
  646. }).then((res) => {
  647. this.loadinged = false;
  648. if (res.data.result === 1) {
  649. _this.$message({
  650. message: res.data.desc,
  651. type: 'error'
  652. });
  653. } else {
  654. _this.$message({
  655. message: '成功',
  656. type: 'success'
  657. });
  658. _this.infolist = {};
  659. _this.dialogStatus = false;
  660. _this.getList({}, _this.pageSize);
  661. }
  662. });
  663. }
  664. })
  665. },
  666. closeMessage(v) {
  667. this.centerDialogVisible = false;
  668. let _this = this;
  669. if (v === 1) {
  670. _this.$http({
  671. url: "/market/cAdvPubSupplier/del",
  672. method: "post",
  673. headers: {
  674. "Content-Type": "application/json",
  675. },
  676. data: {
  677. id: this.delid
  678. },
  679. }).then((res) => {
  680. if (res.data.result === 1) {
  681. _this.$message({
  682. message: res.data.desc,
  683. type: 'error'
  684. });
  685. } else {
  686. _this.$message({
  687. message: '删除成功',
  688. type: 'success'
  689. });
  690. _this.getList(this.params, this.pageSize);
  691. }
  692. });
  693. }
  694. },
  695. //删除
  696. delLine(v) {
  697. this.centerDialogVisible = true;
  698. this.messTit = '即将删除此条数据, 是否删除?';
  699. this.delid = v.id;
  700. },
  701. //文件返回值
  702. uploadBack(v) {
  703. console.log(v)
  704. },
  705. //功能栏
  706. iconCli(v) {
  707. if (v === 1) {
  708. this.getList(this.params, this.pageSize);
  709. }
  710. if (v === 2) {
  711. this.fullscreen = !this.fullscreen
  712. }
  713. },
  714. getUser() {
  715. this.userInfo = JSON.parse(window.sessionStorage.userInfo);
  716. this.$http({
  717. url: "/sysmgr/cfgDataDicts/queryMap",
  718. method: "post",
  719. headers: {
  720. "Content-Type": "application/json",
  721. },
  722. data: {
  723. dictCodePks: 'nation,relation,sex,eduBack,partyGroup,immiType'
  724. },
  725. }).then((res) => {
  726. this.nationopt = res.data.body.nation;
  727. this.relationopt = res.data.body.relation;
  728. this.sexopt = res.data.body.sex;
  729. this.eduBackopt = res.data.body.eduBack;
  730. this.partyGroupopt = res.data.body.partyGroup;
  731. this.immiTypeopt = res.data.body.immiType;
  732. });
  733. }
  734. },
  735. mounted() {
  736. this.getList({}, 1);
  737. this.getUser();
  738. },
  739. created() {
  740. }
  741. }
  742. </script>
  743. <style scoped lang="scss">
  744. .onetab {
  745. margin-bottom: 20px;
  746. padding: 0 20px;
  747. }
  748. .titbox {
  749. div {
  750. float: right;
  751. i {
  752. font-size: 22px;
  753. margin-left: 20px;
  754. cursor: pointer;
  755. }
  756. }
  757. }
  758. .tabbox {
  759. margin-top: 15px;
  760. }
  761. .pageBox {
  762. text-align: right;
  763. margin-top: 10px;
  764. }
  765. .info-line {
  766. width: 100%;
  767. display: block;
  768. padding-left: 20px;
  769. div {
  770. width: 50%;
  771. display: inline-block;
  772. }
  773. span {
  774. width: 80px;
  775. display: inline-block;
  776. text-align: left;
  777. i {
  778. color: red;
  779. display: inline-block;
  780. padding-right: 5px;
  781. }
  782. }
  783. .el-select,
  784. .el-input {
  785. width: calc(100% - 100px);
  786. }
  787. }
  788. .online {
  789. width: 100%;
  790. .el-select {
  791. width: calc(100% - 100px);
  792. }
  793. span {
  794. vertical-align: top;
  795. }
  796. .el-textarea {
  797. width: calc(100% - 100px);
  798. }
  799. }
  800. </style>