|
@@ -71,12 +71,12 @@
|
|
<el-input v-model="formData.price"></el-input>
|
|
<el-input v-model="formData.price"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="操作">
|
|
|
|
- <el-input v-model="formData.operation"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+<!-- <el-form-item label="操作">-->
|
|
|
|
+<!-- <el-input v-model="formData.operation"></el-input>-->
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button @click="isShow=false">取 消</el-button>
|
|
|
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
<el-button type="primary" @click="submitForm('addPrice')">保 存</el-button>
|
|
<el-button type="primary" @click="submitForm('addPrice')">保 存</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -139,7 +139,7 @@ export default {
|
|
this.formData.specificModel = '';
|
|
this.formData.specificModel = '';
|
|
this.formData.category = '';
|
|
this.formData.category = '';
|
|
this.formData.price = '';
|
|
this.formData.price = '';
|
|
- this.formData.operation = '';
|
|
|
|
|
|
+ this.formData.operation = 1;
|
|
this.isShow = false
|
|
this.isShow = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -161,7 +161,7 @@ export default {
|
|
this.formData.specificModel = '';
|
|
this.formData.specificModel = '';
|
|
this.formData.category = '';
|
|
this.formData.category = '';
|
|
this.formData.price = '';
|
|
this.formData.price = '';
|
|
- this.formData.operation = '';
|
|
|
|
|
|
+ this.formData.operation = 1;
|
|
this.formData.id = '';
|
|
this.formData.id = '';
|
|
this.isShow = false
|
|
this.isShow = false
|
|
}
|
|
}
|
|
@@ -229,6 +229,21 @@ export default {
|
|
this.page = p;
|
|
this.page = p;
|
|
// 价格管理列表
|
|
// 价格管理列表
|
|
this.getPriceList();
|
|
this.getPriceList();
|
|
|
|
+ },
|
|
|
|
+ // 取消
|
|
|
|
+ cancel() {
|
|
|
|
+ this.isShow = false;
|
|
|
|
+ this.reset();
|
|
|
|
+ },
|
|
|
|
+ // 重置
|
|
|
|
+ reset() {
|
|
|
|
+ this.formData = {
|
|
|
|
+ productName: "",
|
|
|
|
+ specificModel: "",
|
|
|
|
+ category: "",
|
|
|
|
+ price: "",
|
|
|
|
+ operation: 1
|
|
|
|
+ };
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|