|
|
@ -195,7 +195,7 @@ export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
title: "新建",
|
|
|
|
title: "新增",
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
|
companyId: "",
|
|
|
|
companyId: "",
|
|
|
|
companyName: "",
|
|
|
|
companyName: "",
|
|
|
@ -335,7 +335,7 @@ export default {
|
|
|
|
this.num = num;
|
|
|
|
this.num = num;
|
|
|
|
await this.obtain_select_list(); // 请求下拉
|
|
|
|
await this.obtain_select_list(); // 请求下拉
|
|
|
|
if (num === "1") {
|
|
|
|
if (num === "1") {
|
|
|
|
this.title = "新建";
|
|
|
|
this.title = "新增";
|
|
|
|
this.disabled = false;
|
|
|
|
this.disabled = false;
|
|
|
|
this.form = {
|
|
|
|
this.form = {
|
|
|
|
companyId: "",
|
|
|
|
companyId: "",
|
|
|
@ -447,8 +447,8 @@ export default {
|
|
|
|
addPerceptionList(this.form).then((res) => {
|
|
|
|
addPerceptionList(this.form).then((res) => {
|
|
|
|
this.visible = false;
|
|
|
|
this.visible = false;
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
this.$message.success("新建成功");
|
|
|
|
this.$message.success("新增成功");
|
|
|
|
// 新建数据成功后,表格刷新
|
|
|
|
// 新增数据成功后,表格刷新
|
|
|
|
this.$emit("refresh_perception");
|
|
|
|
this.$emit("refresh_perception");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else if (this.num === "5") {
|
|
|
|
} else if (this.num === "5") {
|
|
|
|