|
@@ -12,11 +12,11 @@
|
|
|
<el-button slot="append" icon="el-icon-search" @click="handleSearch"></el-button>
|
|
|
</el-input>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!-- 表格区域 -->
|
|
|
- <el-table
|
|
|
- :data="tableData"
|
|
|
-
|
|
|
+ <el-table
|
|
|
+ :data="tableData"
|
|
|
+
|
|
|
style="width: 100%; margin-top: 20px"
|
|
|
v-loading="loading"
|
|
|
>
|
|
@@ -32,7 +32,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
+
|
|
|
<!-- 分页 -->
|
|
|
<el-pagination
|
|
|
@size-change="handleSizeChange"
|
|
@@ -45,26 +45,26 @@
|
|
|
style="margin-top: 20px; text-align: right"
|
|
|
>
|
|
|
</el-pagination>
|
|
|
-
|
|
|
+
|
|
|
<!-- 新增/编辑对话框 -->
|
|
|
- <el-dialog
|
|
|
- :title="dialogTitle"
|
|
|
- :visible.sync="dialogVisible"
|
|
|
+ <el-dialog
|
|
|
+ :title="dialogTitle"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
width="500px"
|
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
|
- <el-form
|
|
|
- :model="form"
|
|
|
- :rules="rules"
|
|
|
- ref="form"
|
|
|
+ <el-form
|
|
|
+ :model="form"
|
|
|
+ :rules="rules"
|
|
|
+ ref="form"
|
|
|
label-width="120px"
|
|
|
:validate-on-rule-change="false"
|
|
|
>
|
|
|
<el-form-item label="系统类别编号" prop="systemCode">
|
|
|
- <el-input v-model="form.systemCode" :disabled="dialogTitle === '编辑系统类别'"></el-input>
|
|
|
+ <el-input v-model="form.sysCode" :disabled="dialogTitle === '编辑系统类别'"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="系统类别名称" prop="systemName">
|
|
|
- <el-input v-model="form.systemName"></el-input>
|
|
|
+ <el-input v-model="form.sysName"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
<el-input type="textarea" v-model="form.remark" rows="3"></el-input>
|
|
@@ -75,7 +75,7 @@
|
|
|
<el-button type="primary" @click="submitForm" :loading="submitLoading">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
+
|
|
|
<!-- 查看详情对话框 -->
|
|
|
<el-dialog title="查看系统类别" :visible.sync="viewDialogVisible" width="500px">
|
|
|
<el-descriptions :column="1" border>
|
|
@@ -87,8 +87,12 @@
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<script>
|
|
|
+
|
|
|
+ import { add, list } from '@/api/sysCategory/sysCategory'
|
|
|
+
|
|
|
+
|
|
|
export default {
|
|
|
name: 'SystemCategoryManagement',
|
|
|
data() {
|
|
@@ -218,6 +222,14 @@
|
|
|
// } else {
|
|
|
// await updateSystemCategory(this.form)
|
|
|
// }
|
|
|
+
|
|
|
+ add(this.form).then(response => {
|
|
|
+ debugger;
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+
|
|
|
this.$message.success('保存成功')
|
|
|
this.dialogVisible = false
|
|
|
this.loadData()
|
|
@@ -235,7 +247,7 @@
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
+
|
|
|
<style scoped>
|
|
|
.system-category-container {
|
|
|
padding: 20px;
|
|
@@ -244,4 +256,4 @@
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
- </style>
|
|
|
+ </style>
|