提交 a62dcf64 authored 作者: huaxinzhu's avatar huaxinzhu

bug修复

上级 b2212cb5
......@@ -32,7 +32,7 @@
</el-form>
</div>
<el-table v-loading="loading" :data="freightList" :height="tableHeight" @selection-change="handleSelectionChange">
<el-table :data="freightList" :height="tableHeight" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="ID" align="center" prop="id"/>
<el-table-column label="模板名称" align="center" prop="name"/>
......@@ -84,8 +84,6 @@
return {
fullHeight: 0,
tableHeight: 0,
// 遮罩层
loading: false,
// 选中数组
ids: [],
// 非单个禁用
......@@ -161,7 +159,7 @@
return publish
},
formatType(row) {
var typese = row.ChargeType
var typese = row.chargeType
var optDess = ''
if (typese == 1) {
optDess = "按重量"
......@@ -208,7 +206,7 @@
// 表单重置
reset() {
this.form = {
id: null,
id: 0,
seller_id: null,
name: null,
sort: null,
......@@ -247,11 +245,11 @@
this.reset();
this.isOpen = true;
this.form = {
Id: 0,
Sort: 0,
Name: "0",
IsDefault: 0,
ChargeType: 0,
id: 0,
sort: 0,
name: "",
isDefault: 0,
chargeType: 0,
Dispatching: [
{
a: "全国",
......@@ -272,9 +270,7 @@
const id = row.id
getFreight(id).then(response => {
let formdate = response.data
//
response.data.Dispatching = JSON.parse(formdate.Dispatching)
console.log("点击修改获取的数据:",formdate.Dispatching);
this.form = response.data
this.isOpen = true;
this.title = "修改运费模板";
......@@ -286,7 +282,7 @@
if (valid) {
if (this.form.id != null) {
if (this.form.id != 0) {
updateFreight(this.form).then(response => {
if (response.code === 0) {
this.msgSuccess("修改成功");
......@@ -317,7 +313,6 @@
cancelButtonText: '取消',
type: 'warning'
}).then(async()=> {
this.loading = true;
let delResult = await delFreight(ids);
if(delResult.code === 1) {
this.$message({type: 'success',message: '删除成功'});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论