Commit 29adb9c6 authored by lshan's avatar lshan

发布修改

parent 6b3584d5
......@@ -57,7 +57,7 @@
</a-select>
</a-form-model-item>
<a-form-model-item :wrapper-col="{ span: 10, offset: 8 }">
<a-button type="primary" @click="onConfirm">发布</a-button>
<a-button type="primary" @click="onConfirm">新增</a-button>
<a-button style="margin-left: 10px;" @click="show = false">
取消
</a-button>
......@@ -142,7 +142,7 @@ export default Vue.extend({
},
)
if (ret && ret.code === 200) {
message.success('发布成功')
message.success('新增成功')
this.$store.dispatch('platformUserManagement/query')
}
} else {
......
export const columns=[
{
title: '创建时间',
title: '新增时间',
align:'center',
dataIndex: 'created_at',
scopedSlots: {
......
......@@ -2,7 +2,7 @@ import { column } from "@/types/column"
const columns:Array<column> =
[
{
title: '注册时间',
title: '新增时间',
align:'center',
dataIndex: 'created_at',
scopedSlots: { customRender: 'created_at' },
......
......@@ -18,7 +18,7 @@
:text="form.editableContent"
/>
</a-form-model-item>
<!-- 发布操作 -->
<!-- 新增操作 -->
<a-button type="primary" @click="onSubmit" class="mt-5"
>确定</a-button
>
......@@ -121,7 +121,7 @@ export default Vue.extend({
});
console.log(ret);
if (ret.code == 200) {
message.success("发布成功");
message.success("新增成功");
this.$router.push({ name: "activity" });
} else {
return;
......
......@@ -348,7 +348,7 @@ export default Vue.extend({
}).then((ret) => {
if (ret.code === 200) {
this.fetchList()
message.success('发布成功')
message.success('新增成功')
}
})
} else {
......
......@@ -11,7 +11,7 @@
<a-button type="primary" style=" margin-right:10px;" @click="fetchList">查询</a-button>
<a-button type="primary" style=" margin-right:10px;" @click="reset">重置</a-button>
<a-button type="primary" @click="show=true">新增</a-button>
<!-- 发布弹窗 -->
<!-- 新增弹窗 -->
<a-modal v-model="show" title="设置常用问题、自动回复" :centered="true" footer="" style="text:center">
<a-form-model :model="form" ref="ruleForm">
<div style="color: #e63956;text-align: center;">您最多可以设置5个常用问题</div>
......
......@@ -9,7 +9,7 @@
<!-- 操作 -->
<a-button type="primary" style=" margin-right:10px;" @click="query">查询</a-button>
<a-button type="primary" style=" margin-right:10px;" @click="publish">新增</a-button>
<!-- 发布弹窗 -->
<!-- 新增弹窗 -->
<a-modal v-model="show" title="新增消息" :centered="true" footer="">
<a-form-model :model="form" :label-col="labelCol" :wrapper-col="wrapperCol" ref="ruleForm" :rules="rules">
<!-- <a-form-model-item label="模板名称" :required="true" prop="module">
......@@ -46,7 +46,7 @@
bordered
:pagination="pagination"
@change="tableChange">
<!-- 发布时间 -->
<!-- 新增时间 -->
<span slot="time" slot-scope="text,record">
{{ record.created_at | format }}
</span>
......
<template>
<div>
<p class=" text-2xl font-bold mb-5 ">{{ title }}</p>
<p class=" text-gray-400">发布时间:{{ time | format }} <span class=" ml-2">作者:{{ name }}</span></p>
<p class=" text-gray-400">新增时间:{{ time | format }} <span class=" ml-2">作者:{{ name }}</span></p>
<div class="text-left p-5" v-html="content"></div>
<!-- <p class="text-left p-5">{{content}}</p> -->
</div>
......
......@@ -31,7 +31,7 @@
<editor class="edit-news text-left mt-5" :text="form.editableContent" :editorContent.sync="form.content"
@getContent="getContent"/>
</a-form-model-item>
<!-- 发布操作 -->
<!--新增操作 -->
<a-button type="primary" @click="onSubmit" class=" mt-5">确定</a-button>
</a-form-model>
</div>
......
......@@ -320,11 +320,11 @@ export default Vue.extend({
})
.then((ret) => {
if (ret.code === 200) {
message.success("发布成功");
message.success("新增成功");
console.log(ret);
this.$router.push({ name: "loanProduct" });
} else if (ret.code === 406) {
message.success("发布失败");
message.success("新增失败");
console.log(ret);
this.$router.push({ name: "loanProduct" });
}
......
......@@ -2,7 +2,7 @@
<div>
<p class=" text-2xl font-bold mb-5"> {{$route.query.firstSub}}客户信息</p>
<!-- timepicker -->
<span class=" font-semibold">注册时间:</span>
<span class=" font-semibold">新增时间:</span>
<timerange class=" mr-3" :startTime="queryParam.start" :endTime="queryParam.end"
@getNewTime="getNewTime"/>
<a-input placeholder="姓名模糊搜索" v-model="queryParam.user_name" style=" width:150px; margin-right:10px;"/>
......@@ -38,7 +38,7 @@
<a-input type="textarea" placeholder="请输入备注内容,100字以内" v-model="form.notes" style="height:100px"/>
</a-form-model-item>
<a-form-model-item :wrapper-col="{ span: 8, offset: 8 }">
<a-button type="primary" @click="onSubmit">发布</a-button>
<a-button type="primary" @click="onSubmit">新增</a-button>
<a-button style="margin-left: 10px;" @click="show=false">取消</a-button>
</a-form-model-item>
</a-form-model>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment