|
@@ -54,10 +54,7 @@ export default {
|
|
async searchInfo() {
|
|
async searchInfo() {
|
|
if (this.role == '2' || this.role == '3' || this.role == '7') {
|
|
if (this.role == '2' || this.role == '3' || this.role == '7') {
|
|
let res = await this.fetch(this.id);
|
|
let res = await this.fetch(this.id);
|
|
- console.log(res.data);
|
|
|
|
-
|
|
|
|
if (res.errcode === 0) {
|
|
if (res.errcode === 0) {
|
|
- console.log(res.data);
|
|
|
|
this.$set(this, `form`, res.data);
|
|
this.$set(this, `form`, res.data);
|
|
}
|
|
}
|
|
} else if (this.role == '6') {
|
|
} else if (this.role == '6') {
|
|
@@ -71,8 +68,6 @@ export default {
|
|
if (data.role == '2' || data.role == '3' || data.role == '7') {
|
|
if (data.role == '2' || data.role == '3' || data.role == '7') {
|
|
let res;
|
|
let res;
|
|
let msg;
|
|
let msg;
|
|
- console.log(data);
|
|
|
|
-
|
|
|
|
if (data.id) {
|
|
if (data.id) {
|
|
res = await this.update(data);
|
|
res = await this.update(data);
|
|
this.$message({
|
|
this.$message({
|