Merge remote-tracking branch 'origin/dev'
# Conflicts: # src/api/baseurl.js
This commit is contained in:
commit
5777048c59
@ -1,3 +0,0 @@
|
||||
var baseurl = "https://quanyidaojia.xinelu.cn";
|
||||
|
||||
export default baseurl
|
||||
@ -10,8 +10,6 @@ export function updateNurseStationHeads(data) {
|
||||
}
|
||||
|
||||
//海报视频上传
|
||||
|
||||
|
||||
export function updatePoserHeads(data) {
|
||||
return request({
|
||||
url: '/system/poser/updatePoserHeads',
|
||||
@ -19,6 +17,28 @@ export function updatePoserHeads(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
export function uploadVideoUrl(data) {
|
||||
return request({
|
||||
url: '/system/trainingItem/uploadVideoUrl',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function uploadUrl(data) {
|
||||
return request({
|
||||
url: '/system/trainingItem/uploadUrl',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
export function uploadTrainingCategoryPicture(data) {
|
||||
return request({
|
||||
url: '/system/trainingCategory/uploadTrainingCategoryPicture',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function posts(data) {
|
||||
return request({
|
||||
|
||||
44
src/api/system/trainingCategory.js
Normal file
44
src/api/system/trainingCategory.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询学习培训分类列表
|
||||
export function listTrainingCategory(query) {
|
||||
return request({
|
||||
url: '/system/trainingCategory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询学习培训分类详细
|
||||
export function getTrainingCategory(id) {
|
||||
return request({
|
||||
url: '/system/trainingCategory/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增学习培训分类
|
||||
export function addTrainingCategory(data) {
|
||||
return request({
|
||||
url: '/system/trainingCategory/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改学习培训分类
|
||||
export function updateTrainingCategory(data) {
|
||||
return request({
|
||||
url: '/system/trainingCategory/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除学习培训分类
|
||||
export function delTrainingCategory(id) {
|
||||
return request({
|
||||
url: '/system/trainingCategory/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
68
src/api/system/trainingItem.js
Normal file
68
src/api/system/trainingItem.js
Normal file
@ -0,0 +1,68 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询学习培训项目信息列表
|
||||
export function listTrainingItem(query) {
|
||||
return request({
|
||||
url: '/system/trainingItem/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
export function listTrainingCategory(query) {
|
||||
return request({
|
||||
url: '/system/trainingCategory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 父级项目组
|
||||
export function selectTrainingParent(query) {
|
||||
return request({
|
||||
url: '/system/trainingItem/selectTrainingParent',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 修改上下架
|
||||
export function updateTrainingShelfFlag(data) {
|
||||
return request({
|
||||
url: '/system/trainingItem/updateTrainingShelfFlag',
|
||||
method: 'post',
|
||||
data: data
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// 查询学习培训项目信息详细
|
||||
export function getTrainingItem(id) {
|
||||
return request({
|
||||
url: '/system/trainingItem/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增学习培训项目信息
|
||||
export function addTrainingItem(data) {
|
||||
return request({
|
||||
url: '/system/trainingItem/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改学习培训项目信息
|
||||
export function updateTrainingItem(data) {
|
||||
return request({
|
||||
url: '/system/trainingItem/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除学习培训项目信息
|
||||
export function delTrainingItem(id) {
|
||||
return request({
|
||||
url: '/system/trainingItem/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
68
src/api/system/trainingOrder.js
Normal file
68
src/api/system/trainingOrder.js
Normal file
@ -0,0 +1,68 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询学习培训订单主列表
|
||||
export function listTrainingOrder(query) {
|
||||
return request({
|
||||
url: '/system/trainingOrder/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 查看视频
|
||||
export function orderItemDirectory(id) {
|
||||
return request({
|
||||
url: `/system/trainingOrder/orderItemDirectory?trainingOrderDetailsId=${id}`,
|
||||
method: 'get',
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// 查询学习培训订单主详细
|
||||
export function getTrainingOrder(id) {
|
||||
return request({
|
||||
url: '/system/trainingOrder/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 确定按钮
|
||||
export function xylWeChatRefundNotify(data) {
|
||||
return request({
|
||||
url: '/nurseApp/weChatPayment/weChatRefundOrderApply',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 退款
|
||||
export function refundInformation(id) {
|
||||
return request({
|
||||
url: `/system/trainingOrder/refundInformation` + `?id=${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增学习培训订单主
|
||||
export function addTrainingOrder(data) {
|
||||
return request({
|
||||
url: '/system/trainingOrder/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改学习培训订单主
|
||||
export function updateTrainingOrder(data) {
|
||||
return request({
|
||||
url: '/system/trainingOrder/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除学习培训订单主
|
||||
export function delTrainingOrder(id) {
|
||||
return request({
|
||||
url: '/system/trainingOrder/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@ -9,10 +9,10 @@
|
||||
:show-file-list="false"
|
||||
:headers="headers"
|
||||
style="display: none"
|
||||
:data="filetype"
|
||||
ref="upload"
|
||||
v-if="this.type == 'url'"
|
||||
>
|
||||
</el-upload>
|
||||
></el-upload>
|
||||
<div class="editor" ref="editor" :style="styles"></div>
|
||||
</div>
|
||||
</template>
|
||||
@ -57,10 +57,18 @@ export default {
|
||||
type: String,
|
||||
default: "url",
|
||||
},
|
||||
url: {
|
||||
type: String,
|
||||
default: "/common/richTextPictureUrl",
|
||||
},
|
||||
// filetypes: {
|
||||
// type: String,
|
||||
// default: "",
|
||||
// },
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
uploadUrl: process.env.VUE_APP_BASE_API + "/common/richTextPictureUrl", // 上传的图片服务器地址
|
||||
uploadUrl: process.env.VUE_APP_BASE_API, // 上传的图片服务器地址
|
||||
headers: {
|
||||
Authorization: "Bearer " + getToken(),
|
||||
},
|
||||
@ -82,14 +90,22 @@ export default {
|
||||
[{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色
|
||||
[{ align: [] }], // 对齐方式
|
||||
["clean"], // 清除文本格式
|
||||
["link", "image", "video"], // 链接、图片、视频
|
||||
["link", "image"], // 链接、图片、视频
|
||||
],
|
||||
},
|
||||
placeholder: "请输入内容",
|
||||
readOnly: this.readOnly,
|
||||
},
|
||||
filetype: {
|
||||
type: "",
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.uploadUrl = process.env.VUE_APP_BASE_API + this.url;
|
||||
// console.log(this.url)
|
||||
// this.filetype.type = this.filetypes;
|
||||
},
|
||||
computed: {
|
||||
styles() {
|
||||
let style = {};
|
||||
@ -181,9 +197,8 @@ export default {
|
||||
"image",
|
||||
process.env.VUE_APP_BASE_API + res.fileName
|
||||
);
|
||||
|
||||
console.log(res);
|
||||
this.$emit("imgs", res.fileName);
|
||||
|
||||
// 调整光标到最后
|
||||
quill.setSelection(length + 1);
|
||||
} else {
|
||||
|
||||
@ -12,7 +12,7 @@ let downloadLoadingInstance;
|
||||
export let isRelogin = { show: false };
|
||||
|
||||
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
|
||||
// 创建axios实例
|
||||
// 创建axios实例
|
||||
const service = axios.create({
|
||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
baseURL: process.env.VUE_APP_BASE_API,
|
||||
@ -24,7 +24,7 @@ const service = axios.create({
|
||||
service.interceptors.request.use(config => {
|
||||
// 是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
// 是否需要防止数据重复提交
|
||||
// 是否需要防止数据重复提交
|
||||
const isRepeatSubmit = (config.headers || {}).repeatSubmit === false
|
||||
if (getToken() && !isToken) {
|
||||
config.headers['Authorization'] = 'Bearer ' + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||
@ -67,48 +67,48 @@ service.interceptors.request.use(config => {
|
||||
|
||||
// 响应拦截器
|
||||
service.interceptors.response.use(res => {
|
||||
// 未设置状态码则默认成功状态
|
||||
const code = res.data.code || 200;
|
||||
// 获取错误信息
|
||||
const msg = errorCode[code] || res.data.msg || errorCode['default']
|
||||
// 二进制数据则直接返回
|
||||
if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') {
|
||||
return res.data
|
||||
// 未设置状态码则默认成功状态
|
||||
const code = res.data.code || 200;
|
||||
// 获取错误信息
|
||||
const msg = errorCode[code] || res.data.msg || errorCode['default']
|
||||
// 二进制数据则直接返回
|
||||
if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') {
|
||||
return res.data
|
||||
}
|
||||
if (code === 401) {
|
||||
if (!isRelogin.show) {
|
||||
isRelogin.show = true;
|
||||
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', {
|
||||
confirmButtonText: '重新登录',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
isRelogin.show = false;
|
||||
store.dispatch('LogOut').then(() => {
|
||||
location.href = '/index';
|
||||
})
|
||||
}).catch(() => {
|
||||
isRelogin.show = false;
|
||||
});
|
||||
}
|
||||
if (code === 401) {
|
||||
if (!isRelogin.show) {
|
||||
isRelogin.show = true;
|
||||
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', {
|
||||
confirmButtonText: '重新登录',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
isRelogin.show = false;
|
||||
store.dispatch('LogOut').then(() => {
|
||||
location.href = '/index';
|
||||
})
|
||||
}).catch(() => {
|
||||
isRelogin.show = false;
|
||||
});
|
||||
}
|
||||
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
||||
} else if (code === 500) {
|
||||
Message({
|
||||
message: msg,
|
||||
type: 'error'
|
||||
})
|
||||
return Promise.reject(new Error(msg))
|
||||
} else if (code === 600) {
|
||||
return Promise.reject(new Error(msg))
|
||||
} else if (code !== 200) {
|
||||
Notification.error({
|
||||
title: msg
|
||||
})
|
||||
return Promise.reject('error')
|
||||
} else {
|
||||
return res.data
|
||||
}
|
||||
},
|
||||
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
|
||||
} else if (code === 500) {
|
||||
Message({
|
||||
message: msg,
|
||||
type: 'error'
|
||||
})
|
||||
return res.data & Promise.reject(new Error(msg))
|
||||
} else if (code === 600) {
|
||||
return Promise.reject(new Error(msg))
|
||||
} else if (code !== 200) {
|
||||
Notification.error({
|
||||
title: msg
|
||||
})
|
||||
return Promise.reject('error')
|
||||
} else {
|
||||
return res.data
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.log('err' + error)
|
||||
let { message } = error;
|
||||
@ -135,7 +135,7 @@ export function download(url, params, filename) {
|
||||
transformRequest: [(params) => { return tansParams(params) }],
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||
responseType: 'blob'
|
||||
}).then(async(data) => {
|
||||
}).then(async (data) => {
|
||||
const isLogin = await blobValidate(data);
|
||||
if (isLogin) {
|
||||
const blob = new Blob([data])
|
||||
|
||||
@ -14,7 +14,6 @@ import {
|
||||
} from "@/api/system/goodsCategory";
|
||||
import editor from "@/components/Editor";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
import baseurl from "@/api/baseurl.js";
|
||||
let id = 0;
|
||||
|
||||
export default {
|
||||
@ -414,9 +413,11 @@ export default {
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then((res) => {});
|
||||
}
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.form.goodDetailsLists.forEach(e => {
|
||||
@ -424,10 +425,12 @@ export default {
|
||||
})
|
||||
// this.nurseStationId=this.form.nurseStationId
|
||||
addGoodsInfo(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.StationName = "请选择所属护理站";
|
||||
this.open = false;
|
||||
this.getList();
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.StationName = "请选择所属护理站";
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -722,15 +722,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateStationDepartment(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addStationDepartment(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.addopen = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -513,6 +513,7 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateInfo(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
|
||||
var obj = { pictureUrlList: [] };
|
||||
@ -521,12 +522,15 @@ export default {
|
||||
}
|
||||
this.editopen = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addInfo(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -832,18 +832,22 @@ export default {
|
||||
|
||||
if (this.form.id != null) {
|
||||
updateCommunityInfo(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open2 = false;
|
||||
this.open = false;
|
||||
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addCommunityInfo(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.open2 = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -302,15 +302,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.configId != undefined) {
|
||||
updateConfig(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addConfig(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -308,15 +308,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.deptId != undefined) {
|
||||
updateDept(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addDept(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -364,15 +364,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.dictCode != undefined) {
|
||||
updateData(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addData(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -415,15 +415,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateDiseaseInfo(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addDiseaseInfo(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open2 = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -234,7 +234,6 @@ import {
|
||||
getStationCategoryList
|
||||
} from "@/api/system/goodsCategory";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
import baseurl from "@/api/baseurl";
|
||||
let id = 0;
|
||||
export default {
|
||||
name: "GoodsCategory",
|
||||
@ -266,7 +265,7 @@ export default {
|
||||
}
|
||||
},
|
||||
imgone: "",
|
||||
baseurl: "",
|
||||
baseurl: process.env.VUE_APP_BASE_API,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@ -328,7 +327,6 @@ export default {
|
||||
watch: {},
|
||||
|
||||
created() {
|
||||
this.baseurl = baseurl;
|
||||
this.getList();
|
||||
this.info();
|
||||
},
|
||||
@ -472,19 +470,23 @@ export default {
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then(res => {});
|
||||
}
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
++this.isResouceShow;
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.info();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addGoodsCategory(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
++this.isResouceShow;
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.info();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -106,7 +106,6 @@
|
||||
|
||||
<script>
|
||||
import { VueCropper } from "vue-cropper";
|
||||
import baseurl from "@/api/baseurl.js";
|
||||
import { updateNurseStationHeads, posts } from "@/api/system/stationAvatar.js";
|
||||
|
||||
export default {
|
||||
@ -149,7 +148,7 @@ export default {
|
||||
} else if (this.img == "") {
|
||||
this.options.img = null;
|
||||
} else {
|
||||
this.options.img = baseurl + this.img;
|
||||
this.options.img = process.env.VUE_APP_BASE_API + this.img;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -160,7 +159,7 @@ export default {
|
||||
} else if (this.img == "") {
|
||||
this.options.img = null;
|
||||
} else {
|
||||
this.options.img = baseurl + this.img;
|
||||
this.options.img = process.env.VUE_APP_BASE_API + this.img;
|
||||
}
|
||||
},
|
||||
},
|
||||
@ -215,7 +214,7 @@ export default {
|
||||
formData.append("file", data);
|
||||
formData.append("type", this.types);
|
||||
updateNurseStationHeads(formData).then((response) => {
|
||||
this.options.img = baseurl + response.imgUrl;
|
||||
this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
this.openimg = false;
|
||||
});
|
||||
|
||||
@ -14,7 +14,6 @@ import {
|
||||
} from "@/api/system/goodsCategory";
|
||||
import { getListByUser } from "@/api/system/userlist.js";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
import baseurl from "@/api/baseurl.js";
|
||||
|
||||
export default {
|
||||
components: { stationAcatar, editor },
|
||||
@ -24,8 +23,6 @@ export default {
|
||||
imgsurl: { pictureUrlList: [] },
|
||||
imgone: "",
|
||||
imageUrl: "", //商品图片
|
||||
value: "",
|
||||
datas: null,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@ -429,9 +426,11 @@ export default {
|
||||
}
|
||||
this.imgsurl = { pictureUrlList: [] };
|
||||
++this.isResouceShow;
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.form.goodDetailsLists.forEach((e) => {
|
||||
@ -439,10 +438,12 @@ export default {
|
||||
});
|
||||
addGoodsInfo(this.form).then((response) => {
|
||||
++this.isResouceShow;
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
// this.StationName = "请选择所属护理站";
|
||||
this.open = false;
|
||||
this.getList();
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
// this.StationName = "请选择所属护理站";
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -539,4 +540,4 @@ export default {
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@ -489,13 +489,12 @@ import {
|
||||
selectOrderEvaluate
|
||||
} from "@/api/system/goodsOrder";
|
||||
import { getListByUser } from "@/api/system/userlist.js";
|
||||
import baseurl from "@/api/baseurl.js";
|
||||
|
||||
export default {
|
||||
name: "GoodsOrder",
|
||||
data() {
|
||||
return {
|
||||
baseurl: null,
|
||||
baseurl: process.env.VUE_APP_BASE_API,
|
||||
// 查看商品信息
|
||||
innerorder: false,
|
||||
// 查看物流信息
|
||||
@ -615,7 +614,6 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.baseurl = baseurl;
|
||||
this.info();
|
||||
this.infos();
|
||||
},
|
||||
@ -878,15 +876,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateGoodsOrder(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addGoodsOrder(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -425,15 +425,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.menuId != undefined) {
|
||||
updateMenu(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addMenu(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -283,15 +283,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.noticeId != undefined) {
|
||||
updateNotice(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addNotice(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -362,15 +362,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateNurseType(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addNurseType(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open2 = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -387,14 +387,13 @@ import {
|
||||
getPersonInfo
|
||||
} from "@/api/system/order";
|
||||
import { getListByUser } from "@/api/system/userlist.js";
|
||||
import baseurl from "@/api/baseurl.js";
|
||||
|
||||
export default {
|
||||
name: "order",
|
||||
data() {
|
||||
return {
|
||||
map: null,
|
||||
baseurl: null,
|
||||
baseurl: process.env.VUE_APP_BASE_API,
|
||||
orderStatuslist: [
|
||||
{
|
||||
value: "WAIT_PAY",
|
||||
@ -501,7 +500,6 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.baseurl = baseurl;
|
||||
this.info();
|
||||
this.infos();
|
||||
},
|
||||
|
||||
@ -815,15 +815,19 @@ export default {
|
||||
// this.form.areaCode = Number(item.areaCode);
|
||||
if (this.form.id != null) {
|
||||
updatePatientArchives(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addPatientArchives(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,7 +12,6 @@ import {
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { getListByUser } from "@/api/system/userlist.js";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
import baseurl from '@/api/baseurl'
|
||||
export default {
|
||||
components: { stationAcatar },
|
||||
name: "Person",
|
||||
@ -38,7 +37,7 @@ export default {
|
||||
cb(new Error("请输入正确的联系电话"));
|
||||
};
|
||||
return {
|
||||
baseurl: null,
|
||||
baseurl: process.env.VUE_APP_BASE_API,
|
||||
//男女选择
|
||||
positionalTitleLevellist: [{
|
||||
label: "初级",
|
||||
@ -210,7 +209,6 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.baseurl = baseurl
|
||||
this.infos();
|
||||
this.info();
|
||||
},
|
||||
@ -509,17 +507,21 @@ export default {
|
||||
}
|
||||
if (this.form.id != null) {
|
||||
updatePerson(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addPerson(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
this.departmentName = "请选择所属科室";
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
this.departmentName = "请选择所属科室";
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -283,41 +283,84 @@
|
||||
</template>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="海报图片" :required="true">
|
||||
<el-table label-width="50px" style="margin-top: 20px" :data="form.posterPictureUrlLists">
|
||||
<el-table-column label="图片" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-form-item label="海报图片" prop="posterPictureUrl"> -->
|
||||
<el-table
|
||||
label-width="50px"
|
||||
style="margin-top: 20px"
|
||||
:data="form.posterPictureUrlLists"
|
||||
>
|
||||
<el-table-column label="图片" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<el-form-item
|
||||
:prop="
|
||||
'posterPictureUrlLists.' + scope.$index + '.posterPictureUrl'
|
||||
"
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
message: '请上传海报图片',
|
||||
trigger: 'blur',
|
||||
},
|
||||
]"
|
||||
>
|
||||
<stationAcatar
|
||||
@item="imgUrl"
|
||||
:img="scope.row.posterPictureUrl"
|
||||
:type="'posterPictureUrl'"
|
||||
:item="scope.row"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="图片跳转标识" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="图片跳转标识" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<el-form-item
|
||||
:prop="'posterPictureUrlLists.' + scope.$index + '.jumpType'"
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
message: '请选择图片跳转标识',
|
||||
trigger: 'blur',
|
||||
},
|
||||
]"
|
||||
>
|
||||
<el-select
|
||||
v-model="scope.row.jumpType"
|
||||
placeholder="请选择"
|
||||
clearable
|
||||
style="width: 208px"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in jumpTypes"
|
||||
:key="item.dictValue"
|
||||
:label="item.dictLabel"
|
||||
:value="item.dictValue"
|
||||
@click.native="taptypes(scope.row,item)"
|
||||
@click.native="taptypes(scope.row, item)"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="图片跳转链接" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.jumpLink" placeholder="请输入跳转链接" style="widt h:250px"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="图片跳转链接" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<el-form-item
|
||||
:prop="'posterPictureUrlLists.' + scope.$index + '.jumpLink'"
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
message: '请输入跳转链接',
|
||||
trigger: 'blur',
|
||||
},
|
||||
]"
|
||||
>
|
||||
<el-input
|
||||
v-model="scope.row.jumpLink"
|
||||
placeholder="请输入跳转链接"
|
||||
style="widt h:250px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="250">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" @click="addPictureUrl">新增</el-button>
|
||||
@ -475,7 +518,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import baseurl from "@/api/baseurl.js";
|
||||
import {
|
||||
listPoser,
|
||||
getPoser,
|
||||
@ -485,7 +527,7 @@ import {
|
||||
getListBy,
|
||||
updatePoser,
|
||||
updatePicture,
|
||||
selectPosterImageJump
|
||||
selectPosterImageJump,
|
||||
} from "@/api/system/poser";
|
||||
import { list } from "@/api/system/nurseItem";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
@ -499,7 +541,7 @@ export default {
|
||||
loading: true,
|
||||
getListByUserquery: {
|
||||
pageNum: 1,
|
||||
pageSize: 10
|
||||
pageSize: 10,
|
||||
},
|
||||
nurseStationlist: [],
|
||||
nurseStationshow: false,
|
||||
@ -541,7 +583,7 @@ export default {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
nurseItemCode: null,
|
||||
nurseItemName: null
|
||||
nurseItemName: null,
|
||||
},
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
@ -558,7 +600,7 @@ export default {
|
||||
moduleType: null,
|
||||
poserSort: null,
|
||||
jumpLink: null,
|
||||
jumpType: null
|
||||
jumpType: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {
|
||||
@ -570,42 +612,42 @@ export default {
|
||||
nurseStationId: null,
|
||||
nurseStationName: "请选择所属护理站",
|
||||
nurseItemName: "请选择所属护理项目",
|
||||
nurseItemId: null
|
||||
nurseItemId: null,
|
||||
},
|
||||
// 表单校验
|
||||
rules: {
|
||||
moduleType: [
|
||||
{ required: true, message: "请选择海报所属模块", trigger: "blur" }
|
||||
{ required: true, message: "请选择海报所属模块", trigger: "blur" },
|
||||
],
|
||||
poserName: [
|
||||
{ required: true, message: "请输入海报名称", trigger: "blur" }
|
||||
{ required: true, message: "请输入海报名称", trigger: "blur" },
|
||||
],
|
||||
nurseStationId: [
|
||||
{ required: true, message: "请选择所属护理站", trigger: "blur" }
|
||||
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
||||
],
|
||||
posterIntroduce: [
|
||||
{ required: true, message: "请输入海报简介", trigger: "blur" }
|
||||
{ required: true, message: "请输入海报简介", trigger: "blur" },
|
||||
],
|
||||
|
||||
posterVideoUrl: [
|
||||
{ required: true, message: "请选择海报视频", trigger: "blur" }
|
||||
{ required: true, message: "请选择海报视频", trigger: "blur" },
|
||||
],
|
||||
poserSort: [
|
||||
{ required: true, message: "请输入海报顺序", trigger: "blur" }
|
||||
{ required: true, message: "请输入海报顺序", trigger: "blur" },
|
||||
],
|
||||
nurseItemId: [
|
||||
{ required: true, message: "请选择所属护理项目", trigger: "blur" }
|
||||
]
|
||||
{ required: true, message: "请选择所属护理项目", trigger: "blur" },
|
||||
],
|
||||
},
|
||||
options: [
|
||||
{
|
||||
value: "NURSE_AGENCY_MODULE",
|
||||
label: "护理机构模块"
|
||||
label: "护理机构模块",
|
||||
},
|
||||
{
|
||||
value: "NURSE_ITEM_MODULE",
|
||||
label: "护理项目模块"
|
||||
}
|
||||
label: "护理项目模块",
|
||||
},
|
||||
// {
|
||||
// value: "HEALTH_CONSUTION_MODULE",
|
||||
// label: "健康咨询模块",
|
||||
@ -633,12 +675,12 @@ export default {
|
||||
isShowUploadVideo: false,
|
||||
//显示上传按钮
|
||||
videoForm: {
|
||||
showVideoPath: "" //回显的变量
|
||||
}
|
||||
showVideoPath: "", //回显的变量
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.videourl = baseurl + "/system/station/updateNurseStationHeads";
|
||||
this.videourl = process.env.VUE_APP_BASE_API + "/system/station/updateNurseStationHeads";
|
||||
this.info();
|
||||
this.PosterImageJump();
|
||||
},
|
||||
@ -648,7 +690,7 @@ export default {
|
||||
},
|
||||
//类型字典
|
||||
PosterImageJump() {
|
||||
selectPosterImageJump().then(res => {
|
||||
selectPosterImageJump().then((res) => {
|
||||
this.jumpTypes = res.data;
|
||||
});
|
||||
},
|
||||
@ -664,17 +706,15 @@ export default {
|
||||
if (this.form.posterPictureUrlLists.length == 1) {
|
||||
this.$message.error("最后一条不可删除");
|
||||
} else {
|
||||
this.form.posterPictureUrlLists = this.form.posterPictureUrlLists.filter(
|
||||
e => e.idd != item.idd
|
||||
);
|
||||
this.form.posterPictureUrlLists =
|
||||
this.form.posterPictureUrlLists.filter((e) => e.idd != item.idd);
|
||||
}
|
||||
} else if (!item.idd && item.id) {
|
||||
if (this.form.posterPictureUrlLists.length == 1) {
|
||||
this.$message.error("最后一条不可删除");
|
||||
} else {
|
||||
this.form.posterPictureUrlLists = this.form.posterPictureUrlLists.filter(
|
||||
e => e.id != item.id
|
||||
);
|
||||
this.form.posterPictureUrlLists =
|
||||
this.form.posterPictureUrlLists.filter((e) => e.id != item.id);
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -686,7 +726,7 @@ export default {
|
||||
jumpType: null,
|
||||
idd: this.idd,
|
||||
jumpLink: null,
|
||||
jumpDictId: null
|
||||
jumpDictId: null,
|
||||
};
|
||||
if (this.form.posterPictureUrlLists.length >= 5) {
|
||||
this.$message.error("最多新增5条");
|
||||
@ -727,7 +767,7 @@ export default {
|
||||
},
|
||||
//搜索
|
||||
nurseItemlistInfo() {
|
||||
list(this.nurseItemquery).then(res => {
|
||||
list(this.nurseItemquery).then((res) => {
|
||||
this.nurseItemlist = res.rows;
|
||||
this.nurseItemtotal = res.total;
|
||||
});
|
||||
@ -768,12 +808,12 @@ export default {
|
||||
},
|
||||
//护理站list
|
||||
getlistinfo() {
|
||||
getListBy(this.queryParams).then(res => {
|
||||
getListBy(this.queryParams).then((res) => {
|
||||
this.nurseStationlist = res.rows;
|
||||
});
|
||||
},
|
||||
info() {
|
||||
getListBy(this.queryParams).then(res => {
|
||||
getListBy(this.queryParams).then((res) => {
|
||||
this.nurseStationlist = res.rows;
|
||||
this.queryParams.nurseStationId = res.rows[0].id;
|
||||
this.nurseItemquery.nurseStationId = res.rows[0].id;
|
||||
@ -790,7 +830,7 @@ export default {
|
||||
stationcancel() {
|
||||
this.getListByUserquery = {
|
||||
pageNum: 1,
|
||||
pageSize: 10
|
||||
pageSize: 10,
|
||||
};
|
||||
this.info();
|
||||
},
|
||||
@ -826,13 +866,13 @@ export default {
|
||||
this.objitem.push(imgUrlData.posterPictureUrl);
|
||||
},
|
||||
imgUrl2(imgUrl) {
|
||||
this.videoForm.showVideoPath = baseurl + imgUrl;
|
||||
this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + imgUrl;
|
||||
this.form.posterVideoUrl = imgUrl;
|
||||
},
|
||||
/** 查询泉医到家系统海报模块信息(包含咨询简介信息)列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listPoser(this.queryParams).then(response => {
|
||||
listPoser(this.queryParams).then((response) => {
|
||||
this.poserList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
@ -842,12 +882,12 @@ export default {
|
||||
cancel() {
|
||||
var obj = { pictureUrlList: [] };
|
||||
if (this.form.posterPictureUrlLists) {
|
||||
this.form.posterPictureUrlLists.forEach(e => {
|
||||
this.form.posterPictureUrlLists.forEach((e) => {
|
||||
obj.pictureUrlList.push(e.posterPictureUrl);
|
||||
});
|
||||
}
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
|
||||
updatePicture({ pictureUrlList: this.deletNewImgs }).then((res) => {
|
||||
this.open = false;
|
||||
});
|
||||
}
|
||||
@ -866,8 +906,8 @@ export default {
|
||||
jumpType: null,
|
||||
idd: this.idd,
|
||||
jumpLink: null,
|
||||
jumpDictId: null
|
||||
}
|
||||
jumpDictId: null,
|
||||
},
|
||||
],
|
||||
moduleType: null,
|
||||
id: null,
|
||||
@ -878,7 +918,7 @@ export default {
|
||||
nurseStationName: "请选择所属护理站",
|
||||
nurseStationId: null,
|
||||
nurseItemName: "请选择所属护理项目",
|
||||
nurseItemId: null
|
||||
nurseItemId: null,
|
||||
};
|
||||
this.deletNewImgs = [];
|
||||
this.resetForm("form");
|
||||
@ -903,9 +943,9 @@ export default {
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.nurseStationId);
|
||||
this.itemids = selection.map(item => item.nurseItemId);
|
||||
this.Types = selection.map(item => item.moduleType);
|
||||
this.ids = selection.map((item) => item.nurseStationId);
|
||||
this.itemids = selection.map((item) => item.nurseItemId);
|
||||
this.Types = selection.map((item) => item.moduleType);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
@ -921,7 +961,7 @@ export default {
|
||||
const id = row.nurseStationId || this.ids;
|
||||
const itemid = row.nurseItemId || this.itemids;
|
||||
const type = row.moduleType || this.Types;
|
||||
getPoser(type, id, itemid).then(response => {
|
||||
getPoser(type, id, itemid).then((response) => {
|
||||
this.form = response.data;
|
||||
if (response.data.goodAttributeDetailsLists) {
|
||||
this.goodDetailsLists = response.data.goodAttributeDetailsLists;
|
||||
@ -933,25 +973,29 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.form.posterPictureUrlLists.forEach(e => {
|
||||
this.form.posterPictureUrlLists.forEach((e) => {
|
||||
if (!e.jumpType || e.jumpType == "") {
|
||||
e.jumpDictId = null;
|
||||
}
|
||||
});
|
||||
this.$refs["form"].validate(valid => {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updatePoser(this.form).then(response => {
|
||||
updatePoser(this.form).then((response) => {
|
||||
var obj = { pictureUrlList: [] };
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addPoser(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
addPoser(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -971,7 +1015,7 @@ export default {
|
||||
}
|
||||
this.$modal
|
||||
.confirm("是否确认删除?")
|
||||
.then(function() {
|
||||
.then(function () {
|
||||
return delPoser(nurseStationIds, moduleTypes, nurseItemIds);
|
||||
})
|
||||
.then(() => {
|
||||
@ -985,12 +1029,12 @@ export default {
|
||||
this.download(
|
||||
"system/poser/export",
|
||||
{
|
||||
...this.queryParams
|
||||
...this.queryParams,
|
||||
},
|
||||
`poser_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@ -274,15 +274,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.postId != undefined) {
|
||||
updatePost(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addPost(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -406,15 +406,19 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateRevenue(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addRevenue(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -328,7 +328,7 @@ export default {
|
||||
form: {},
|
||||
defaultProps: {
|
||||
children: "children",
|
||||
label: "label"
|
||||
name: "name"
|
||||
},
|
||||
// 表单校验
|
||||
rules: {
|
||||
@ -567,16 +567,20 @@ export default {
|
||||
if (this.form.roleId != undefined) {
|
||||
this.form.menuIds = this.getMenuAllCheckedKeys();
|
||||
updateRole(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.form.menuIds = this.getMenuAllCheckedKeys();
|
||||
addRole(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -611,4 +615,4 @@ export default {
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@ -1096,13 +1096,15 @@ export default {
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then((res) => { });
|
||||
}
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addStation(this.form).then((response) => {
|
||||
if (response.code) {
|
||||
if (response.code==200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
|
||||
@ -25,7 +25,6 @@
|
||||
"
|
||||
></i>
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
:title="title"
|
||||
:visible.sync="openimg"
|
||||
@ -62,7 +61,11 @@
|
||||
</div>
|
||||
<div
|
||||
class="title"
|
||||
v-if="types != 'posterVideoUrl'&&types!='posterPictureUrl'"
|
||||
v-if="
|
||||
types != 'posterVideoUrl' &&
|
||||
types != 'posterPictureUrl' &&
|
||||
types != 'itemDirectoryUrl'
|
||||
"
|
||||
>请上传图片为800x800px的正方形</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -109,8 +112,9 @@
|
||||
@click="rotateRight()"
|
||||
></el-button>
|
||||
</el-col>-->
|
||||
<el-col :lg="{ span: 2, offset: 20 }" :md="2">
|
||||
<el-button type="primary" size="small" @click="uploadImg()">提 交</el-button>
|
||||
<el-col :lg="{ span: 2, offset: 19 }" :md="2">
|
||||
<el-button v-if="uploadbtn" type="primary" size="small" @click="uploadImg()">提 交</el-button>
|
||||
<el-button v-else :loading="!uploadbtn" type="primary" size="small">提 交 中...</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
@ -119,19 +123,21 @@
|
||||
|
||||
<script>
|
||||
import { VueCropper } from "vue-cropper";
|
||||
import baseurl from "@/api/baseurl.js";
|
||||
import {
|
||||
updateNurseStationHeads,
|
||||
posts,
|
||||
updatePoserHeads
|
||||
uploadVideoUrl,
|
||||
uploadTrainingCategoryPicture,
|
||||
updatePoserHeads,
|
||||
uploadUrl
|
||||
} from "@/api/system/stationAvatar.js";
|
||||
|
||||
export default {
|
||||
components: { VueCropper },
|
||||
|
||||
props: ["img", "type", "item", "tovideo"],
|
||||
data() {
|
||||
return {
|
||||
uploadbtn: true, //上传中不允许点击
|
||||
imageUrl: "",
|
||||
types: "",
|
||||
// 是否显示弹出层
|
||||
@ -166,16 +172,16 @@ export default {
|
||||
} else if (this.tovideo == "") {
|
||||
this.video.VideoPath = null;
|
||||
} else {
|
||||
this.video.VideoPath = baseurl + this.tovideo;
|
||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
||||
}
|
||||
if (this.img == null) {
|
||||
this.options.img = null;
|
||||
} else if (this.img == "") {
|
||||
this.options.img = null;
|
||||
} else {
|
||||
this.options.img = baseurl + this.img;
|
||||
this.options.img = process.env.VUE_APP_BASE_API + this.img;
|
||||
}
|
||||
if (this.types == "posterVideoUrl") {
|
||||
if (this.types == "posterVideoUrl" || this.types == "itemDirectoryUrl") {
|
||||
this.title = "上传视频";
|
||||
} else {
|
||||
this.title = "上传图片";
|
||||
@ -183,7 +189,15 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
tovideo: {
|
||||
handler(newimg, oldimg) {}
|
||||
handler(newimg, oldimg) {
|
||||
if (this.tovideo == null) {
|
||||
this.video.VideoPath = null;
|
||||
} else if (this.tovideo == "") {
|
||||
this.video.VideoPath = null;
|
||||
} else {
|
||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
||||
}
|
||||
}
|
||||
},
|
||||
item: {
|
||||
handler(newimg, oldimg) {
|
||||
@ -197,7 +211,7 @@ export default {
|
||||
} else if (this.img == "") {
|
||||
this.options.img = null;
|
||||
} else {
|
||||
this.options.img = baseurl + this.img;
|
||||
this.options.img = process.env.VUE_APP_BASE_API + this.img;
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -233,7 +247,7 @@ export default {
|
||||
},
|
||||
// 上传预处理
|
||||
beforeUpload(file) {
|
||||
if (this.types == "posterVideoUrl") {
|
||||
if (this.types == "posterVideoUrl" || this.types == "itemDirectoryUrl") {
|
||||
const reader = new FileReader();
|
||||
this.previews.data = file;
|
||||
this.previews.url = URL.createObjectURL(file);
|
||||
@ -260,50 +274,112 @@ export default {
|
||||
},
|
||||
// 上传图片
|
||||
uploadImg() {
|
||||
this.uploadbtn = true;
|
||||
let formData = new FormData();
|
||||
if (this.previews.data) {
|
||||
formData.append("file", this.previews.data);
|
||||
formData.append("type", this.types);
|
||||
if (this.types == "posterVideoUrl") {
|
||||
if (this.types == "itemDirectoryUrl") {
|
||||
this.$modal.msgSuccess("上传视频中,请耐心等待");
|
||||
this.uploadbtn = false;
|
||||
uploadVideoUrl(formData).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.video.VideoPath =
|
||||
process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
this.items.itemDirectoryUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
this.openimg = false;
|
||||
} else {
|
||||
setTimeout(e => {
|
||||
this.openimg = false;
|
||||
}, 1000);
|
||||
}
|
||||
this.uploadbtn = true;
|
||||
});
|
||||
} else if (
|
||||
this.types == "trainingItemCoverUrl" ||
|
||||
this.types == "trainingItemContentUrl" ||
|
||||
this.types == "trainingItemPosterUrl"
|
||||
) {
|
||||
uploadUrl(formData).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
this.openimg = false;
|
||||
} else {
|
||||
setTimeout(e => {
|
||||
this.openimg = false;
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
} else if (this.types == "trainingCategoryPictureUrl") {
|
||||
uploadTrainingCategoryPicture(formData).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
this.openimg = false;
|
||||
} else {
|
||||
setTimeout(e => {
|
||||
this.openimg = false;
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
} else if (this.types == "posterVideoUrl") {
|
||||
updatePoserHeads(formData).then(response => {
|
||||
this.video.VideoPath = baseurl + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
this.openimg = false;
|
||||
if (response.code == 200) {
|
||||
this.video.VideoPath =
|
||||
process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
this.openimg = false;
|
||||
} else {
|
||||
setTimeout(e => {
|
||||
this.openimg = false;
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
updateNurseStationHeads(formData).then(response => {
|
||||
this.options.img = baseurl + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
if (this.types == "attributePitureUrl") {
|
||||
this.items.attributePitureUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
if (response.code == 200) {
|
||||
this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
if (this.types == "attributePitureUrl") {
|
||||
this.items.attributePitureUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "nurseItemClassifyUrl") {
|
||||
this.items.classifyPictureUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "nurseStationClassifyUrl") {
|
||||
this.items.classifyPictureUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "posterPictureUrl") {
|
||||
this.items.posterPictureUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "certificateUrl") {
|
||||
this.items.certificateUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "personCertificateUrl") {
|
||||
this.items.certificateUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
this.openimg = false;
|
||||
} else {
|
||||
setTimeout(e => {
|
||||
this.openimg = false;
|
||||
}, 1000);
|
||||
}
|
||||
if (this.types == "nurseItemClassifyUrl") {
|
||||
this.items.classifyPictureUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "nurseStationClassifyUrl") {
|
||||
this.items.classifyPictureUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "posterPictureUrl") {
|
||||
this.items.posterPictureUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "certificateUrl") {
|
||||
this.items.certificateUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
if (this.types == "personCertificateUrl") {
|
||||
this.items.certificateUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
}
|
||||
this.openimg = false;
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.openimg = false;
|
||||
}
|
||||
this.videoForm.showVideoPath = null;
|
||||
this.previews.data = null;
|
||||
},
|
||||
// 实时预览
|
||||
realTime(data) {
|
||||
|
||||
@ -500,6 +500,7 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateStationClassify(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
|
||||
var obj = { pictureUrlList: [] };
|
||||
@ -508,14 +509,16 @@ export default {
|
||||
}
|
||||
this.editopen = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
addStationClassify(this.form).then((response) => {
|
||||
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -1001,19 +1001,23 @@ export default {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateStationConsumable(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.xgopen = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.form.nurseStationConsumables.forEach((e) => {
|
||||
e.consumablePrice = Number(e.consumablePrice);
|
||||
});
|
||||
addStationConsumable(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -1199,19 +1199,23 @@ export default {
|
||||
e.price = Number(e.price);
|
||||
});
|
||||
updateNurseItem(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.form.nurseStationItemPrices.forEach(e => {
|
||||
e.price = Number(e.price);
|
||||
});
|
||||
addNurseItem(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.$forceUpdate();
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
320
src/views/system/trainingAvatar/index.vue
Normal file
320
src/views/system/trainingAvatar/index.vue
Normal file
@ -0,0 +1,320 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="user-info-head" :class="video.VideoPath ? 'wihi' : ''" @click="editCropper()">
|
||||
<video
|
||||
style="width: 208px; height: 208px"
|
||||
v-bind:src="video.VideoPath"
|
||||
v-if="video.VideoPath"
|
||||
class="avatar video-avatar"
|
||||
controls="controls"
|
||||
>您的浏览器不支持视频播放</video>
|
||||
<i
|
||||
class="el-icon-plus avatar-uploader-icon"
|
||||
style="
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
"
|
||||
></i>
|
||||
</div>
|
||||
<el-dialog
|
||||
:title="title"
|
||||
:visible.sync="openimg"
|
||||
width="950px"
|
||||
append-to-body
|
||||
@opened="modalOpened"
|
||||
@close="closeDialog"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :xs="24" :md="24" :style="{ height: '350px' }">
|
||||
<div class="avatar-upload-preview">
|
||||
<video
|
||||
v-if="openimg"
|
||||
style="width: 100%; height: 100%"
|
||||
v-bind:src="videoForm.showVideoPath"
|
||||
class="avatar video-avatar"
|
||||
controls="controls"
|
||||
>您的浏览器不支持视频播放</video>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<br />
|
||||
<el-progress
|
||||
v-if="progressFlag"
|
||||
:percentage="loadProgress"
|
||||
style="height:30px;padding-bottom:20px"
|
||||
></el-progress>
|
||||
<el-row style="padding-bottom:0px">
|
||||
<el-col :lg="3" :md="2">
|
||||
<el-upload
|
||||
:show-file-list="false"
|
||||
class="upload-demo"
|
||||
ref="upload"
|
||||
:action="uploadurl"
|
||||
:on-preview="handlePreview"
|
||||
:auto-upload="false"
|
||||
:on-change="loadJsonFromFile"
|
||||
:data="filedata"
|
||||
:headers="headers"
|
||||
:on-progress="uploadVideoProcess"
|
||||
:on-success="handleAvatarSuccess"
|
||||
>
|
||||
<el-button slot="trigger" size="small" type="primary" style="float:left">选取文件</el-button>
|
||||
</el-upload>
|
||||
</el-col>
|
||||
<el-col :lg="{ span: 2, offset: 18 }" :md="2">
|
||||
<el-button v-if="uploadbtn" type="primary" size="small" @click="submitUpload">提 交</el-button>
|
||||
<el-button v-else :loading="!uploadbtn" type="primary" size="small">提交中...</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { VueCropper } from "vue-cropper";
|
||||
import { uploadVideoUrl } from "@/api/system/stationAvatar.js";
|
||||
import { getToken } from "@/utils/auth";
|
||||
export default {
|
||||
components: { VueCropper },
|
||||
props: ["img", "type", "item", "tovideo"],
|
||||
data() {
|
||||
return {
|
||||
fileList: [],
|
||||
loadProgress: 0, // 动态显示进度条
|
||||
progressFlag: false, // 关闭进度条
|
||||
uploadbtn: true, //上传中不允许点击
|
||||
imageUrl: "",
|
||||
// 是否显示弹出层
|
||||
openimg: false,
|
||||
// 是否显示cropper
|
||||
visible: false,
|
||||
// 弹出层标题
|
||||
title: "上传图片/视频",
|
||||
filedata: {
|
||||
type: ""
|
||||
},
|
||||
headers: {
|
||||
Authorization: "Bearer " + getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||
},
|
||||
options: {
|
||||
img: null, //裁剪图片的地址
|
||||
autoCrop: true, // 是否默认生成截图框
|
||||
autoCropWidth: 300, // 默认生成截图框宽度
|
||||
autoCropHeight: 300, // 默认生成截图框高度
|
||||
fixedBox: true // 固定截图框大小 不允许改变
|
||||
},
|
||||
previews: {},
|
||||
items: {},
|
||||
//显示上传按钮
|
||||
videoForm: {
|
||||
showVideoPath: null //回显的变量
|
||||
},
|
||||
video: {
|
||||
VideoPath: null //回显的变量
|
||||
},
|
||||
uploadurl: undefined
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.uploadurl =
|
||||
process.env.VUE_APP_BASE_API + "/system/trainingItem/uploadVideoUrl";
|
||||
this.uploadbtn = true;
|
||||
this.filedata.type = this.type;
|
||||
this.items = this.item;
|
||||
if (this.tovideo == null) {
|
||||
this.video.VideoPath = null;
|
||||
} else if (this.tovideo == "") {
|
||||
this.video.VideoPath = null;
|
||||
} else {
|
||||
this.videoForm.showVideoPath =
|
||||
process.env.VUE_APP_BASE_API + this.tovideo;
|
||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
||||
}
|
||||
this.title = "上传视频";
|
||||
},
|
||||
watch: {
|
||||
tovideo: {
|
||||
handler(newimg, oldimg) {
|
||||
this.uploadbtn = true;
|
||||
if (newimg == null) {
|
||||
this.video.VideoPath = null;
|
||||
} else if (newimg == "") {
|
||||
this.video.VideoPath = null;
|
||||
} else {
|
||||
this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + newimg;
|
||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + newimg;
|
||||
}
|
||||
}
|
||||
},
|
||||
item: {
|
||||
handler(newimg, oldimg) {
|
||||
this.uploadbtn = true;
|
||||
this.items = this.item;
|
||||
}
|
||||
},
|
||||
type: {
|
||||
handler(newimg, oldimg) {
|
||||
this.filedata.type = this.type;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
uploadVideoProcess(event, file, fileList) {
|
||||
this.progressFlag = true; // 显示进度条
|
||||
this.loadProgress = parseInt(event.percent); // 动态获取文件上传进度
|
||||
if (this.loadProgress >= 100) {
|
||||
this.loadProgress = 100;
|
||||
setTimeout(() => {
|
||||
this.progressFlag = false;
|
||||
}, 1000); // 一秒后关闭进度条
|
||||
}
|
||||
},
|
||||
loadJsonFromFile(file, fileList) {
|
||||
const reader = new FileReader();
|
||||
this.previews.data = file.raw;
|
||||
this.videoForm.showVideoPath = URL.createObjectURL(file.raw);
|
||||
reader.readAsDataURL(file.raw);
|
||||
reader.onload = () => {
|
||||
// this.options.img = reader.result;
|
||||
};
|
||||
},
|
||||
submitUpload() {
|
||||
this.uploadbtn = false;
|
||||
this.$refs.upload.submit();
|
||||
},
|
||||
handlePreview(file) {},
|
||||
// 编辑头像
|
||||
editCropper() {
|
||||
this.openimg = true;
|
||||
},
|
||||
// 打开弹出层结束时的回调
|
||||
modalOpened() {
|
||||
this.visible = true;
|
||||
},
|
||||
// 覆盖默认的上传行为
|
||||
requestUpload() {},
|
||||
// 向左旋转
|
||||
rotateLeft() {
|
||||
this.$refs.cropper.rotateLeft();
|
||||
},
|
||||
// 向右旋转
|
||||
rotateRight() {
|
||||
this.$refs.cropper.rotateRight();
|
||||
},
|
||||
// 图片缩放
|
||||
changeScale(num) {
|
||||
num = num || 1;
|
||||
this.$refs.cropper.changeScale(num);
|
||||
},
|
||||
// 上传预处理
|
||||
beforeUpload(file) {
|
||||
const reader = new FileReader();
|
||||
this.previews.data = file;
|
||||
this.videoForm.showVideoPath = URL.createObjectURL(file);
|
||||
reader.readAsDataURL(file);
|
||||
reader.onload = () => {
|
||||
// this.options.img = reader.result;
|
||||
};
|
||||
},
|
||||
handleAvatarSuccess(res, file) {
|
||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + res.imgUrl;
|
||||
this.items.itemDirectoryUrl = res.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
this.$modal.msgSuccess("上传视频成功");
|
||||
this.openimg = false;
|
||||
this.uploadbtn = true;
|
||||
},
|
||||
// 上传图片
|
||||
uploadImg() {
|
||||
this.uploadbtn = true;
|
||||
let formData = new FormData();
|
||||
if (this.previews.data) {
|
||||
formData.append("file", this.previews.data);
|
||||
formData.append("type", this.filedata.type);
|
||||
this.$modal.msgSuccess("上传视频中,请耐心等待");
|
||||
this.uploadbtn = false;
|
||||
uploadVideoUrl(formData).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.video.VideoPath =
|
||||
process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||
this.items.itemDirectoryUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
this.openimg = false;
|
||||
} else {
|
||||
setTimeout(e => {
|
||||
this.openimg = false;
|
||||
}, 1000);
|
||||
}
|
||||
this.uploadbtn = true;
|
||||
});
|
||||
} else {
|
||||
this.openimg = false;
|
||||
}
|
||||
// this.videoForm.showVideoPath = null;
|
||||
this.previews.data = null;
|
||||
},
|
||||
// 实时预览
|
||||
realTime(data) {
|
||||
this.previews = data;
|
||||
},
|
||||
// 关闭窗口
|
||||
closeDialog() {
|
||||
this.visible = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.title {
|
||||
position: absolute;
|
||||
bottom: 5%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0%);
|
||||
}
|
||||
.avatar-upload-preview {
|
||||
position: absolute;
|
||||
top: 0%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0%);
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
border-radius: 0%;
|
||||
box-shadow: 0 0 4px #ccc;
|
||||
overflow: hidden;
|
||||
}
|
||||
.user-info-head {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
background: #fafafa;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.user-info-head:hover:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
color: #eee;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
font-size: 24px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
cursor: pointer;
|
||||
line-height: 110px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.wihi {
|
||||
background-color: #fff;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
.wihi:hover:after {
|
||||
transform: translate(50%, 50%);
|
||||
}
|
||||
</style>
|
||||
442
src/views/system/trainingCategory/index.vue
Normal file
442
src/views/system/trainingCategory/index.vue
Normal file
@ -0,0 +1,442 @@
|
||||
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="100px"
|
||||
>
|
||||
<!-- <el-form-item label="父级分类id" prop="parentId">
|
||||
<el-input
|
||||
v-model="queryParams.parentId"
|
||||
placeholder="请输入父级分类id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="培训分类名称" prop="trainingCategoryName">
|
||||
<el-input
|
||||
v-model="queryParams.trainingCategoryName"
|
||||
placeholder="请输入培训分类名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="培训分类编码" prop="trainingCategoryCode">
|
||||
<el-input
|
||||
v-model="queryParams.trainingCategoryCode"
|
||||
placeholder="请输入培训分类编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="培训分类排序" prop="trainingCategorySort">
|
||||
<el-input
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxlength="5"
|
||||
v-model="queryParams.trainingCategorySort"
|
||||
placeholder="请输入培训分类排序"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:trainingCategory:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:trainingCategory:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:trainingCategory:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:trainingCategory:export']"
|
||||
>导出</el-button>
|
||||
</el-col> -->
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="trainingCategoryList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="主键id" align="center" prop="id" />
|
||||
<el-table-column label="父级分类id" align="center" prop="parentId" /> -->
|
||||
<el-table-column
|
||||
label="培训分类名称"
|
||||
align="center"
|
||||
prop="trainingCategoryName"
|
||||
/>
|
||||
<el-table-column
|
||||
label="培训分类编码"
|
||||
align="center"
|
||||
prop="trainingCategoryCode"
|
||||
/>
|
||||
<!-- <el-table-column label="培训分类图片路径" align="center" prop="trainingCategoryPictureUrl" /> -->
|
||||
<el-table-column
|
||||
label="培训分类排序"
|
||||
align="center"
|
||||
prop="trainingCategorySort"
|
||||
/>
|
||||
<!-- <el-table-column label="分类概述" align="center" prop="remark" /> -->
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:trainingCategory:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:trainingCategory:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改学习培训分类对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
label-width="110px"
|
||||
:inline="true"
|
||||
>
|
||||
<!-- <el-form-item label="父级分类id" prop="parentId">
|
||||
<el-input v-model="form.parentId" placeholder="请输入父级分类id" />
|
||||
</el-form-item> -->
|
||||
<el-form-item label="培训分类名称" prop="trainingCategoryName">
|
||||
<el-input
|
||||
v-model="form.trainingCategoryName"
|
||||
maxlength="50"
|
||||
placeholder="请输入培训分类名称"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="培训分类编码" prop="trainingCategoryCode">
|
||||
<el-input v-model="form.trainingCategoryCode" placeholder="请输入培训分类编码" />
|
||||
</el-form-item> -->
|
||||
<el-form-item label="培训分类图片" prop="trainingCategoryPictureUrl">
|
||||
<stationAcatar
|
||||
style="width: 208px"
|
||||
@imgUrl="imgUrl"
|
||||
:img="form.trainingCategoryPictureUrl"
|
||||
:type="'trainingCategoryPictureUrl'"
|
||||
/>
|
||||
<!-- <el-input v-model="form.trainingCategoryPictureUrl" type="textarea" placeholder="请输入内容" /> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="培训分类排序" prop="trainingCategorySort">
|
||||
<el-input
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
v-model.number="form.trainingCategorySort"
|
||||
maxlength="5"
|
||||
placeholder="请输入培训分类排序"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="分类概述" prop="remark">
|
||||
<el-input
|
||||
type="textarea"
|
||||
:rows="5"
|
||||
style="width: 340px"
|
||||
placeholder="请输入分类概述"
|
||||
v-model="form.remark"
|
||||
></el-input>
|
||||
<!-- <el-input v-model="form.remark" placeholder="请输入分类概述" /> -->
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listTrainingCategory,
|
||||
getTrainingCategory,
|
||||
delTrainingCategory,
|
||||
addTrainingCategory,
|
||||
updateTrainingCategory,
|
||||
} from "@/api/system/trainingCategory";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
import { updatePicture } from "@/api/system/station";
|
||||
|
||||
export default {
|
||||
components: { stationAcatar },
|
||||
name: "TrainingCategory",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
imgsurl: { pictureUrlList: [] },
|
||||
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 学习培训分类表格数据
|
||||
trainingCategoryList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
parentId: null,
|
||||
trainingCategoryName: null,
|
||||
trainingCategoryCode: null,
|
||||
trainingCategoryPictureUrl: null,
|
||||
trainingCategorySort: null,
|
||||
},
|
||||
imgone: "",
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
trainingCategoryName: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入培训分类名称",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
remark: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入分类概述",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
trainingCategoryPictureUrl: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择培训分类图片",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
trainingCategorySort: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择培训分类排序",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
imgUrl(imgUrl) {
|
||||
this.form.trainingCategoryPictureUrl = imgUrl;
|
||||
},
|
||||
/** 查询学习培训分类列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listTrainingCategory(this.queryParams).then((response) => {
|
||||
this.trainingCategoryList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
var obj = { pictureUrlList: [] };
|
||||
if (this.imgone != this.form.trainingCategoryPictureUrl) {
|
||||
if (this.form.trainingCategoryPictureUrl) {
|
||||
obj.pictureUrlList.push(this.form.trainingCategoryPictureUrl);
|
||||
}
|
||||
}
|
||||
if (obj.pictureUrlList.length > 0) {
|
||||
updatePicture(obj).then((res) => {});
|
||||
}
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
parentId: null,
|
||||
trainingCategoryName: null,
|
||||
trainingCategoryCode: null,
|
||||
trainingCategoryPictureUrl: null,
|
||||
trainingCategorySort: null,
|
||||
remark: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加学习培训分类";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getTrainingCategory(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.imgone = this.form.trainingCategoryPictureUrl;
|
||||
this.open = true;
|
||||
this.title = "修改学习培训分类";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateTrainingCategory(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addTrainingCategory(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal
|
||||
.confirm('是否确认删除学习培训分类编号为"' + ids + '"的数据项?')
|
||||
.then(function () {
|
||||
return delTrainingCategory(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"system/trainingCategory/export",
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`trainingCategory_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
1402
src/views/system/trainingItem/index.vue
Normal file
1402
src/views/system/trainingItem/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
746
src/views/system/trainingOrder/index.vue
Normal file
746
src/views/system/trainingOrder/index.vue
Normal file
@ -0,0 +1,746 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="100px"
|
||||
>
|
||||
<el-form-item label="所属护理站" prop="nurseStationName">
|
||||
<el-select v-model="queryParams.nurseStationId" placeholder="请选择护理站" @change="handleQuery">
|
||||
<el-option
|
||||
v-for="item in handstationlist"
|
||||
:key="item.id"
|
||||
:label="item.nurseStationName"
|
||||
:value="item.id"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="护理员姓名" prop="nursePersonName">
|
||||
<el-input
|
||||
v-model="queryParams.nursePersonName"
|
||||
placeholder="请输入护理员姓名"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="trainingOrderNo">
|
||||
<el-input
|
||||
v-model="queryParams.trainingOrderNo"
|
||||
placeholder="请输入订单编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="订单金额" prop="trainingOrderAmount">
|
||||
<el-input
|
||||
v-model="queryParams.trainingOrderAmount"
|
||||
placeholder="请输入订单金额"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="订单状态" prop="trainingOrderStatus">
|
||||
<el-select v-model="queryParams.trainingOrderStatus" placeholder="请选择订单状态" clearable>
|
||||
<el-option
|
||||
v-for="item in trainingOrderStatusoptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="trainingOrderList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
]
|
||||
<el-table-column label="所属护理站" align="center" prop="nurseStationName" />
|
||||
<el-table-column label="护理员姓名" align="center" prop="nursePersonName" />
|
||||
<el-table-column label="订单编号" align="center" prop="trainingOrderNo" />
|
||||
<el-table-column property="trainingItemTitle" label="培训课程名称" align="center" />
|
||||
<el-table-column label="订单状态" align="center" prop="trainingOrderStatus">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.trainingOrderStatus == 'WAIT_PAY'">待付款</el-button>
|
||||
<el-button type="primary" v-if="scope.row.trainingOrderStatus == 'PAY'">已付款</el-button>
|
||||
<el-button type="warning" v-if="scope.row.trainingOrderStatus == 'WAIT_REFUND'">退款中</el-button>
|
||||
|
||||
<el-button type="danger" v-if="scope.row.trainingOrderStatus == 'CANCEL'">已取消</el-button>
|
||||
<el-button type="success" v-if="scope.row.trainingOrderStatus == 'REFUNDED'">已退款</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="订单金额" align="center" prop="trainingOrderAmount" />
|
||||
<el-table-column label="下单方式" align="center" prop="trainingOrderChannel">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.trainingOrderChannel == "MOBILE_APP" ? "手机App" : "" }}
|
||||
{{
|
||||
scope.row.trainingOrderChannel == "WECHAT_APPLET"
|
||||
? "微信小程序"
|
||||
: ""
|
||||
}}
|
||||
{{
|
||||
scope.row.trainingOrderChannel == "ALI_PAY_APPLET"
|
||||
? "支付宝小程序"
|
||||
: ""
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="下单时间" align="center" prop="trainingOrderTime" width="180"></el-table-column>
|
||||
<!-- <el-table-column label="备注信息" align="center" prop="remark" /> -->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-zoom-in"
|
||||
@click="handleUpdate(scope.row)"
|
||||
>查看</el-button>
|
||||
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-error"
|
||||
@click="cencel(scope.row)"
|
||||
v-if="scope.row.trainingOrderStatus == 'PAY'"
|
||||
>退款</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
<!-- 退款弹框 -->
|
||||
<el-dialog title="退款" :visible.sync="innerrefund" append-to-body width="500px">
|
||||
<el-form :inline="true" :rules="rules" label-width="120px">
|
||||
<el-form-item label="订单编号" prop="trainingOrderNo">
|
||||
<el-input
|
||||
style="width: 260px"
|
||||
v-model="query.trainingOrderNo"
|
||||
clearable
|
||||
:disabled="true"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="培训课程名" prop="trainingItemTitle">
|
||||
<el-input
|
||||
style="width: 260px"
|
||||
v-model="query.trainingItemTitle"
|
||||
clearable
|
||||
:disabled="true"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="护理站名称" prop="nurseStationName">
|
||||
<el-input
|
||||
style="width: 260px"
|
||||
v-model="query.nurseStationName"
|
||||
clearable
|
||||
:disabled="true"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="退款金额" prop="trainingOrderAmount">
|
||||
<el-input
|
||||
v-model="query.trainingOrderAmount"
|
||||
style="width: 260px"
|
||||
clearable
|
||||
:disabled="true"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="护理员姓名" prop="nursePersonName">
|
||||
<el-input
|
||||
v-model="query.nursePersonName"
|
||||
style="width: 260px"
|
||||
clearable
|
||||
:disabled="true"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="退款原因" prop="cancelAppointmentReason">
|
||||
<el-input
|
||||
style="width: 260px"
|
||||
v-model="query.cancelAppointmentReason"
|
||||
placeholder
|
||||
clearable
|
||||
type="textarea"
|
||||
:rows="5"
|
||||
disabled
|
||||
/>
|
||||
</el-form-item>-->
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="cencelbtn">取 消</el-button>
|
||||
<el-button type="primary" @click="ordercacenl">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 查看学习培训订单主对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px" :inline="true">
|
||||
<el-form-item label="护理员姓名" prop="nursePersonName">
|
||||
<div class="text">{{ form.nursePersonName }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="trainingOrderNo">
|
||||
<div class="text">{{ form.trainingOrderNo }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单金额" prop="trainingOrderAmount">
|
||||
<div class="text">{{ form.trainingOrderAmount }}</div>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="下单方式" prop="trainingOrderChannel">
|
||||
<div class="text">{{ form.trainingOrderChannel }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="下单时间" prop="trainingOrderTime">
|
||||
<div class="text">{{ form.trainingOrderTime }}</div>
|
||||
</el-form-item>
|
||||
<el-table
|
||||
:data="form.trainingOrderDetailsList"
|
||||
align="center"
|
||||
v-loading="loading"
|
||||
style="margin: 10px 0 20px 0; padding-bottom: 20px"
|
||||
>
|
||||
<el-table-column prop="trainingItemTitle" label="培训课程名称" align="center"></el-table-column>
|
||||
<el-table-column prop="trainingItemType" label="课程类型" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{
|
||||
scope.row.trainingItemType == "VIDEO_LEARNING" ? "视频学习" : ""
|
||||
}}
|
||||
{{
|
||||
scope.row.trainingItemType == "GRAPHIC_LEARNING"
|
||||
? "图文学习"
|
||||
: ""
|
||||
}}
|
||||
{{
|
||||
scope.row.trainingItemType == "LIVE_COURSES" ? "直播课程" : ""
|
||||
}}
|
||||
{{
|
||||
scope.row.trainingItemType == "OFFLINE_TRAINING"
|
||||
? "线下培训"
|
||||
: ""
|
||||
}}
|
||||
{{
|
||||
scope.row.trainingItemType == "LEARNING_ITEM_GROUP"
|
||||
? "学习培训课程组"
|
||||
: ""
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-zoom-in"
|
||||
@click="handlelook(scope.row)"
|
||||
>查看</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
<!-- 查看图文 -->
|
||||
<el-dialog title="查看图文" :visible.sync="innerrefundvideo" append-to-body width="1000px">
|
||||
<el-form :inline="true" :rules="rules" label-width="130px" :model="formlist">
|
||||
<el-form-item
|
||||
label="培训课程详情"
|
||||
prop="trainingItemDetails"
|
||||
v-if="
|
||||
formlist.trainingItemType == 'VIDEO_LEARNING' ||
|
||||
formlist.trainingItemType == 'LEARNING_ITEM_GROUP'
|
||||
"
|
||||
>
|
||||
<div class="textdetails">{{ formlist.trainingItemDetails }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="
|
||||
formlist.trainingItemType == 'GRAPHIC_LEARNING'
|
||||
? '培训课程内容'
|
||||
: formlist.trainingItemType == 'LEARNING_ITEM_GROUP'
|
||||
? '培训课程介绍'
|
||||
: ''
|
||||
"
|
||||
prop="trainingItemContent"
|
||||
v-if="
|
||||
formlist.trainingItemType == 'GRAPHIC_LEARNING' ||
|
||||
formlist.trainingItemType == 'LEARNING_ITEM_GROUP'
|
||||
"
|
||||
>
|
||||
<editor
|
||||
@imgs="imgs"
|
||||
:url="'/common/uploadTrainingItemContentUrl'"
|
||||
v-model="formlist.trainingItemContent"
|
||||
:min-height="150"
|
||||
style="width: 600px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="培训课程封面图片" prop="trainingItemCoverUrl">
|
||||
<img class="img" :src="baseurl + formlist.trainingItemCoverUrl" alt />
|
||||
</el-form-item>
|
||||
<el-form-item label="培训课程海报图片" prop="trainingItemPosterUrl">
|
||||
<img class="img" :src="baseurl + formlist.trainingItemPosterUrl" alt />
|
||||
</el-form-item>
|
||||
<el-table
|
||||
ref="list"
|
||||
v-if="formlist.trainingItemType == 'VIDEO_LEARNING'"
|
||||
v-loading="loading"
|
||||
style="margin-top: 20px; width: 1250px"
|
||||
:data="formlist.list"
|
||||
>
|
||||
<el-table-column label="章节视频" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<video class="img" :src="baseurl + scope.row.itemDirectoryUrl" controls="controls"></video>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="章节名称" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.itemDirectoryName" placeholder="请输入章节名称"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="章节标题" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.itemDirectoryTitle" placeholder="请输入章节标题"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listTrainingOrder,
|
||||
getTrainingOrder,
|
||||
orderItemDirectory,
|
||||
refundInformation,
|
||||
delTrainingOrder,
|
||||
xylWeChatRefundNotify,
|
||||
addTrainingOrder,
|
||||
updateTrainingOrder
|
||||
} from "@/api/system/trainingOrder";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
import editor from "@/components/Editor";
|
||||
import { getListByUser } from "@/api/system/userlist.js";
|
||||
export default {
|
||||
name: "TrainingOrder",
|
||||
components: { stationAcatar, editor },
|
||||
data() {
|
||||
return {
|
||||
baseurl: process.env.VUE_APP_BASE_API,
|
||||
trainingOrderStatusoptions: [
|
||||
{
|
||||
value: "WAIT_PAY",
|
||||
label: "待付款"
|
||||
},
|
||||
{
|
||||
value: "PAY",
|
||||
label: "已付款"
|
||||
},
|
||||
{
|
||||
value: "WAIT_REFUND",
|
||||
label: "退款中"
|
||||
},
|
||||
{
|
||||
value: "REFUNDED",
|
||||
label: "已退款"
|
||||
},
|
||||
{
|
||||
value: "CANCEL",
|
||||
label: "已取消"
|
||||
}
|
||||
],
|
||||
nurseStationshow: false,
|
||||
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
innerrefund: false,
|
||||
innerrefundvideo: false,
|
||||
query: {},
|
||||
formlist: {},
|
||||
trainingItemTypeoptions: [
|
||||
{
|
||||
value: "GRAPHIC_LEARNING",
|
||||
label: "图文学习"
|
||||
},
|
||||
{
|
||||
value: "LEARNING_ITEM_GROUP",
|
||||
label: "学习培训项目组"
|
||||
},
|
||||
{
|
||||
value: "VIDEO_LEARNING",
|
||||
label: "视频学习"
|
||||
}
|
||||
],
|
||||
// 选中数组
|
||||
ids: [],
|
||||
optiondeflag: [
|
||||
{
|
||||
value: 0,
|
||||
label: "否"
|
||||
},
|
||||
{
|
||||
value: 1,
|
||||
label: "是"
|
||||
}
|
||||
],
|
||||
options: [
|
||||
{
|
||||
value: "MOBILE_APP",
|
||||
label: "手机App"
|
||||
},
|
||||
{
|
||||
value: "WECHAT_APPLET",
|
||||
label: "微信小程序"
|
||||
},
|
||||
{
|
||||
value: "ALI_PAY_APPLET",
|
||||
label: "支付宝小程序"
|
||||
}
|
||||
],
|
||||
getListByUserquery: {
|
||||
pageNum: 1,
|
||||
pageSize: 10
|
||||
},
|
||||
handstationlist: [], //页面搜索list
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
stationtotal: 0,
|
||||
// 学习培训订单主表格数据
|
||||
trainingOrderList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
nurseStationId: null,
|
||||
trainingOrderAmount: null,
|
||||
nurseStationPersonId: null,
|
||||
nursePersonName: null,
|
||||
trainingOrderNo: null,
|
||||
trainingOrderStatus: null,
|
||||
trainingOrderAmount: null,
|
||||
trainingOrderChannel: null,
|
||||
trainingOrderTime: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
list: [],
|
||||
nurseStationlist: [],
|
||||
trainingOrderDetailsList: [],
|
||||
// 表单校验
|
||||
rules: {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.infos();
|
||||
this.info();
|
||||
},
|
||||
methods: {
|
||||
//页面所属护理站
|
||||
//权限列表
|
||||
info() {
|
||||
getListByUser(this.queryParams).then(res => {
|
||||
this.total = res.total;
|
||||
this.nurseStationlist = res.rows;
|
||||
this.queryParams.nurseStationId = res.rows[0].id;
|
||||
this.getList();
|
||||
// this.handleQuery();
|
||||
});
|
||||
},
|
||||
infos() {
|
||||
var queryFor = {
|
||||
pageNum: 1,
|
||||
pageSize: 9999
|
||||
};
|
||||
getListByUser(queryFor).then(res => {
|
||||
this.handstationlist = res.rows;
|
||||
});
|
||||
},
|
||||
// 章节视频
|
||||
itemDirectoryUrl(item) {
|
||||
let items = JSON.parse(item);
|
||||
console.log(items);
|
||||
if (items.idd && !items.trainingItemDirectoryId) {
|
||||
this.form.trainingItemDirectoryList.forEach(e => {
|
||||
if (e.idd == items.idd) {
|
||||
e.itemDirectoryUrl = items.itemDirectoryUrl;
|
||||
}
|
||||
});
|
||||
} else if (!items.idd && items.attributeDetailsId) {
|
||||
this.form.trainingItemDirectoryList.forEach(e => {
|
||||
if (e.attributeDetailsId == items.attributeDetailsId) {
|
||||
e.itemDirectoryUrl = items.itemDirectoryUrl;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
imgUrl4(imgUrl) {},
|
||||
// 取消按钮
|
||||
cencelbtn() {
|
||||
this.innerrefund = false;
|
||||
},
|
||||
// // 确认退款
|
||||
cencel(row) {
|
||||
console.log(row);
|
||||
refundInformation(row.id).then(response => {
|
||||
this.query = response.data;
|
||||
this.innerrefund = true;
|
||||
});
|
||||
},
|
||||
imgs(item) {
|
||||
console.log(item);
|
||||
this.imgsurl.pictureUrlList.push(item);
|
||||
},
|
||||
//退款确定按钮
|
||||
ordercacenl() {
|
||||
var obj = {
|
||||
orderNo: this.query.trainingOrderNo,
|
||||
refundPrice: this.query.trainingOrderAmount,
|
||||
trainingOrderFlag: "TRAINING"
|
||||
};
|
||||
xylWeChatRefundNotify(obj).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$modal.msgSuccess("退款有延迟,请耐心等待");
|
||||
}
|
||||
this.getList();
|
||||
this.innerrefund = false;
|
||||
});
|
||||
},
|
||||
/** 查询学习培训订单主列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listTrainingOrder(this.queryParams).then(response => {
|
||||
this.trainingOrderList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 查看视频
|
||||
handlelook(row) {
|
||||
this.loading = true;
|
||||
this.innerrefundvideo = true;
|
||||
console.log(row);
|
||||
this.formlist.trainingItemCoverUrl = row.trainingItemCoverUrl;
|
||||
this.formlist.trainingItemPosterUrl = row.trainingItemPosterUrl;
|
||||
this.formlist.trainingItemDetails = row.trainingItemDetails;
|
||||
this.formlist.trainingItemContent = row.trainingItemContent;
|
||||
this.formlist.trainingItemType = row.trainingItemType;
|
||||
orderItemDirectory(row.trainingOrderDetailsId).then(response => {
|
||||
this.formlist.list = response.rows;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
nurseStationId: null,
|
||||
nurseStationPersonId: null,
|
||||
nursePersonName: null,
|
||||
trainingOrderNo: null,
|
||||
trainingOrderStatus: null,
|
||||
trainingOrderAmount: null,
|
||||
trainingOrderChannel: null,
|
||||
trainingOrderTime: null,
|
||||
remark: null,
|
||||
delFlag: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
if (this.nurseStationlist[0]) {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.queryParams.pageSize = 10;
|
||||
this.queryParams.nursePersonName = null;
|
||||
this.queryParams.trainingOrderNo = null;
|
||||
this.queryParams.trainingOrderStatus = null;
|
||||
}
|
||||
// this.queryParams = {
|
||||
// pageNum: 1,
|
||||
// pageSize: 10,
|
||||
// };
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加学习培训订单主";
|
||||
},
|
||||
/** 查看按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getTrainingOrder(id).then(response => {
|
||||
console.log(response);
|
||||
this.form = response.data;
|
||||
this.form.trainingOrderDetailsList =
|
||||
response.data.trainingOrderDetailsList;
|
||||
response.data.trainingOrderChannel == "WECHAT_APPLET"
|
||||
? (response.data.trainingOrderChannel = "微信小程序")
|
||||
: "";
|
||||
response.data.trainingOrderChannel == "MOBILE_APP"
|
||||
? (response.data.trainingOrderChannel = "手机App")
|
||||
: "";
|
||||
response.data.trainingOrderChannel == "ALI_PAY_APPLET"
|
||||
? (response.data.trainingOrderChannel = "支付宝小程序")
|
||||
: "";
|
||||
|
||||
this.open = true;
|
||||
this.title = "查看学习培训订单";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateTrainingOrder(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addTrainingOrder(this.form).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal
|
||||
.confirm('是否确认删除学习培训订单主编号为"' + ids + '"的数据项?')
|
||||
.then(function() {
|
||||
return delTrainingOrder(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"system/trainingOrder/export",
|
||||
{
|
||||
...this.queryParams
|
||||
},
|
||||
`trainingOrder_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.img {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.text {
|
||||
width: 250px;
|
||||
height: 36px;
|
||||
line-height: 36px;
|
||||
padding-left: 15px;
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
padding: 0 15px;
|
||||
border: 1px solid #e6ebf5;
|
||||
}
|
||||
.textdetail {
|
||||
width: 550px;
|
||||
// height: 600px;
|
||||
line-height: 36px;
|
||||
padding-left: 15px;
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
padding: 0 15px;
|
||||
border: 1px solid #e6ebf5;
|
||||
}
|
||||
.stationbtn {
|
||||
width: 208px;
|
||||
text-align: left;
|
||||
height: 32px;
|
||||
overflow: hidden;
|
||||
font-size: 14px;
|
||||
}
|
||||
.textdetails {
|
||||
width: 600px;
|
||||
// height: 300px;
|
||||
line-height: 36px;
|
||||
padding-left: 15px;
|
||||
font-size: 14px;
|
||||
border-radius: 4px;
|
||||
padding: 0 15px;
|
||||
border: 1px solid #e6ebf5;
|
||||
}
|
||||
::v-deep .wihi {
|
||||
text-align: left !important;
|
||||
// width: 208px !important;
|
||||
// height: 208px !important;
|
||||
background: none;
|
||||
}
|
||||
::v-deep .video-avatar {
|
||||
transform: translateX(-25%);
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user