黑名单字段修正

main
xuechunyuan 3 years ago
parent 4cbf38dc14
commit e201a35edc
  1. 4
      src/views/articlelist/index.vue
  2. 12
      src/views/blacklist/index.vue
  3. 2
      vue.config.js

@ -86,6 +86,8 @@ export default {
editDisplay: false, editDisplay: false,
viewDisplay: false, viewDisplay: false,
search: true, search: true,
startPlaceholder: '开始日期',
endPlaceholder: '结束日期',
}, },
{ {
label: "内容", label: "内容",
@ -185,6 +187,7 @@ export default {
}, },
rowSave(row, done, loading) { rowSave(row, done, loading) {
row.createDept = this.userInfo.dept_id; row.createDept = this.userInfo.dept_id;
row.content = encodeURIComponent(row.content);
add(row).then(() => { add(row).then(() => {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
@ -215,6 +218,7 @@ export default {
addPublish() { addPublish() {
let param = this.form; let param = this.form;
param.createDept = this.userInfo.dept_id; param.createDept = this.userInfo.dept_id;
param.content = encodeURIComponent(param.content);
queryArticleDetail(this.userInfo.dept_id).then(res => { queryArticleDetail(this.userInfo.dept_id).then(res => {
if (JSON.stringify(res.data.data) != '{}') { if (JSON.stringify(res.data.data) != '{}') {
// //

@ -5,11 +5,11 @@
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
@refresh-change="refreshChange" @on-load="onLoad"> @refresh-change="refreshChange" @on-load="onLoad">
<template slot-scope="{row}" slot="menu"> <template slot-scope="{row}" slot="menu">
<el-button type="text" icon="el-icon-circle-plus-outline" size="small" @click="handleCancel">取消黑名单 <el-button type="text" icon="el-icon-delete" size="small" @click="handleCancel(row)">取消黑名单
</el-button> </el-button>
</template> </template>
<template slot-scope="{row}" slot="status"> <template slot-scope="{row}" slot="status">
<el-tag size="small">{{ row.status == 1 ? '已拉黑' : '已取消' }}</el-tag> <el-tag size="small" type="danger">已拉黑</el-tag>
</template> </template>
</avue-crud> </avue-crud>
</basic-container> </basic-container>
@ -46,7 +46,7 @@ export default {
column: [ column: [
{ {
label: "体检人姓名", label: "体检人姓名",
prop: "title", prop: "cupName",
}, },
{ {
label: "身份证号码", label: "身份证号码",
@ -56,7 +56,7 @@ export default {
}, },
{ {
label: "联系方式", label: "联系方式",
prop: "content", prop: "cupPhone",
}, },
{ {
label: "预约时间", label: "预约时间",
@ -67,10 +67,12 @@ export default {
searchRange: true, searchRange: true,
search: true, search: true,
hide: true, hide: true,
startPlaceholder: '开始日期',
endPlaceholder: '结束日期',
}, },
{ {
label: "预约时间", label: "预约时间",
prop: "releaseTime", prop: "apmTime",
type: "date", type: "date",
format: "yyyy-MM-dd hh:mm:ss", format: "yyyy-MM-dd hh:mm:ss",
valueFormat: "yyyy-MM-dd hh:mm:ss", valueFormat: "yyyy-MM-dd hh:mm:ss",

@ -26,7 +26,7 @@ module.exports = {
proxy: { proxy: {
"/api": { "/api": {
//本地服务接口地址 //本地服务接口地址
target: "http://192.168.1.3", target: "http://192.168.1.3:8088",
//远程演示服务地址,可用于直接启动项目 //远程演示服务地址,可用于直接启动项目
// target: 'https://saber.bladex.vip/api', // target: 'https://saber.bladex.vip/api',
ws: true, ws: true,

Loading…
Cancel
Save