Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
周健威
rs-cloud-platform-ui
Commits
9940b231
Commit
9940b231
authored
Jan 07, 2021
by
rencs
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_ren' of
http://113.105.137.151:22280/zhoujw/rs-cloud-platform-ui
into dev_ren
parents
4b8e7a28
fb23c9f8
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
565 additions
and
91 deletions
+565
-91
index.js
src/api/website/aboutUs/index.js
+11
-3
index.js
src/api/website/order/index.js
+11
-0
complaint.vue
src/views/contactService/complaint.vue
+39
-0
contact.vue
src/views/contactService/contact.vue
+39
-0
dealDialog.vue
src/views/contactService/dealDialog.vue
+107
-0
feedback.vue
src/views/contactService/feedback.vue
+39
-0
index.vue
src/views/orderManagement/orderList/index.vue
+49
-14
index.vue
src/views/webSiteManagement/aboutUs/index.vue
+199
-10
index.vue
...eManagement/industryApplication/applicationCate/index.vue
+4
-1
index.vue
...ement/industryApplication/transactionProtection/index.vue
+2
-2
index.vue
...s/webSiteManagement/newsCategory/nebulaDynamics/index.vue
+65
-61
No files found.
src/api/website/aboutUs/index.js
View file @
9940b231
/*
* @Author: Jenkins
* @Date: 2020-12-15 16:00:02
* @LastEditTime: 2020-12-21 14:26:39
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \rs-cloud-platform-ui\src\api\website\aboutUs\index.js
*/
import
fetch
from
'utils/fetch'
;
import
fetch
from
'utils/fetch'
;
// 获取详情
// 获取详情
export
function
getC
ompanyInfo
(
params
)
{
export
function
c
ompanyInfo
(
params
)
{
return
fetch
({
return
fetch
({
url
:
"/api/website/companyInfo"
,
url
:
"/api/website/companyInfo"
,
method
:
'get'
,
method
:
'get'
,
...
@@ -10,9 +18,9 @@ export function getCompanyInfo(params) {
...
@@ -10,9 +18,9 @@ export function getCompanyInfo(params) {
}
}
//编辑详情
//编辑详情
export
function
setCompanyInfo
(
params
){
export
function
addUpdate
(
params
){
return
fetch
({
return
fetch
({
url
:
"/api/website/companyInfo/addUpdate
/
"
,
url
:
"/api/website/companyInfo/addUpdate"
,
method
:
'post'
,
method
:
'post'
,
data
:
params
data
:
params
})
})
...
...
src/api/website/order/index.js
View file @
9940b231
...
@@ -89,3 +89,14 @@ export function getCompanyInfoByType(query) {
...
@@ -89,3 +89,14 @@ export function getCompanyInfoByType(query) {
params
:
query
params
:
query
});
});
}
}
/**
* 回复
*/
export
function
feedbackInfoUpdate
(
query
)
{
return
fetch
({
url
:
'api/website/feedbackInfo/updateObj'
,
method
:
'post'
,
data
:
query
});
}
src/views/contactService/complaint.vue
View file @
9940b231
...
@@ -26,6 +26,21 @@
...
@@ -26,6 +26,21 @@
{{
scope
.
row
.
content
}}
{{
scope
.
row
.
content
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"回复内容"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
responseInfo
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"!scope.row.responseInfo"
size=
"small"
class=
"el-button el-button--text el-button--small"
@
click=
"handleDeal(scope.row)"
>
回复
</el-button>
</
template
>
</el-table-column>
<!-- <el-table-column align="center" label="状态">-->
<!-- <el-table-column align="center" label="状态">-->
<!-- <template slot-scope="scope">-->
<!-- <template slot-scope="scope">-->
<!-- <!– 根据状态获取对应中文 –>-->
<!-- <!– 根据状态获取对应中文 –>-->
...
@@ -39,13 +54,19 @@
...
@@ -39,13 +54,19 @@
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
</div>
</div>
</div>
</div>
<!-- 回复 -->
<deal-dialog
v-if=
"dealVisible"
:one-row=
"oneRow"
v-on:dealEvent=
"dealEvent"
></deal-dialog>
</div>
</div>
</template>
</template>
<
script
type=
"javascript"
>
<
script
type=
"javascript"
>
import
dealDialog
from
"./dealDialog"
;
import
{
feedbackInfoList
}
from
'api/userManagement/index'
import
{
feedbackInfoList
}
from
'api/userManagement/index'
import
{
timestamp2Date
}
from
'@/utils/dateUtils'
;
import
{
timestamp2Date
}
from
'@/utils/dateUtils'
;
export
default
{
export
default
{
name
:
'userManagement'
,
name
:
'userManagement'
,
components
:
{
dealDialog
},
computed
:{
computed
:{
getStatus
(
status
)
{
getStatus
(
status
)
{
return
(
status
)
=>
{
return
(
status
)
=>
{
...
@@ -70,6 +91,8 @@
...
@@ -70,6 +91,8 @@
limit
:
20
,
limit
:
20
,
type
:
3
//1、联系客服,2、意见反馈,3、订单反馈
type
:
3
//1、联系客服,2、意见反馈,3、订单反馈
},
},
oneRow
:
{},
// 当前操作项
dealVisible
:
false
,
// 回复弹窗
invoiceDialogVisible
:
false
,
// 查看发票弹窗
invoiceDialogVisible
:
false
,
// 查看发票弹窗
addressDialogVisible
:
false
// 查看地址弹窗
addressDialogVisible
:
false
// 查看地址弹窗
}
}
...
@@ -85,6 +108,22 @@
...
@@ -85,6 +108,22 @@
this
.
listQuery
.
page
=
1
this
.
listQuery
.
page
=
1
this
.
getList
()
// 获取用户列表
this
.
getList
()
// 获取用户列表
},
},
/**
* 回复
*/
handleDeal
(
row
){
this
.
oneRow
=
row
this
.
dealVisible
=
true
},
/**
* 回复-返回
*/
dealEvent
(
e
){
this
.
dealVisible
=
false
if
(
e
){
this
.
getList
()
}
},
/**
/**
* 查看发票-返回界面
* 查看发票-返回界面
*/
*/
...
...
src/views/contactService/contact.vue
View file @
9940b231
...
@@ -25,6 +25,21 @@
...
@@ -25,6 +25,21 @@
{{
scope
.
row
.
content
}}
{{
scope
.
row
.
content
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"回复内容"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
responseInfo
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"!scope.row.responseInfo"
size=
"small"
class=
"el-button el-button--text el-button--small"
@
click=
"handleDeal(scope.row)"
>
回复
</el-button>
</
template
>
</el-table-column>
<!-- <el-table-column align="center" label="状态">-->
<!-- <el-table-column align="center" label="状态">-->
<!-- <template slot-scope="scope">-->
<!-- <template slot-scope="scope">-->
<!-- <!– 根据状态获取对应中文 –>-->
<!-- <!– 根据状态获取对应中文 –>-->
...
@@ -38,9 +53,12 @@
...
@@ -38,9 +53,12 @@
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
</div>
</div>
</div>
</div>
<!-- 回复 -->
<deal-dialog
v-if=
"dealVisible"
:one-row=
"oneRow"
v-on:dealEvent=
"dealEvent"
></deal-dialog>
</div>
</div>
</template>
</template>
<
script
type=
"javascript"
>
<
script
type=
"javascript"
>
import
dealDialog
from
"./dealDialog"
;
import
{
feedbackInfoList
}
from
'api/userManagement/index'
import
{
feedbackInfoList
}
from
'api/userManagement/index'
import
{
timestamp2Date
}
from
'@/utils/dateUtils'
;
import
{
timestamp2Date
}
from
'@/utils/dateUtils'
;
export
default
{
export
default
{
...
@@ -58,6 +76,9 @@
...
@@ -58,6 +76,9 @@
}
}
},
},
},
},
components
:
{
dealDialog
},
data
()
{
data
()
{
return
{
return
{
times
:
[],
times
:
[],
...
@@ -69,6 +90,8 @@
...
@@ -69,6 +90,8 @@
limit
:
20
,
limit
:
20
,
type
:
1
//1、联系客服,2、意见反馈,3、订单反馈
type
:
1
//1、联系客服,2、意见反馈,3、订单反馈
},
},
oneRow
:
{},
// 当前操作项
dealVisible
:
false
,
// 回复弹窗
invoiceDialogVisible
:
false
,
// 查看发票弹窗
invoiceDialogVisible
:
false
,
// 查看发票弹窗
addressDialogVisible
:
false
// 查看地址弹窗
addressDialogVisible
:
false
// 查看地址弹窗
}
}
...
@@ -84,6 +107,22 @@
...
@@ -84,6 +107,22 @@
this
.
listQuery
.
page
=
1
this
.
listQuery
.
page
=
1
this
.
getList
()
// 获取用户列表
this
.
getList
()
// 获取用户列表
},
},
/**
* 回复
*/
handleDeal
(
row
){
this
.
oneRow
=
row
this
.
dealVisible
=
true
},
/**
* 回复-返回
*/
dealEvent
(
e
){
this
.
dealVisible
=
false
if
(
e
){
this
.
getList
()
}
},
/**
/**
* 查看发票-返回界面
* 查看发票-返回界面
*/
*/
...
...
src/views/contactService/dealDialog.vue
0 → 100644
View file @
9940b231
<
template
>
<el-dialog
title=
"回复"
:visible
.
sync=
"isVisible"
width=
"600px"
class=
"send-main"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-row>
<el-form-item
label=
"回复内容"
prop=
"responseInfo"
>
<el-input
type=
"textarea"
v-model=
"form.responseInfo"
placeholder=
"请输入回复内容"
:maxlength=
"400"
></el-input>
</el-form-item>
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
type=
"primary"
v-if=
"!isClick"
@
click=
"okSend('form')"
>
确 定
</el-button>
<el-button
type=
"primary"
v-else
style=
"opacity: 0.6;"
disabled
>
确 定
</el-button>
</div>
</el-dialog>
</
template
>
<
script
type=
"javascript"
>
import
{
feedbackInfoUpdate
}
from
'api/website/order/index'
export
default
{
props
:
[
'oneRow'
],
name
:
'dealDialog'
,
data
()
{
return
{
isClick
:
false
,
// 是否点击了发货
rules
:
{
responseInfo
:
{
required
:
true
,
message
:
'请输入回复内容'
,
trigger
:
'blur'
}
},
form
:
{
id
:
this
.
oneRow
.
id
,
responseInfo
:
''
// 回复内容
},
isVisible
:
false
,
}
},
watch
:
{
isVisible
(
newValue
,
oldValue
)
{
if
(
!
newValue
)
{
this
.
$emit
(
'dealEvent'
,
false
)
}
}
},
mounted
()
{
this
.
isVisible
=
true
},
methods
:
{
/**
* 弹框-取消
* */
cancel
()
{
this
.
$emit
(
'dealEvent'
,
false
)
},
/**
* 回复
*/
okSend
(
formName
)
{
let
_this
=
this
if
(
this
.
isClick
){
return
}
this
.
isClick
=
true
setTimeout
(
function
(){
_this
.
isClick
=
false
},
2000
)
const
set
=
this
.
$refs
;
set
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
feedbackInfoUpdate
(
this
.
form
).
then
((
response
)
=>
{
if
(
response
.
status
==
200
){
this
.
$notify
({
title
:
"成功"
,
message
:
"操作成功"
,
type
:
"success"
,
duration
:
2000
});
this
.
$emit
(
'dealEvent'
,
true
)
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
response
.
message
,
type
:
'error'
,
duration
:
2000
})
}
});
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
>
.send-main
{
.send-info
{
border
:
1px
solid
#eee
;
padding
:
20px
;
margin-bottom
:
20px
;
margin-top
:
20px
;
}
.invoice-item
{
padding
:
20px
;
border
:
1px
solid
#eee
;
.invoice-item-text
{
margin-top
:
10px
;
}
}
}
</
style
>
src/views/contactService/feedback.vue
View file @
9940b231
...
@@ -25,6 +25,21 @@
...
@@ -25,6 +25,21 @@
{{
scope
.
row
.
content
}}
{{
scope
.
row
.
content
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"回复内容"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
responseInfo
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"!scope.row.responseInfo"
size=
"small"
class=
"el-button el-button--text el-button--small"
@
click=
"handleDeal(scope.row)"
>
回复
</el-button>
</
template
>
</el-table-column>
<!-- <el-table-column align="center" label="状态">-->
<!-- <el-table-column align="center" label="状态">-->
<!-- <template slot-scope="scope">-->
<!-- <template slot-scope="scope">-->
<!-- <!– 根据状态获取对应中文 –>-->
<!-- <!– 根据状态获取对应中文 –>-->
...
@@ -38,13 +53,19 @@
...
@@ -38,13 +53,19 @@
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
</div>
</div>
</div>
</div>
<!-- 回复 -->
<deal-dialog
v-if=
"dealVisible"
:one-row=
"oneRow"
v-on:dealEvent=
"dealEvent"
></deal-dialog>
</div>
</div>
</template>
</template>
<
script
type=
"javascript"
>
<
script
type=
"javascript"
>
import
dealDialog
from
"./dealDialog"
;
import
{
feedbackInfoList
}
from
'api/userManagement/index'
import
{
feedbackInfoList
}
from
'api/userManagement/index'
import
{
timestamp2Date
}
from
'@/utils/dateUtils'
;
import
{
timestamp2Date
}
from
'@/utils/dateUtils'
;
export
default
{
export
default
{
name
:
'userManagement'
,
name
:
'userManagement'
,
components
:
{
dealDialog
},
computed
:{
computed
:{
getStatus
(
status
)
{
getStatus
(
status
)
{
return
(
status
)
=>
{
return
(
status
)
=>
{
...
@@ -69,6 +90,8 @@
...
@@ -69,6 +90,8 @@
limit
:
20
,
limit
:
20
,
type
:
2
//1、联系客服,2、意见反馈,3、订单反馈
type
:
2
//1、联系客服,2、意见反馈,3、订单反馈
},
},
oneRow
:
{},
// 当前操作项
dealVisible
:
false
,
// 回复弹窗
invoiceDialogVisible
:
false
,
// 查看发票弹窗
invoiceDialogVisible
:
false
,
// 查看发票弹窗
addressDialogVisible
:
false
// 查看地址弹窗
addressDialogVisible
:
false
// 查看地址弹窗
}
}
...
@@ -138,6 +161,22 @@
...
@@ -138,6 +161,22 @@
handleAddress
(){
handleAddress
(){
this
.
addressDialogVisible
=
true
this
.
addressDialogVisible
=
true
},
},
/**
* 回复
*/
handleDeal
(
row
){
this
.
oneRow
=
row
this
.
dealVisible
=
true
},
/**
* 回复-返回
*/
dealEvent
(
e
){
this
.
dealVisible
=
false
if
(
e
){
this
.
getList
()
}
},
/**
/**
* 清除搜索
* 清除搜索
*/
*/
...
...
src/views/orderManagement/orderList/index.vue
View file @
9940b231
...
@@ -24,32 +24,50 @@
...
@@ -24,32 +24,50 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"订单状态"
>
<el-select
filterable
v-model=
"listQuery.status"
placeholder=
"请选择"
>
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
<el-option
v-for=
"item in orderStatusList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<!--
<el-col
:span=
"8"
>
-->
<!--
<el-form-item
label=
"商品类型"
>
-->
<!--
<el-select
filterable
v-model=
"listQuery.type"
placeholder=
"请选择"
>
-->
<!--
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
-->
<!--
<el-option
:key=
"1"
label=
"标准数据"
:value=
"1"
></el-option>
-->
<!--
<el-option
:key=
"2"
label=
"影像图库"
:value=
"2"
></el-option>
-->
<!--
<el-option
:key=
"3"
label=
"行业应用"
:value=
"3"
></el-option>
-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
<!--
</el-col>
-->
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"
商品类型
"
>
<el-form-item
label=
"
交付方式
"
>
<el-select
filterable
v-model=
"listQuery.
t
ype"
placeholder=
"请选择"
>
<el-select
filterable
v-model=
"listQuery.
sendT
ype"
placeholder=
"请选择"
>
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
<el-option
:key=
"1"
label=
"标准数据"
:value=
"1"
></el-option>
<el-option
:key=
"1"
label=
"线上"
:value=
"1"
></el-option>
<el-option
:key=
"2"
label=
"全部"
:value=
"2"
></el-option>
<el-option
:key=
"2"
label=
"线下"
:value=
"2"
></el-option>
<el-option
:key=
"3"
label=
"全部"
:value=
"3"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"
订单状态
"
>
<el-form-item
label=
"
是否定制
"
>
<el-select
filterable
v-model=
"listQuery.
status
"
placeholder=
"请选择"
>
<el-select
filterable
v-model=
"listQuery.
type
"
placeholder=
"请选择"
>
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
<el-option
v-for=
"item in orderStatusList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
<el-option
:key=
"1"
label=
"否"
:value=
"1"
></el-option>
<el-option
:key=
"2"
label=
"是"
:value=
"2"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"
付款状态
"
>
<el-form-item
label=
"
是否开发票
"
>
<el-select
filterable
v-model=
"listQuery.
pay
Status"
placeholder=
"请选择"
>
<el-select
filterable
v-model=
"listQuery.
invoice
Status"
placeholder=
"请选择"
>
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
<el-option
:key=
"undefined"
label=
"全部"
:value=
"undefined"
></el-option>
<el-option
:key=
"1"
label=
"
已支付"
:value=
"1
"
></el-option>
<el-option
:key=
"1"
label=
"
是"
:value=
"2
"
></el-option>
<el-option
:key=
"2"
label=
"
未支付"
:value=
"2
"
></el-option>
<el-option
:key=
"2"
label=
"
否"
:value=
"1
"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -91,7 +109,11 @@
...
@@ -91,7 +109,11 @@
<div
class=
"flex-aic-jcb"
style=
"width: 100%;"
>
<div
class=
"flex-aic-jcb"
style=
"width: 100%;"
>
<div
class=
"flex-aic"
>
<div
class=
"flex-aic"
>
<img
style=
"width: 84px;height: 62px;border-radius: 8px;object-fit: cover;margin-right: 6px;"
:src=
"iitem.itemPic"
>
<img
style=
"width: 84px;height: 62px;border-radius: 8px;object-fit: cover;margin-right: 6px;"
:src=
"iitem.itemPic"
>
<span
v-if=
"iitem.type != 1"
>
{{
iitem
.
name
}}
</span>
<div
v-if=
"iitem.type != 1"
>
<p>
{{
iitem
.
name
}}
</p>
<p
v-if=
"iitem.type==2"
>
尺寸:
{{
iitem
.
fileWidth
}}
</p>
<p
v-if=
"iitem.type==3"
>
类别:
{{
iitem
.
firstTitle
}}
</p>
</div>
<div
v-else
>
<div
v-else
>
<p>
卫星:
{{
iitem
.
detailJson
.
imageSatelliteType
}}
</p>
<p>
卫星:
{{
iitem
.
detailJson
.
imageSatelliteType
}}
</p>
<p>
传感器:
{{
iitem
.
detailJson
.
imageSensorType
}}
</p>
<p>
传感器:
{{
iitem
.
detailJson
.
imageSensorType
}}
</p>
...
@@ -99,7 +121,7 @@
...
@@ -99,7 +121,7 @@
<p>
云量:
{{
iitem
.
detailJson
.
imageCloudage
}}
</p>
<p>
云量:
{{
iitem
.
detailJson
.
imageCloudage
}}
</p>
</div>
</div>
</div>
</div>
<p
style=
"padding-right: 10px;"
>
{{
iitem
.
type
==
1
?
'标准数据'
:
iitem
.
type
==
2
?
'行业应用'
:
iitem
.
type
==
3
?
'影像图库'
:
iitem
.
type
}}
</p>
<p
style=
"padding-right: 10px;"
>
{{
iitem
.
type
==
1
?
'标准数据'
:
iitem
.
type
==
3
?
'行业应用'
:
iitem
.
type
==
2
?
'影像图库'
:
iitem
.
type
}}
</p>
</div>
</div>
</div>
</div>
</td>
</td>
...
@@ -232,6 +254,9 @@
...
@@ -232,6 +254,9 @@
payStatus
:
undefined
,
// 支付状态: 1、已支付,2、未支付
payStatus
:
undefined
,
// 支付状态: 1、已支付,2、未支付
keywords
:
undefined
,
// 订单搜索
keywords
:
undefined
,
// 订单搜索
status
:
undefined
,
// 订单状态:0、定制订单无价格 1--创建订单,2--待付款,3--已支付,4--已发货, 5--已收货, 6、已完成 -1、删除,-2、取消, -3 退款
status
:
undefined
,
// 订单状态:0、定制订单无价格 1--创建订单,2--待付款,3--已支付,4--已发货, 5--已收货, 6、已完成 -1、删除,-2、取消, -3 退款
invoiceStatus
:
undefined
,
// 发票状态: 1、未开发票,2、已开发票, 3、已发货, 4、已收货、5、退回, 6、已完成
type
:
undefined
,
// 1、普通订单,2、定制订单
sendType
:
undefined
,
// 配送方式:1、线上配送,2、快递配送
},
},
form
:{
form
:{
auditStatus
:
undefined
,
// 审核状态: 1、审核通过,2、审核拒绝
auditStatus
:
undefined
,
// 审核状态: 1、审核通过,2、审核拒绝
...
@@ -428,6 +453,13 @@
...
@@ -428,6 +453,13 @@
if
(
item
.
orderItemList
){
if
(
item
.
orderItemList
){
item
.
orderItemList
.
map
(
function
(
iitem
){
item
.
orderItemList
.
map
(
function
(
iitem
){
iitem
.
detailJson
=
iitem
.
detailJson
?
JSON
.
parse
(
iitem
.
detailJson
)
:
{}
iitem
.
detailJson
=
iitem
.
detailJson
?
JSON
.
parse
(
iitem
.
detailJson
)
:
{}
if
(
iitem
.
type
==
2
){
// 影像图库-尺寸
iitem
.
fileWidth
=
iitem
.
detailJson
.
imageInfoRelationList
&&
iitem
.
detailJson
.
imageInfoRelationList
.
length
>
0
?
iitem
.
detailJson
.
imageInfoRelationList
[
0
].
fileWidth
:
''
}
if
(
iitem
.
type
==
3
){
// 行业应用-类别
iitem
.
firstTitle
=
iitem
.
detailJson
.
firstTitle
?
iitem
.
detailJson
.
firstTitle
:
''
}
if
(
iitem
.
type
==
1
)
{
if
(
iitem
.
type
==
1
)
{
// 标准数据
// 标准数据
iitem
.
imageResolutionStr
=
iitem
.
detailJson
.
imageResolution
?
iitem
.
detailJson
.
imageResolution
.
replace
(
/{/g
,
""
):
''
iitem
.
imageResolutionStr
=
iitem
.
detailJson
.
imageResolution
?
iitem
.
detailJson
.
imageResolution
.
replace
(
/{/g
,
""
):
''
...
@@ -460,6 +492,9 @@
...
@@ -460,6 +492,9 @@
payStatus
:
undefined
,
// 支付状态: 1、已支付,2、未支付
payStatus
:
undefined
,
// 支付状态: 1、已支付,2、未支付
keywords
:
undefined
,
// 订单搜索
keywords
:
undefined
,
// 订单搜索
status
:
undefined
,
// 订单状态:0、定制订单无价格 1--创建订单,2--待付款,3--已支付,4--已发货, 5--已收货, 6、已完成 -1、删除,-2、取消, -3 退款
status
:
undefined
,
// 订单状态:0、定制订单无价格 1--创建订单,2--待付款,3--已支付,4--已发货, 5--已收货, 6、已完成 -1、删除,-2、取消, -3 退款
invoiceStatus
:
undefined
,
// 发票状态: 1、未开发票,2、已开发票, 3、已发货, 4、已收货、5、退回, 6、已完成
type
:
undefined
,
// 1、普通订单,2、定制订单
sendType
:
undefined
,
// 配送方式:1、线上配送,2、快递配送
};
};
this
.
getList
();
this
.
getList
();
},
},
...
...
src/views/webSiteManagement/aboutUs/index.vue
View file @
9940b231
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2020-12-01 09:07:41
* @Date: 2020-12-01 09:07:41
* @LastEditTime: 202
0-12-18 13:19:25
* @LastEditTime: 202
1-01-06 11:26:39
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \rs-cloud\src\views\webSiteManagement\aboutUs.vue
* @FilePath: \rs-cloud\src\views\webSiteManagement\aboutUs.vue
...
@@ -71,6 +71,76 @@
...
@@ -71,6 +71,76 @@
<kind-editor
id=
"editor_id"
:content
.
sync=
"form.intro"
:afterChange=
"afterChange()"
:loadStyleMode=
"false"
@
on-content-change=
"onContentChange"
></kind-editor>
<kind-editor
id=
"editor_id"
:content
.
sync=
"form.intro"
:afterChange=
"afterChange()"
:loadStyleMode=
"false"
@
on-content-change=
"onContentChange"
></kind-editor>
</el-col>
</el-col>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图片"
>
<div
class=
"flex-aic"
>
<el-upload
class=
"avatar-uploader1"
action=
"https://jsonplaceholder.typicode.com/posts/"
list-type=
"picture-card"
:show-file-list=
"false"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-success=
"handleSuccess1"
>
<img
v-if=
"form.image1"
:src=
"form.image1"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
<div
class=
"flex-fdc"
>
<div
class=
"flex-aic"
>
<el-upload
class=
"avatar-uploader2"
action=
"https://jsonplaceholder.typicode.com/posts/"
list-type=
"picture-card"
:show-file-list=
"false"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-success=
"handleSuccess2"
>
<img
v-if=
"form.image2"
:src=
"form.image2"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
<el-upload
class=
"avatar-uploader2"
action=
"https://jsonplaceholder.typicode.com/posts/"
list-type=
"picture-card"
:show-file-list=
"false"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-success=
"handleSuccess3"
>
<img
v-if=
"form.image3"
:src=
"form.image3"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
<el-upload
class=
"avatar-uploader2"
action=
"https://jsonplaceholder.typicode.com/posts/"
list-type=
"picture-card"
:show-file-list=
"false"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-success=
"handleSuccess4"
>
<img
v-if=
"form.image4"
:src=
"form.image4"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</div>
<div
class=
"flex-aic"
>
<el-upload
class=
"avatar-uploader3"
action=
"https://jsonplaceholder.typicode.com/posts/"
list-type=
"picture-card"
:show-file-list=
"false"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-success=
"handleSuccess5"
>
<img
v-if=
"form.image5"
:src=
"form.image5"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
<el-upload
class=
"avatar-uploader4"
action=
"https://jsonplaceholder.typicode.com/posts/"
list-type=
"picture-card"
:show-file-list=
"false"
:action=
"BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-success=
"handleSuccess6"
>
<img
v-if=
"form.image6"
:src=
"form.image6"
class=
"avatar"
>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</div>
</div>
</div>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button>
取消
</el-button>
<el-button>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
确定
</el-button>
...
@@ -80,14 +150,11 @@
...
@@ -80,14 +150,11 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
type=
"javascript"
>
import
{
getCompanyInfo
,
setCompanyInfo
,
}
from
"@/api/website/aboutUs/index"
;
import
KindEditor
from
"@/components/Kindeditor"
;
import
KindEditor
from
"@/components/Kindeditor"
;
import
loadBMap
from
'@/utils/loadBMap.js'
import
loadBMap
from
'@/utils/loadBMap.js'
import
{
addUpdate
,
companyInfo
}
from
"api/website/aboutUs"
import
{
addUpdate
,
companyInfo
}
from
"api/website/aboutUs"
import
{
objDeepCopy
}
from
"../../../utils"
;
export
default
{
export
default
{
name
:
"AboutUs"
,
name
:
"AboutUs"
,
components
:
{
components
:
{
...
@@ -97,6 +164,8 @@ export default {
...
@@ -97,6 +164,8 @@ export default {
return
{
return
{
zoom
:
15
,
//地图展示级别
zoom
:
15
,
//地图展示级别
showMap
:
false
,
showMap
:
false
,
BASE_API
:
process
.
env
.
BASE_API
,
fileList2
:
[],
//图片
form
:
{
form
:
{
id
:
undefined
,
id
:
undefined
,
phone
:
undefined
,
// 联系电话
phone
:
undefined
,
// 联系电话
...
@@ -104,6 +173,13 @@ export default {
...
@@ -104,6 +173,13 @@ export default {
address
:
undefined
,
// 地址
address
:
undefined
,
// 地址
lat
:
23.12005
,
lat
:
23.12005
,
lng
:
113.30765
,
lng
:
113.30765
,
image1
:
''
,
// 图片1
image2
:
''
,
// 图片2
image3
:
''
,
// 图片3
image4
:
''
,
// 图片4
image5
:
''
,
// 图片5
image6
:
''
,
// 图片6
bottomImgArr
:
[],
// 关于我们图片
intro
:
undefined
// 简介
intro
:
undefined
// 简介
},
},
rule
:
{
rule
:
{
...
@@ -138,6 +214,8 @@ export default {
...
@@ -138,6 +214,8 @@ export default {
trigger
:
"blur"
trigger
:
"blur"
},
},
},
},
dialogImageUrl
:
''
,
dialogVisible
:
false
,
map
:
''
,
//地图实例
map
:
''
,
//地图实例
mk
:
''
//Marker实例
mk
:
''
//Marker实例
};
};
...
@@ -235,6 +313,42 @@ export default {
...
@@ -235,6 +313,42 @@ export default {
},
},
afterChange
()
{
afterChange
()
{
},
/**
* banner上传
* */
handleSuccess1
(
res
,
file
){
this
.
form
.
image1
=
res
.
data
;
},
/**
* banner上传
* */
handleSuccess2
(
res
,
file
){
this
.
form
.
image2
=
res
.
data
;
},
/**
* banner上传
* */
handleSuccess3
(
res
,
file
){
this
.
form
.
image3
=
res
.
data
;
},
/**
* banner上传
* */
handleSuccess4
(
res
,
file
){
this
.
form
.
image4
=
res
.
data
;
},
/**
* banner上传
* */
handleSuccess5
(
res
,
file
){
this
.
form
.
image5
=
res
.
data
;
},
/**
* banner上传
* */
handleSuccess6
(
res
,
file
){
this
.
form
.
image6
=
res
.
data
;
},
},
/**
/**
* 关于我们-信息
* 关于我们-信息
...
@@ -249,7 +363,22 @@ export default {
...
@@ -249,7 +363,22 @@ export default {
address
:
res
.
data
.
address
,
// 地址
address
:
res
.
data
.
address
,
// 地址
lng
:
parseFloat
(
res
.
data
.
lng
),
// 经纬度
lng
:
parseFloat
(
res
.
data
.
lng
),
// 经纬度
lat
:
parseFloat
(
res
.
data
.
lat
),
// 经纬度
lat
:
parseFloat
(
res
.
data
.
lat
),
// 经纬度
intro
:
res
.
data
.
intro
// 简介
intro
:
res
.
data
.
intro
,
// 简介
bottomImgArr
:
res
.
data
.
bottomImgs
?
res
.
data
.
bottomImgs
.
split
(
','
):
[],
image1
:
''
,
// 图片1
image2
:
''
,
// 图片2
image3
:
''
,
// 图片3
image4
:
''
,
// 图片4
image5
:
''
,
// 图片5
image6
:
''
// 图片6
}
if
(
this
.
form
.
bottomImgArr
.
length
>=
6
){
this
.
form
.
image1
=
this
.
form
.
bottomImgArr
[
0
]
this
.
form
.
image2
=
this
.
form
.
bottomImgArr
[
1
]
this
.
form
.
image3
=
this
.
form
.
bottomImgArr
[
2
]
this
.
form
.
image4
=
this
.
form
.
bottomImgArr
[
3
]
this
.
form
.
image5
=
this
.
form
.
bottomImgArr
[
4
]
this
.
form
.
image6
=
this
.
form
.
bottomImgArr
[
5
]
}
}
this
.
showMap
=
true
this
.
showMap
=
true
}
else
{
}
else
{
...
@@ -266,9 +395,22 @@ export default {
...
@@ -266,9 +395,22 @@ export default {
* 关于我们-数据保存
* 关于我们-数据保存
*/
*/
onSubmit
()
{
onSubmit
()
{
let
params
=
objDeepCopy
(
this
.
form
)
let
bottomImgArr
=
[]
bottomImgArr
.
push
(
this
.
form
.
image1
)
bottomImgArr
.
push
(
this
.
form
.
image2
)
bottomImgArr
.
push
(
this
.
form
.
image3
)
bottomImgArr
.
push
(
this
.
form
.
image4
)
bottomImgArr
.
push
(
this
.
form
.
image5
)
bottomImgArr
.
push
(
this
.
form
.
image6
)
if
(
bottomImgArr
.
length
!=
6
){
this
.
$message
.
warning
(
'请上传6张图片!'
)
return
}
params
.
bottomImgs
=
bottomImgArr
.
join
(
','
)
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
addUpdate
(
this
.
form
).
then
((
res
)
=>
{
addUpdate
(
params
).
then
((
res
)
=>
{
if
(
res
.
status
==
200
){
if
(
res
.
status
==
200
){
this
.
$notify
({
this
.
$notify
({
title
:
"成功"
,
title
:
"成功"
,
...
@@ -297,8 +439,6 @@ export default {
...
@@ -297,8 +439,6 @@ export default {
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
#AboutUs
{
#AboutUs
{
margin
:
0
1%
0
1%
;
width
:
98%
;
height
:
auto
;
height
:
auto
;
.top
{
.top
{
width
:
100%
;
width
:
100%
;
...
@@ -323,8 +463,57 @@ export default {
...
@@ -323,8 +463,57 @@ export default {
.content
{
.content
{
margin
:
1%
1%
0
1%
;
margin
:
1%
1%
0
1%
;
width
:
98%
;
width
:
98%
;
padding-bottom
:
10px
;
height
:
calc
(
99%
-
68px
);
height
:
calc
(
99%
-
68px
);
}
}
.avatar-uploader1
/
deep
/
.el-upload--picture-card
{
width
:
475px
;
height
:
370px
;
line-height
:
370px
;
margin-right
:
13px
;
overflow
:
hidden
;
image
{
width
:
100%
;
height
:
auto
;
object-fit
:
cover
;
}
}
.avatar-uploader2
/
deep
/
.el-upload--picture-card
{
width
:
229px
;
height
:
165px
;
line-height
:
165px
;
margin-bottom
:
12px
;
margin-right
:
12px
;
overflow
:
hidden
;
image
{
width
:
100%
;
height
:
auto
;
object-fit
:
cover
;
}
}
.avatar-uploader3
/
deep
/
.el-upload--picture-card
{
width
:
400px
;
height
:
193px
;
line-height
:
193px
;
margin-right
:
12px
;
overflow
:
hidden
;
image
{
width
:
100%
;
height
:
auto
;
object-fit
:
cover
;
}
}
.avatar-uploader4
/
deep
/
.el-upload--picture-card
{
width
:
299px
;
height
:
193px
;
line-height
:
193px
;
margin-right
:
12px
;
overflow
:
hidden
;
image
{
width
:
100%
;
height
:
auto
;
object-fit
:
cover
;
}
}
#map-container
{
#map-container
{
width
:
45%
;
width
:
45%
;
height
:
250px
;
height
:
250px
;
...
...
src/views/webSiteManagement/industryApplication/applicationCate/index.vue
View file @
9940b231
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2020-12-02 10:27:53
* @Date: 2020-12-02 10:27:53
* @LastEditTime: 202
0-12-11 17:15:00
* @LastEditTime: 202
1-01-06 11:24:23
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 类别管理
* @Description: 类别管理
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\industryApplication\applicationList\index.vue
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\industryApplication\applicationList\index.vue
...
@@ -529,6 +529,9 @@ export default {
...
@@ -529,6 +529,9 @@ export default {
}
}
});
});
}
}
this
.
tableData
.
forEach
((
obj
,
index
)
=>
{
obj
.
index
=
((
this
.
typePagination
.
currentPage
-
1
)
*
this
.
typePagination
.
pageSize
)
+
(
++
index
)
})
}
}
},
},
// 删除类型
// 删除类型
...
...
src/views/webSiteManagement/industryApplication/transactionProtection/index.vue
View file @
9940b231
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2020-12-17 16:06:03
* @Date: 2020-12-17 16:06:03
* @LastEditTime: 2020-12-
18 13:15:37
* @LastEditTime: 2020-12-
25 13:09:29
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @Description: In User Settings Edit
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\industryApplication\transactionProtection\index.vue
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\industryApplication\transactionProtection\index.vue
...
@@ -696,7 +696,7 @@ export default {
...
@@ -696,7 +696,7 @@ export default {
.pagination
{
.pagination
{
margin
:
1%
1%
0
1%
;
margin
:
1%
1%
0
1%
;
width
:
98%
;
width
:
98%
;
height
:
auto
;
height
:
auto
;
}
}
}
}
</
style
>
</
style
>
src/views/webSiteManagement/newsCategory/nebulaDynamics/index.vue
View file @
9940b231
<!--
<!--
* @Author: Jenkins
* @Author: Jenkins
* @Date: 2020-12-01 09:54:12
* @Date: 2020-12-01 09:54:12
* @LastEditTime: 202
0-12-11 11:27:34
* @LastEditTime: 202
1-01-06 09:53:06
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 星云动态
* @Description: 星云动态
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
>
>
<el-table-column
label=
"序号"
align=
"center"
>
<el-table-column
label=
"序号"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
i
d
}}
</span>
<span>
{{
scope
.
row
.
i
ndex
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"类型名称"
align=
"center"
>
<el-table-column
label=
"类型名称"
align=
"center"
>
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
@
size-change=
"changeHandleSize"
@
size-change=
"changeHandleSize"
@
current-change=
"changeHandleCurrent"
@
current-change=
"changeHandleCurrent"
:current-page
.
sync=
"typePagination.currentPage"
:current-page
.
sync=
"typePagination.currentPage"
:page-sizes=
"[
2, 4, 6
]"
:page-sizes=
"[
6,8,10
]"
:page-size=
"typePagination.pageSize"
:page-size=
"typePagination.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"typePagination.total"
:total=
"typePagination.total"
...
@@ -237,13 +237,7 @@
...
@@ -237,13 +237,7 @@
</div>
</div>
<!-- 表格 -->
<!-- 表格 -->
<div
class=
"table"
>
<div
class=
"table"
>
<el-table
<el-table
:data=
"tableData"
border
fit
highlight-current-row
style=
"width: 100%"
>
:data=
"tableData"
border
fit
highlight-current-row
style=
"width: 100%"
>
<el-table-column
label=
"序号"
width=
"100"
align=
"center"
>
<el-table-column
label=
"序号"
width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
index
}}
</span>
<span>
{{
scope
.
row
.
index
}}
</span>
...
@@ -470,9 +464,9 @@ export default {
...
@@ -470,9 +464,9 @@ export default {
// },
// },
],
],
typePagination
:
{
typePagination
:
{
currentPage
:
1
,
// 当前页码
currentPage
:
1
,
// 当前页码
pageSize
:
2
,
// 每页查询数量
pageSize
:
6
,
// 每页查询数量
total
:
0
,
// 总记录数量
total
:
0
,
// 总记录数量
},
},
typeEditorVisible
:
false
,
typeEditorVisible
:
false
,
editorType
:
{},
// 编辑中的类型
editorType
:
{},
// 编辑中的类型
...
@@ -788,29 +782,32 @@ export default {
...
@@ -788,29 +782,32 @@ export default {
}
}
},
},
// 获取类型分页的表格数据
// 获取类型分页的表格数据
pullListNewsType
()
{
pullListNewsType
(){
// 先将当前类型表格数据清空
// 先将当前类型表格数据清空
this
.
tableType
=
[];
this
.
tableType
=
[]
// 获取分页新闻类型
// 获取分页新闻类型
getListnewsType
({
getListnewsType
({
page
:
this
.
typePagination
.
currentPage
,
page
:
this
.
typePagination
.
currentPage
,
limit
:
this
.
typePagination
.
pageSize
,
limit
:
this
.
typePagination
.
pageSize
,
name
:
""
,
name
:
""
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
"获取分页新闻类型=>"
,
res
);
console
.
log
(
"获取分页新闻类型=>"
,
res
);
if
(
res
.
status
==
200
)
{
if
(
res
.
status
==
200
){
this
.
typePagination
.
total
=
res
.
data
.
totalCount
;
this
.
typePagination
.
total
=
res
.
data
.
totalCount
res
.
data
.
data
.
forEach
((
element
)
=>
{
res
.
data
.
data
.
forEach
((
element
,
index
)
=>
{
// 未被删除的类型
// 未被删除的类型
if
(
element
.
isDel
==
0
)
{
if
(
element
.
isDel
==
0
){
this
.
tableType
.
push
({
this
.
tableType
.
push
({
id
:
element
.
id
,
index
:
(
this
.
typePagination
.
currentPage
-
1
)
*
this
.
typePagination
.
pageSize
+
index
+
1
,
name
:
element
.
nameCn
,
id
:
element
.
id
,
nameEn
:
element
.
nameEn
,
name
:
element
.
nameCn
,
sort
:
element
.
rank
,
nameEn
:
element
.
nameEn
,
status
:
element
.
status
,
sort
:
element
.
rank
,
isDel
:
element
.
isDel
,
status
:
element
.
status
,
});
isDel
:
element
.
isDel
})
}
})
}
}
});
});
}
}
...
@@ -952,31 +949,38 @@ export default {
...
@@ -952,31 +949,38 @@ export default {
this
.
typeEditorVisible
=
false
;
this
.
typeEditorVisible
=
false
;
},
},
// 修改类型
// 修改类型
confirmEditor
()
{
confirmEditor
(){
// 中文对应
// 中文对应
if
(
if
(
/^
(?:[\u
3400-
\u
4DB5
\u
4E00-
\u
9FEA
\u
FA0E
\u
FA0F
\u
FA11
\u
FA13
\u
FA14
\u
FA1F
\u
FA21
\u
FA23
\u
FA24
\u
FA27-
\u
FA29
]
|
[\u
D840-
\u
D868
\u
D86A-
\u
D86C
\u
D86F-
\u
D872
\u
D874-
\u
D879
][\u
DC00-
\u
DFFF
]
|
\u
D869
[\u
DC00-
\u
DED6
\u
DF00-
\u
DFFF
]
|
\u
D86D
[\u
DC00-
\u
DF34
\u
DF40-
\u
DFFF
]
|
\u
D86E
[\u
DC00-
\u
DC1D
\u
DC20-
\u
DFFF
]
|
\u
D873
[\u
DC00-
\u
DEA1
\u
DEB0-
\u
DFFF
]
|
\u
D87A
[\u
DC00-
\u
DFE0
])
+$/
.
test
(
this
.
editorType
.
name
)){
/^
(?:[\u
3400-
\u
4DB5
\u
4E00-
\u
9FEA
\u
FA0E
\u
FA0F
\u
FA11
\u
FA13
\u
FA14
\u
FA1F
\u
FA21
\u
FA23
\u
FA24
\u
FA27-
\u
FA29
]
|
[\u
D840-
\u
D868
\u
D86A-
\u
D86C
\u
D86F-
\u
D872
\u
D874-
\u
D879
][\u
DC00-
\u
DFFF
]
|
\u
D869
[\u
DC00-
\u
DED6
\u
DF00-
\u
DFFF
]
|
\u
D86D
[\u
DC00-
\u
DF34
\u
DF40-
\u
DFFF
]
|
\u
D86E
[\u
DC00-
\u
DC1D
\u
DC20-
\u
DFFF
]
|
\u
D873
[\u
DC00-
\u
DEA1
\u
DEB0-
\u
DFFF
]
|
\u
D87A
[\u
DC00-
\u
DFE0
])
+$/
.
test
(
if
(
this
.
editorType
.
sort
>=
0
&&
this
.
editorType
.
sort
<
10000
){
this
.
editorType
.
name
// 上传修改
)
addUpdateNewsType
({
)
{
id
:
this
.
editorType
.
id
,
if
(
this
.
editorType
.
sort
>=
0
&&
this
.
editorType
.
sort
<
10000
)
{
nameCn
:
this
.
editorType
.
name
,
// 上传修改
nameEn
:
this
.
editorType
.
nameEn
,
addUpdateNewsType
({
rank
:
this
.
editorType
.
sort
,
id
:
this
.
editorType
.
id
,
status
:
this
.
editorType
.
status
,
// 1启用,2不启用
nameCn
:
this
.
editorType
.
name
,
isDel
:
this
.
editorType
.
isDel
,
// 0不删除,1删除
nameEn
:
this
.
editorType
.
nameEn
,
}).
then
(
res
=>
{
rank
:
this
.
editorType
.
sort
,
if
(
res
.
status
==
200
){
status
:
this
.
editorType
.
status
,
// 1启用,2不启用
this
.
$message
({
isDel
:
this
.
editorType
.
isDel
,
// 0不删除,1删除
message
:
'修改成功!!!'
,
});
type
:
'success'
this
.
$message
({
})
message
:
"修改成功!!!"
,
this
.
pullListNewsType
()
type
:
"success"
,
this
.
typeEditorVisible
=
false
});
}
else
{
this
.
pullListNewsType
();
this
.
$message
({
this
.
typeEditorVisible
=
false
;
message
:
'修改失败请稍后重试!!!'
,
}
else
{
type
:
'fail'
this
.
$message
.
error
(
"排序值不在指定范围,请输入正确的排序值!!!"
);
})
}
})
}
else
{
this
.
$message
.
error
(
'排序值不在指定范围,请输入正确的排序值!!!'
);
}
}
else
{
this
.
$message
.
error
(
'中文名称不正确!!!'
);
}
}
}
else
{
}
else
{
this
.
$message
.
error
(
"中文名称不正确!!!"
);
this
.
$message
.
error
(
"中文名称不正确!!!"
);
...
...
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