Commit 92a52918 by ‘巴博尔’

修改

parent ef5a7960
import request from '@/utils/request'
// 查询商品列表
export function listGoods(query) {
return request({
url: '/system/goods/list',
method: 'get',
params: query
})
}
// 查询商品详细
export function getGoods(id) {
return request({
url: '/system/goods/' + id,
method: 'get'
})
}
// 新增商品
export function addGoods(data) {
return request({
url: '/system/goods',
method: 'post',
data: data
})
}
// 修改商品
export function updateGoods(data) {
return request({
url: '/system/goods',
method: 'put',
data: data
})
}
// 删除商品
export function delGoods(id) {
return request({
url: '/system/goods/' + id,
method: 'delete'
})
}
/*
* @Author: ‘巴博尔’ 2164119982@qq.com
* @Date: 2023-09-13 14:18:29
* @LastEditors: ‘巴博尔’ 2164119982@qq.com
* @LastEditTime: 2023-09-13 14:25:22
* @FilePath: \peizhen-vue\src\api\income\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import request from '@/utils/request'
// 查询商城提现审批列表
export function listIncome(query) {
return request({
url: '/system/storeIncome/list',
method: 'get',
params: query
})
}
// 查询商城提现审批详细
export function getIncome(id) {
return request({
url: '/system/storeIncome/' + id,
method: 'get'
})
}
// 新增商城提现审批
export function addIncome(data) {
return request({
url: '/system/storeIncome',
method: 'post',
data: data
})
}
// 修改商城提现审批
export function updateIncome(data) {
return request({
url: '/system/storeIncome',
method: 'put',
data: data
})
}
// 删除商城提现审批
export function delIncome(id) {
return request({
url: '/system/storeIncome/' + id,
method: 'delete'
})
}
import request from '@/utils/request'
// 查询商品标签列表
export function listGoodsTag(query) {
return request({
url: '/system/goodsTag/list',
method: 'get',
params: query
})
}
// 查询商品标签详细
export function getGoodsTag(id) {
return request({
url: '/system/goodsTag/' + id,
method: 'get'
})
}
// 新增商品标签
export function addGoodsTag(data) {
return request({
url: '/system/goodsTag',
method: 'post',
data: data
})
}
// 修改商品标签
export function updateGoodsTag(data) {
return request({
url: '/system/goodsTag',
method: 'put',
data: data
})
}
// 删除商品标签
export function delGoodsTag(id) {
return request({
url: '/system/goodsTag/' + id,
method: 'delete'
})
}
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<el-input v-model="form.storeId" placeholder="请输入" /> <el-input v-model="form.storeId" placeholder="请输入" />
</el-form-item> --> </el-form-item> -->
<el-form-item label="分类名称" prop="title"> <el-form-item label="分类名称" prop="title">
<el-input maxlength="-1" v-model="form.title" placeholder="请输入分类名称" /> <el-input maxlength="100" v-model="form.title" placeholder="请输入分类名称" show-word-limit />
</el-form-item> </el-form-item>
<!-- <el-form-item label="排序" prop="order"> <!-- <el-form-item label="排序" prop="order">
<el-input v-model="form.order" placeholder="请输入排序" /> <el-input v-model="form.order" placeholder="请输入排序" />
...@@ -203,9 +203,9 @@ export default { ...@@ -203,9 +203,9 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
storeId: undefined, // storeId: undefined,
title: undefined, title: undefined,
order: undefined, // order: undefined,
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -237,15 +237,15 @@ export default { ...@@ -237,15 +237,15 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: undefined, id: undefined,
storeId: undefined, // storeId: undefined,
title: undefined, title: undefined,
order: undefined, // order: undefined,
delFlag: undefined, // delFlag: undefined,
createBy: undefined, // createBy: undefined,
createTime: undefined, // createTime: undefined,
updateBy: undefined, // updateBy: undefined,
updateTime: undefined, // updateTime: undefined,
remark: undefined, // remark: undefined,
}; };
this.resetForm("form"); this.resetForm("form");
}, },
......
...@@ -65,7 +65,10 @@ ...@@ -65,7 +65,10 @@
v-hasPermi="['system:information:export']" v-hasPermi="['system:information:export']"
>导出</el-button> >导出</el-button>
</el-col> --> </el-col> -->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row> </el-row>
<el-table <el-table
...@@ -306,7 +309,25 @@ export default { ...@@ -306,7 +309,25 @@ export default {
handleLook(row) { handleLook(row) {
console.log(row, "查拉吗"); console.log(row, "查拉吗");
this.openArticle = true; this.openArticle = true;
this.rowArticle = row.info; this.rowArticle = this.replaceSpecialChar(row.info);
},
replaceSpecialChar(detail) {
var content = detail.replaceAll(
/<img[^>]*>/gi,
function (match, capture) {
var match = match.replaceAll(
/(style="(.*?)")|(width="(.*?)")|(height="(.*?)")/gi,
``
); //清空自带的width,height
match = match.replaceAll(
"<img",
'<img style="max-width:100%;margin: 0 auto;"'
);
console.log(match, "change"); //设置最大宽度
return match;
}
);
return content;
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
......
...@@ -406,9 +406,27 @@ export default { ...@@ -406,9 +406,27 @@ export default {
methods: { methods: {
clickSeeROWrEM(text, title) { clickSeeROWrEM(text, title) {
this.openArticle = true; this.openArticle = true;
this.rowArticle = text; this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title; this.openArticleTitle = title;
}, },
replaceSpecialChar(detail) {
var content = detail.replaceAll(
/<img[^>]*>/gi,
function (match, capture) {
var match = match.replaceAll(
/(style="(.*?)")|(width="(.*?)")|(height="(.*?)")/gi,
``
); //清空自带的width,height
match = match.replaceAll(
"<img",
'<img style="max-width:100%;margin: 0 auto;"'
);
console.log(match, "change"); //设置最大宽度
return match;
}
);
return content;
},
clickSeeVisitor(row) { clickSeeVisitor(row) {
this.VisitorData = { this.VisitorData = {
name: "", name: "",
......
...@@ -436,9 +436,27 @@ export default { ...@@ -436,9 +436,27 @@ export default {
methods: { methods: {
clickSeeROWrEM(text, title) { clickSeeROWrEM(text, title) {
this.openArticle = true; this.openArticle = true;
this.rowArticle = text; this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title; this.openArticleTitle = title;
}, },
replaceSpecialChar(detail) {
var content = detail.replaceAll(
/<img[^>]*>/gi,
function (match, capture) {
var match = match.replaceAll(
/(style="(.*?)")|(width="(.*?)")|(height="(.*?)")/gi,
``
); //清空自带的width,height
match = match.replaceAll(
"<img",
'<img style="max-width:100%;margin: 0 auto;"'
);
console.log(match, "change"); //设置最大宽度
return match;
}
);
return content;
},
clickSeeVisitor(row) { clickSeeVisitor(row) {
this.VisitorData = { this.VisitorData = {
name: "", name: "",
......
...@@ -551,18 +551,26 @@ export default { ...@@ -551,18 +551,26 @@ export default {
methods: { methods: {
clickSeeROWrEM(text, title) { clickSeeROWrEM(text, title) {
this.openArticle = true; this.openArticle = true;
this.rowArticle = text; this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title; this.openArticleTitle = title;
}, },
clickSeeVisitor(row) { replaceSpecialChar(detail) {
this.VisitorData = { var content = detail.replaceAll(
name: "", /<img[^>]*>/gi,
sex: "", function (match, capture) {
idcard: "", var match = match.replaceAll(
isAdult: "", /(style="(.*?)")|(width="(.*?)")|(height="(.*?)")/gi,
}; ``
this.openArticleInfo = true; ); //清空自带的width,height
this.VisitorData = row.userVsitorVo; match = match.replaceAll(
"<img",
'<img style="max-width:100%;margin: 0 auto;"'
);
console.log(match, "change"); //设置最大宽度
return match;
}
);
return content;
}, },
/** 查询代办买药订单列表 */ /** 查询代办买药订单列表 */
getList() { getList() {
......
...@@ -595,18 +595,26 @@ export default { ...@@ -595,18 +595,26 @@ export default {
methods: { methods: {
clickSeeROWrEM(text, title) { clickSeeROWrEM(text, title) {
this.openArticle = true; this.openArticle = true;
this.rowArticle = text; this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title; this.openArticleTitle = title;
}, },
clickSeeVisitor(row) { replaceSpecialChar(detail) {
this.VisitorData = { var content = detail.replaceAll(
name: "", /<img[^>]*>/gi,
sex: "", function (match, capture) {
idcard: "", var match = match.replaceAll(
isAdult: "", /(style="(.*?)")|(width="(.*?)")|(height="(.*?)")/gi,
}; ``
this.openArticleInfo = true; ); //清空自带的width,height
this.VisitorData = row.userVsitorVo; match = match.replaceAll(
"<img",
'<img style="max-width:100%;margin: 0 auto;"'
);
console.log(match, "change"); //设置最大宽度
return match;
}
);
return content;
}, },
/** 查询代办问诊订单列表 */ /** 查询代办问诊订单列表 */
getList() { getList() {
......
...@@ -440,9 +440,27 @@ export default { ...@@ -440,9 +440,27 @@ export default {
methods: { methods: {
clickSeeROWrEM(text, title) { clickSeeROWrEM(text, title) {
this.openArticle = true; this.openArticle = true;
this.rowArticle = text; this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title; this.openArticleTitle = title;
}, },
replaceSpecialChar(detail) {
var content = detail.replaceAll(
/<img[^>]*>/gi,
function (match, capture) {
var match = match.replaceAll(
/(style="(.*?)")|(width="(.*?)")|(height="(.*?)")/gi,
``
); //清空自带的width,height
match = match.replaceAll(
"<img",
'<img style="max-width:100%;margin: 0 auto;"'
);
console.log(match, "change"); //设置最大宽度
return match;
}
);
return content;
},
clickSeeVisitor(row) { clickSeeVisitor(row) {
this.VisitorData = { this.VisitorData = {
name: "", name: "",
......
...@@ -351,9 +351,27 @@ export default { ...@@ -351,9 +351,27 @@ export default {
methods: { methods: {
clickSeeROWrEM(text, title) { clickSeeROWrEM(text, title) {
this.openArticle = true; this.openArticle = true;
this.rowArticle = text; this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title; this.openArticleTitle = title;
}, },
replaceSpecialChar(detail) {
var content = detail.replaceAll(
/<img[^>]*>/gi,
function (match, capture) {
var match = match.replaceAll(
/(style="(.*?)")|(width="(.*?)")|(height="(.*?)")/gi,
``
); //清空自带的width,height
match = match.replaceAll(
"<img",
'<img style="max-width:100%;margin: 0 auto;"'
);
console.log(match, "change"); //设置最大宽度
return match;
}
);
return content;
},
/** 查询诊前挂号订单列表 */ /** 查询诊前挂号订单列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
...@@ -472,9 +472,27 @@ export default { ...@@ -472,9 +472,27 @@ export default {
methods: { methods: {
clickSeeROWrEM(text, title) { clickSeeROWrEM(text, title) {
this.openArticle = true; this.openArticle = true;
this.rowArticle = text; this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title; this.openArticleTitle = title;
}, },
replaceSpecialChar(detail) {
var content = detail.replaceAll(
/<img[^>]*>/gi,
function (match, capture) {
var match = match.replaceAll(
/(style="(.*?)")|(width="(.*?)")|(height="(.*?)")/gi,
``
); //清空自带的width,height
match = match.replaceAll(
"<img",
'<img style="max-width:100%;margin: 0 auto;"'
);
console.log(match, "change"); //设置最大宽度
return match;
}
);
return content;
},
clickSeeVisitor(row) { clickSeeVisitor(row) {
this.VisitorData = { this.VisitorData = {
name: "", name: "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment