iam-audit-dsc-userbase-list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. <template>
  2. <div :class="$style.wrapHeight">
  3. <div :class="$style.rowHeight">
  4. <audit-tree
  5. :checkable="false"
  6. :draggable="false"
  7. :is-search="true"
  8. :show-line="true"
  9. :top-node-id="topNodeId"
  10. :top-node-text="topNodeText"
  11. :selected-keys="[topNodeId]"
  12. :treeparams="{
  13. formId: 'IAM_ORG',
  14. idColumnId: 'id',
  15. nameColumnId: 'org_name',
  16. parentColumnId: 'parent_id',
  17. otherColumnId: ['org_id', 'creation_time'],
  18. configId: '11',
  19. }"
  20. :default-expanded-keys="[topNodeId]"
  21. :is-select-dep="false"
  22. manager-type="view"
  23. check-node-edit
  24. @treeSelect="treeSelect"
  25. ></audit-tree>
  26. <div :class="$style.rightcard">
  27. <a-card>
  28. <a-radio-group v-model="radioValue" :class="$style.radioGroup" @change="radioOnChange">
  29. <a-radio :value="'01'"> 在岗 </a-radio>
  30. <a-radio :value="'02'"> 调离 </a-radio>
  31. </a-radio-group>
  32. <div :class="[$style.btns]">
  33. <audit-advanced-export
  34. ref="userexport"
  35. :class-style="[$style.buttonSpacing]"
  36. :exclebxh="false"
  37. :expressions="SJRYKTableExpressions"
  38. :config-id="41"
  39. :v-if="false"
  40. />
  41. </div>
  42. <sd-oa-table
  43. ref="iamUserBaseTable"
  44. :editnode="editnode"
  45. form-id="iamUserBase"
  46. page-id="audit/auditsource/userbase/iamUserBase"
  47. :filter-expressions="getSJRYKTableExpressions"
  48. :columns="columns"
  49. :actions="actions"
  50. show-selection
  51. :search-fields="['userName']"
  52. :show-advance-query="true"
  53. @searchbtnClick="searchbtnClick"
  54. >
  55. <div slot="islink" slot-scope="text, record">
  56. <a :title="text" @click="rowClick(record)">{{ text }}</a>
  57. </div>
  58. <div slot="isProject" slot-scope="text, e">
  59. <a :title="text" @click="handleOk(e)">{{ text }}</a>
  60. </div>
  61. </sd-oa-table>
  62. <audit-advanced-query
  63. :expand="expand"
  64. :search-data="SJRYKFormData"
  65. :ref-name="searchform"
  66. :search-style="{ height: '245px', left: '35px', top: '60px' }"
  67. :search-fun="handleSearch"
  68. @searchedClick="searchedClick"
  69. >
  70. <template>
  71. <a-col :span="8">
  72. <a-form-model-item
  73. :label="'姓\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002名'"
  74. prop="userName"
  75. >
  76. <a-input v-model="SJRYKFormData.userName" allow-clear />
  77. </a-form-model-item>
  78. </a-col>
  79. <a-col :span="8">
  80. <a-form-model-item :label="'性\u2002\u2002\u2002\u2002别'" prop="userSex">
  81. <sd-select
  82. v-model="SJRYKFormData.userSex"
  83. :allow-clear="true"
  84. :options="userSex"
  85. />
  86. </a-form-model-item>
  87. </a-col>
  88. <a-col :span="8">
  89. <a-form-model-item :label="'所属机构'" prop="orgName">
  90. <a-input v-model="SJRYKFormData.orgName" allow-clear />
  91. </a-form-model-item>
  92. </a-col>
  93. <a-col :span="8">
  94. <a-form-model-item :label="'专/兼\u2002\u2002\u2002\u2002\u2002职'" prop="userJob">
  95. <sd-select
  96. v-model="SJRYKFormData.userJob"
  97. :allow-clear="true"
  98. :options="userJob"
  99. />
  100. </a-form-model-item>
  101. </a-col>
  102. <a-col :span="8">
  103. <a-form-model-item :label="'职\u2002\u2002\u2002\u2002级'" prop="userLevel">
  104. <sd-select
  105. v-model="SJRYKFormData.userLevel"
  106. :allow-clear="true"
  107. :options="userLevel"
  108. />
  109. </a-form-model-item>
  110. </a-col>
  111. <a-col :span="8">
  112. <a-form-model-item :label="'岗\u2002\u2002\u2002\u2002位'" prop="userPost">
  113. <sd-select
  114. v-model="SJRYKFormData.userPost"
  115. :allow-clear="true"
  116. :options="userPost"
  117. />
  118. </a-form-model-item>
  119. </a-col>
  120. <a-col :span="8">
  121. <a-form-model-item
  122. :label="'民\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002族'"
  123. prop="userNationality"
  124. >
  125. <sd-select
  126. v-model="SJRYKFormData.userNationality"
  127. :allow-clear="true"
  128. :options="userNationality"
  129. />
  130. </a-form-model-item>
  131. </a-col>
  132. <a-col :span="8">
  133. <a-form-model-item :label="'学\u2002\u2002\u2002\u2002历'" prop="education">
  134. <sd-select
  135. v-model="SJRYKFormData.education"
  136. :allow-clear="true"
  137. :options="education"
  138. />
  139. </a-form-model-item>
  140. </a-col>
  141. <a-col :span="8">
  142. <a-form-model-item :label="'职\u2002\u2002\u2002\u2002称'" prop="competent">
  143. <sd-select
  144. v-model="SJRYKFormData.competent"
  145. :allow-clear="true"
  146. :options="competent"
  147. />
  148. </a-form-model-item>
  149. </a-col>
  150. <a-col :span="8">
  151. <a-form-model-item :label="'专业技术资格'" prop="qualification">
  152. <sd-select
  153. v-model="SJRYKFormData.qualification"
  154. :allow-clear="true"
  155. :options="qualification"
  156. />
  157. </a-form-model-item>
  158. </a-col>
  159. <a-col :span="8">
  160. <a-form-model-item :label="'知识结构'" prop="knowledge">
  161. <sd-select
  162. v-model="SJRYKFormData.knowledge"
  163. :allow-clear="true"
  164. :options="knowledge"
  165. />
  166. </a-form-model-item>
  167. </a-col>
  168. </template>
  169. </audit-advanced-query>
  170. </a-card>
  171. </div>
  172. </div>
  173. <a-modal
  174. ref="projectList"
  175. title="项目信息"
  176. :visible="visible"
  177. :confirm-loading="confirmLoading"
  178. width="1000px"
  179. :footer="null"
  180. @cancel="handleCancel"
  181. >
  182. <sd-data-table-ex
  183. :data-url="projectDataUrl"
  184. form-id="iamAuditProject"
  185. page-id="audit/project/iamAuditProject"
  186. :columns="projectColumns"
  187. :filter-expressions="projectTableExpressions"
  188. >
  189. </sd-data-table-ex>
  190. </a-modal>
  191. </div>
  192. </template>
  193. <script>
  194. import auditAdvancedQuery from '@product/iam/components/audit-advanced-query.vue'
  195. import auditTree from '@product/iam/components/audit-tree.vue'
  196. import auditAdvancedQueryMixins from '@product/iam/components/audit-advanced-query-mixins'
  197. import auditAdvancedExport from '@product/iam/components/audit-advanced-export.vue'
  198. import crossWindowWatcher from '@/common/services/cross-window-watcher'
  199. import axios from '@/common/services/axios-instance'
  200. import TableActionTypes from '@/common/services/table-action-types'
  201. import { getUserInfo } from '@/common/store-mixin'
  202. import components from './_import-components/iam-audit-dsc-userbase-list-import'
  203. const columns = [
  204. {
  205. title: '序号',
  206. dataIndex: 'sortNumber',
  207. width: '80px',
  208. customRender: (text, record, index) => `${index + 1}`,
  209. },
  210. {
  211. dataIndex: 'id',
  212. sdHidden: true,
  213. },
  214. {
  215. dataIndex: 'parentId',
  216. sdHidden: true,
  217. },
  218. {
  219. dataIndex: 'userAccount',
  220. sdHidden: true,
  221. },
  222. {
  223. title: '姓名',
  224. dataIndex: 'userName',
  225. align: 'center',
  226. // sdClickable: true, // 列内容是否可点击
  227. scopedSlots: { customRender: 'islink' },
  228. width: '150px',
  229. },
  230. {
  231. title: '所属组织机构',
  232. dataIndex: 'orgName',
  233. sorter: true,
  234. },
  235. {
  236. title: '职级',
  237. dataIndex: 'userLevel',
  238. defaultSortOrder: 'descend',
  239. sorter: true,
  240. },
  241. {
  242. title: '岗位',
  243. dataIndex: 'userPost',
  244. },
  245. {
  246. title: '手机',
  247. dataIndex: 'userMobile',
  248. },
  249. {
  250. title: '专/兼职',
  251. dataIndex: 'userJob',
  252. width: '100px',
  253. },
  254. {
  255. title: '当前参与项目',
  256. dataIndex: 'joinProject',
  257. scopedSlots: { customRender: 'isProject' },
  258. width: '130px',
  259. },
  260. {
  261. title: '在岗状态',
  262. dataIndex: 'userMound',
  263. },
  264. ]
  265. const projectColumns = [
  266. {
  267. title: '序号',
  268. customRender: (text, record, index) => `${index + 1}`,
  269. width: '80px',
  270. },
  271. {
  272. title: '项目名称',
  273. dataIndex: 'projectTitle',
  274. width: '180px',
  275. },
  276. {
  277. title: '项目角色',
  278. dataIndex: 'projectRole',
  279. },
  280. {
  281. title: '项目状态',
  282. sorter: true,
  283. dataIndex: 'itemStatus',
  284. },
  285. {
  286. title: '项目参与日期',
  287. dataIndex: 'projectJoinDate',
  288. },
  289. ]
  290. export default {
  291. name: 'IamAuditDscUserbaseList',
  292. metaInfo: {
  293. title: '审计人员基本信息',
  294. },
  295. components: {
  296. ...components,
  297. auditAdvancedQuery,
  298. auditTree,
  299. auditAdvancedExport,
  300. },
  301. mixins: [auditAdvancedQueryMixins],
  302. data() {
  303. return {
  304. defaultTopNodeId: '0',
  305. defaultTopNodeText: '审计人员库',
  306. editnode: true,
  307. projectDataUrl: 'api/xcoa-mobile/v1/iamuserbase/project/list',
  308. columns,
  309. projectColumns,
  310. radioValue: '01',
  311. radioType: true,
  312. visible: false,
  313. confirmLoading: false,
  314. searchform: 'searchform',
  315. parentId: '0',
  316. userSex: [],
  317. userJob: [],
  318. userLevel: [],
  319. userPost: [],
  320. userNationality: [],
  321. education: [],
  322. competent: [],
  323. qualification: [],
  324. knowledge: [],
  325. userAccount: null,
  326. SJRYKFormData: {
  327. userName: '',
  328. userSex: '',
  329. orgName: '',
  330. userJob: '',
  331. userLevel: '',
  332. userPost: '',
  333. userNationality: '',
  334. // 学历
  335. education: '',
  336. competent: '',
  337. qualification: '',
  338. knowledge: '',
  339. },
  340. SJRYKTableExpressions: [
  341. {
  342. dataType: 'str',
  343. name: 'parentId',
  344. op: 'eq',
  345. stringValue: this.parentId,
  346. },
  347. {
  348. dataType: 'str',
  349. name: 'userMound',
  350. op: 'eq',
  351. stringValue: '01',
  352. },
  353. ],
  354. projectTableExpressions: [],
  355. // 树控件列表加载使用这个
  356. SJRYKSelectTableExpressions: [
  357. {
  358. dataType: 'str',
  359. name: 'parentId',
  360. op: 'eq',
  361. stringValue: this.parentId,
  362. },
  363. ],
  364. actions: [
  365. {
  366. label: '新建',
  367. id: 'new',
  368. permission: 'create',
  369. type: TableActionTypes.primary, // 新建按钮,不需要回调,自动处理
  370. callback: () => {
  371. var parentId = this.parentId
  372. const url = '/iam-audit-userbase-form?parentId=' + parentId // 新页面要打开的路由地址
  373. crossWindowWatcher.waitForChanged(url).then((refreshFlag) => {
  374. if (refreshFlag) {
  375. // 这里写或者调刷新的方法
  376. this.refresh()
  377. }
  378. })
  379. },
  380. },
  381. {
  382. label: '删除',
  383. id: 'delete',
  384. type: TableActionTypes.oa.delete, // 删除按钮,不需要回调,会自动处理
  385. },
  386. {
  387. label: '导出',
  388. permission: null, // 纯前端操作,不需要权限控制
  389. callback: this.export,
  390. },
  391. ],
  392. }
  393. },
  394. computed: {
  395. /***
  396. * 计算id以及名称
  397. * */
  398. topNodeId() {
  399. return this.defaultTopNodeId
  400. },
  401. topNodeText() {
  402. return this.defaultTopNodeText
  403. },
  404. getSJRYKTableExpressions() {
  405. const exp = this.SJRYKTableExpressions
  406. exp.forEach((item) => {
  407. if (item.name === 'parentId') {
  408. item.stringValue = this.parentId
  409. }
  410. })
  411. return exp
  412. },
  413. },
  414. created() {
  415. // 获取url传过来的id以及名称
  416. if (this.$route.query.depid) {
  417. this.defaultTopNodeId = this.$route.query.depid
  418. this.parentId = this.$route.query.depid
  419. }
  420. if (this.$route.query.deptext) {
  421. this.defaultTopNodeText = this.$route.query.deptext
  422. }
  423. // 查找当前用户角色,如果不是管理员,则不显示根节点新建按钮
  424. this.checkRootNodeEdit()
  425. },
  426. mounted() {
  427. setTimeout(() => {
  428. // 如果是展示的,那么可能去获取字典值去
  429. if (!this.strOrArr(this.SJRYKFormData.userSex)) {
  430. // 获取性别的字典值 'GENDER'
  431. if (!this.strOrArr(this.userSex)) {
  432. axios({
  433. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=GENDER',
  434. method: 'get',
  435. }).then((res) => {
  436. if (res.status === 200) {
  437. this.userSex = res.data
  438. }
  439. })
  440. }
  441. }
  442. if (!this.strOrArr(this.SJRYKFormData.userJob)) {
  443. // 获取专//兼职的字典值 'EXPERT-CUM'
  444. if (!this.strOrArr(this.userJob)) {
  445. axios({
  446. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=EXPERT-CUM',
  447. method: 'get',
  448. }).then((res) => {
  449. if (res.status === 200) {
  450. this.userJob = res.data
  451. }
  452. })
  453. }
  454. }
  455. if (!this.strOrArr(this.SJRYKFormData.userLevel)) {
  456. // 获取职级的字典值 'RANK'
  457. if (!this.strOrArr(this.userLevel)) {
  458. axios({
  459. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=RANK',
  460. method: 'get',
  461. }).then((res) => {
  462. if (res.status === 200) {
  463. this.userLevel = res.data
  464. }
  465. })
  466. }
  467. }
  468. if (!this.strOrArr(this.SJRYKFormData.userPost)) {
  469. // 获取岗位的字典值 'POST'
  470. if (!this.strOrArr(this.userPost)) {
  471. axios({
  472. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=POST',
  473. method: 'get',
  474. }).then((res) => {
  475. if (res.status === 200) {
  476. this.userPost = res.data
  477. }
  478. })
  479. }
  480. }
  481. if (!this.strOrArr(this.SJRYKFormData.userNationality)) {
  482. // 获取民族的字典值 'NATIONALITY'
  483. if (!this.strOrArr(this.userNationality)) {
  484. axios({
  485. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=NATIONALITY',
  486. method: 'get',
  487. }).then((res) => {
  488. if (res.status === 200) {
  489. this.userNationality = res.data
  490. }
  491. })
  492. }
  493. }
  494. if (!this.strOrArr(this.SJRYKFormData.education)) {
  495. // 获取学历的字典值 'EDUCATION'
  496. if (!this.strOrArr(this.education)) {
  497. axios({
  498. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=EDUCATION',
  499. method: 'get',
  500. }).then((res) => {
  501. if (res.status === 200) {
  502. this.education = res.data
  503. }
  504. })
  505. }
  506. }
  507. if (!this.strOrArr(this.SJRYKFormData.competent)) {
  508. // 获取职称的字典值 'JOB-TITLE'
  509. if (!this.strOrArr(this.competent)) {
  510. axios({
  511. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=JOB-TITLE',
  512. method: 'get',
  513. }).then((res) => {
  514. if (res.status === 200) {
  515. this.competent = res.data
  516. }
  517. })
  518. }
  519. }
  520. if (!this.strOrArr(this.SJRYKFormData.qualification)) {
  521. // 获取专业技术资格的字典值 'PRO-SKILL-QUA'
  522. if (!this.strOrArr(this.qualification)) {
  523. axios({
  524. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=PRO-SKILL-QUA',
  525. method: 'get',
  526. }).then((res) => {
  527. if (res.status === 200) {
  528. this.qualification = res.data
  529. }
  530. })
  531. }
  532. }
  533. if (!this.strOrArr(this.SJRYKFormData.knowledge)) {
  534. // 获取知识结构的字典值 'LORE-STRUCTURE'
  535. if (!this.strOrArr(this.knowledge)) {
  536. axios({
  537. url: 'api/xcoa-mobile/v1/iam-law/dictionary?key=LORE-STRUCTURE',
  538. method: 'get',
  539. }).then((res) => {
  540. if (res.status === 200) {
  541. this.knowledge = res.data
  542. }
  543. })
  544. }
  545. }
  546. }, 500)
  547. },
  548. methods: {
  549. export() {
  550. this.$refs.userexport.exportdata()
  551. },
  552. // 检查根节点属性
  553. checkRootNodeEdit() {
  554. const adminRole = getUserInfo().roles.find((item) => {
  555. return item.code === 'ADMINISTRATOR'
  556. })
  557. if (!adminRole) {
  558. this.editnode = false
  559. } else {
  560. this.editnode = true
  561. }
  562. },
  563. handleOk(e) {
  564. this.projectTableExpressions = []
  565. this.projectTableExpressions.push({
  566. dataType: 'str',
  567. name: 'baseUserAccount',
  568. op: 'eq',
  569. stringValue: e.userAccount,
  570. })
  571. this.confirmLoading = true
  572. this.visible = true
  573. this.confirmLoading = false
  574. },
  575. handleCancel(e) {
  576. this.visible = false
  577. },
  578. // 点击树
  579. treeSelect(selectedKeys, info) {
  580. this.parentId = info.selectedNodes[0].data.props.id // 父级id
  581. this.parentName = info.selectedNodes[0].data.props.text // 父级名称
  582. this.selectedKeys = selectedKeys
  583. this.SJRYKSelectTableExpressions.forEach((item) => {
  584. if (item.name === 'parentId') {
  585. item.stringValue = Number(info.selectedNodes[0].data.props.id)
  586. }
  587. })
  588. this.SJRYKSelectTableExpressions.push({
  589. dataType: 'str',
  590. name: 'userMound',
  591. op: 'eq',
  592. stringValue: this.radioValue,
  593. })
  594. this.SJRYKTableExpressions = [...this.SJRYKSelectTableExpressions]
  595. this.selectedKeys = selectedKeys
  596. this.parentId = Number(info.selectedNodes[0].data.props.id)
  597. // 如果点击的是根节点,则检查权限
  598. if (info.selectedNodes[0].data.props.props.isroot) {
  599. this.checkRootNodeEdit()
  600. } else {
  601. this.editnode = info.selectedNodes[0].data.props.edit
  602. }
  603. },
  604. strOrArr(strOrArr) {
  605. return strOrArr !== null && strOrArr.length > 0
  606. },
  607. handleSearch() {
  608. this.SJRYKTableExpressions = [
  609. {
  610. dataType: 'str',
  611. name: 'parentId',
  612. op: 'eq',
  613. stringValue: this.parentId,
  614. },
  615. ]
  616. // 人员名称
  617. if (this.SJRYKFormData.userName) {
  618. this.SJRYKTableExpressions.push({
  619. dataType: 'str',
  620. name: 'userName',
  621. op: 'like',
  622. stringValue: `%${this.SJRYKFormData.userName}%`,
  623. })
  624. }
  625. // 性别
  626. if (this.SJRYKFormData.userSex) {
  627. this.SJRYKTableExpressions.push({
  628. dataType: 'long',
  629. name: 'userSex',
  630. op: 'eq',
  631. longValue: this.SJRYKFormData.userSex[0].id,
  632. })
  633. }
  634. // 所属组织机构
  635. if (this.SJRYKFormData.orgName) {
  636. this.SJRYKTableExpressions.push({
  637. dataType: 'str',
  638. name: 'orgName',
  639. op: 'like',
  640. stringValue: `%${this.SJRYKFormData.orgName}%`,
  641. })
  642. }
  643. // 专/兼职
  644. if (this.SJRYKFormData.userJob) {
  645. this.SJRYKTableExpressions.push({
  646. dataType: 'long',
  647. name: 'userJob',
  648. op: 'eq',
  649. longValue: this.SJRYKFormData.userJob[0].id,
  650. })
  651. }
  652. // 职级
  653. if (this.SJRYKFormData.userLevel) {
  654. this.SJRYKTableExpressions.push({
  655. dataType: 'long',
  656. name: 'userLevel',
  657. op: 'eq',
  658. longValue: this.SJRYKFormData.userLevel[0].id,
  659. })
  660. }
  661. // 岗位
  662. if (this.SJRYKFormData.userPost) {
  663. this.SJRYKTableExpressions.push({
  664. dataType: 'long',
  665. name: 'userPost',
  666. op: 'eq',
  667. longValue: this.SJRYKFormData.userPost[0].id,
  668. })
  669. }
  670. // 民族
  671. if (this.SJRYKFormData.userNationality) {
  672. this.SJRYKTableExpressions.push({
  673. dataType: 'long',
  674. name: 'userNationality',
  675. op: 'eq',
  676. longValue: this.SJRYKFormData.userNationality[0].id,
  677. })
  678. }
  679. // 学历
  680. if (this.SJRYKFormData.education) {
  681. this.SJRYKTableExpressions.push({
  682. dataType: 'long',
  683. name: 'education',
  684. op: 'eq',
  685. longValue: this.SJRYKFormData.education[0].id,
  686. })
  687. }
  688. // 职称
  689. if (this.SJRYKFormData.competent) {
  690. this.SJRYKTableExpressions.push({
  691. dataType: 'long',
  692. name: 'competent',
  693. op: 'eq',
  694. longValue: this.SJRYKFormData.competent[0].id,
  695. })
  696. }
  697. // 专业技术资格
  698. if (this.SJRYKFormData.qualification) {
  699. this.SJRYKTableExpressions.push({
  700. dataType: 'str',
  701. name: 'qualification',
  702. op: 'like',
  703. stringValue: `%${this.SJRYKFormData.qualification}%`,
  704. })
  705. }
  706. // 知识结构
  707. if (this.SJRYKFormData.knowledge) {
  708. this.SJRYKTableExpressions.push({
  709. dataType: 'str',
  710. name: 'knowledge',
  711. op: 'like',
  712. stringValue: `%${this.SJRYKFormData.knowledge}%`,
  713. })
  714. }
  715. },
  716. rowClick(record) {
  717. const url = '/iam-audit-userbase-form?record=' + record.id // 新页面要打开的路由地址
  718. crossWindowWatcher.waitForChanged(url).then((refreshFlag) => {
  719. if (refreshFlag) {
  720. this.refresh()
  721. }
  722. })
  723. },
  724. refresh(toFirstPage) {
  725. return this.$refs.iamUserBaseTable.refresh(toFirstPage)
  726. },
  727. radioOnChange(e, info) {
  728. this.radioValue = e.target.value
  729. this.SJRYKTableExpressions.forEach((item) => {
  730. if (item.name === 'userMound') {
  731. item.stringValue = this.radioValue
  732. this.radioType = false
  733. }
  734. })
  735. if (this.radioType) {
  736. this.SJRYKTableExpressions.push({
  737. dataType: 'str',
  738. name: 'userMound',
  739. op: 'eq',
  740. stringValue: this.radioValue,
  741. })
  742. }
  743. this.SJRYKTableExpressions = [...this.SJRYKTableExpressions]
  744. },
  745. },
  746. }
  747. </script>
  748. <style module lang="scss">
  749. @use '@/common/design' as *;
  750. .btns {
  751. position: absolute;
  752. top: 24px;
  753. right: 99.5px;
  754. z-index: 100;
  755. }
  756. .button-spacing {
  757. margin-left: 5px;
  758. }
  759. .wrap-height {
  760. height: 100%;
  761. padding: 20px;
  762. background: #f0f2f5;
  763. .row-height {
  764. display: flex;
  765. flex: auto;
  766. height: 100%;
  767. .rightcard {
  768. flex: 1;
  769. width: calc(100% - 20%);
  770. height: 100%;
  771. }
  772. }
  773. }
  774. .radio-group {
  775. position: absolute;
  776. top: 30px;
  777. }
  778. </style>