Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
H
HY占座系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
HY占座系统
提交
ce7e9792
提交
ce7e9792
编写于
1月 10, 2024
作者:
钟一霄
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完成:系统配置快捷评语;活动管理查看物资(树)、评论、轨迹;黑名单管理;
上级
951a8d22
变更
48
隐藏空白字符变更
内嵌
并排
正在显示
48 个修改的文件
包含
1121 行增加
和
245 行删除
+1121
-245
getApiActivityActivityCancel.d.ts
...api/controller/Activity/getApiActivityActivityCancel.d.ts
+15
-0
getApiActivityActivityCancel.js
src/api/controller/Activity/getApiActivityActivityCancel.js
+13
-0
getApiActivityActivityDel.d.ts
src/api/controller/Activity/getApiActivityActivityDel.d.ts
+15
-0
getApiActivityActivityDel.js
src/api/controller/Activity/getApiActivityActivityDel.js
+13
-0
getApiActivityGetActivityInfo.d.ts
...pi/controller/Activity/getApiActivityGetActivityInfo.d.ts
+1
-0
index.d.ts
src/api/controller/Activity/index.d.ts
+2
-1
index.js
src/api/controller/Activity/index.js
+2
-1
index.d.ts
src/api/controller/Common/index.d.ts
+0
-2
index.js
src/api/controller/Common/index.js
+0
-2
getApiFlowFlowPlaceDataOut.d.ts
src/api/controller/Flow/getApiFlowFlowPlaceDataOut.d.ts
+24
-0
getApiFlowFlowPlaceDataOut.js
src/api/controller/Flow/getApiFlowFlowPlaceDataOut.js
+13
-0
getApiFlowGetFlowAddTimeNum.d.ts
src/api/controller/Flow/getApiFlowGetFlowAddTimeNum.d.ts
+11
-0
getApiFlowGetFlowAddTimeNum.js
src/api/controller/Flow/getApiFlowGetFlowAddTimeNum.js
+8
-0
getApiFlowGetFlowCommodityTree.d.ts
src/api/controller/Flow/getApiFlowGetFlowCommodityTree.d.ts
+29
-0
getApiFlowGetFlowCommodityTree.js
src/api/controller/Flow/getApiFlowGetFlowCommodityTree.js
+13
-0
getApiFlowGetFlowPlaceHourList.d.ts
src/api/controller/Flow/getApiFlowGetFlowPlaceHourList.d.ts
+27
-0
getApiFlowGetFlowPlaceHourList.js
src/api/controller/Flow/getApiFlowGetFlowPlaceHourList.js
+14
-0
getApiFlowGetFlowPlaceSelect.d.ts
src/api/controller/Flow/getApiFlowGetFlowPlaceSelect.d.ts
+13
-0
getApiFlowGetFlowPlaceSelect.js
src/api/controller/Flow/getApiFlowGetFlowPlaceSelect.js
+14
-0
getApiFlowGetFlowPlaceTypeSelect.d.ts
...api/controller/Flow/getApiFlowGetFlowPlaceTypeSelect.d.ts
+14
-0
getApiFlowGetFlowPlaceTypeSelect.js
src/api/controller/Flow/getApiFlowGetFlowPlaceTypeSelect.js
+8
-0
getApiFlowGetFlowSelect.d.ts
src/api/controller/Flow/getApiFlowGetFlowSelect.d.ts
+8
-0
getApiFlowGetFlowSelect.js
src/api/controller/Flow/getApiFlowGetFlowSelect.js
+8
-0
getApiFlowGetFlowUserInfo.d.ts
src/api/controller/Flow/getApiFlowGetFlowUserInfo.d.ts
+3
-3
getApiFlowGetFlowUserInfo.js
src/api/controller/Flow/getApiFlowGetFlowUserInfo.js
+3
-3
index.d.ts
src/api/controller/Flow/index.d.ts
+11
-0
index.js
src/api/controller/Flow/index.js
+11
-0
postApiFlowFlowActivityApplyIns.d.ts
src/api/controller/Flow/postApiFlowFlowActivityApplyIns.d.ts
+12
-0
postApiFlowFlowActivityApplyIns.js
src/api/controller/Flow/postApiFlowFlowActivityApplyIns.js
+8
-0
postApiFlowFlowActivityConflict.d.ts
src/api/controller/Flow/postApiFlowFlowActivityConflict.d.ts
+12
-0
postApiFlowFlowActivityConflict.js
src/api/controller/Flow/postApiFlowFlowActivityConflict.js
+8
-0
postApiFlowFlowActivityPass.d.ts
src/api/controller/Flow/postApiFlowFlowActivityPass.d.ts
+12
-0
postApiFlowFlowActivityPass.js
src/api/controller/Flow/postApiFlowFlowActivityPass.js
+8
-0
getApiPlacePlaceDataOut.d.ts
src/api/controller/Place/getApiPlacePlaceDataOut.d.ts
+1
-0
index.d.ts
src/api/controller/index.d.ts
+1
-0
index.js
src/api/controller/index.js
+1
-0
Activity.d.ts
src/api/interface/apiTypes/Activity.d.ts
+1
-0
ActivityFlowRequest.d.ts
src/api/interface/apiTypes/ActivityFlowRequest.d.ts
+16
-0
ActivityFlowRequest.js
src/api/interface/apiTypes/ActivityFlowRequest.js
+1
-0
PlaceOutResponse.d.ts
src/api/interface/apiTypes/PlaceOutResponse.d.ts
+2
-0
index.d.ts
src/api/interface/index.d.ts
+7
-6
index.js
src/api/interface/index.js
+7
-6
5.png
src/assets/images/5.png
+0
-0
CEditModal.vue
src/components/CEditModal.vue
+4
-4
index.vue
src/pages/activityManagement/index.vue
+390
-3
index.vue
src/pages/blacklistManagement/index.vue
+206
-202
index.vue
src/pages/siteManagement/index.vue
+1
-1
index.vue
src/pages/systemConfiguration/index.vue
+130
-11
未找到文件。
src/api/controller/Activity/getApiActivityActivityCancel.d.ts
0 → 100644
浏览文件 @
ce7e9792
/**
* 活动取消
* /api/Activity/ActivityCancel
*/
export
declare
function
getApiActivityActivityCancel
(
params
:
GetApiActivityActivityCancelParams
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
string
;
}
>
;
interface
GetApiActivityActivityCancelParams
{
id
?:
string
;
}
export
{};
src/api/controller/Activity/getApiActivityActivityCancel.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 活动取消
* /api/Activity/ActivityCancel
*/
export
function
getApiActivityActivityCancel
(
params
)
{
const
paramsInput
=
{
id
:
params
.
id
,
};
return
request
.
get
(
`/api/Activity/ActivityCancel`
,
{
params
:
paramsInput
,
});
}
src/api/controller/Activity/getApiActivityActivityDel.d.ts
0 → 100644
浏览文件 @
ce7e9792
/**
* 活动删除
* /api/Activity/ActivityDel
*/
export
declare
function
getApiActivityActivityDel
(
params
:
GetApiActivityActivityDelParams
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
string
;
}
>
;
interface
GetApiActivityActivityDelParams
{
id
?:
string
;
}
export
{};
src/api/controller/Activity/getApiActivityActivityDel.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 活动删除
* /api/Activity/ActivityDel
*/
export
function
getApiActivityActivityDel
(
params
)
{
const
paramsInput
=
{
id
:
params
.
id
,
};
return
request
.
get
(
`/api/Activity/ActivityDel`
,
{
params
:
paramsInput
,
});
}
src/api/controller/Activity/getApiActivityGetActivityInfo.d.ts
浏览文件 @
ce7e9792
...
...
@@ -42,6 +42,7 @@ export declare function getApiActivityGetActivityInfo(params: GetApiActivityGetA
activity_name
:
string
;
is_evaluate
:
number
;
flow_id
:
string
;
flow_no
:
string
;
};
}
>
;
interface
GetApiActivityGetActivityInfoParams
{
...
...
src/api/controller/Activity/index.d.ts
浏览文件 @
ce7e9792
...
...
@@ -3,7 +3,8 @@ export * from "./postApiActivityGetActivityListByWxPlaceAdmin";
export
*
from
"
./postApiActivityGetActivityListByWxUser
"
;
export
*
from
"
./getApiActivityGetActivityInfo
"
;
export
*
from
"
./postApiActivityActivityDirectIns
"
;
export
*
from
"
./postApiActivityActivityApplyIns
"
;
export
*
from
"
./getApiActivityActivityCancel
"
;
export
*
from
"
./getApiActivityActivityDel
"
;
export
*
from
"
./getApiActivityActivityAdjustTimeOrPlaceSave
"
;
export
*
from
"
./getApiActivityGetParticipantList
"
;
export
*
from
"
./postApiActivityParticipantIns
"
;
...
...
src/api/controller/Activity/index.js
浏览文件 @
ce7e9792
...
...
@@ -3,7 +3,8 @@ export * from "./postApiActivityGetActivityListByWxPlaceAdmin";
export
*
from
"
./postApiActivityGetActivityListByWxUser
"
;
export
*
from
"
./getApiActivityGetActivityInfo
"
;
export
*
from
"
./postApiActivityActivityDirectIns
"
;
export
*
from
"
./postApiActivityActivityApplyIns
"
;
export
*
from
"
./getApiActivityActivityCancel
"
;
export
*
from
"
./getApiActivityActivityDel
"
;
export
*
from
"
./getApiActivityActivityAdjustTimeOrPlaceSave
"
;
export
*
from
"
./getApiActivityGetParticipantList
"
;
export
*
from
"
./postApiActivityParticipantIns
"
;
...
...
src/api/controller/Common/index.d.ts
浏览文件 @
ce7e9792
...
...
@@ -6,5 +6,3 @@ export * from "./getApiCommonGetPlaceTypeSelect";
export
*
from
"
./getApiCommonGetPlaceSelect
"
;
export
*
from
"
./getApiCommonGetKeyByActivityList
"
;
export
*
from
"
./getApiCommonGetSexSelect
"
;
export
*
from
"
./getApiCommonGetFlowSelect
"
;
export
*
from
"
./getApiCommonGetUserInfo
"
;
src/api/controller/Common/index.js
浏览文件 @
ce7e9792
...
...
@@ -6,5 +6,3 @@ export * from "./getApiCommonGetPlaceTypeSelect";
export
*
from
"
./getApiCommonGetPlaceSelect
"
;
export
*
from
"
./getApiCommonGetKeyByActivityList
"
;
export
*
from
"
./getApiCommonGetSexSelect
"
;
export
*
from
"
./getApiCommonGetFlowSelect
"
;
export
*
from
"
./getApiCommonGetUserInfo
"
;
src/api/controller/Flow/getApiFlowFlowPlaceDataOut.d.ts
0 → 100644
浏览文件 @
ce7e9792
/**
* 场地带出字段
* /api/Flow/FlowPlaceDataOut
*/
export
declare
function
getApiFlowFlowPlaceDataOut
(
params
:
GetApiFlowFlowPlaceDataOutParams
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
{
place_id
:
string
;
place_name
:
string
;
place_code
:
string
;
sex
:
string
;
place_address
:
string
;
capacity
:
string
;
threshold
:
string
;
description
:
string
;
};
}
>
;
interface
GetApiFlowFlowPlaceDataOutParams
{
id
?:
string
;
}
export
{};
src/api/controller/Flow/getApiFlowFlowPlaceDataOut.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 场地带出字段
* /api/Flow/FlowPlaceDataOut
*/
export
function
getApiFlowFlowPlaceDataOut
(
params
)
{
const
paramsInput
=
{
id
:
params
.
id
,
};
return
request
.
get
(
`/api/Flow/FlowPlaceDataOut`
,
{
params
:
paramsInput
,
});
}
src/api/controller/Flow/getApiFlowGetFlowAddTimeNum.d.ts
0 → 100644
浏览文件 @
ce7e9792
/**
* 获取允许加时时间段个数
* /api/Flow/GetFlowAddTimeNum
*/
export
declare
function
getApiFlowGetFlowAddTimeNum
():
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
string
;
}
>
;
src/api/controller/Flow/getApiFlowGetFlowAddTimeNum.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 获取允许加时时间段个数
* /api/Flow/GetFlowAddTimeNum
*/
export
function
getApiFlowGetFlowAddTimeNum
()
{
return
request
.
get
(
`/api/Flow/GetFlowAddTimeNum`
);
}
src/api/controller/Flow/getApiFlowGetFlowCommodityTree.d.ts
0 → 100644
浏览文件 @
ce7e9792
/**
* 获取物资树
* /api/Flow/GetFlowCommodityTree
*/
export
declare
function
getApiFlowGetFlowCommodityTree
(
params
:
GetApiFlowGetFlowCommodityTreeParams
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
{
id
:
string
;
commodity_name
:
string
;
parent_id
:
string
;
place_type_id
:
string
;
place_type_name
:
string
;
file_id
:
string
;
is_enable
:
number
;
is_del
:
number
;
createby
:
string
;
createtime
:
string
;
modifyby
:
string
;
modify_time
:
string
;
children
:
any
[];
}[];
}
>
;
interface
GetApiFlowGetFlowCommodityTreeParams
{
place_type_id
?:
string
;
}
export
{};
src/api/controller/Flow/getApiFlowGetFlowCommodityTree.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 获取物资树
* /api/Flow/GetFlowCommodityTree
*/
export
function
getApiFlowGetFlowCommodityTree
(
params
)
{
const
paramsInput
=
{
place_type_id
:
params
.
place_type_id
,
};
return
request
.
get
(
`/api/Flow/GetFlowCommodityTree`
,
{
params
:
paramsInput
,
});
}
src/api/controller/Flow/getApiFlowGetFlowPlaceHourList.d.ts
0 → 100644
浏览文件 @
ce7e9792
/**
* 获取场地时间段
* /api/Flow/GetFlowPlaceHourList
*/
export
declare
function
getApiFlowGetFlowPlaceHourList
(
params
:
GetApiFlowGetFlowPlaceHourListParams
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
{
place_id
:
string
;
place_code
:
string
;
place_name
:
string
;
card
:
string
;
name
:
string
;
begin_time
:
string
;
end_time
:
string
;
time_section
:
string
;
occupy_flag
:
number
;
occupy_name
:
string
;
}[];
}
>
;
interface
GetApiFlowGetFlowPlaceHourListParams
{
place_id
:
string
;
day
:
string
;
}
export
{};
src/api/controller/Flow/getApiFlowGetFlowPlaceHourList.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 获取场地时间段
* /api/Flow/GetFlowPlaceHourList
*/
export
function
getApiFlowGetFlowPlaceHourList
(
params
)
{
const
paramsInput
=
{
place_id
:
params
.
place_id
,
day
:
params
.
day
,
};
return
request
.
get
(
`/api/Flow/GetFlowPlaceHourList`
,
{
params
:
paramsInput
,
});
}
src/api/controller/Flow/getApiFlowGetFlowPlaceSelect.d.ts
0 → 100644
浏览文件 @
ce7e9792
/**
* 场地类型带出场地下拉框
* /api/Flow/GetFlowPlaceSelect
*/
export
declare
function
getApiFlowGetFlowPlaceSelect
(
params
:
GetApiFlowGetFlowPlaceSelectParams
):
import
(
"
axios
"
).
AxiosPromise
<
{
name
:
string
;
id
:
string
;
}[]
>
;
interface
GetApiFlowGetFlowPlaceSelectParams
{
id
?:
string
;
sex
?:
string
;
}
export
{};
src/api/controller/Flow/getApiFlowGetFlowPlaceSelect.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 场地类型带出场地下拉框
* /api/Flow/GetFlowPlaceSelect
*/
export
function
getApiFlowGetFlowPlaceSelect
(
params
)
{
const
paramsInput
=
{
id
:
params
.
id
,
sex
:
params
.
sex
,
};
return
request
.
get
(
`/api/Flow/GetFlowPlaceSelect`
,
{
params
:
paramsInput
,
});
}
src/api/controller/Flow/getApiFlowGetFlowPlaceTypeSelect.d.ts
0 → 100644
浏览文件 @
ce7e9792
/**
* 获取场地类型下拉框
* /api/Flow/GetFlowPlaceTypeSelect
*/
export
declare
function
getApiFlowGetFlowPlaceTypeSelect
():
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
{
name
:
string
;
id
:
string
;
}[];
}
>
;
src/api/controller/Flow/getApiFlowGetFlowPlaceTypeSelect.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 获取场地类型下拉框
* /api/Flow/GetFlowPlaceTypeSelect
*/
export
function
getApiFlowGetFlowPlaceTypeSelect
()
{
return
request
.
get
(
`/api/Flow/GetFlowPlaceTypeSelect`
);
}
src/api/controller/
Common/getApiCommon
GetFlowSelect.d.ts
→
src/api/controller/
Flow/getApiFlow
GetFlowSelect.d.ts
浏览文件 @
ce7e9792
/**
* 获取流程选择框
* /api/
Common
/GetFlowSelect
* /api/
Flow
/GetFlowSelect
*/
export
declare
function
getApi
Common
GetFlowSelect
():
import
(
"
axios
"
).
AxiosPromise
<
{
export
declare
function
getApi
Flow
GetFlowSelect
():
import
(
"
axios
"
).
AxiosPromise
<
{
name
:
string
;
id
:
string
;
}[]
>
;
src/api/controller/
Common/getApiCommon
GetFlowSelect.js
→
src/api/controller/
Flow/getApiFlow
GetFlowSelect.js
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 获取流程选择框
* /api/
Common
/GetFlowSelect
* /api/
Flow
/GetFlowSelect
*/
export
function
getApi
Common
GetFlowSelect
()
{
return
request
.
get
(
`/api/
Common
/GetFlowSelect`
);
export
function
getApi
Flow
GetFlowSelect
()
{
return
request
.
get
(
`/api/
Flow
/GetFlowSelect`
);
}
src/api/controller/
Common/getApiCommonGet
UserInfo.d.ts
→
src/api/controller/
Flow/getApiFlowGetFlow
UserInfo.d.ts
浏览文件 @
ce7e9792
/**
* 根据卡号获取用户信息
* /api/
Common/Get
UserInfo
* /api/
Flow/GetFlow
UserInfo
*/
export
declare
function
getApi
CommonGetUserInfo
(
params
:
GetApiCommonGet
UserInfoParams
):
import
(
"
axios
"
).
AxiosPromise
<
{
export
declare
function
getApi
FlowGetFlowUserInfo
(
params
:
GetApiFlowGetFlow
UserInfoParams
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
...
...
@@ -19,7 +19,7 @@ export declare function getApiCommonGetUserInfo(params: GetApiCommonGetUserInfoP
sex
:
string
;
};
}
>
;
interface
GetApi
CommonGet
UserInfoParams
{
interface
GetApi
FlowGetFlow
UserInfoParams
{
card
:
string
;
}
export
{};
src/api/controller/
Common/getApiCommonGet
UserInfo.js
→
src/api/controller/
Flow/getApiFlowGetFlow
UserInfo.js
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 根据卡号获取用户信息
* /api/
Common/Get
UserInfo
* /api/
Flow/GetFlow
UserInfo
*/
export
function
getApi
CommonGet
UserInfo
(
params
)
{
export
function
getApi
FlowGetFlow
UserInfo
(
params
)
{
const
paramsInput
=
{
card
:
params
.
card
,
};
return
request
.
get
(
`/api/
Common/Get
UserInfo`
,
{
return
request
.
get
(
`/api/
Flow/GetFlow
UserInfo`
,
{
params
:
paramsInput
,
});
}
src/api/controller/Flow/index.d.ts
0 → 100644
浏览文件 @
ce7e9792
export
*
from
"
./getApiFlowGetFlowSelect
"
;
export
*
from
"
./getApiFlowGetFlowUserInfo
"
;
export
*
from
"
./getApiFlowFlowPlaceDataOut
"
;
export
*
from
"
./getApiFlowGetFlowPlaceTypeSelect
"
;
export
*
from
"
./getApiFlowGetFlowPlaceSelect
"
;
export
*
from
"
./postApiFlowFlowActivityApplyIns
"
;
export
*
from
"
./getApiFlowGetFlowCommodityTree
"
;
export
*
from
"
./getApiFlowGetFlowPlaceHourList
"
;
export
*
from
"
./getApiFlowGetFlowAddTimeNum
"
;
export
*
from
"
./postApiFlowFlowActivityConflict
"
;
export
*
from
"
./postApiFlowFlowActivityPass
"
;
src/api/controller/Flow/index.js
0 → 100644
浏览文件 @
ce7e9792
export
*
from
"
./getApiFlowGetFlowSelect
"
;
export
*
from
"
./getApiFlowGetFlowUserInfo
"
;
export
*
from
"
./getApiFlowFlowPlaceDataOut
"
;
export
*
from
"
./getApiFlowGetFlowPlaceTypeSelect
"
;
export
*
from
"
./getApiFlowGetFlowPlaceSelect
"
;
export
*
from
"
./postApiFlowFlowActivityApplyIns
"
;
export
*
from
"
./getApiFlowGetFlowCommodityTree
"
;
export
*
from
"
./getApiFlowGetFlowPlaceHourList
"
;
export
*
from
"
./getApiFlowGetFlowAddTimeNum
"
;
export
*
from
"
./postApiFlowFlowActivityConflict
"
;
export
*
from
"
./postApiFlowFlowActivityPass
"
;
src/api/controller/
Activity/postApiActivity
ActivityApplyIns.d.ts
→
src/api/controller/
Flow/postApiFlowFlow
ActivityApplyIns.d.ts
浏览文件 @
ce7e9792
import
{
type
Activity
Direct
Request
}
from
"
../../interface
"
;
import
{
type
Activity
Flow
Request
}
from
"
../../interface
"
;
/**
* 申请活动
* /api/
Activity/
ActivityApplyIns
* /api/
Flow/Flow
ActivityApplyIns
*/
export
declare
function
postApi
ActivityActivityApplyIns
(
input
?:
ActivityDirect
Request
):
import
(
"
axios
"
).
AxiosPromise
<
{
export
declare
function
postApi
FlowFlowActivityApplyIns
(
input
?:
ActivityFlow
Request
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
...
...
src/api/controller/
Activity/postApiActivity
ActivityApplyIns.js
→
src/api/controller/
Flow/postApiFlowFlow
ActivityApplyIns.js
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 申请活动
* /api/
Activity/
ActivityApplyIns
* /api/
Flow/Flow
ActivityApplyIns
*/
export
function
postApi
Activity
ActivityApplyIns
(
input
)
{
return
request
.
post
(
`/api/
Activity/
ActivityApplyIns`
,
input
);
export
function
postApi
FlowFlow
ActivityApplyIns
(
input
)
{
return
request
.
post
(
`/api/
Flow/Flow
ActivityApplyIns`
,
input
);
}
src/api/controller/Flow/postApiFlowFlowActivityConflict.d.ts
0 → 100644
浏览文件 @
ce7e9792
import
{
type
ActivityFlowRequest
}
from
"
../../interface
"
;
/**
* 验证是否占用
* /api/Flow/FlowActivityConflict
*/
export
declare
function
postApiFlowFlowActivityConflict
(
input
?:
ActivityFlowRequest
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
string
;
}
>
;
src/api/controller/Flow/postApiFlowFlowActivityConflict.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 验证是否占用
* /api/Flow/FlowActivityConflict
*/
export
function
postApiFlowFlowActivityConflict
(
input
)
{
return
request
.
post
(
`/api/Flow/FlowActivityConflict`
,
input
);
}
src/api/controller/Flow/postApiFlowFlowActivityPass.d.ts
0 → 100644
浏览文件 @
ce7e9792
import
{
type
ActivityFlowRequest
}
from
"
../../interface
"
;
/**
* 流程审批通过
* /api/Flow/FlowActivityPass
*/
export
declare
function
postApiFlowFlowActivityPass
(
input
?:
ActivityFlowRequest
):
import
(
"
axios
"
).
AxiosPromise
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
string
;
}
>
;
src/api/controller/Flow/postApiFlowFlowActivityPass.js
0 → 100644
浏览文件 @
ce7e9792
import
request
from
"
@/plugins/request
"
;
/**
* 流程审批通过
* /api/Flow/FlowActivityPass
*/
export
function
postApiFlowFlowActivityPass
(
input
)
{
return
request
.
post
(
`/api/Flow/FlowActivityPass`
,
input
);
}
src/api/controller/Place/getApiPlacePlaceDataOut.d.ts
浏览文件 @
ce7e9792
...
...
@@ -15,6 +15,7 @@ export declare function getApiPlacePlaceDataOut(params: GetApiPlacePlaceDataOutP
place_address
:
string
;
capacity
:
string
;
threshold
:
string
;
description
:
string
;
};
}
>
;
interface
GetApiPlacePlaceDataOutParams
{
...
...
src/api/controller/index.d.ts
浏览文件 @
ce7e9792
...
...
@@ -2,6 +2,7 @@ export * from "./Activity";
export
*
from
"
./Commodity
"
;
export
*
from
"
./Common
"
;
export
*
from
"
./Evaluate
"
;
export
*
from
"
./Flow
"
;
export
*
from
"
./Key
"
;
export
*
from
"
./Login
"
;
export
*
from
"
./Place
"
;
...
...
src/api/controller/index.js
浏览文件 @
ce7e9792
...
...
@@ -2,6 +2,7 @@ export * from "./Activity";
export
*
from
"
./Commodity
"
;
export
*
from
"
./Common
"
;
export
*
from
"
./Evaluate
"
;
export
*
from
"
./Flow
"
;
export
*
from
"
./Key
"
;
export
*
from
"
./Login
"
;
export
*
from
"
./Place
"
;
...
...
src/api/interface/apiTypes/Activity.d.ts
浏览文件 @
ce7e9792
...
...
@@ -33,4 +33,5 @@ export interface Activity {
activity_name
?:
string
;
is_evaluate
?:
number
;
flow_id
?:
string
;
flow_no
?:
string
;
}
src/api/interface/apiTypes/ActivityFlowRequest.d.ts
0 → 100644
浏览文件 @
ce7e9792
export
interface
ActivityFlowRequest
{
/** 流程id */
flow_id
?:
string
;
/** 流程编号 */
flow_no
?:
string
;
/** 用户卡号 */
card
?:
string
;
/** 手机号 */
phone
?:
string
;
place_type_id
?:
string
;
place_id
?:
string
;
begin_time
?:
string
;
end_time
?:
string
;
remark
?:
string
;
commodity_list
?:
string
[];
}
src/api/interface/apiTypes/ActivityFlowRequest.js
0 → 100644
浏览文件 @
ce7e9792
export
{};
src/api/interface/apiTypes/PlaceOutResponse.d.ts
浏览文件 @
ce7e9792
...
...
@@ -8,4 +8,6 @@ export interface PlaceOutResponse {
capacity
?:
string
;
/** 最低申请人数 */
threshold
?:
string
;
/** 场地描述 */
description
?:
string
;
}
src/api/interface/index.d.ts
浏览文件 @
ce7e9792
...
...
@@ -36,8 +36,6 @@ export * from "./apiTypes/SelectResponsesListMessageModel";
export
*
from
"
./apiTypes/PersonResponse
"
;
export
*
from
"
./apiTypes/KeyResponse
"
;
export
*
from
"
./apiTypes/KeyResponseListMessageModel
"
;
export
*
from
"
./apiTypes/UserInfoResponse
"
;
export
*
from
"
./apiTypes/UserInfoResponseMessageModel
"
;
export
*
from
"
./apiTypes/BlacklistRequest
"
;
export
*
from
"
./apiTypes/Blacklist
"
;
export
*
from
"
./apiTypes/BlacklistMessageModel
"
;
...
...
@@ -46,6 +44,13 @@ export * from "./apiTypes/EvaluateViewModel";
export
*
from
"
./apiTypes/EvaluateViewModelListMessageModel
"
;
export
*
from
"
./apiTypes/EvaluateViewModelMessageModel
"
;
export
*
from
"
./apiTypes/EvaluateRequest
"
;
export
*
from
"
./apiTypes/UserInfoResponse
"
;
export
*
from
"
./apiTypes/UserInfoResponseMessageModel
"
;
export
*
from
"
./apiTypes/PlaceOutResponse
"
;
export
*
from
"
./apiTypes/PlaceOutResponseMessageModel
"
;
export
*
from
"
./apiTypes/ActivityFlowRequest
"
;
export
*
from
"
./apiTypes/PlaceTimeViewModel
"
;
export
*
from
"
./apiTypes/PlaceTimeViewModelListMessageModel
"
;
export
*
from
"
./apiTypes/KeySearchRequest
"
;
export
*
from
"
./apiTypes/Key
"
;
export
*
from
"
./apiTypes/KeyMessageModel
"
;
...
...
@@ -73,10 +78,6 @@ export * from "./apiTypes/PlaceMessageModelPageModel";
export
*
from
"
./apiTypes/PlaceViewModel
"
;
export
*
from
"
./apiTypes/PlaceViewModelMessageModel
"
;
export
*
from
"
./apiTypes/PlaceRequest
"
;
export
*
from
"
./apiTypes/PlaceTimeViewModel
"
;
export
*
from
"
./apiTypes/PlaceTimeViewModelListMessageModel
"
;
export
*
from
"
./apiTypes/PlaceOutResponse
"
;
export
*
from
"
./apiTypes/PlaceOutResponseMessageModel
"
;
export
*
from
"
./apiTypes/PlaceType
"
;
export
*
from
"
./apiTypes/PlaceTypeMessageModel
"
;
export
*
from
"
./apiTypes/PlaceTypeMessageModelPageModel
"
;
...
...
src/api/interface/index.js
浏览文件 @
ce7e9792
...
...
@@ -36,8 +36,6 @@ export * from "./apiTypes/SelectResponsesListMessageModel";
export
*
from
"
./apiTypes/PersonResponse
"
;
export
*
from
"
./apiTypes/KeyResponse
"
;
export
*
from
"
./apiTypes/KeyResponseListMessageModel
"
;
export
*
from
"
./apiTypes/UserInfoResponse
"
;
export
*
from
"
./apiTypes/UserInfoResponseMessageModel
"
;
export
*
from
"
./apiTypes/BlacklistRequest
"
;
export
*
from
"
./apiTypes/Blacklist
"
;
export
*
from
"
./apiTypes/BlacklistMessageModel
"
;
...
...
@@ -46,6 +44,13 @@ export * from "./apiTypes/EvaluateViewModel";
export
*
from
"
./apiTypes/EvaluateViewModelListMessageModel
"
;
export
*
from
"
./apiTypes/EvaluateViewModelMessageModel
"
;
export
*
from
"
./apiTypes/EvaluateRequest
"
;
export
*
from
"
./apiTypes/UserInfoResponse
"
;
export
*
from
"
./apiTypes/UserInfoResponseMessageModel
"
;
export
*
from
"
./apiTypes/PlaceOutResponse
"
;
export
*
from
"
./apiTypes/PlaceOutResponseMessageModel
"
;
export
*
from
"
./apiTypes/ActivityFlowRequest
"
;
export
*
from
"
./apiTypes/PlaceTimeViewModel
"
;
export
*
from
"
./apiTypes/PlaceTimeViewModelListMessageModel
"
;
export
*
from
"
./apiTypes/KeySearchRequest
"
;
export
*
from
"
./apiTypes/Key
"
;
export
*
from
"
./apiTypes/KeyMessageModel
"
;
...
...
@@ -73,10 +78,6 @@ export * from "./apiTypes/PlaceMessageModelPageModel";
export
*
from
"
./apiTypes/PlaceViewModel
"
;
export
*
from
"
./apiTypes/PlaceViewModelMessageModel
"
;
export
*
from
"
./apiTypes/PlaceRequest
"
;
export
*
from
"
./apiTypes/PlaceTimeViewModel
"
;
export
*
from
"
./apiTypes/PlaceTimeViewModelListMessageModel
"
;
export
*
from
"
./apiTypes/PlaceOutResponse
"
;
export
*
from
"
./apiTypes/PlaceOutResponseMessageModel
"
;
export
*
from
"
./apiTypes/PlaceType
"
;
export
*
from
"
./apiTypes/PlaceTypeMessageModel
"
;
export
*
from
"
./apiTypes/PlaceTypeMessageModelPageModel
"
;
...
...
src/assets/images/5.png
0 → 100644
浏览文件 @
ce7e9792
6.8 KB
src/components/CEditModal.vue
浏览文件 @
ce7e9792
...
...
@@ -100,7 +100,7 @@
<!-- 详情 -->
<Row
v-if=
"isDetails"
>
<Col
v-bind=
"grid"
v-for=
"item in formItem.filter(a => a.type != 'file')"
:key=
"item.id"
>
<Col
v-bind=
"grid"
v-for=
"item in formItem.filter(a => a.type != 'file'
&& (!a.hasOwnProperty('show') || a.show)
)"
:key=
"item.id"
>
<FormItem
:label=
"item.name"
:prop=
"item.name"
>
<span
v-if=
"item.type == 'input'"
>
{{
formData
[
item
.
id
]
}}
</span>
<!-- 存在问题:性别项,有时返回值为null,select的“不限”值为空字符串,会报错 -->
...
...
@@ -110,7 +110,7 @@
<span
v-if=
"item.type == 'switch'"
>
{{
`${formData[item.id] == 1 ? '是' : '否'
}
`
}}
<
/span
>
<
/FormItem
>
<
/Col
>
<
Col
span
=
"
12
"
v
-
for
=
"
item in formItem.filter(a => a.type == 'file')
"
:
key
=
"
item.id
"
>
<
Col
span
=
"
12
"
v
-
for
=
"
item in formItem.filter(a => a.type == 'file'
&& (!a.hasOwnProperty('show') || a.show)
)
"
:
key
=
"
item.id
"
>
<
FormItem
:
label
=
"
item.name
"
:
prop
=
"
item.name
"
>
<
p
v
-
for
=
"
file in formData[item.id]
"
...
...
@@ -224,9 +224,9 @@ export default {
}
)
}
,
// 查看详情时初始化
modalDetailsInit
(
row
)
{
modalDetailsInit
(
row
,
itemName
)
{
this
.
isDetails
=
true
this
.
modalTitle
=
`${row
.place_name
}
- 详情`
this
.
modalTitle
=
`${row
[itemName]
}
- 详情`
this
.
formData
=
cloneDeep
(
row
)
}
,
...
...
src/pages/activityManagement/index.vue
浏览文件 @
ce7e9792
...
...
@@ -47,7 +47,10 @@
<Icon
class=
"cyrIcon"
type=
"md-person"
@
click=
"ptcDetails(row)"
/>
</
template
>
<
template
#action
="{
row
}"
>
<a
@
click=
"rowDetails(row)"
>
详情
</a>
<a
@
click=
"cmdDetails(row)"
>
物资
</a>
<a
style=
"margin-left: 8px;"
@
click=
"eltDetails(row)"
>
评价
</a>
<a
style=
"margin-left: 8px;"
@
click=
"trkDetails(row)"
>
轨迹
</a>
<a
style=
"margin-left: 8px;"
@
click=
"rowDetails(row)"
>
详情
</a>
<!--
<a
style=
"margin-left: 8px;"
@
click=
"rowCancel(row)"
>
取消活动
</a>
-->
<!--
<Button
type=
"info"
size=
"small"
@
click=
"rowEdit(row)"
style=
"margin-left: 8px"
>
编辑
</Button>
-->
<!--
<Poptip
confirm
transfer
title=
"是否确认删除?"
@
on-ok=
"rowDelete(row)"
>
...
...
@@ -159,6 +162,142 @@
<Button
style=
"margin-left: 8px;"
@
click=
"ptcModalShow = false"
>
关闭
</Button>
</
template
>
</Modal>
<!-- 物资Modal -->
<Modal
v-model=
"cmdModalShow"
:title=
"cmdModalTitle"
:width=
"80"
:transfer=
"false"
@
on-cancel=
"cmdModalShow = false"
>
<!-- 物资列表 -->
<CTable
:tableColumns=
"cmdTableColumns.filter(a => a.show)"
:tableData=
"cmdTableDataCal"
:tableLoading=
"cmdTableLoading"
:dataCount=
"cmdDataCount"
:pageIndex=
"cmdParams.page_index"
:pageSize=
"cmdParams.page_size"
@
onPageChange=
"onCmdPageChange"
@
onPageSizeChange=
"onCmdPageSizeChange"
>
<
template
#details
="{
row
}"
>
<a
@
click=
"cmdDetailsShow(row)"
>
详情
</a>
</
template
>
</CTable>
<!-- 物资详情Modal -->
<CEditModal
ref=
"cmddetailsmodal"
v-model=
"cmdDetailsModalShow"
:formItem=
"cmdDetailsFormItem"
:loading=
"cmdDetailsModalLoading"
:formLabelWidth=
"100"
:width=
"800"
@
onClose=
"cmdDetailsModalShow = false"
></CEditModal>
<
template
#footer
>
<Button
@
click=
"cmdModalShow = false"
>
关闭
</Button>
</
template
>
</Modal>
<!-- 评价Modal -->
<Modal
v-model=
"eltModalShow"
:title=
"eltModalTitle"
:width=
"60"
:transfer=
"false"
@
on-cancel=
"eltModalShow = false"
>
<!-- 评价列表 -->
<!-- <CTable
:tableColumns="eltTableColumns.filter(a => a.show)"
:tableData="eltTableDataCal"
:tableLoading="eltTableLoading"
:dataCount="eltDataCount"
:pageIndex="eltParams.page_index"
:pageSize="eltParams.page_size"
@onPageChange="onEltPageChange"
@onPageSizeChange="onEltPageSizeChange">
<template #details="{ row }">
<a @click="eltDetailsShow(row)">详情</a>
</template>
</CTable> -->
<!-- 评价详情Modal -->
<!-- <CEditModal
ref="eltdetailsmodal"
v-model="eltDetailsModalShow"
:formItem="eltDetailsFormItem"
:loading="eltDetailsModalLoading"
:formLabelWidth="100"
:width="800"
@onClose="eltDetailsModalShow = false"></CEditModal> -->
<!-- loading -->
<Spin
size=
"large"
fix
v-if=
"eltModalLoading"
></Spin>
<List
v-if=
"eltTableData.length != 0"
item-layout=
"vertical"
>
<ListItem
v-for=
"item in eltTableData"
:key=
"item.id"
>
<ListItemMeta
:title=
"item.name"
:description=
"`评价人:${item.evaluate_card}`"
/>
<p>
<Rate
v-model=
"item.grade"
allow-half
disabled
icon=
"md-star"
/>
</p>
<p>
{{ item.content }}
</p>
<
template
#extra
>
<img
v-for=
"file in item.file_list"
:key=
"file.id"
style=
"width: 200px"
:src=
"file.path"
@
click=
"eltImgPreview(file)"
>
<!--
<p
v-for=
"file in getOtherFileList(item.file_list)"
:key=
"file.id"
>
<a
:href=
"file.path"
target=
"_blanck"
>
{{
file
.
file_name
}}
</a>
</p>
-->
</
template
>
</ListItem>
</List>
<p
v-else
style=
"text-align: center;"
>
暂无评价
</p>
<
template
#footer
>
<Button
@
click=
"eltModalShow = false"
>
关闭
</Button>
</
template
>
</Modal>
<!-- 轨迹Modal -->
<Modal
v-model=
"trkModalShow"
:title=
"trkModalTitle"
:width=
"500"
:transfer=
"false"
@
on-cancel=
"trkModalShow = false"
>
<Steps
:current=
"trkData.length"
direction=
"vertical"
>
<Step
v-for=
"item in trkData"
:key=
"item.id"
>
<
template
#title
>
<span
style=
"font-size: 14px; color: #666"
>
{{
item
.
activity_state
}}
</span>
</
template
>
<
template
#content
>
<span
style=
"color: #666"
>
{{
`${item.createtime
}
${item.content
}
`
}}
<
/span
>
<
/template
>
<
/Step
>
<
/Steps
>
<
template
#
footer
>
<
Button
@
click
=
"
trkModalShow = false
"
>
关闭
<
/Button
>
<
/template
>
<
/Modal
>
<
/Card
>
<
/div
>
<
/template
>
...
...
@@ -229,7 +368,7 @@ export default {
{
key
:
'
is_evaluate
'
,
title
:
'
是否评价
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
}
,
{
key
:
'
flow_id
'
,
title
:
'
关联流程id
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
false
}
,
{
slot
:
'
participant
'
,
title
:
'
参与人
'
,
align
:
'
center
'
,
minWidth
:
80
,
show
:
true
,
fixed
:
'
right
'
}
,
{
slot
:
'
action
'
,
title
:
'
操作
'
,
align
:
'
center
'
,
minWidth
:
80
,
show
:
true
,
fixed
:
'
right
'
},
{
slot
:
'
action
'
,
title
:
'
操作
'
,
align
:
'
center
'
,
minWidth
:
1
80
,
show
:
true
,
fixed
:
'
right
'
}
,
],
tableLoading
:
false
,
...
...
@@ -290,6 +429,7 @@ export default {
modify_time
:
null
}
,
//#region 参与人员
// 参与人员Modal
ptcModalShow
:
false
,
ptcActiveId
:
''
,
...
...
@@ -324,6 +464,93 @@ export default {
user_type
:
0
,
keyword
:
''
,
}
,
//#endregion
//#region 物资
// 物资Modal
cmdModalShow
:
false
,
cmdModalTitle
:
''
,
cmdActiveId
:
''
,
cmdTableColumns
:
[
{
type
:
'
index
'
,
title
:
'
序号
'
,
align
:
'
center
'
,
width
:
80
,
show
:
true
,
fixed
:
'
left
'
}
,
{
key
:
'
name
'
,
title
:
'
借用人
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
}
,
{
key
:
'
card
'
,
title
:
'
借用人卡号
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
}
,
{
key
:
'
commodity_name
'
,
title
:
'
物资名称
'
,
align
:
'
center
'
,
minWidth
:
250
,
show
:
true
}
,
{
key
:
'
parent_id
'
,
title
:
'
父级id
'
,
align
:
'
center
'
,
minWidth
:
300
,
show
:
false
}
,
{
key
:
'
place_type_id
'
,
title
:
'
场地类型id
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
false
}
,
{
key
:
'
place_type_name
'
,
title
:
'
场地类型
'
,
align
:
'
center
'
,
minWidth
:
250
,
show
:
true
}
,
//
{
key
:
'
is_enable
'
,
title
:
'
启用
'
,
align
:
'
center
'
,
minWidth
:
80
,
show
:
true
}
,
{
slot
:
'
details
'
,
title
:
'
操作
'
,
align
:
'
center
'
,
minWidth
:
100
,
show
:
true
,
fixed
:
'
right
'
}
,
],
cmdTableData
:
[],
cmdTableLoading
:
false
,
cmdDataCount
:
0
,
cmdParams
:
{
page_index
:
1
,
page_size
:
10
,
}
,
// 物资详情Modal
cmdDetailsModalShow
:
false
,
cmdDetailsModalLoading
:
false
,
cmdDetailsFormItem
:
[
{
id
:
'
id
'
,
name
:
'
id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
{
id
:
'
commodity_id
'
,
name
:
'
物资id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
{
id
:
'
commodity_parent_id
'
,
name
:
'
物资父级id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
{
id
:
'
commodity_name
'
,
name
:
'
物资名称
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[]
}
,
{
id
:
'
place_type_id
'
,
name
:
'
场地id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
{
id
:
'
place_type_name
'
,
name
:
'
场地名称
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[]
}
,
{
id
:
'
activity_id
'
,
name
:
'
活动id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
{
id
:
'
card
'
,
name
:
'
借用人卡号
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[]
}
,
{
id
:
'
name
'
,
name
:
'
借用人
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[]
}
,
],
//#endregion
//#region 评价
// 评价Modal
eltModalShow
:
false
,
eltModalLoading
:
false
,
eltModalTitle
:
''
,
eltActiveId
:
''
,
// eltTableColumns: [
//
{
type
:
'
index
'
,
title
:
'
序号
'
,
align
:
'
center
'
,
width
:
80
,
show
:
true
,
fixed
:
'
left
'
}
,
//
{
key
:
'
name
'
,
title
:
'
借用人
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
}
,
//
{
key
:
'
card
'
,
title
:
'
借用人卡号
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
}
,
//
{
key
:
'
commodity_name
'
,
title
:
'
物资名称
'
,
align
:
'
center
'
,
minWidth
:
250
,
show
:
true
}
,
//
{
key
:
'
parent_id
'
,
title
:
'
父级id
'
,
align
:
'
center
'
,
minWidth
:
300
,
show
:
false
}
,
//
{
key
:
'
place_type_id
'
,
title
:
'
场地类型id
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
false
}
,
//
{
key
:
'
place_type_name
'
,
title
:
'
场地类型
'
,
align
:
'
center
'
,
minWidth
:
250
,
show
:
true
}
,
// //
{
key
:
'
is_enable
'
,
title
:
'
启用
'
,
align
:
'
center
'
,
minWidth
:
80
,
show
:
true
}
,
//
{
slot
:
'
details
'
,
title
:
'
操作
'
,
align
:
'
center
'
,
minWidth
:
100
,
show
:
true
,
fixed
:
'
right
'
}
,
// ],
eltTableData
:
[],
// eltDataCount: 0,
// eltParams:
{
// page_index: 1,
// page_size: 10,
//
}
,
// // 评价详情Modal
// eltDetailsModalShow: false,
// eltDetailsModalLoading: false,
// eltDetailsFormItem: [
//
{
id
:
'
id
'
,
name
:
'
id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
//
{
id
:
'
commodity_id
'
,
name
:
'
物资id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
//
{
id
:
'
commodity_parent_id
'
,
name
:
'
物资父级id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
//
{
id
:
'
commodity_name
'
,
name
:
'
物资名称
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[]
}
,
//
{
id
:
'
place_type_id
'
,
name
:
'
场地id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
//
{
id
:
'
place_type_name
'
,
name
:
'
场地名称
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[]
}
,
//
{
id
:
'
activity_id
'
,
name
:
'
活动id
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[],
show
:
false
}
,
//
{
id
:
'
card
'
,
name
:
'
借用人卡号
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[]
}
,
//
{
id
:
'
name
'
,
name
:
'
借用人
'
,
type
:
'
input
'
,
disabled
:
true
,
require
:
false
,
optList
:
[]
}
,
// ],
//#endregion
//#region 轨迹
// 轨迹Modal
trkModalShow
:
false
,
trkModalLoading
:
false
,
trkModalTitle
:
''
,
trkData
:
''
,
//#endregion
}
}
,
computed
:
{
...
...
@@ -334,6 +561,18 @@ export default {
return
`${arr[1]
}
${arr[2]
}
`
}
}
,
// 物资列表data计算
cmdTableDataCal
()
{
let
start
=
(
this
.
cmdParams
.
page_index
-
1
)
*
this
.
cmdParams
.
page_size
let
end
=
start
+
this
.
cmdParams
.
page_size
return
this
.
cmdTableData
.
slice
(
start
,
end
)
}
,
// 评价列表data计算
eltTableDataCal
()
{
let
start
=
(
this
.
eltParams
.
page_index
-
1
)
*
this
.
eltParams
.
page_size
let
end
=
start
+
this
.
eltParams
.
page_size
return
this
.
eltTableData
.
slice
(
start
,
end
)
}
,
}
,
// 查询条件初始化
created
(){
}
,
...
...
@@ -410,6 +649,36 @@ export default {
}
}
)
}
,
// 获取物资借用列表
getCmdData
()
{
this
.
cmdTableLoading
=
true
this
.
asc
.
getApiCommodityGetCommodityTrackList
({
activity_id
:
this
.
cmdActiveId
}
).
then
(
res
=>
{
// console.log('物资借用列表', res)
this
.
cmdTableData
=
res
.
response
this
.
cmdDataCount
=
res
.
response
.
length
this
.
cmdTableLoading
=
false
}
)
}
,
// 获取评价列表
getEltData
()
{
this
.
eltModalLoading
=
true
this
.
asc
.
getApiEvaluateGetEvaluateList
({
activity_id
:
this
.
eltActiveId
}
).
then
(
res
=>
{
// console.log('评价列表', res)
this
.
eltTableData
=
res
.
response
// this.eltDataCount = res.response.length
this
.
eltModalLoading
=
false
}
)
}
,
// 获取轨迹
getTrkData
()
{
this
.
trkModalLoading
=
true
this
.
asc
.
getApiActivityGetActivityTrackList
({
activity_id
:
this
.
trkActiveId
}
).
then
(
res
=>
{
// console.log('获取轨迹', res)
this
.
trkData
=
res
.
response
this
.
trkModalLoading
=
false
}
)
}
,
// 新增
// add()
{
...
...
@@ -453,7 +722,7 @@ export default {
// 是否评价
let
isEl
=
res
.
response
.
is_evaluate
res
.
response
.
is_evaluate
=
isEl
==
0
?
'
否
'
:
isEl
==
1
?
'
是
'
:
''
this
.
$refs
.
ceditmodal
.
modalDetailsInit
(
res
.
response
)
this
.
$refs
.
ceditmodal
.
modalDetailsInit
(
res
.
response
,
'
activity_name
'
)
this
.
editModalLoading
=
false
}
)
}
,
...
...
@@ -518,6 +787,7 @@ export default {
}
}
,
//#region 参与人员
// 查看参与人员
ptcDetails
(
row
)
{
this
.
ptcModalShow
=
true
...
...
@@ -600,6 +870,123 @@ export default {
this
.
onPtcPageChange
(
1
)
}
}
,
//#endregion
//#region 物资
// 查看物资
cmdDetails
(
row
)
{
// console.log('查看物资', row)
this
.
cmdActiveId
=
row
.
id
this
.
cmdModalShow
=
true
this
.
cmdModalTitle
=
row
.
activity_name
+
'
- 物资
'
this
.
getCmdData
()
}
,
// 更改物资页码
onCmdPageChange
(
val
)
{
this
.
cmdParams
.
page_index
=
val
// this.getCmdData()
}
,
// 更改物资每页条数
onCmdPageSizeChange
(
val
)
{
this
.
cmdParams
.
page_size
=
val
if
(
this
.
cmdParams
.
page_index
==
1
)
{
this
.
onCmdPageChange
(
1
)
}
}
,
// 物资详情查看
cmdDetailsShow
(
row
)
{
// console.log('物资详情查看', row)
this
.
cmdDetailsModalShow
=
true
this
.
cmdDetailsModalLoading
=
true
this
.
asc
.
getApiCommodityGetCommodityTrackInfo
({
id
:
row
.
id
}
).
then
(
res
=>
{
// console.log('物资详情结果', res)
if
(
res
.
code
==
1
)
{
this
.
$refs
.
cmddetailsmodal
.
modalDetailsInit
(
res
.
response
,
'
commodity_name
'
)
}
else
{
this
.
$Message
.
error
(
res
.
msg_detail
)
}
}
).
finally
(()
=>
{
this
.
cmdDetailsModalLoading
=
false
}
)
}
,
//#endregion
//#region 评价
// 查看评价
eltDetails
(
row
)
{
// console.log('查看评价', row)
this
.
eltActiveId
=
row
.
id
this
.
eltModalShow
=
true
this
.
eltModalTitle
=
row
.
activity_name
+
'
- 评价
'
this
.
getEltData
()
}
,
// // 更改评价页码
// onEltPageChange(val)
{
// this.eltParams.page_index = val
// // this.getEltData()
//
}
,
// // 更改评价每页条数
// onEltPageSizeChange(val)
{
// this.eltParams.page_size = val
// if (this.eltParams.page_index == 1)
{
// this.onEltPageChange(1)
//
}
//
}
,
// // 评价详情查看
// eltDetailsShow(row)
{
// // console.log('评价详情查看', row)
// this.eltDetailsModalShow = true
// this.eltDetailsModalLoading = true
// this.asc.getApiEvaluateGetEvaluateInfo(
{
id
:
row
.
id
}
).
then
(
res
=>
{
// // console.log('评价详情结果', res)
// if (res.code == 1)
{
// this.$refs.eltdetailsmodal.modalDetailsInit(res.response, 'commodity_name')
//
}
else
{
// this.$Message.error(res.msg_detail)
//
}
//
}
).
finally
(()
=>
{
// this.eltDetailsModalLoading = false
//
}
)
//
}
,
// 获取图片文件列表
getImageFileList
(
arr
)
{
return
arr
.
filter
(
a
=>
a
.
suffix
.
toLowerCase
()
==
'
.png
'
||
a
.
suffix
.
toLowerCase
()
==
'
.bmp
'
||
a
.
suffix
.
toLowerCase
()
==
'
.jpg
'
||
a
.
suffix
.
toLowerCase
()
==
'
.jpeg
'
)
}
,
// 获取其他文件列表
getOtherFileList
(
arr
)
{
return
arr
.
filter
(
a
=>
!
(
a
.
suffix
.
toLowerCase
()
==
'
.png
'
||
a
.
suffix
.
toLowerCase
()
==
'
.bmp
'
||
a
.
suffix
.
toLowerCase
()
==
'
.jpg
'
||
a
.
suffix
.
toLowerCase
()
==
'
.jpeg
'
))
}
,
// 预览图片
eltImgPreview
(
file
)
{
// console.log('预览图片', file)
window
.
open
(
file
.
path
)
}
,
//#endregion
//#region 轨迹
// 查看评价
trkDetails
(
row
)
{
// console.log('查看评价', row)
this
.
trkActiveId
=
row
.
id
this
.
trkModalShow
=
true
this
.
trkModalTitle
=
row
.
activity_name
+
'
- 轨迹
'
this
.
getTrkData
()
}
,
//#endregion
}
}
<
/script
>
...
...
src/pages/blacklistManagement/index.vue
浏览文件 @
ce7e9792
<
template
>
<!-- 黑名单管理 -->
<div>
<Card
ref=
"card"
>
<TableFrom
/>
<Button
type=
"primary"
class=
"ivu-ml-8"
@
click=
"add"
><Icon
type=
"md-add"
/>
新增
</Button>
<Table
:columns=
"columns"
:data=
"tableData"
class=
"ivu-mt"
:loading=
"loading"
:size=
"tableSize"
>
<template
slot-scope=
"
{ row }" slot="status">
<Switch
size=
"large"
v-model=
"row.status"
:true-value=
"1"
:false-value=
"0"
@
on-change=
"switchChange(row)"
>
<span
type=
"md-checkmark"
slot=
"open"
>
启用
</span>
<span
type=
"md-close"
slot=
"close"
>
停用
</span>
</Switch>
</
template
>
<
template
slot-scope=
"{ row }"
slot=
"action"
>
<Button
type=
"info"
@
click=
"edit(row)"
>
编辑
</Button>
<Poptip
confirm
transfer
title=
"你确定删除吗?"
@
on-ok=
"del(row)"
@
on-cancel=
"cancel"
>
<Button
type=
"error"
style=
"margin-left: 20px"
>
删除
</Button>
</Poptip>
<Card>
<!-- 搜索条件 -->
<SearchCondForm
:searchCondList=
"searchCondList"
:labelWidth=
"120"
@
onSubmit=
"search"
@
onReset=
"reset"
></SearchCondForm>
<Button
disabled
type=
"primary"
class=
"ivu-ml-8"
><Icon
type=
"md-trash"
/>
清空黑名单
</Button>
<!-- 数据table -->
<CTable
:tableColumns=
"tableColumns.filter(a => a.show)"
:tableData=
"tableData"
:tableLoading=
"tableLoading"
:tableSize=
"tableSize"
:dataCount=
"dataCount"
:pageIndex=
"params.page_index"
:pageSize=
"params.page_size"
@
onPageChange=
"onPageChange"
@
onPageSizeChange=
"onPageSizeChange"
>
<!-- 状态 -->
<template
#state
="
{ row }">
<span
v-if=
"row.state == 0"
>
过期
</span>
<span
v-if=
"row.state == 1"
>
生效
</span>
<span
v-if=
"row.state == 2"
>
强制取消
</span>
</
template
>
<
template
#action
="{
row
}"
>
<a
@
click=
"eltDetails(row)"
>
评价
</a>
<Poptip
confirm
transfer
title=
"是否确认删除?"
@
on-ok=
"rowDelete(row)"
>
<Button
type=
"error"
size=
"small"
style=
"margin-left: 8px"
>
删除
</Button>
</Poptip>
</
template
>
</Table>
<div
class=
"ivu-text-center ivu-mt"
>
<Page
:total=
"total"
:current.sync=
"params.pageIndex"
show-total
show-sizer
:page-size=
"params.pageSize"
@
on-change=
"handleChangePage"
@
on-page-size-change=
"handleChangePageSize"
/>
</div>
</CTable>
<!-- 新增修改 -->
<AddEditDrawer
ref=
"addEdit"
@
getData=
"getData"
/>
<!-- 评价Modal -->
<Modal
v-model=
"eltModalShow"
:title=
"eltModalTitle"
:width=
"60"
:transfer=
"false"
@
on-cancel=
"eltModalShow = false"
>
<!-- loading -->
<Spin
size=
"large"
fix
v-if=
"eltModalLoading"
></Spin>
<List
v-if=
"eltTableData.length != 0"
item-layout=
"vertical"
>
<ListItem
v-for=
"item in eltTableData"
:key=
"item.id"
>
<ListItemMeta
:title=
"item.name"
:description=
"`评价人:${item.evaluate_card}`"
/>
<p>
<Rate
v-model=
"item.grade"
allow-half
disabled
icon=
"md-star"
/>
</p>
<p>
{{ item.content }}
</p>
<
template
#extra
>
<img
v-for=
"file in item.file_list"
:key=
"file.id"
style=
"width: 200px"
:src=
"file.path"
@
click=
"eltImgPreview(file)"
>
</
template
>
</ListItem>
</List>
<p
v-else
style=
"text-align: center;"
>
暂无评价
</p>
<
template
#footer
>
<Button
@
click=
"eltModalShow = false"
>
关闭
</Button>
</
template
>
</Modal>
</Card>
</div>
</template>
<
script
>
import
CTable
from
'
@/components/CTable.vue
'
import
CEditModal
from
'
@/components/CEditModal.vue
'
import
SearchCondForm
from
'
@/components/SearchCondForm.vue
'
export
default
{
name
:
'
list
'
,
components
:
{
CTable
,
CEditModal
,
SearchCondForm
,
},
data
(){
return
{
// 搜索项
searchCondList
:
[
{
id
:
'
card_name
'
,
name
:
'
卡号或姓名
'
,
type
:
'
input
'
,
show
:
true
,
optList
:
[]
},
{
id
:
'
begin_time
'
,
name
:
'
开始时间
'
,
type
:
'
input
'
,
show
:
true
,
optList
:
[]
},
{
id
:
'
end_time
'
,
name
:
'
结束时间
'
,
type
:
'
input
'
,
show
:
true
,
optList
:
[]
},
{
id
:
'
state
'
,
name
:
'
状态
'
,
type
:
'
select
'
,
show
:
true
,
optList
:
[{
value
:
0
,
label
:
'
过期
'
},{
value
:
1
,
label
:
'
生效
'
},{
value
:
2
,
label
:
'
强制取消
'
}]
},
],
// 搜索条件
params
:{
page_index
:
1
,
page_size
:
10
,
card_name
:
""
,
begin_time
:
""
,
end_time
:
""
,
state
:
""
,
},
tableColumns
:[
{
type
:
'
index
'
,
title
:
'
序号
'
,
align
:
'
center
'
,
width
:
80
,
show
:
true
,
fixed
:
'
left
'
},
{
key
:
'
card
'
,
title
:
'
卡号
'
,
align
:
'
center
'
,
minWidth
:
120
,
show
:
true
},
{
key
:
'
name
'
,
title
:
'
姓名
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
},
{
key
:
'
createtime
'
,
title
:
'
开始时间
'
,
align
:
'
center
'
,
minWidth
:
180
,
show
:
true
},
{
key
:
'
end_time
'
,
title
:
'
结束时间
'
,
align
:
'
center
'
,
minWidth
:
180
,
show
:
true
},
{
slot
:
'
state
'
,
title
:
'
状态
'
,
align
:
'
center
'
,
minWidth
:
150
,
show
:
true
},
{
key
:
'
remark
'
,
title
:
'
备注
'
,
align
:
'
center
'
,
minWidth
:
200
,
show
:
true
},
{
slot
:
'
action
'
,
title
:
'
操作
'
,
align
:
'
center
'
,
minWidth
:
120
,
show
:
true
,
fixed
:
'
right
'
},
],
import
AddEditDrawer
from
'
./component/addEditDrawer.vue
'
import
TableFrom
from
'
./component/table-from.vue
'
export
default
{
name
:
'
list
'
,
components
:
{
AddEditDrawer
,
TableFrom
},
data
(){
return
{
grid
:
{
xl
:
8
,
lg
:
12
,
md
:
24
,
sm
:
24
,
xs
:
24
},
columns
:[
{
title
:
'
序号
'
,
type
:
'
index
'
,
align
:
'
center
'
,
show
:
true
,
width
:
80
},
{
title
:
'
班级编号
'
,
key
:
'
class_code
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
100
,
},
{
title
:
'
班级名称
'
,
key
:
'
class_name
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
150
,
},
{
title
:
'
年级
'
,
key
:
'
grade
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
100
,
},
{
title
:
'
培养层次
'
,
key
:
'
training
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
120
,
},
{
title
:
'
辅导员工号
'
,
key
:
'
counselor_card
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
150
,
},
{
title
:
'
辅导员姓名
'
,
key
:
'
counselor_name
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
120
,
},
{
title
:
'
班主任工号
'
,
key
:
'
head_teacher_card
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
150
,
},
{
title
:
'
班主任姓名
'
,
key
:
'
head_teacher_name
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
120
,
},
{
title
:
'
院系名称
'
,
key
:
'
college_name
'
,
align
:
'
center
'
,
show
:
true
,
minWidth
:
200
,
},
{
title
:
'
状态
'
,
key
:
'
status
'
,
align
:
'
center
'
,
slot
:
'
status
'
,
show
:
true
,
minWidth
:
130
,
},
{
title
:
'
操作
'
,
align
:
'
center
'
,
minWidth
:
180
,
fixed
:
'
right
'
,
show
:
true
,
slot
:
'
action
'
}
],
tableLoading
:
false
,
tableData
:[],
tableSize
:
'
default
'
,
tableFullscreen
:
false
,
dataCount
:
0
,
collapse
:
false
,
loading
:
false
,
tableData
:[
{
},
],
tableSize
:
'
default
'
,
tableFullscreen
:
false
,
total
:
0
,
collapse
:
false
,
params
:{
pageIndex
:
1
,
pageSize
:
10
,
college_id
:
''
,
grade
:
''
,
classId_Name
:
''
,
status
:
''
//#region 评价
// 评价Modal
eltModalShow
:
false
,
eltModalLoading
:
false
,
eltModalTitle
:
''
,
eltActiveId
:
''
,
eltTableData
:
[],
//#endregion
}
},
// 查询条件初始化
created
(){
},
mounted
(){
this
.
getData
()
},
methods
:
{
// 搜索
search
(
val
)
{
Object
.
keys
(
val
).
forEach
(
a
=>
{
if
(
val
[
a
])
{
this
.
params
[
a
]
=
val
[
a
]
}
}
})
this
.
onPageChange
(
1
)
},
// 重置
reset
()
{
this
.
searchCondList
.
forEach
(
a
=>
{
this
.
params
[
a
.
id
]
=
''
})
this
.
onPageChange
(
1
)
},
// 查询条件初始化
created
(){
// 查询列表
getData
(){
this
.
tableLoading
=
true
this
.
asc
.
postApiEvaluateGetBlacklist
(
this
.
params
).
then
(
res
=>
{
// console.log('查询数据', res)
this
.
tableData
=
res
.
response
.
data
this
.
dataCount
=
res
.
response
.
data_count
this
.
tableLoading
=
false
})
},
mounted
(){
// 更改页码
onPageChange
(
val
)
{
this
.
params
.
page_index
=
val
this
.
getData
()
},
methods
:
{
// 查询
getData
(){
this
.
params
.
college_id
=
this
.
params
.
college_id
==
undefined
?
""
:
this
.
params
.
college_id
this
.
params
.
grade
=
this
.
params
.
grade
==
undefined
?
""
:
this
.
params
.
grade
// this.params.classCodeOrName = this.params.classCodeOrName == undefined ? "" : this.params.classCodeOrName
this
.
params
.
classId_Name
=
this
.
params
.
classId_Name
==
undefined
?
""
:
this
.
params
.
classId_Name
this
.
params
.
status
=
this
.
params
.
status
==
undefined
?
""
:
this
.
params
.
status
// this.loading = true
this
.
params
.
pageIndex
=
1
},
// 新增
add
(){
this
.
$refs
.
addEdit
.
add
()
},
// 修改
edit
(
row
){
this
.
$refs
.
addEdit
.
edit
(
row
)
},
// 删除
del
(
row
)
{
console
.
log
(
'
删除
'
);
this
.
$Message
.
info
(
'
删除成功
'
);
},
// 取消删除
cancel
()
{
this
.
$Message
.
info
(
'
You click cancel
'
);
},
// 切换第几页
handleChangePage
(
pageNumber
)
{
this
.
params
.
pageIndex
=
pageNumber
this
.
getData
()
},
// 切换每页条数
handleChangePageSize
(
size
){
this
.
current
=
1
;
this
.
params
.
pageSize
=
size
this
.
getData
()
},
}
// 更改每页条数
onPageSizeChange
(
val
){
this
.
params
.
page_size
=
val
if
(
this
.
params
.
page_index
==
1
)
{
this
.
onPageChange
(
1
)
}
},
// 查看评价
eltDetails
(
row
)
{
// console.log('查看评价', row)
this
.
eltModalShow
=
true
this
.
eltModalLoading
=
true
this
.
eltModalTitle
=
row
.
name
+
'
的评价
'
this
.
asc
.
getApiEvaluateGetEvaluateErrorList
({
userid
:
row
.
userid
}).
then
(
res
=>
{
// console.log('查看评价结果', res)
if
(
res
.
code
==
1
)
{
this
.
eltTableData
=
res
.
response
}
else
{
this
.
$Message
.
error
(
res
.
msg_detail
)
}
}).
finally
(()
=>
{
this
.
eltModalLoading
=
false
})
},
// 删除
rowDelete
(
row
)
{
// console.log('删除', row)
this
.
asc
.
getApiEvaluateBlacklistDel
({
id
:
row
.
id
,
is_del
:
1
}).
then
(
res
=>
{
// console.log('删除结果', res)
if
(
res
.
code
==
1
)
{
this
.
$Message
.
success
(
res
.
response
)
this
.
getData
()
}
else
{
this
.
$Message
.
error
(
res
.
msg_detail
)
}
})
},
}
}
</
script
>
\ No newline at end of file
src/pages/siteManagement/index.vue
浏览文件 @
ce7e9792
...
...
@@ -360,7 +360,7 @@ export default {
this
.
editModalLoading
=
true
this
.
asc
.
getApiPlaceGetPlaceInfo
({
id
:
row
.
id
}).
then
(
res
=>
{
// console.log('编辑详情', res)
this
.
$refs
.
ceditmodal
.
modalDetailsInit
(
res
.
response
)
this
.
$refs
.
ceditmodal
.
modalDetailsInit
(
res
.
response
,
'
place_name
'
)
this
.
editModalLoading
=
false
})
},
...
...
src/pages/systemConfiguration/index.vue
浏览文件 @
ce7e9792
...
...
@@ -34,7 +34,21 @@
</Row>
</Form>
</Card>
<Card
class=
"bigCard"
title=
"评价快捷用语"
></Card>
<Card
class=
"bigCard kjyyCard"
title=
"评价快捷用语"
>
<template
#extra
>
<a
@
click=
"fastContentAdd"
><Icon
type=
"md-add"
/></a>
</
template
>
<p
v-for=
"item in fastContentList"
:key=
"item.id"
name=
"fastCP"
>
<span>
{{ item.content }}
</span>
<span>
<a><Icon
type=
"md-create"
@
click=
"fastContentEditRow(item)"
/></a>
<Poptip
confirm
transfer
title=
"是否确认删除?"
@
on-ok=
"fastContentDelRow(item)"
>
<a
name=
"del"
><Icon
type=
"md-close"
/></a>
</Poptip>
</span>
</p>
</Card>
<Card
class=
"smallCard"
title=
"加时配置"
>
<Form
label-colon
label-position=
"top"
>
<Row>
...
...
@@ -118,7 +132,10 @@
</Col>
<Col
span=
"24"
>
<FormItem
label=
"自动好评星数"
>
<Rate
allow-half
v-model=
"configData.auto_goodevaluate_num"
/>
<Rate
v-model=
"configData.auto_goodevaluate_num"
allow-half
icon=
"md-star"
/>
</FormItem>
</Col>
<Col
span=
"24"
>
...
...
@@ -151,15 +168,29 @@
<p>
</p>
<Button
class=
"save-bt"
type=
"primary"
@
click=
"saveBt('black_day')"
>
保存
</Button>
</Card>
<!-- 快捷用语新增修改Modal -->
<CEditModal
ref=
"ceditmodal"
v-model=
"fastContentModalShow"
:formItem=
"formItem"
:loading=
"fastContentModalLoading"
:formLabelWidth=
"100"
:width=
"800"
@
onSubmit=
"fastContentSubmit"
@
onClose=
"fastContentModalShow = false"
></CEditModal>
</div>
</template>
<
script
>
import
CEditModal
from
'
@/components/CEditModal.vue
'
import
{
cloneDeep
}
from
'
lodash
'
export
default
{
name
:
'
list
'
,
components
:
{},
components
:
{
CEditModal
,
},
data
(){
return
{
configData
:
{
...
...
@@ -191,6 +222,23 @@ export default {
// 快捷用语
fastContentList
:
[],
// 快捷用语编辑Modal
fastContentModalShow
:
false
,
fastContentModalLoading
:
false
,
fastContentIsEdit
:
false
,
// 新增编辑表单项
formItem
:
[
{
id
:
'
content
'
,
name
:
'
快捷用语
'
,
type
:
'
input
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]
},
{
id
:
'
is_enable
'
,
name
:
'
启用
'
,
type
:
'
switch
'
,
disabled
:
false
,
require
:
false
,
optList
:
[]
},
],
defaultFormData
:
{
id
:
""
,
content
:
""
,
createby
:
""
,
createtime
:
""
,
is_enable
:
0
,
is_del
:
0
},
}
},
computed
:
{},
...
...
@@ -202,7 +250,7 @@ export default {
methods
:
{
getData
()
{
this
.
asc
.
getApiSysConfigGetSysConfigAll
().
then
(
res
=>
{
console
.
log
(
'
获取系统配置
'
,
res
)
//
console.log('获取系统配置', res)
res
.
response
.
forEach
(
a
=>
{
this
.
configData
[
a
.
id
]
=
a
.
value
})
...
...
@@ -211,14 +259,14 @@ export default {
// 获取快捷用语
getFastContent
()
{
this
.
asc
.
getApiSysConfigGetCommentContentList
().
then
(
res
=>
{
console
.
log
(
'
快捷用语
'
,
res
)
//
console.log('快捷用语', res)
this
.
fastContentList
=
res
.
response
})
},
// 保存按钮
async
saveBt
(...
id
)
{
console
.
log
(
'
保存按钮
'
,
id
)
//
console.log('保存按钮', id)
for
(
var
i
=
0
;
i
<
id
.
length
;
i
++
)
{
let
obj
=
{
id
:
id
[
i
],
...
...
@@ -232,6 +280,56 @@ export default {
}
this
.
$Message
.
success
(
'
修改成功
'
)
},
// 新增快捷用语
fastContentAdd
()
{
this
.
fastContentModalShow
=
true
this
.
fastContentIsEdit
=
false
this
.
$refs
.
ceditmodal
.
modalInit
(
'
add
'
,
this
.
defaultFormData
)
},
// 编辑快捷用语
fastContentEditRow
(
row
)
{
// console.log(row)
this
.
fastContentModalShow
=
true
this
.
fastContentIsEdit
=
true
this
.
$refs
.
ceditmodal
.
modalInit
(
'
edit
'
,
row
)
},
// 保存快捷用语
fastContentSubmit
(
val
)
{
this
.
$Modal
.
confirm
({
title
:
'
提示
'
,
content
:
'
是否确认提交?
'
,
loading
:
true
,
onOk
:
()
=>
{
this
.
asc
.
postApiSysConfigCommentContentSave
(
val
).
then
(
res
=>
{
// console.log('保存快捷用语结果', res)
if
(
res
.
code
==
1
)
{
this
.
$Message
.
success
(
res
.
response
)
this
.
fastContentModalShow
=
false
this
.
getFastContent
()
}
else
{
this
.
$Message
.
error
(
res
.
msg_detail
)
}
}).
finally
(()
=>
{
this
.
$Modal
.
remove
()
})
}
})
},
// 删除快捷用语
fastContentDelRow
(
row
)
{
// console.log('删除快捷用语', row)
this
.
asc
.
getApiSysConfigCommentContentDel
({
id
:
row
.
id
,
is_del
:
1
}).
then
(
res
=>
{
// console.log('删除快捷用语结果', res)
if
(
res
.
code
==
1
)
{
this
.
$Message
.
success
(
res
.
response
)
this
.
getFastContent
()
}
else
{
this
.
$Message
.
error
(
res
.
msg_detail
)
}
})
},
}
}
</
script
>
...
...
@@ -245,8 +343,11 @@ export default {
justify-content: space-between;
.bigCard, .smallCard{
margin-bottom: 16px;
.ivu-form-item{
margin-bottom: 12px;
/deep/.ivu-card-body{
height: calc(~"100% - 51px");
.ivu-form-item{
margin-bottom: 12px;
}
}
}
.bigCard{
...
...
@@ -254,11 +355,29 @@ export default {
}
.smallCard{
width: calc(~"(100% - 32px) / 3");
/deep/.ivu-card-body{
height: calc(~"100% - 51px");
}
/
/ /
deep/.ivu-card-body{
//
height: calc(~"100% - 51px");
//
}
}
/deep/.kjyyCard{
.ivu-card-body{
overflow: auto;
p[name=fastCP]{
display: flex;
justify-content: space-between;
a[name=del]{
color: #ed4014;
}
a[name=del]:hover{
color: #f16643;
}
a[name=del]:active{
color: #e13d13;
}
}
}
}
/deep/.cplhsCard{
.ivu-card-body{
// height: calc(~"100% - 51px");
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录