Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
a62dcf64
提交
a62dcf64
authored
9月 24, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug修复
上级
b2212cb5
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
14 行删除
+9
-14
index.vue
src/views/system/freight/freight_list/index.vue
+9
-14
没有找到文件。
src/views/system/freight/freight_list/index.vue
浏览文件 @
a62dcf64
...
@@ -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
.
C
hargeType
var
typese
=
row
.
c
hargeType
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
=
{
I
d
:
0
,
i
d
:
0
,
S
ort
:
0
,
s
ort
:
0
,
Name
:
"0
"
,
name
:
"
"
,
I
sDefault
:
0
,
i
sDefault
:
0
,
C
hargeType
:
0
,
c
hargeType
:
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论