123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <template>
- <dg-card class="box-card" header="关联应用资源">
- <el-form ref="form" label-suffix=":" inline>
- <el-form-item label="应用系统名称">
- <el-input clearable placeholder="请输入应用系统名称" v-model="form.applyName.value"></el-input>
- </el-form-item>
- <el-form-item label="应用系统在用标识">
- <dg-select
- code="DM_APPLY_STATUS"
- v-model="form.applyStatus.value"
- placeholder="请选择应用系统在用标识"
- style="width: 13rem"
- clearable
- >
- </dg-select>
- </el-form-item>
- <el-form-item>
- <dg-button type="primary" icon="el-icon-search" @click="handleSearch">查询</dg-button>
- <dg-button type="primary" icon="el-icon-plus" @click="handleAdd">添加</dg-button>
- </el-form-item>
- </el-form>
- <Table
- ref="table"
- :url="tableUrl"
- :headerData="cardApplicationList"
- :condition="form"
- :lazyLoad="true"
- @handleRowClick="handleRowClick"
- >
- </Table>
- </dg-card>
- </template>
- <script>
- import Table from "@/components/table";
- import * as dynamicManageApi from "@/api/dynamic-manage";
- import { cardApplicationList } from "../DataConfig";
- import addDialog from "./add-dialog";
- const editorArea = ["1200px", "660px"];
- export default {
- name: "personnelList",
- props: {
-
- },
- data() {
-
- return {
-
- cardApplicationList,
- tableUrl: dynamicManageApi.tableUrl,
- form: {
- applyName: {
- value: "",
- op: "like"
- },
- applyStatus: {
- value: "",
- op: "="
- }
- }
- };
- },
- computed: {},
- watch: {},
- components: { Table },
- methods: {
-
- handleSearch() {
- this.$refs.table.handleSearchClick();
- },
-
- handleRowClick() {},
-
- handleAdd() {
- const layer = this.$dgLayer({
- title: "添加应用",
- shade: [0.4, "#FFF"],
- content: addDialog,
- props: {
- type: "application"
- },
- on: {
- success() {
- layer.close(layer.dialogIndex);
- }
- },
- area: editorArea
- });
- }
- },
- beforeCreate() {},
- created() {},
- beforeMount() {},
- mounted() {},
- beforeUpdate() {},
- updated() {},
- beforeDestroy() {},
- destroyed() {}
- };
- </script>
- <style lang="scss" scoped></style>
|