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

bug修复

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