Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
65d609a2
Commit
65d609a2
authored
Sep 13, 2021
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务新增,删除组件无用代码
parent
a58f3c03
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
140 additions
and
200 deletions
+140
-200
src/components/form.vue
+35
-153
src/views/xsjsdb/addRwbd.vue
+105
-47
No files found.
src/components/form.vue
View file @
65d609a2
This diff is collapsed.
Click to expand it.
src/views/xsjsdb/addRwbd.vue
View file @
65d609a2
...
...
@@ -48,6 +48,9 @@ export default {
col
:
"2"
,
},
{
col
:
"2"
,
},
{
name
:
"录入时间:"
,
id
:
"asjfssjKssj"
,
type
:
"dates"
,
...
...
@@ -68,9 +71,9 @@ export default {
codeOptions
:
[],
codeTree
:
"CODE_AJLB"
,
},
{
col
:
"2"
,
col
:
"2"
,
},
{
name
:
"简要案情:"
,
...
...
@@ -81,10 +84,10 @@ export default {
placeholder
:
"请输入"
,
col
:
"3"
,
},
{
col
:
"2"
,
{
col
:
"2"
,
},
{
{
name
:
"任务名称:"
,
id
:
"rwmc"
,
type
:
"text"
,
...
...
@@ -105,14 +108,9 @@ export default {
codeTree
:
"CODE_XSJSBD_RWLXDM"
,
},
{
name
:
"任务描述:"
,
id
:
"rwxq"
,
type
:
"textarea"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"3"
,
col
:
"2"
,
},
{
{
name
:
"接收人姓名:"
,
id
:
"jsrXm"
,
type
:
"setValue"
,
...
...
@@ -122,6 +120,17 @@ export default {
col
:
"2"
,
},
{
col
:
"2"
,
},
{
name
:
"任务描述:"
,
id
:
"rwxq"
,
type
:
"textarea"
,
value
:
""
,
placeholder
:
"请输入"
,
col
:
"3"
,
},
{
name
:
"图片列表:"
,
id
:
"picList"
,
type
:
"file"
,
...
...
@@ -145,23 +154,6 @@ export default {
formLabelAlign
:
{
// lrsj: this.$moment().format("YYYY-MM-DD HH:mm:ss"),
},
Breadcrumb
:
[
{
name
:
"号码线索管理"
,
to
:
"/hmxsGl"
,
isActive
:
false
,
},
{
name
:
"号码线索管理"
,
to
:
"/hmxsGl"
,
isActive
:
false
,
},
{
name
:
"新增号码线索"
,
to
:
"/addHmxs"
,
isActive
:
true
,
},
],
jsrList
:
[],
};
},
...
...
@@ -200,28 +192,95 @@ export default {
});
},
submit
(
params
)
{
debugger
;
let
self
=
this
;
let
loading
=
this
.
$loading
({
lock
:
true
,
text
:
"正在保存..."
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
addBdrw
(
params
)
.
then
((
res
)
=>
{
debugger
;
this
.
$alert
(
"保存成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
this
.
$router
.
push
(
"queryRwbd"
);
loading
.
close
();
},
});
})
.
catch
((
res
)
=>
{
loading
.
close
();
});
let
str
=
this
.
formLabelAlign
.
rwlxdm
;
if
(
str
==
"01"
||
str
==
"02"
)
{
debugger
if
(
self
.
formLabelAlign
.
picList
.
length
>
0
)
{
addBdrw
(
params
)
.
then
((
res
)
=>
{
debugger
;
this
.
$alert
(
"保存成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
this
.
$router
.
push
(
"queryRwbd"
);
loading
.
close
();
},
});
})
.
catch
((
res
)
=>
{
loading
.
close
();
});
}
else
{
self
.
$confirm
(
"请上传图片"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
loading
.
close
();
});
}
}
else
if
(
str
==
"04"
)
{
if
(
self
.
formLabelAlign
.
picList
.
length
>
0
&&
self
.
formLabelAlign
.
videoList
.
length
>
0
)
{
addBdrw
(
params
)
.
then
((
res
)
=>
{
debugger
;
self
.
$confirm
(
"保存成功"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"success"
,
})
.
then
(()
=>
{
self
.
$router
.
push
(
"queryRwbd"
);
loading
.
close
();
});
})
.
catch
((
res
)
=>
{
loading
.
close
();
});
}
else
{
self
.
$confirm
(
"请上传图片和视频"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
loading
.
close
();
});
}
}
else
{
addBdrw
(
params
)
.
then
((
res
)
=>
{
debugger
;
self
.
$confirm
(
"保存成功"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"success"
,
})
.
then
(()
=>
{
self
.
$router
.
push
(
"queryRwbd"
);
loading
.
close
();
});
})
.
catch
((
res
)
=>
{
loading
.
close
();
});
}
},
getJsr
(
val
)
{
let
type
=
""
;
...
...
@@ -248,12 +307,11 @@ export default {
jsrDwdm
:
item
.
unitcode
,
});
});
self
.
$set
(
self
.
propFormField
[
0
].
data
[
4
],
"codeOptions"
,
arr
);
self
.
$set
(
self
.
propFormField
[
0
].
data
[
11
],
"codeOptions"
,
arr
);
});
},
},
created
()
{
this
.
$store
.
commit
(
"user/SET_Breadcrumb"
,
this
.
Breadcrumb
);
this
.
getJsr
();
},
watch
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment