医学标签添加附加信息
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="commonShopproduct"
|
class="commonShopproduct"
|
||||||
:style="`width: 100%; height: 100%; margin-top: ${!isNoSearch?'-50px':'0'}`"
|
:style="
|
||||||
|
`width: 100%; height: 100%; margin-top: ${!isNoSearch ? '-50px' : '0'}`
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<!-- <el-form
|
<!-- <el-form
|
||||||
:inline="true"
|
:inline="true"
|
||||||
@@ -68,7 +70,7 @@
|
|||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<slot name="tableItem"></slot>
|
<slot name="tableItem"></slot>
|
||||||
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
:reserve-selection="true"
|
:reserve-selection="true"
|
||||||
type="selection"
|
type="selection"
|
||||||
@@ -83,11 +85,13 @@
|
|||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="操作"
|
label="操作"
|
||||||
|
|
||||||
width="120"
|
width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<slot name="operation" :row="scope.row"></slot>
|
<slot name="operation" :row="scope.row"></slot>
|
||||||
|
<el-button type="text" @click="editCourse(scope.row)"
|
||||||
|
>编辑</el-button
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
style="color: red;"
|
style="color: red;"
|
||||||
@@ -98,60 +102,41 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<!-- <li
|
|
||||||
v-for="(v, i) in associatedGoodsList"
|
|
||||||
@click="isEdit ? selectShop(v) : ''"
|
|
||||||
:class="
|
|
||||||
selectShopArr.includes(v.id)
|
|
||||||
? 'isSelect shop_box_item'
|
|
||||||
: 'shop_box_item'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<el-checkbox
|
|
||||||
v-if="isEdit"
|
|
||||||
size="medium"
|
|
||||||
@change="(e) => selectShop(v)"
|
|
||||||
:value="selectShopArr.includes(v.id)"
|
|
||||||
class="shop_box_item_check"
|
|
||||||
></el-checkbox>
|
|
||||||
<img
|
|
||||||
class="shop_box_item_img img-loaded"
|
|
||||||
style="object-fit: cover"
|
|
||||||
data-lazy-collect="1"
|
|
||||||
:src="v.product.productImages"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="shop_box_item_content">
|
|
||||||
<li class="shop_box_item_title">
|
|
||||||
<span></span><span>{{ v.product.productName }}</span>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
<li class="shop_box_item_title shop_box_item_info">
|
|
||||||
<span>价格:</span>
|
|
||||||
|
|
||||||
<span style="color: #fd3f31">¥{{ v.product.price }}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li
|
|
||||||
v-if="v.product.activityPrice"
|
|
||||||
class="shop_box_item_title shop_box_item_info"
|
|
||||||
>
|
|
||||||
<span>活动价:</span>
|
|
||||||
|
|
||||||
<span style="color: #fd3f31">¥{{ v.product.activityPrice }}</span>
|
|
||||||
</li>
|
|
||||||
<li class="shop_box_item_title shop_box_item_info">
|
|
||||||
<span>库存:</span>
|
|
||||||
|
|
||||||
<span>{{ v.product.productStock }}</span>
|
|
||||||
</li>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</li> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
<el-dialog title="提示" :visible.sync="editVisible" width="30%">
|
||||||
|
<div style="width:80%">
|
||||||
|
<div style="margin-bottom:15px">
|
||||||
|
<span style="font-weight:bold"
|
||||||
|
>正在编辑课程:{{ editForm.title }}</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<el-form ref="form" :model="editForm" label-width="80px">
|
||||||
|
<el-form-item label="排序:">
|
||||||
|
<el-input-number
|
||||||
|
placeholder="请输入标签排序"
|
||||||
|
style="width: 100%"
|
||||||
|
v-model="editForm.sort"
|
||||||
|
:min="0"
|
||||||
|
>
|
||||||
|
</el-input-number> </el-form-item
|
||||||
|
><el-form-item label="课程等级:">
|
||||||
|
<el-radio :label="0" v-model="editForm.level">不显示</el-radio>
|
||||||
|
<el-radio :label="1" v-model="editForm.level">初级</el-radio>
|
||||||
|
<el-radio :label="2" v-model="editForm.level"
|
||||||
|
>高级</el-radio
|
||||||
|
> </el-form-item
|
||||||
|
><el-form-item label="课程属性:">
|
||||||
|
<el-radio :label="0" v-model="editForm.selective">不显示</el-radio>
|
||||||
|
<el-radio :label="1" v-model="editForm.selective">必修</el-radio>
|
||||||
|
<el-radio :label="2" v-model="editForm.selective">选修</el-radio>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="editHandleClose">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="submitEdit">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<!-- <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList" @showchooseBookf = "showchooseBookf"></add-or-update>
|
<!-- <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList" @showchooseBookf = "showchooseBookf"></add-or-update>
|
||||||
<choose-book v-if="chooseBookVisible" :bookIds = bookIds ref="chooseBook" :chooseBookVisible = chooseBookVisible @closeBookf = "closeBookf"></choose-book> -->
|
<choose-book v-if="chooseBookVisible" :bookIds = bookIds ref="chooseBook" :chooseBookVisible = chooseBookVisible @closeBookf = "closeBookf"></choose-book> -->
|
||||||
@@ -172,7 +157,7 @@ export default {
|
|||||||
"isNoSearch",
|
"isNoSearch",
|
||||||
"isNoPaging",
|
"isNoPaging",
|
||||||
"axiosType",
|
"axiosType",
|
||||||
"otherInfo",
|
"otherInfo"
|
||||||
],
|
],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -194,7 +179,9 @@ export default {
|
|||||||
chooseBookVisible: false,
|
chooseBookVisible: false,
|
||||||
bookIds: [],
|
bookIds: [],
|
||||||
selectShopArr: [],
|
selectShopArr: [],
|
||||||
dataForm: {}
|
dataForm: {},
|
||||||
|
editVisible: false,
|
||||||
|
editForm: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -219,6 +206,32 @@ export default {
|
|||||||
// await this.getGoodsTypeList();
|
// await this.getGoodsTypeList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
editHandleClose(){
|
||||||
|
this.editForm = {}
|
||||||
|
this.editVisible = false
|
||||||
|
},
|
||||||
|
submitEdit() {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl(`${this.urlList.editCourse}`),
|
||||||
|
method: "post",
|
||||||
|
data: this.$http.adornData(this.editForm)
|
||||||
|
}).then(data => {
|
||||||
|
this.$message.success("操作成功!");
|
||||||
|
this.editHandleClose()
|
||||||
|
this.getAssociatedGoodsList()
|
||||||
|
});
|
||||||
|
},
|
||||||
|
editCourse(row) {
|
||||||
|
console.log("row", row);
|
||||||
|
this.editVisible = true;
|
||||||
|
this.editForm = {
|
||||||
|
title: row.title,
|
||||||
|
id: row.bindId,
|
||||||
|
sort:row.toSociologySort,
|
||||||
|
level:row.level,
|
||||||
|
selective:row.selective
|
||||||
|
};
|
||||||
|
},
|
||||||
shopDelete(row) {
|
shopDelete(row) {
|
||||||
this.$emit("delete", [row]);
|
this.$emit("delete", [row]);
|
||||||
},
|
},
|
||||||
@@ -280,6 +293,7 @@ export default {
|
|||||||
|
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
async getDataList(bookMarketId) {
|
async getDataList(bookMarketId) {
|
||||||
|
|
||||||
this.bookMarketId = bookMarketId;
|
this.bookMarketId = bookMarketId;
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
this.getDataList = [];
|
this.getDataList = [];
|
||||||
@@ -325,15 +339,12 @@ export default {
|
|||||||
|
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
|
|
||||||
if (this.otherInfo.httpType == "raw"&&this.otherInfo.isNoPaging ) {
|
if (this.otherInfo.httpType == "raw" && this.otherInfo.isNoPaging) {
|
||||||
this.$http
|
this.$http
|
||||||
.request({
|
.request({
|
||||||
url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
|
url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: { current: 1,
|
data: { current: 1, limit: 99999999, ...form },
|
||||||
limit: 99999999,
|
|
||||||
...form
|
|
||||||
},
|
|
||||||
header: {
|
header: {
|
||||||
//默认 无 说明:请求头
|
//默认 无 说明:请求头
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
@@ -346,16 +357,13 @@ export default {
|
|||||||
this.dataListLoading = false;
|
this.dataListLoading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
} else if (this.otherInfo.httpType == "raw") {
|
||||||
|
|
||||||
else if (this.otherInfo.httpType == "raw") {
|
|
||||||
this.$http
|
this.$http
|
||||||
.request({
|
.request({
|
||||||
url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
|
url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
|
...form
|
||||||
...form
|
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
//默认 无 说明:请求头
|
//默认 无 说明:请求头
|
||||||
@@ -364,14 +372,14 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(async ({ data }) => {
|
.then(async ({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.associatedGoodsList = [...data[this.otherInfo.httpDataValueName]];
|
this.associatedGoodsList = [
|
||||||
|
...data[this.otherInfo.httpDataValueName]
|
||||||
|
];
|
||||||
|
|
||||||
this.dataListLoading = false;
|
this.dataListLoading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
} else {
|
||||||
|
|
||||||
else {
|
|
||||||
await this.$http({
|
await this.$http({
|
||||||
url: this.$http.adornUrl(`${this.urlList.getAssociatedGoodsList}`),
|
url: this.$http.adornUrl(`${this.urlList.getAssociatedGoodsList}`),
|
||||||
method: "post",
|
method: "post",
|
||||||
|
|||||||
@@ -209,6 +209,37 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="toSociologySort"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="排序"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="课程等级"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.level == 0">不显示</span>
|
||||||
|
<span v-if="scope.row.level == 1">初级</span>
|
||||||
|
<span v-if="scope.row.level == 2">高级</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="课程属性"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.selective == 0">不显示</span>
|
||||||
|
<span v-if="scope.row.selective == 1">必修</span>
|
||||||
|
<span v-if="scope.row.selective == 2">选修</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
</commonShop>
|
</commonShop>
|
||||||
|
|
||||||
@@ -353,9 +384,11 @@ export default {
|
|||||||
add: "/master/courseMedical/addCourseMedical",
|
add: "/master/courseMedical/addCourseMedical",
|
||||||
edit: "/master/courseMedical/editCourseMedical",
|
edit: "/master/courseMedical/editCourseMedical",
|
||||||
hasBindProductList: "/master/courseMedical/getCourseListForMedical",
|
hasBindProductList: "/master/courseMedical/getCourseListForMedical",
|
||||||
CanBindProductList: "/master/courseMedical/getCourseListCanMedical"
|
CanBindProductList: "/master/courseMedical/getCourseListCanMedical",
|
||||||
|
editCourse:'/master/courseMedical/updateCourseToMedicalSort'
|
||||||
},
|
},
|
||||||
addForm: {},
|
addForm: {},
|
||||||
|
|
||||||
isFresh: false,
|
isFresh: false,
|
||||||
dataRule: {
|
dataRule: {
|
||||||
name: [
|
name: [
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
// api接口请求地址
|
// api接口请求地址
|
||||||
// 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://59.110.212.44:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
|
window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
|
||||||
window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
|
// window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';//磊哥
|
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';//磊哥
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
|
||||||
|
|||||||
Reference in New Issue
Block a user