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
34581c09
Commit
34581c09
authored
Dec 23, 2021
by
lp784568205
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改阵地
parent
ea0edaaa
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
316 additions
and
163 deletions
+316
-163
public/JsonData/CODE_ZDGLSSWPLX.json
+100
-0
src/components/form.vue
+10
-4
src/views/xxtk/gzry/addGzry.vue
+35
-18
src/views/zdxx/zdcyryxx/queryZdcyryxx.vue
+5
-5
src/views/zdxx/zdjyhd/addZdjyhd.vue
+5
-0
src/views/zdxx/zdjyhd/qzdjs.vue
+32
-25
src/views/zdxx/zdjyhd/zdfxcdtj.vue
+11
-11
src/views/zdxx/zdjyhd/zdglryhyhftj.vue
+11
-11
src/views/zdxx/zdjyhd/zdgmtj.vue
+11
-11
src/views/zdxx/zdjyhd/zdgzrytjt.vue
+11
-11
src/views/zdxx/zdjyhd/zdjycstj.vue
+11
-11
src/views/zdxx/zdxxgl/adjustZdxxgl.vue
+37
-28
src/views/zdxx/zdxxgl/detailZdxx.vue
+37
-28
No files found.
public/JsonData/CODE_ZDGLSSWPLX.json
0 → 100644
View file @
34581c09
{
"code"
:
200
,
"data"
:{
"rows"
:[
{
"ids"
:
"696525"
,
"label"
:
"弹药"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"弹药"
,
"pId"
:
""
,
"id"
:
"01"
,
"isParent"
:
false
,
"children"
:[]
},
{
"ids"
:
"696526"
,
"label"
:
"非机动车"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"非机动车"
,
"pId"
:
""
,
"id"
:
"02"
,
"isParent"
:
false
,
"children"
:[]
},
{
"ids"
:
"696527"
,
"label"
:
"机动车"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"机动车"
,
"pId"
:
""
,
"id"
:
"03"
,
"isParent"
:
false
,
"children"
:[]
},
{
"ids"
:
"696528"
,
"label"
:
"卡类"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"卡类"
,
"pId"
:
""
,
"id"
:
"04"
,
"isParent"
:
false
,
"children"
:[]
},
{
"ids"
:
"696529"
,
"label"
:
"其他物品"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"其他物品"
,
"pId"
:
""
,
"id"
:
"05"
,
"isParent"
:
false
,
"children"
:[]
},
{
"ids"
:
"696530"
,
"label"
:
"枪支"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"枪支"
,
"pId"
:
""
,
"id"
:
"06"
,
"isParent"
:
false
,
"children"
:[]
},
{
"ids"
:
"696531"
,
"label"
:
"文物"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"文物"
,
"pId"
:
""
,
"id"
:
"07"
,
"isParent"
:
false
,
"children"
:[]
},
{
"ids"
:
"696532"
,
"label"
:
"移动通信设备"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"移动通信设备"
,
"pId"
:
""
,
"id"
:
"08"
,
"isParent"
:
false
,
"children"
:[]
},
{
"ids"
:
"696533"
,
"label"
:
"证件"
,
"codeType"
:
"CODE_ZDGLSSWPLX"
,
"text"
:
"证件"
,
"pId"
:
""
,
"id"
:
"09"
,
"isParent"
:
false
,
"children"
:[]
}
]
},
"success"
:
true
,
"message"
:
"成功"
}
\ No newline at end of file
src/components/form.vue
View file @
34581c09
...
...
@@ -1193,6 +1193,7 @@ export default {
}
else
if
(
val4
.
type
==
"datetime"
)
{
singleObject
[
val4
.
id
]
=
[];
}
else
if
(
val4
.
type
==
"file"
)
{
debugger
if
(
!
self
.
fileLists
[
item2
.
id
])
{
self
.
$set
(
self
.
fileLists
,
item2
.
id
,
[]);
}
...
...
@@ -1483,6 +1484,7 @@ export default {
}
});
}
console
.
log
(
self
.
formLabelAlign
);
//2.有childrenAsAdd表单数据处理
if
(
item
.
childrenAsAdd
)
{
item
.
childrenAsAdd
.
forEach
((
subItem
)
=>
{
...
...
@@ -1613,7 +1615,7 @@ export default {
});
console
.
log
(
this
.
formLabelAlign
);
},
handleChange
(
file
,
fileList
,
item
,
parentItem
)
{
handleChange
(
file
,
fileList
,
item
,
parentItem
,
indexFile
)
{
var
self
=
this
;
let
isLt1M
=
""
;
isLt1M
=
file
.
raw
.
size
/
1024
/
1024
<
101
;
...
...
@@ -1650,15 +1652,19 @@ export default {
// URL.createObjectURL(file.raw)
// );
// }
debugger
;
}
else
{
self
.
$message
.
error
(
"请上传正确的图片"
);
}
}
else
{
// debugger;
if
(
self
.
fileLists
[
item
.
id
].
length
==
0
)
{
self
.
$set
(
self
.
fileLists
,
item
.
id
,
[]);
}
// if (self.fileLists[item.id].length == 0) {
// self.$set(self.fileLists, item.id, []);
// }
// if(self.fileLists[parentItem.id][indexFile][item.id].length == 0) {
// self.$set(self.fileLists, item.id, [])
// }
if
(
isLt1M
)
{
this
.
fileLists
[
item
.
id
].
push
(
file
);
// this.$refs.formLabelAlign.clearValidate();
...
...
src/views/xxtk/gzry/addGzry.vue
View file @
34581c09
...
...
@@ -12,7 +12,10 @@
</form-compontent>
<!-- 关联列表 -->
<div
v-if=
"!!this.glxxXxzjbh && this.glxxXxzjbh != ''"
style=
"width:1250px;margin: -70px auto 70px;"
>
<div
v-if=
"!!this.glxxXxzjbh && this.glxxXxzjbh != ''"
style=
"width: 1250px; margin: -70px auto 70px"
>
<div
v-for=
"(item, index) in listData"
:key=
"index"
>
<el-card
class=
"box-card"
style=
"margin: 0px 20px 20px"
>
<div
slot=
"header"
class=
"clearfix"
>
...
...
@@ -1147,7 +1150,7 @@ export default {
message
:
"删除成功"
,
});
// location.reload()
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1170,7 +1173,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1193,7 +1196,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1216,7 +1219,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1239,7 +1242,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1262,7 +1265,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1285,7 +1288,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1308,7 +1311,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1331,7 +1334,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1354,7 +1357,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1377,7 +1380,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1400,7 +1403,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1423,7 +1426,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1446,7 +1449,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1469,7 +1472,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1492,7 +1495,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1515,7 +1518,7 @@ export default {
type
:
"success"
,
message
:
"删除成功"
,
});
location
.
reload
()
location
.
reload
()
;
}
});
})
...
...
@@ -1544,6 +1547,20 @@ export default {
this
.
xxzjbh
=
this
.
$route
.
query
.
xxzjbh
;
this
.
getshuju
();
}
if
(
this
.
$route
.
query
.
xxtkObj
)
{
console
.
log
(
this
.
$route
.
query
.
xxtkObj
);
var
getItem
=
JSON
.
parse
(
this
.
$route
.
query
.
xxtkObj
);
console
.
log
(
getItem
);
this
.
propFormField
[
0
].
data
.
forEach
((
j
,
jIndex
)
=>
{
this
.
$set
(
this
.
formLabelAlign
,
j
.
id
,
this
.
propFormField
[
0
].
objStr
?
getItem
[
this
.
propFormField
[
0
].
objStr
][
j
.
id
]
:
getItem
[
j
.
id
]
);
});
}
},
watch
:
{
loadingIndex
()
{
...
...
src/views/zdxx/zdcyryxx/queryZdcyryxx.vue
View file @
34581c09
...
...
@@ -282,11 +282,11 @@ export default {
prop
:
"xldmStr"
,
width
:
"120"
,
},
{
label
:
"是否重点人员"
,
prop
:
"sfzdgzry"
,
width
:
"120"
,
},
//
{
//
label: "是否重点人员",
//
prop: "sfzdgzry",
//
width: "120",
//
},
{
label
:
"是否布控"
,
prop
:
"sfbbkry"
,
...
...
src/views/zdxx/zdjyhd/addZdjyhd.vue
View file @
34581c09
...
...
@@ -718,6 +718,7 @@ export default {
requestUrl
:
"/flwsFj/tbstasjflwsCj/save"
,
acceptType
:
"image/jpeg,image/gif,image/png"
,
col
:
"3"
,
fileList
:
[],
// prop: 'checkEmpty',
},
],
...
...
@@ -773,6 +774,7 @@ export default {
requestUrl
:
"/flwsFj/tbstasjflwsCj/save"
,
acceptType
:
"video/mp4,video/flv,video/avi,video/wmv"
,
col
:
"3"
,
fileList
:
[],
// prop: 'checkEmpty',
},
],
...
...
@@ -2045,6 +2047,9 @@ export default {
},
created
()
{
this
.
$store
.
commit
(
"user/SET_Breadcrumb"
,
this
.
Menu
);
if
(
this
.
$route
.
query
.
glzdxxzjbh
)
{
this
.
glzdxxzjbh
=
this
.
$route
.
query
.
glzdxxzjbh
}
console
.
log
(
this
.
$route
.
query
);
if
(
this
.
$route
.
query
.
xxzjbh
)
{
this
.
xxzjbh
=
this
.
$route
.
query
.
xxzjbh
;
...
...
src/views/zdxx/zdjyhd/qzdjs.vue
View file @
34581c09
...
...
@@ -72,20 +72,26 @@ export default {
cxFormData
:
{
limit
:
10
,
page
:
1
,
// djsjStart: "",
// djsjEnd: "",
// wjr: "",
// zdjd: "",
// zdwd: "",
// zdlxdh: "",
// zdgm: "",
// fxcd: "",
// xm: "",
// zjhm: "",
// hyzkdm: "",
// xldm: "",
// jywpmc: "",
// bbkqtwpWpmc: "",
zdmc
:
""
,
sjsfdqdm
:
""
,
fxcd
:
""
,
zdgm
:
""
,
zdcslx
:
""
,
xm
:
""
,
zjhm
:
""
,
xldm
:
""
,
cysj
:
""
,
hjddm
:
""
,
jyryxm
:
""
,
jyryzjhm
:
""
,
jyryxldm
:
""
,
dwzyxx
:
""
,
jyrytssf
:
""
,
jyryhjddm
:
""
,
sfqkry
:
""
,
sfztry
:
""
,
jywplx
:
""
,
sfysswp
:
""
,
},
cxQueryField
:
[
/*立案信息 侦查终结信息 立案信息审批 侦查终结审批通用开始*/
...
...
@@ -159,7 +165,7 @@ export default {
},
{
name
:
"从业人员学历"
,
id
:
""
,
id
:
"
xldm
"
,
type
:
"codeTreeDialog"
,
codeTree
:
"CODE_WHCD"
,
codeOptions
:
[],
...
...
@@ -176,14 +182,14 @@ export default {
placeholder
:
""
,
col
:
"3"
,
},
{
name
:
"从业人员身份"
,
id
:
""
,
type
:
"text"
,
value
:
""
,
placeholder
:
""
,
col
:
"3"
,
},
//
{
//
name: "从业人员身份",
//
id: "",
//
type: "text",
//
value: "",
//
placeholder: "",
//
col: "3",
//
},
{
name
:
"从业人员户籍地"
,
id
:
"hjddm"
,
...
...
@@ -307,6 +313,7 @@ export default {
{
label
:
"阵地名称"
,
prop
:
"zdmc"
,
toInfor
:
true
,
},
{
label
:
"阵地地址"
,
...
...
@@ -550,8 +557,8 @@ export default {
}
},
toInfor
(
data
)
{
this
.
$router
.
push
({
path
:
"/detailZd
jyhd
"
,
this
.
$router
.
push
ToTab
({
path
:
"/detailZd
xx
"
,
query
:
{
xxzjbh
:
data
.
xxzjbh
,
},
...
...
src/views/zdxx/zdjyhd/zdfxcdtj.vue
View file @
34581c09
...
...
@@ -273,19 +273,19 @@ export default {
},
],
});
myChart
.
on
(
"click"
,
pieConsole
);
function
pieConsole
(
val
)
{
console
.
log
(
val
);
console
.
log
(
val
.
data
);
self
.
getTableData
()
}
//
myChart.on("click", pieConsole);
//
function pieConsole(val) {
//
console.log(val);
//
console.log(val.data);
//
self.getTableData()
//
}
},
//表格内容接口
getTableData
(
dm
)
{
this
.
type
=
"table"
;
// this.$set(this.cxFormData, "xzqhdm", dm);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
},
//
getTableData(dm) {
//
this.type = "table";
//
// this.$set(this.cxFormData, "xzqhdm", dm);
//
this.$refs.rightContent.doQuery("yes");
//
},
getCode
()
{
let
obj
=
{};
var
arr
=
[]
...
...
src/views/zdxx/zdjyhd/zdglryhyhftj.vue
View file @
34581c09
...
...
@@ -313,19 +313,19 @@ export default {
},
],
});
myChart
.
on
(
"click"
,
pieConsole
);
function
pieConsole
(
val
)
{
console
.
log
(
val
);
console
.
log
(
val
.
data
);
self
.
getTableData
()
}
//
myChart.on("click", pieConsole);
//
function pieConsole(val) {
//
console.log(val);
//
console.log(val.data);
//
self.getTableData()
//
}
},
//表格内容接口
getTableData
(
dm
)
{
this
.
type
=
"table"
;
// this.$set(this.cxFormData, "xzqhdm", dm);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
},
//
getTableData(dm) {
//
this.type = "table";
//
// this.$set(this.cxFormData, "xzqhdm", dm);
//
this.$refs.rightContent.doQuery("yes");
//
},
getCode
()
{
let
arr
=
[];
console
.
log
(
this
.
formData
.
djsjStart
);
...
...
src/views/zdxx/zdjyhd/zdgmtj.vue
View file @
34581c09
...
...
@@ -273,19 +273,19 @@ export default {
},
],
});
myChart
.
on
(
"click"
,
pieConsole
);
function
pieConsole
(
val
)
{
console
.
log
(
val
);
console
.
log
(
val
.
data
);
self
.
getTableData
()
}
//
myChart.on("click", pieConsole);
//
function pieConsole(val) {
//
console.log(val);
//
console.log(val.data);
//
self.getTableData()
//
}
},
//表格内容接口
getTableData
(
dm
)
{
this
.
type
=
"table"
;
// this.$set(this.cxFormData, "xzqhdm", dm);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
},
//
getTableData(dm) {
//
this.type = "table";
//
// this.$set(this.cxFormData, "xzqhdm", dm);
//
this.$refs.rightContent.doQuery("yes");
//
},
getCode
()
{
let
obj
=
{};
var
arr
=
[]
...
...
src/views/zdxx/zdjyhd/zdgzrytjt.vue
View file @
34581c09
...
...
@@ -313,19 +313,19 @@ export default {
},
],
});
myChart
.
on
(
"click"
,
pieConsole
);
function
pieConsole
(
val
)
{
console
.
log
(
val
);
console
.
log
(
val
.
data
);
self
.
getTableData
()
}
//
myChart.on("click", pieConsole);
//
function pieConsole(val) {
//
console.log(val);
//
console.log(val.data);
//
self.getTableData()
//
}
},
//表格内容接口
getTableData
(
dm
)
{
this
.
type
=
"table"
;
// this.$set(this.cxFormData, "xzqhdm", dm);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
},
//
getTableData(dm) {
//
this.type = "table";
//
// this.$set(this.cxFormData, "xzqhdm", dm);
//
this.$refs.rightContent.doQuery("yes");
//
},
getCode
()
{
let
arr
=
[];
console
.
log
(
this
.
formData
.
djsjStart
);
...
...
src/views/zdxx/zdjyhd/zdjycstj.vue
View file @
34581c09
...
...
@@ -313,19 +313,19 @@ export default {
},
],
});
myChart
.
on
(
"click"
,
pieConsole
);
function
pieConsole
(
val
)
{
console
.
log
(
val
);
console
.
log
(
val
.
data
);
self
.
getTableData
()
}
//
myChart.on("click", pieConsole);
//
function pieConsole(val) {
//
console.log(val);
//
console.log(val.data);
//
self.getTableData()
//
}
},
//表格内容接口
getTableData
(
dm
)
{
this
.
type
=
"table"
;
// this.$set(this.cxFormData, "xzqhdm", dm);
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
},
//
getTableData(dm) {
//
this.type = "table";
//
// this.$set(this.cxFormData, "xzqhdm", dm);
//
this.$refs.rightContent.doQuery("yes");
//
},
getCode
()
{
let
obj
=
{};
var
arr
=
[]
...
...
src/views/zdxx/zdxxgl/adjustZdxxgl.vue
View file @
34581c09
...
...
@@ -1079,38 +1079,47 @@ export default {
});
},
TOxxtk
(
scope
)
{
let
loading
=
this
.
$loading
({
lock
:
true
,
text
:
"正在保存..."
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
console
.
log
(
scope
.
row
);
console
.
log
(
scope
.
row
.
csrq
);
var
sendData
=
scope
.
row
debugger
sendData
.
csrq
=
this
.
$moment
(
scope
.
row
.
csrq
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
sendData
.
djsj
=
this
.
$moment
(
scope
.
row
.
djsj
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
sendData
.
gxsj
=
this
.
$moment
(
scope
.
row
.
gxsj
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
console
.
log
(
sendData
);
var
params
=
new
FormData
()
for
(
let
item
in
scope
.
row
)
{
params
.
append
(
item
,
scope
.
row
[
item
])
}
insertGzry
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"推送成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
loading
.
close
();
},
});
}
else
{
loading
.
close
();
this
.
$message
.
error
(
"添加失败,请检查数据格式是否正确"
);
}
});
var
sendStr
=
JSON
.
stringify
(
sendData
);
this
.
$router
.
pushToTab
({
path
:
"/addGzry"
,
query
:
{
xxtkObj
:
sendStr
},
})
// let loading = this.$loading({
// lock: true,
// text: "正在保存...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
// console.log(scope.row);
// console.log(scope.row.csrq);
// var sendData = scope.row
// debugger
// sendData.csrq = this.$moment(scope.row.csrq).format("YYYY-MM-DD HH:mm:ss")
// sendData.djsj = this.$moment(scope.row.djsj).format("YYYY-MM-DD HH:mm:ss")
// sendData.gxsj = this.$moment(scope.row.gxsj).format("YYYY-MM-DD HH:mm:ss")
// console.log(sendData);
// var params = new FormData()
// for(let item in scope.row) {
// params.append(item,scope.row[item])
// }
// insertGzry(params).then((res) => {
// if (res.success && res.code == 200) {
// this.$alert("推送成功!", "提示", {
// confirmButtonText: "确定",
// type: "success",
// callback: () => {
// loading.close();
// },
// });
// } else {
// loading.close();
// this.$message.error("添加失败,请检查数据格式是否正确");
// }
// });
},
deleCY
(
scope
)
{
this
.
$confirm
(
"此操作将永久删除该文件, 是否继续?"
,
"提示"
,
{
...
...
src/views/zdxx/zdxxgl/detailZdxx.vue
View file @
34581c09
...
...
@@ -1005,38 +1005,47 @@ export default {
})
},
TOxxtk
(
scope
)
{
let
loading
=
this
.
$loading
({
lock
:
true
,
text
:
"正在保存..."
,
spinner
:
"el-icon-loading"
,
background
:
"rgba(255, 255, 255, 0.7)"
,
});
console
.
log
(
scope
.
row
);
console
.
log
(
scope
.
row
.
csrq
);
var
sendData
=
scope
.
row
debugger
sendData
.
csrq
=
this
.
$moment
(
scope
.
row
.
csrq
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
sendData
.
djsj
=
this
.
$moment
(
scope
.
row
.
djsj
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
sendData
.
gxsj
=
this
.
$moment
(
scope
.
row
.
gxsj
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
console
.
log
(
sendData
);
var
params
=
new
FormData
()
for
(
let
item
in
scope
.
row
)
{
params
.
append
(
item
,
scope
.
row
[
item
])
}
insertGzry
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$alert
(
"推送成功!"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
type
:
"success"
,
callback
:
()
=>
{
loading
.
close
();
},
});
}
else
{
loading
.
close
();
this
.
$message
.
error
(
"添加失败,请检查数据格式是否正确"
);
}
});
var
sendStr
=
JSON
.
stringify
(
sendData
);
this
.
$router
.
pushToTab
({
path
:
"/addGzry"
,
query
:
{
xxtkObj
:
sendStr
},
})
// let loading = this.$loading({
// lock: true,
// text: "正在保存...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
// console.log(scope.row);
// console.log(scope.row.csrq);
// var sendData = scope.row
// debugger
// sendData.csrq = this.$moment(scope.row.csrq).format("YYYY-MM-DD HH:mm:ss")
// sendData.djsj = this.$moment(scope.row.djsj).format("YYYY-MM-DD HH:mm:ss")
// sendData.gxsj = this.$moment(scope.row.gxsj).format("YYYY-MM-DD HH:mm:ss")
// console.log(sendData);
// var params = new FormData()
// for(let item in scope.row) {
// params.append(item,scope.row[item])
// }
// insertGzry(params).then((res) => {
// if (res.success && res.code == 200) {
// this.$alert("推送成功!", "提示", {
// confirmButtonText: "确定",
// type: "success",
// callback: () => {
// loading.close();
// },
// });
// } else {
// loading.close();
// this.$message.error("添加失败,请检查数据格式是否正确");
// }
// });
},
deleCY
(
scope
)
{
this
.
$confirm
(
"此操作将永久删除该文件, 是否继续?"
,
"提示"
,
{
...
...
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