|
@@ -63,6 +63,10 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+
|
|
|
|
+ import { addWorkCategory } from "@/api/worksCategory/worksCategory";
|
|
|
|
+
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'ProjectCategoryManagement',
|
|
name: 'ProjectCategoryManagement',
|
|
data() {
|
|
data() {
|
|
@@ -142,9 +146,23 @@
|
|
},
|
|
},
|
|
submitForm() {
|
|
submitForm() {
|
|
this.$refs.form.validate((valid) => {
|
|
this.$refs.form.validate((valid) => {
|
|
|
|
+ debugger;
|
|
if (valid) {
|
|
if (valid) {
|
|
// 实现表单提交逻辑
|
|
// 实现表单提交逻辑
|
|
console.log('表单数据:', this.form)
|
|
console.log('表单数据:', this.form)
|
|
|
|
+ if (this.form.userId != undefined) {
|
|
|
|
+ }else{
|
|
|
|
+
|
|
|
|
+ addWorkCategory(this.form).then(response => {
|
|
|
|
+ debugger;
|
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
|
+ this.open = false;
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
this.$message.success('保存成功')
|
|
this.$message.success('保存成功')
|
|
this.loadData()
|
|
this.loadData()
|