@@ -156,8 +175,11 @@ export default {
"currentType",
"isNoSearch",
"isNoPaging",
+ "disableOperate",
+ "isShowPagination",
"axiosType",
- "otherInfo"
+ "otherInfo",
+ "CustomEdit"
],
data() {
return {
@@ -173,6 +195,9 @@ export default {
pageIndex: 1,
pageSize: 10,
totalPage: 0,
+ current: 1,
+ limit: 50,
+ total: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false,
@@ -206,9 +231,19 @@ export default {
// await this.getGoodsTypeList();
},
methods: {
- editHandleClose(){
- this.editForm = {}
- this.editVisible = false
+ handleSizeChange(val) {
+ this.limit = val;
+ this.getAssociatedGoodsList({ ...this.dataForm });
+ console.log(`每页 ${val} 条`);
+ },
+ handleCurrentChange(val) {
+ this.current = val;
+ this.getAssociatedGoodsList({ ...this.dataForm });
+ console.log(`当前页: ${val}`);
+ },
+ editHandleClose() {
+ this.editForm = {};
+ this.editVisible = false;
},
submitEdit() {
this.$http({
@@ -217,19 +252,23 @@ export default {
data: this.$http.adornData(this.editForm)
}).then(data => {
this.$message.success("操作成功!");
- this.editHandleClose()
- this.getAssociatedGoodsList()
+ this.editHandleClose();
+ this.getAssociatedGoodsList();
});
},
editCourse(row) {
console.log("row", row);
+ if (this.CustomEdit) {
+ this.$emit("edit", row);
+ return;
+ }
this.editVisible = true;
this.editForm = {
title: row.title,
id: row.bindId,
- sort:row.toSociologySort,
- level:row.level,
- selective:row.selective
+ sort: row.toSociologySort,
+ level: row.level,
+ selective: row.selective
};
},
shopDelete(row) {
@@ -293,7 +332,6 @@ export default {
// 获取数据列表
async getDataList(bookMarketId) {
-
this.bookMarketId = bookMarketId;
this.dataListLoading = true;
this.getDataList = [];
@@ -338,8 +376,39 @@ export default {
var form = { ...this.defaultForm, ...this.dataForm };
this.dataListLoading = true;
+ if (this.otherInfo.httpType == "raw" && this.isShowPagination) {
+ this.$http
+ .request({
+ url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
+ method: "POST",
+ data: { current: this.current, limit: this.limit, ...form },
+ header: {
+ //默认 无 说明:请求头
+ "Content-Type": "application/json"
+ }
+ })
+ .then(async ({ data }) => {
+ if (data && data.code === 0) {
+ console.log("data at line 359:", data);
+ if (this.otherInfo.resultValueName) {
+ this.associatedGoodsList = [
+ ...data[this.otherInfo.resultValueName].records
+ ];
+ this.total = data.certificateList.total;
+ console.log("this.total at line 392:", this.total);
+ this.$forceUpdate();
+ } else {
+ this.associatedGoodsList = [...data.result.records];
+ this.total = data[result].total;
+ }
- if (this.otherInfo.httpType == "raw" && this.otherInfo.isNoPaging) {
+ this.dataListLoading = false;
+ }
+ });
+ } else if (
+ this.otherInfo.httpType == "raw" &&
+ this.otherInfo.isNoPaging
+ ) {
this.$http
.request({
url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
@@ -352,7 +421,14 @@ export default {
})
.then(async ({ data }) => {
if (data && data.code === 0) {
- this.associatedGoodsList = [...data.result.records];
+ console.log("data at line 359:", data);
+ if (this.otherInfo.resultValueName) {
+ this.associatedGoodsList = [
+ ...data[this.otherInfo.resultValueName].records
+ ];
+ } else {
+ this.associatedGoodsList = [...data.result.records];
+ }
this.dataListLoading = false;
}
@@ -371,7 +447,7 @@ export default {
}
})
.then(async ({ data }) => {
- console.log('data at line 373:', data)
+ console.log("data at line 373:", data);
if (data && data.code === 0) {
this.associatedGoodsList = [
...data[this.otherInfo.httpDataValueName]
@@ -501,7 +577,7 @@ li {
height: calc(100% - 50px);
overflow: auto;
// margin-left: -10px;
- padding-bottom: 20px;
+ // padding-bottom: 20px;
// margin-top: 20px;
.shop_box_item {
width: 23.7%;
diff --git a/src/views/components/commonBookTags/shopproductTable.vue b/src/views/components/commonBookTags/shopproductTable.vue
index 63b6602..4ffb79a 100644
--- a/src/views/components/commonBookTags/shopproductTable.vue
+++ b/src/views/components/commonBookTags/shopproductTable.vue
@@ -63,6 +63,8 @@
-->
+
+
- 绑定{{CustomOperationText?CustomOperationText:'绑定'}}
@@ -120,6 +123,7 @@ export default {
"title",
"isNoModal",
"urlList",
+ "CustomOperationText",
],
data() {
return {
diff --git a/src/views/components/preview-image.vue b/src/views/components/preview-image.vue
new file mode 100644
index 0000000..5217366
--- /dev/null
+++ b/src/views/components/preview-image.vue
@@ -0,0 +1,397 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ Imageslist }}张
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/certificate/addCertificate.vue b/src/views/modules/certificate/addCertificate.vue
new file mode 100644
index 0000000..57009a7
--- /dev/null
+++ b/src/views/modules/certificate/addCertificate.vue
@@ -0,0 +1,523 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.tel ? item.tel : item.email }}
+ ({{ item.name }})
+
+
+
+
+
+
+
+
+ {{
+ addCertificateForm.userName
+ ? addCertificateForm.userName
+ : "-"
+ }}
+
+
+
+
+
+ {{ addCertificateForm.userKey }}
+
+
+
+
+ {{
+ addCertificateForm.userName
+ ? addCertificateForm.userName
+ : "-"
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/certificate/cateList.vue b/src/views/modules/certificate/cateList.vue
new file mode 100644
index 0000000..4eff6ba
--- /dev/null
+++ b/src/views/modules/certificate/cateList.vue
@@ -0,0 +1,1538 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 姓名:{{
+ scope.row.user.name ? scope.row.user.name : "-"
+ }}
+
+
+ 手机号:{{ scope.row.user.tel }}
+
+
+ 邮箱:{{ scope.row.user.email }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/user/user.vue b/src/views/modules/user/user.vue
index 703b41a..33c84d4 100644
--- a/src/views/modules/user/user.vue
+++ b/src/views/modules/user/user.vue
@@ -224,6 +224,15 @@
+
+
+
+ 用户证书管理
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
用户信息:{{ user.name }}{{ user.tel }}
+
+ (普通用户)
+ (吴门医述VIP)
+ (超级VIP)
+ (众妙之门VIP)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ user.tel }} {{ user.name }}
+ 普通用户
+ (吴门医述VIP)
+ (超级VIP)
+ (众妙之门VIP)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+ 天
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/config/index.js b/static/config/index.js
index 208c35b..7168a66 100644
--- a/static/config/index.js
+++ b/static/config/index.js
@@ -6,7 +6,7 @@
// api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
- //window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb'; //川
+ // window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb'; //川
//window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb'; //本地
// cdn地址 = 域名 + 版本号