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 @@
<el-input v-model="form.storeId" placeholder="请输入" />
</el-form-item> -->
<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 label="排序" prop="order">
<el-input v-model="form.order" placeholder="请输入排序" />
......@@ -203,9 +203,9 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
storeId: undefined,
// storeId: undefined,
title: undefined,
order: undefined,
// order: undefined,
},
// 表单参数
form: {},
......@@ -237,15 +237,15 @@ export default {
reset() {
this.form = {
id: undefined,
storeId: undefined,
// storeId: undefined,
title: undefined,
order: undefined,
delFlag: undefined,
createBy: undefined,
createTime: undefined,
updateBy: undefined,
updateTime: undefined,
remark: undefined,
// order: undefined,
// delFlag: undefined,
// createBy: undefined,
// createTime: undefined,
// updateBy: undefined,
// updateTime: undefined,
// remark: undefined,
};
this.resetForm("form");
},
......
......@@ -65,7 +65,10 @@
v-hasPermi="['system:information:export']"
>导出</el-button>
</el-col> -->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
......@@ -306,7 +309,25 @@ export default {
handleLook(row) {
console.log(row, "查拉吗");
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) {
......
......@@ -406,9 +406,27 @@ export default {
methods: {
clickSeeROWrEM(text, title) {
this.openArticle = true;
this.rowArticle = text;
this.rowArticle = this.replaceSpecialChar(text);
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) {
this.VisitorData = {
name: "",
......
......@@ -436,9 +436,27 @@ export default {
methods: {
clickSeeROWrEM(text, title) {
this.openArticle = true;
this.rowArticle = text;
this.rowArticle = this.replaceSpecialChar(text);
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) {
this.VisitorData = {
name: "",
......
......@@ -551,18 +551,26 @@ export default {
methods: {
clickSeeROWrEM(text, title) {
this.openArticle = true;
this.rowArticle = text;
this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title;
},
clickSeeVisitor(row) {
this.VisitorData = {
name: "",
sex: "",
idcard: "",
isAdult: "",
};
this.openArticleInfo = true;
this.VisitorData = row.userVsitorVo;
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() {
......
......@@ -595,18 +595,26 @@ export default {
methods: {
clickSeeROWrEM(text, title) {
this.openArticle = true;
this.rowArticle = text;
this.rowArticle = this.replaceSpecialChar(text);
this.openArticleTitle = title;
},
clickSeeVisitor(row) {
this.VisitorData = {
name: "",
sex: "",
idcard: "",
isAdult: "",
};
this.openArticleInfo = true;
this.VisitorData = row.userVsitorVo;
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() {
......
......@@ -440,9 +440,27 @@ export default {
methods: {
clickSeeROWrEM(text, title) {
this.openArticle = true;
this.rowArticle = text;
this.rowArticle = this.replaceSpecialChar(text);
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) {
this.VisitorData = {
name: "",
......
......@@ -351,9 +351,27 @@ export default {
methods: {
clickSeeROWrEM(text, title) {
this.openArticle = true;
this.rowArticle = text;
this.rowArticle = this.replaceSpecialChar(text);
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() {
this.loading = true;
......
......@@ -472,9 +472,27 @@ export default {
methods: {
clickSeeROWrEM(text, title) {
this.openArticle = true;
this.rowArticle = text;
this.rowArticle = this.replaceSpecialChar(text);
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) {
this.VisitorData = {
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