application-properties.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <!--
  2. * @Author: Liugh
  3. * @Date: 2021-05-18 11:34:15
  4. * @LastEditTime: 2021-05-18 14:24:33
  5. * @LastEditors: Do not edit
  6. * @FilePath: \auth-web\src\pages\data-auth-module\property-management\application-management\application-properties.vue
  7. * @Description:
  8. -->
  9. <template>
  10. <main class="application-properties">
  11. <el-form ref="ruleForm" inline :rules="rules" :model="form">
  12. <el-form-item label="应用系统名称">
  13. <el-input v-model="form.name" placeholder="请输入应用系统名称"></el-input>
  14. </el-form-item>
  15. <el-form-item label="应用在用标识">
  16. <el-select v-model="form.userType" placeholder="请选择应用在用标识" style="width:13rem">
  17. <el-option label="全部" value="all"></el-option>
  18. <el-option label="启用" value="1"></el-option>
  19. <el-option label="停用" value="0"></el-option>
  20. </el-select>
  21. </el-form-item>
  22. <el-form-item label="应用系统事权单位代码">
  23. <el-input v-model="form.name" placeholder="请输入应用系统事权单位代码"></el-input>
  24. </el-form-item>
  25. <el-form-item>
  26. <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>
  27. </el-form-item>
  28. <el-form-item label="最近同步时间:" style="float:right">
  29. <span>2021-04-08 12:00:00</span>
  30. </el-form-item>
  31. </el-form>
  32. <div class="buttonGroup">
  33. <dg-button type="primary" @click="handleLeading" icon="el-icon-upload2">导入</dg-button>
  34. <dg-button type="primary" @click="handleSynchro" icon="el-icon-refresh">同步</dg-button>
  35. <dg-button type="text" @click="handleInfo">详情</dg-button>
  36. </div>
  37. <Table ref="myTable" :url="tableUrl" :headerData="ApplicationTableData" :condition="reportForm">
  38. <dg-table-column fixed="right" label="操作" align="center">
  39. <template>
  40. <dg-button type="text" @click="handleInfo">详情</dg-button>
  41. </template>
  42. </dg-table-column>
  43. </Table>
  44. </main>
  45. </template>
  46. <script>
  47. import Table from "@/pages/common/table";
  48. import { ApplicationTableData } from "../DataConfig";
  49. import * as dynamicManageApi from "@/api/dynamic-manage";
  50. import detail from "./detail";
  51. const editorArea = ["900px", "660px"];
  52. export default {
  53. name: "application-properties", // 组件名称
  54. props: {
  55. // 接收父组件的数据
  56. },
  57. data() {
  58. // 组件内部参数
  59. return {
  60. // 参数名称及默认值
  61. form: {},
  62. rules: {},
  63. options: [
  64. {
  65. id: "fruits",
  66. label: "Fruits",
  67. children: [
  68. {
  69. id: "apple",
  70. label: "Apple",
  71. isNew: true
  72. },
  73. {
  74. id: "grapes",
  75. label: "Grapes",
  76. disabled: true
  77. },
  78. {
  79. id: "pear",
  80. label: "Pear"
  81. },
  82. {
  83. id: "strawberry",
  84. label: "Strawberry 🍓"
  85. },
  86. {
  87. id: "watermelon",
  88. label: "Watermelon 🍉"
  89. }
  90. ]
  91. },
  92. {
  93. id: "vegetables",
  94. label: "Vegetables",
  95. children: [
  96. {
  97. id: "corn",
  98. label: "Corn 🌽"
  99. },
  100. {
  101. id: "carrot",
  102. label: "Carrot 🥕"
  103. },
  104. {
  105. id: "eggplant",
  106. label: "Eggplant 🍆"
  107. },
  108. {
  109. id: "tomato",
  110. label: "Tomato 🍅"
  111. }
  112. ]
  113. }
  114. ],
  115. ApplicationTableData,
  116. tableUrl: dynamicManageApi.tableUrl,
  117. reportForm: {}
  118. };
  119. },
  120. computed: {}, // 计算属性
  121. watch: {}, // 侦听器(扩展的计算属性)
  122. components: { Table }, // 注册局部组件
  123. methods: {
  124. /**
  125. * @description:表单查询方法
  126. */
  127. handleSearch() {},
  128. /**
  129. * @description:导入方法
  130. */
  131. handleLeading() {},
  132. /**
  133. * @description:同步方法
  134. */
  135. handleSynchro() {},
  136. /**
  137. * @description:详情
  138. */
  139. handleInfo() {
  140. const layer = this.$dgLayer({
  141. title: "详情",
  142. shade: [0.4, "#FFF"],
  143. content: detail,
  144. props: {},
  145. on: {
  146. success() {
  147. layer.close(layer.dialogIndex);
  148. }
  149. },
  150. area: editorArea
  151. });
  152. }
  153. }, // 内部方法
  154. beforeCreate() {}, // 组件创建前
  155. created() {}, // 组件创建完成后
  156. beforeMount() {}, // 组件挂载前
  157. mounted() {}, // 组件挂载完成后
  158. beforeUpdate() {}, // 组件更新前
  159. updated() {}, // 组件挂载完成后
  160. beforeDestroy() {}, // 组件销毁前
  161. destroyed() {} // 组件销毁完成后
  162. };
  163. </script>
  164. <style lang="scss" scoped>
  165. @import "../index.scss";
  166. </style>