application-list.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!--
  2. * @Author: Liugh
  3. * @Date: 2021-05-19 15:48:57
  4. * @LastEditTime: 2021-05-20 09:32:34
  5. * @LastEditors: Do not edit
  6. * @FilePath: \auth-web\src\pages\data-auth-module\auth-subject-manage\subject-prop-manage\application-list.vue
  7. * @Description:
  8. -->
  9. <template>
  10. <dg-card class="box-card" header="关联应用资源">
  11. <el-form ref="form" label-suffix=":" inline>
  12. <el-form-item label="应用系统名称">
  13. <el-input clearable placeholder="请输入应用系统名称" v-model="form.applyName.value"></el-input>
  14. </el-form-item>
  15. <el-form-item label="应用系统在用标识">
  16. <dg-select
  17. code="DM_APPLY_STATUS"
  18. v-model="form.applyStatus.value"
  19. placeholder="请选择应用系统在用标识"
  20. style="width: 13rem"
  21. clearable
  22. >
  23. </dg-select>
  24. </el-form-item>
  25. <el-form-item>
  26. <dg-button type="primary" icon="el-icon-search" @click="handleSearch">查询</dg-button>
  27. <dg-button type="primary" icon="el-icon-plus" @click="handleAdd">添加</dg-button>
  28. </el-form-item>
  29. </el-form>
  30. <Table
  31. ref="table"
  32. :url="tableUrl"
  33. :headerData="cardApplicationList"
  34. :condition="form"
  35. :lazyLoad="true"
  36. @handleRowClick="handleRowClick"
  37. >
  38. </Table>
  39. </dg-card>
  40. </template>
  41. <script>
  42. import Table from "@/components/table";
  43. import * as dynamicManageApi from "@/api/dynamic-manage";
  44. import { cardApplicationList } from "../DataConfig";
  45. import addDialog from "./add-dialog";
  46. const editorArea = ["1200px", "660px"];
  47. export default {
  48. name: "personnelList", // 组件名称
  49. props: {
  50. // 接收父组件的数据
  51. },
  52. data() {
  53. // 组件内部参数
  54. return {
  55. // 参数名称及默认值
  56. cardApplicationList,
  57. tableUrl: dynamicManageApi.tableUrl,
  58. form: {
  59. applyName: {
  60. value: "",
  61. op: "like"
  62. },
  63. applyStatus: {
  64. value: "",
  65. op: "="
  66. }
  67. }
  68. };
  69. },
  70. computed: {}, // 计算属性
  71. watch: {}, // 侦听器(扩展的计算属性)
  72. components: { Table }, // 注册局部组件
  73. methods: {
  74. /**
  75. * @description: 查询
  76. */
  77. handleSearch() {
  78. this.$refs.table.handleSearchClick();
  79. },
  80. /**
  81. * @description: 单击表格行
  82. */
  83. handleRowClick() {},
  84. /**
  85. * @description: 添加
  86. */
  87. handleAdd() {
  88. const layer = this.$dgLayer({
  89. title: "添加应用",
  90. shade: [0.4, "#FFF"],
  91. content: addDialog,
  92. props: {
  93. type: "application"
  94. },
  95. on: {
  96. success() {
  97. layer.close(layer.dialogIndex);
  98. }
  99. },
  100. area: editorArea
  101. });
  102. }
  103. }, // 内部方法
  104. beforeCreate() {}, // 组件创建前
  105. created() {}, // 组件创建完成后
  106. beforeMount() {}, // 组件挂载前
  107. mounted() {}, // 组件挂载完成后
  108. beforeUpdate() {}, // 组件更新前
  109. updated() {}, // 组件挂载完成后
  110. beforeDestroy() {}, // 组件销毁前
  111. destroyed() {} // 组件销毁完成后
  112. };
  113. </script>
  114. <style lang="scss" scoped></style>