index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. <template>
  2. <div class="container">
  3. <authheader :items="menuTips"></authheader>
  4. <a-card ref="account" class="general-card">
  5. <div class="table-page-search-wrapper">
  6. <div class="search-wrapper">
  7. <div>
  8. <a-input
  9. v-model="formModel.name"
  10. :style="{ width: '320px' }"
  11. :placeholder="$t('请输入')"
  12. />
  13. </div>
  14. <div>
  15. <a-button
  16. type="primary"
  17. @click="search"
  18. style="margin-right: 20px; margin-left: 10px"
  19. >
  20. <template #icon>
  21. <icon-search />
  22. </template>
  23. {{ $t('searchTable.form.search') }}
  24. </a-button>
  25. <a-button @click="reset">
  26. <template #icon>
  27. <icon-refresh />
  28. </template>
  29. {{ $t('searchTable.form.reset') }}
  30. </a-button>
  31. </div>
  32. </div>
  33. <div class="search-wrapper">
  34. <div>
  35. <a-space>
  36. <a-button type="primary" :align="'right'" @click="operation(0)"
  37. >+ 新建账户</a-button
  38. >
  39. </a-space></div
  40. >
  41. <div class="wrapper-icon">
  42. <a-tooltip :content="$t('searchTable.actions.refresh')">
  43. <div class="action-icon" @click="search">
  44. <icon-refresh size="18" />
  45. </div>
  46. </a-tooltip>
  47. <a-dropdown @select="handleSelectDensity">
  48. <a-tooltip :content="$t('searchTable.actions.density')">
  49. <div class="action-icon">
  50. <icon-line-height size="18" />
  51. </div>
  52. </a-tooltip>
  53. <template #content>
  54. <a-doption
  55. v-for="item in densityList"
  56. :key="item.value"
  57. :value="item.value"
  58. :class="{ active: item.value === size }"
  59. >
  60. <span>{{ item.name }}</span>
  61. </a-doption>
  62. </template>
  63. </a-dropdown>
  64. </div>
  65. </div>
  66. </div>
  67. <a-table
  68. row-key="id"
  69. :loading="loading"
  70. :pagination="pagination"
  71. :columns="columns"
  72. :data="renderData"
  73. :bordered="false"
  74. :size="size"
  75. @page-change="onPageChange"
  76. >
  77. <template #index="{ rowIndex }">
  78. {{ rowIndex + 1 + (pagination.current - 1) * pagination.pageSize }}
  79. </template>
  80. <template #status="{ record }">
  81. <a-switch
  82. checked-value="1"
  83. unchecked-value="0"
  84. @change="statusChange(record.status, record)"
  85. v-model="record.status"
  86. />
  87. </template>
  88. <template #operations="{ record }">
  89. <a-space>
  90. <a-button
  91. type="outline"
  92. status="success"
  93. @click="operation(1, record)"
  94. >重置密码</a-button
  95. >
  96. <a-button type="outline" @click="operation(2, record)"
  97. >编辑</a-button
  98. >
  99. <a-popconfirm
  100. content="请确认是否删除?"
  101. type="success"
  102. @ok="operation(3, record)"
  103. >
  104. <a-button type="outline" status="danger">删除</a-button>
  105. </a-popconfirm>
  106. <a-button
  107. type="dashed"
  108. status="warning"
  109. @click="operation(4, record)"
  110. >查看权限</a-button
  111. >
  112. <a-button status="success" @click="operation(5, record)"
  113. >部门配置</a-button
  114. >
  115. </a-space>
  116. </template>
  117. </a-table>
  118. </a-card>
  119. <a-modal
  120. v-model:visible="visible"
  121. :title="save"
  122. @cancel="handleCancel(1)"
  123. @ok="editHandleOk"
  124. width="48%"
  125. >
  126. <a-form ref="formRef" :model="editform" auto-label-width>
  127. <a-row :gutter="20">
  128. <a-col :span="10">
  129. <a-form-item
  130. field="loginName"
  131. label="用户名"
  132. :rules="[
  133. { required: true, message: '用户名必填' },
  134. { maxLength: 50, message: '长度不超过50' },
  135. ]"
  136. >
  137. <a-input v-model="editform.loginName" />
  138. </a-form-item>
  139. </a-col>
  140. <a-col :span="10">
  141. <a-form-item field="userName" label="姓名">
  142. <a-input v-model="editform.userName" />
  143. </a-form-item>
  144. </a-col>
  145. </a-row>
  146. <a-row :gutter="20">
  147. <a-col :span="10">
  148. <a-form-item field="phoneNumber" label="手机号">
  149. <a-input v-model="editform.phoneNumber" />
  150. </a-form-item>
  151. </a-col>
  152. <a-col :span="10">
  153. <a-form-item
  154. required
  155. field="email"
  156. label="邮箱"
  157. :rules="[
  158. { required: true, message: '邮箱必填' },
  159. { maxLength: 50, message: '长度不超过50' },
  160. ]"
  161. >
  162. <a-input v-model="editform.email" />
  163. </a-form-item>
  164. </a-col>
  165. </a-row>
  166. <a-row :gutter="20">
  167. <a-col :span="10">
  168. <a-form-item field="psw" label="密码">
  169. <a-input v-model="editform.psw" />
  170. </a-form-item>
  171. </a-col>
  172. <a-col :span="10">
  173. <a-form-item
  174. field="role"
  175. label="角色"
  176. >
  177. <a-select
  178. multiple
  179. v-model="editform.role"
  180. :options="roles"
  181. :field-names="fieldNames"
  182. @change="roleChange"
  183. >
  184. </a-select>
  185. </a-form-item>
  186. </a-col>
  187. </a-row>
  188. </a-form>
  189. </a-modal>
  190. <a-modal
  191. width="50%"
  192. v-model:visible="deptvisible"
  193. title="部门配置"
  194. @cancel="handleCancel(2)"
  195. @ok="editDeptHandleOk"
  196. >
  197. <div :style="{ display: 'flex' }">
  198. <a-card
  199. :style="{ 'width': '460px', 'height': '500px', 'overflow-y': 'auto' }"
  200. title="机构"
  201. hoverable
  202. >
  203. <a-tree
  204. class="tree-demo"
  205. v-model:checked-keys="checkedKeys"
  206. v-model:expanded-keys="expandKdys"
  207. :checkable="true"
  208. :data="treeData"
  209. :show-line="showLine"
  210. @check="onCheck"
  211. :fieldNames="{
  212. key: 'deptId',
  213. title: 'deptName',
  214. children: 'children',
  215. }"
  216. >
  217. </a-tree>
  218. </a-card>
  219. <div :style="{ 'display': 'flex', 'flex-direction': 'column' }">
  220. <a-card class="card-demo" title="用户所属部门" :style="{ 'width': '460px', 'height': '500px', 'overflow-y': 'auto' }">
  221. <a-space wrap>
  222. <a-tag
  223. v-for="(tag, index) of checkStrictly"
  224. :key="tag.deptId"
  225. >
  226. {{ tag.deptName }}
  227. </a-tag>
  228. </a-space>
  229. <a-divider />
  230. <a-space wrap>
  231. 部门角色:
  232. <a-tag
  233. v-for="(tag, index) of checkStrictlyDeptRole"
  234. :key="tag.roleId"
  235. >
  236. {{ tag.roleName }}
  237. </a-tag>
  238. </a-space>
  239. </a-card>
  240. </div>
  241. </div>
  242. </a-modal>
  243. <a-modal
  244. width="50%"
  245. v-model:visible="resourcevisible"
  246. v-if="resourcevisible"
  247. title="用户所有权限"
  248. okText="关闭"
  249. hide-Cancel="true"
  250. @ok="handleCancel(3)"
  251. >
  252. <div :style="{ 'display': 'flex', 'flex-direction': 'column' }">
  253. <a-card
  254. :style="{
  255. 'width': '100%',
  256. 'height': '40%',
  257. 'overflow-y': 'auto',
  258. 'margin': '1px',
  259. }"
  260. class="card-demo"
  261. title="用户所有权限"
  262. hoverable
  263. >
  264. <a-space wrap>
  265. 菜单功能:
  266. <a-tag v-for="(tag, index) of checkStrictlyMenu" :key="tag.menuId">
  267. {{ tag.menuName }}
  268. </a-tag>
  269. </a-space>
  270. <a-divider />
  271. <a-space wrap>
  272. 知识库:
  273. <a-tag
  274. v-for="(tag, index) of checkStrictlyKnowledge"
  275. :key="tag.knowledgeId"
  276. >
  277. {{ tag.knowledgeName }}
  278. </a-tag>
  279. </a-space>
  280. <a-divider />
  281. <a-space wrap>
  282. 智能体:
  283. <a-tag
  284. v-for="(tag, index) of checkStrictlyDialog"
  285. :key="tag.dialogId"
  286. >
  287. {{ tag.dialogName }}
  288. </a-tag>
  289. <a-tag
  290. v-for="(tag, index) of checkStrictlyAgent"
  291. :key="tag.agentId"
  292. >
  293. {{ tag.agentName }}
  294. </a-tag>
  295. </a-space>
  296. </a-card>
  297. </div>
  298. </a-modal>
  299. </div>
  300. </template>
  301. <script lang="ts" setup>
  302. import { computed, reactive, ref, h, onMounted } from 'vue';
  303. import { useI18n } from 'vue-i18n';
  304. import useLoading from '@/hooks/loading';
  305. import { Pagination } from '@/types/global';
  306. import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
  307. import {
  308. DialogList,
  309. KnowledgeList,
  310. OrganizationList,
  311. ResourceList,
  312. Role,
  313. RoleList,
  314. User,
  315. UserAdd,
  316. UserChangePwd,
  317. UserDelete,
  318. UserEdit,
  319. UserList,
  320. Userstatus,
  321. } from '@/api/authority';
  322. import { Modal } from '@arco-design/web-vue';
  323. import Authheader from '@/views/authority/components/authheader.vue';
  324. import { create } from 'lodash';
  325. import { queryCanvasList } from '@/api/Agent';
  326. const fieldNames = { value: 'roleId', label: 'roleName' };
  327. const roles = ref([]);
  328. let treeData = ref([]);
  329. let checkedKeys = ref([]);
  330. let expandKdys = ref([]);
  331. let checkStrictly = ref([]);
  332. let checkStrictlyMenu = ref([]);
  333. let checkStrictlyKnowledge = ref([]);
  334. let checkStrictlyDialog = ref([]);
  335. let checkStrictlyAgent = ref([]);
  336. let checkStrictlyDeptRole = ref([]);
  337. let formRef = ref();
  338. let menuTips = ref(['权限管理', '账号']);
  339. type SizeProps = 'mini' | 'small' | 'medium' | 'large';
  340. const account = ref(null);
  341. const generateFormModel = () => {
  342. return {
  343. name: '',
  344. };
  345. };
  346. let showLine = ref(true);
  347. const { loading, setLoading } = useLoading(true);
  348. const { t } = useI18n();
  349. let save = ref('新增');
  350. let renderData = ref<User[]>([]);
  351. let formModel = ref(generateFormModel());
  352. let editform = ref<User>({
  353. createTime: '',
  354. dept: undefined,
  355. deptName: '',
  356. email: '',
  357. nickName: '',
  358. phoneNumber: '',
  359. status: '',
  360. userId: '',
  361. loginName: '',
  362. userName: '',
  363. psw: '',
  364. role: [],
  365. });
  366. let size = ref<SizeProps>('medium');
  367. let visible = ref(false);
  368. let deptvisible = ref(false);
  369. let resourcevisible = ref(false);
  370. let selectUser = ref({});
  371. const loadRole = async () => {
  372. await RoleList(null).then((res) => {
  373. roles.value = res.rows;
  374. });
  375. };
  376. const roleChange = (val) => {
  377. editform.value.role = val;
  378. };
  379. const onCheck = (newCheckedKeys, event) => {
  380. let o = { deptId: event.node.deptId, deptName: event.node.deptName };
  381. if (event.checked) {
  382. event.node.roles.forEach(
  383. (val) => {
  384. checkStrictlyDeptRole.value.push(val);
  385. }
  386. );
  387. checkStrictly.value.push(o);
  388. } else {
  389. checkStrictly.value.forEach((val, idx, array) => {
  390. // val: 当前值
  391. if (val.deptId == event.node.deptId) {
  392. checkStrictly.value.splice(idx, 1);
  393. checkStrictlyDeptRole.value.forEach((val2, idx2, array2) => {
  394. if (val2.deptId == event.node.deptId) {
  395. checkStrictlyDeptRole.value.splice(idx2, 1);
  396. }
  397. });
  398. return true;
  399. }
  400. });
  401. }
  402. };
  403. const basePagination: Pagination = {
  404. current: 1,
  405. pageSize: 15,
  406. };
  407. const pagination = reactive({
  408. ...basePagination,
  409. });
  410. const densityList = computed(() => [
  411. {
  412. name: t('searchTable.size.mini'),
  413. value: 'mini',
  414. },
  415. {
  416. name: t('searchTable.size.small'),
  417. value: 'small',
  418. },
  419. {
  420. name: t('searchTable.size.medium'),
  421. value: 'medium',
  422. },
  423. {
  424. name: t('searchTable.size.large'),
  425. value: 'large',
  426. },
  427. ]);
  428. const columns = computed<TableColumnData[]>(() => [
  429. {
  430. title: t('序号'),
  431. dataIndex: 'index',
  432. slotName: 'index',
  433. },
  434. {
  435. title: t('用户名'),
  436. dataIndex: 'loginName',
  437. },
  438. {
  439. title: t('角色'),
  440. dataIndex: 'roleName',
  441. },
  442. {
  443. title: t('所属部门'),
  444. dataIndex: 'deptName',
  445. slotName: 'deptName',
  446. },
  447. {
  448. title: t('状态'),
  449. dataIndex: 'status',
  450. slotName: 'status',
  451. },
  452. {
  453. title: t('searchTable.columns.operations'),
  454. dataIndex: 'operations',
  455. slotName: 'operations',
  456. },
  457. ]);
  458. const statusChange = async (value, record) => {
  459. if (record?.dept) {
  460. await Userstatus(record.userId, value).then((res) => {});
  461. } else {
  462. record.status = '0';
  463. Modal.warning({
  464. title: '提示',
  465. content: '如想启用用户,需进行部门配置.',
  466. });
  467. }
  468. };
  469. const handleCancel = (type) => {
  470. if (type == 1) {
  471. visible.value = false;
  472. }
  473. if (type == 2) {
  474. deptvisible.value = false;
  475. }
  476. };
  477. const editDeptHandleOk = async () => {
  478. let depts: Array = [],
  479. user: User = { userId: selectUser.value.userId };
  480. checkStrictly.value.forEach((val) => {
  481. depts.push(val.deptId);
  482. });
  483. user.dept = depts;
  484. await UserEdit(user).then((res) => {
  485. fetchData();
  486. });
  487. };
  488. const cb = async (err) => {
  489. if (err) {
  490. visible.value = true;
  491. } else {
  492. let uuu;
  493. if (editform.value.userId.length > 0) {
  494. await UserEdit({
  495. ...editform.value,
  496. } as unknown as User).then((res) => {
  497. fetchData();
  498. uuu = res.data;
  499. });
  500. } else {
  501. await UserAdd({
  502. ...editform.value,
  503. } as unknown as User).then((res) => {
  504. fetchData();
  505. uuu = res.data;
  506. });
  507. }
  508. if (uuu.dept?false:true) {
  509. deptvisible.value = true;
  510. checkedKeys.value = [];
  511. expandKdys.value = [];
  512. checkStrictly.value = [];
  513. selectUser.value = uuu;
  514. }
  515. }
  516. };
  517. const editHandleOk = () => {
  518. formRef.value.validate(cb);
  519. };
  520. const operation = async (t, record) => {
  521. if (t == 0) {
  522. save.value = '新增';
  523. visible.value = true;
  524. editform.value.userId = '';
  525. editform.value.userName = '';
  526. editform.value.loginName = '';
  527. editform.value.nickName = '';
  528. editform.value.email = '';
  529. editform.value.phoneNumber = '';
  530. editform.value.role = '';
  531. }
  532. //重置密码
  533. if (t == 1) {
  534. await UserChangePwd(record.userId).then((res) => {
  535. if (res.code == 20000) {
  536. Modal.success({
  537. title: '重置密码',
  538. content: '该用户密码重置为000000',
  539. });
  540. } else {
  541. Modal.error({
  542. title: '重置密码',
  543. content: '该用户密码重置失败',
  544. });
  545. }
  546. });
  547. }
  548. //编辑
  549. if (t == 2) {
  550. visible.value = true;
  551. formRef.value?.resetFields();
  552. editform.value.role=[];
  553. save.value = '编辑';
  554. editform.value.userId = record.userId;
  555. editform.value.userName = record.userName;
  556. editform.value.loginName = record.loginName;
  557. editform.value.email = record.email;
  558. editform.value.phoneNumber = record.phoneNumber;
  559. if (record.roles?.length > 0) {
  560. //遍历record.roles
  561. record.roles.forEach((val) => {
  562. editform.value.role.push(val.roleId);
  563. })
  564. }
  565. }
  566. //删除
  567. if (t == 3) {
  568. await UserDelete(record.userId).then((res) => {
  569. if (res.code == 200) {
  570. fetchData();
  571. }
  572. });
  573. }
  574. //权限
  575. if (t == 4) {
  576. resourcevisible.value = true;
  577. checkStrictlyMenu.value = [];
  578. checkStrictlyKnowledge.value = [];
  579. checkStrictlyDialog.value = [];
  580. checkStrictlyAgent.value = [];
  581. selectUser.value = record;
  582. let agents;
  583. if (record.agents) {
  584. agents = record.agents;
  585. } else {
  586. agents = record.roles ? record.roles[0].agents : null;
  587. }
  588. if (agents) {
  589. agents.forEach((val) => {
  590. checkStrictlyAgent.value.push({
  591. agentId: val.id,
  592. agentName: val.title,
  593. });
  594. });
  595. }
  596. let resources;
  597. if (record.resources) {
  598. resources = record.resources;
  599. } else {
  600. resources = record.roles ? record.roles[0].resources : null;
  601. }
  602. if (resources) {
  603. resources.forEach((val) => {
  604. checkStrictlyMenu.value.push({
  605. menuId: val.menuId,
  606. menuName: val.menuName,
  607. });
  608. });
  609. }
  610. let knowledges;
  611. if (record.knowledges) {
  612. knowledges = record.knowledges;
  613. } else {
  614. knowledges = record.roles ? record.roles[0].knowledges : null;
  615. }
  616. if (knowledges) {
  617. knowledges.forEach((val) => {
  618. checkStrictlyKnowledge.value.push({
  619. knowledgeId: val.id,
  620. knowledgeName: val.name,
  621. });
  622. });
  623. }
  624. let dialogs = record.roles ? record.roles[0].dialogs : null;
  625. if (dialogs) {
  626. dialogs.forEach((val) => {
  627. checkStrictlyDialog.value.push({
  628. dialogId: val.id,
  629. dialogName: val.name,
  630. });
  631. });
  632. }
  633. }
  634. //机构
  635. if (t == 5) {
  636. deptvisible.value = true;
  637. checkedKeys.value = [];
  638. expandKdys.value = [];
  639. checkStrictly.value = [];
  640. checkStrictlyDeptRole.value=[];
  641. selectUser.value = record;
  642. expandKdys.value.push("0");
  643. if (record?.dept) {
  644. record.dept.forEach((val) => {
  645. checkStrictly.value.push({
  646. deptId: val.deptId,
  647. deptName: val.deptName
  648. });
  649. checkedKeys.value.push(val.deptId);
  650. expandKdys.value.push(val.deptId);
  651. record.roles.forEach(
  652. (r) => {
  653. if (r.dept) {
  654. r.dept.forEach((d) => {
  655. if (d.deptId == val.deptId) {
  656. checkStrictlyDeptRole.value.push({
  657. roleId: r.roleId,
  658. roleName: r.roleName,
  659. deptId:d.deptId,
  660. });
  661. }
  662. });
  663. }
  664. }
  665. );
  666. });
  667. }
  668. }
  669. };
  670. const fetchData = async (
  671. params: Pagination = { current: 1, pageSize: 20 }
  672. ) => {
  673. setLoading(true);
  674. try {
  675. await UserList(params).then((res) => {
  676. for (const user of res.rows) {
  677. if (user.dept) {
  678. for (const d of user.dept) {
  679. if (user.deptName) {
  680. user.deptName += d.deptName + ',';
  681. } else {
  682. user.deptName = d.deptName + ',';
  683. }
  684. }
  685. }
  686. if (user.roles) {
  687. for (const r of user.roles) {
  688. if (user.roleName) {
  689. user.roleName += r.roleName + ',';
  690. } else {
  691. user.roleName = r.roleName + ',';
  692. }
  693. }
  694. }
  695. }
  696. renderData.value = res.rows;
  697. console.log(renderData);
  698. pagination.current = params.current;
  699. pagination.total = res.total;
  700. });
  701. } catch (err) {
  702. // you can report use errorHandler or other
  703. } finally {
  704. setLoading(false);
  705. }
  706. };
  707. const search = () => {
  708. fetchData({
  709. ...basePagination,
  710. ...formModel.value,
  711. } as unknown as Pagination);
  712. };
  713. const onPageChange = (current: number) => {
  714. fetchData({ ...basePagination, current });
  715. };
  716. const OrganizationData = async (key) => {
  717. await OrganizationList(key).then((res) => {
  718. treeData.value = [...res.rows];
  719. });
  720. };
  721. fetchData();
  722. OrganizationData('');
  723. loadRole();
  724. const reset = () => {
  725. formModel.value = generateFormModel();
  726. };
  727. const handleSelectDensity = (
  728. val: string | number | Record<string, any> | undefined,
  729. e: Event
  730. ) => {
  731. size.value = val as SizeProps;
  732. };
  733. </script>
  734. <style scoped lang="less">
  735. .card-demo {
  736. width: 460px;
  737. margin-left: 24px;
  738. transition-property: all;
  739. }
  740. .card-demo:hover {
  741. transform: translateY(-4px);
  742. }
  743. .table-page-search-wrapper {
  744. padding-top: 10px;
  745. display: flex;
  746. justify-content: space-between;
  747. align-items: center;
  748. margin-bottom: 20px;
  749. padding-bottom: 10px;
  750. border-bottom: 1px solid #e8e8e8;
  751. .search-wrapper {
  752. display: flex;
  753. .wrapper-icon {
  754. display: flex;
  755. align-items: center;
  756. margin-left: 40px;
  757. // margin-right: 40px;
  758. }
  759. }
  760. }
  761. .space_select_all {
  762. display: flex;
  763. justify-content: end;
  764. margin-bottom: 15px;
  765. }
  766. .table_box {
  767. display: flex;
  768. border: 1px solid #e8e8e8;
  769. border-bottom: none;
  770. .row1_clo {
  771. min-width: 200px;
  772. display: flex;
  773. padding-left: 20px;
  774. border-right: 1px solid #e8e8e8;
  775. }
  776. .table_row1 {
  777. width: 100%;
  778. .row1_list {
  779. display: flex;
  780. min-height: 40px;
  781. border-bottom: 1px solid #e8e8e8;
  782. // line-height: 40px;
  783. }
  784. }
  785. .row1_clo2 {
  786. width: 100%;
  787. border-top: none;
  788. .row2_clo2_1 {
  789. display: flex;
  790. width: 100%;
  791. min-height: 40px;
  792. line-height: 40px;
  793. border-bottom: 1px solid #e8e8e8;
  794. .row1_clo2_1 {
  795. border-right: 1px solid #e8e8e8;
  796. min-width: 310px;
  797. padding-left: 20px;
  798. }
  799. .row1_clo2_2 {
  800. border-top: none;
  801. border-right: none;
  802. width: 100%;
  803. display: flex;
  804. flex-wrap: wrap;
  805. div {
  806. margin-left: 20px;
  807. }
  808. }
  809. }
  810. }
  811. .row2_clo2_1:last-child {
  812. border-bottom: none;
  813. }
  814. }
  815. </style>
  816. <style lang="less">
  817. .ant-table-wrapper {
  818. .ant-table-tbody {
  819. tr {
  820. td {
  821. .ant-table-row-cell-break-word {
  822. .ant-table-column-sorter {
  823. display: none;
  824. }
  825. }
  826. }
  827. }
  828. }
  829. .search-wrapper {
  830. display: flex;
  831. .wrapper-icon {
  832. display: flex;
  833. align-items: center;
  834. margin-left: 40px;
  835. // margin-right: 40px;
  836. }
  837. }
  838. }
  839. </style>
  840. <style lang="less">
  841. .ant-table-wrapper {
  842. .ant-table-tbody {
  843. tr {
  844. td {
  845. .ant-table-row-cell-break-word {
  846. .ant-table-column-sorter {
  847. display: none;
  848. }
  849. }
  850. }
  851. }
  852. }
  853. }
  854. </style>
  855. <style lang="less" scoped>
  856. .table-page-search-wrapper {
  857. .ant-form-inline {
  858. :deep(.ant-form-item) {
  859. display: flex;
  860. }
  861. }
  862. }
  863. </style>