协议相关、文章分类bug修改、文章逻辑完善、前端界面完善

This commit is contained in:
SjS 2025-04-08 20:31:02 +08:00
parent e131da3db0
commit 0c6efcd179
3 changed files with 60 additions and 33 deletions

View File

@ -122,7 +122,7 @@
<!-- 添加或修改广告对话框 --> <!-- 添加或修改广告对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" label-width="80px">
<el-form-item label="广告类型" prop="type"> <el-form-item label="广告类型" prop="type">
<el-select v-model="form.type" placeholder="请选择广告类型"> <el-select v-model="form.type" placeholder="请选择广告类型">
<el-option <el-option
@ -227,18 +227,6 @@ export default {
}, },
// //
form: {}, form: {},
//
// rules: {
// createTime: [
// { required: true, message: "", trigger: "blur" }
// ],
// deleted: [
// { required: true, message: "01", trigger: "blur" }
// ],
// urlType: [
// { required: true, message: "12", trigger: "change" }
// ]
// }
}; };
}, },
created() { created() {

View File

@ -154,7 +154,6 @@
</div> </div>
</form-col> </form-col>
</el-col> </el-col>
<form-col :span="span" label="简介" prop="brief"> <form-col :span="span" label="简介" prop="brief">
<el-input v-model="form.brief" placeholder="请输入简介" /> <el-input v-model="form.brief" placeholder="请输入简介" />
</form-col> </form-col>
@ -176,6 +175,7 @@
import { listAgreement, getAgreement, delAgreement, addAgreement, updateAgreement } from "@/api/bst/agreement"; import { listAgreement, getAgreement, delAgreement, addAgreement, updateAgreement } from "@/api/bst/agreement";
import { $showColumns } from '@/utils/mixins'; import { $showColumns } from '@/utils/mixins';
import FormCol from "@/components/FormCol/index.vue"; import FormCol from "@/components/FormCol/index.vue";
import Editor from "@/components/Editor/index.vue";
// //
const defaultSort = { const defaultSort = {
@ -187,22 +187,58 @@ export default {
name: "Agreement", name: "Agreement",
mixins: [$showColumns], mixins: [$showColumns],
dicts: ['agreement_type'], dicts: ['agreement_type'],
components: {FormCol}, components: {FormCol,Editor},
data() { data() {
return { return {
span: 24, span: 24,
// //
columns: [ columns: [
{key: 'id', visible: true, label: 'ID', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {
key: 'id',
visible: true,
label: 'ID',
minWidth: null,
sortable: true,
overflow: false,
align: 'center',
width: null
},
{key: 'userName', visible: true, label: '商户', sortable: true, align: 'center'}, {key: 'userName', visible: true, label: '商户', sortable: true, align: 'center'},
{key: 'areaName', visible: true, label: '运营区', sortable: true, align: 'center'}, {key: 'areaName', visible: true, label: '运营区', sortable: true, align: 'center'},
//{key: 'storeId', visible: true, label: '', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, //{key: 'storeId', visible: true, label: '', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
//{key: 'areaId', visible: true, label: '', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, //{key: 'areaId', visible: true, label: '', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
{key: 'title', visible: true, label: '标题', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {
{key: 'brief', visible: true, label: '简介', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, key: 'title',
visible: true,
label: '标题',
minWidth: null,
sortable: true,
overflow: false,
align: 'center',
width: null
},
{
key: 'brief',
visible: true,
label: '简介',
minWidth: null,
sortable: true,
overflow: false,
align: 'center',
width: null
},
// {key: 'content', visible: true, label: '', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, // {key: 'content', visible: true, label: '', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
{key: 'agreementType', visible: true, label: '协议类型', minWidth: null, sortable: true, overflow: false, align: 'center', width: null}, {
key: 'agreementType',
visible: true,
label: '协议类型',
minWidth: null,
sortable: true,
overflow: false,
align: 'center',
width: null
},
// {key: 'duration', visible: true, label: '', minWidth: null, sortable: false, overflow: false, align: 'center', width: "100"}, // {key: 'duration', visible: true, label: '', minWidth: null, sortable: false, overflow: false, align: 'center', width: "100"},
], ],
// //
@ -322,9 +358,7 @@ export default {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
getAgreement(id).then(response => { getAgreement(id).then(response => {
const data = response.data; this.form = response.data;
this.form = { ...data, duration: data.duration
};
this.open = true; this.open = true;
this.title = "修改协议"; this.title = "修改协议";
}); });
@ -333,7 +367,10 @@ export default {
submitForm() { submitForm() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
const submitData = { ...this.form }; const submitData = {
...this.form,
};
if (this.form.id != null) { if (this.form.id != null) {
updateAgreement(submitData).then(response => { updateAgreement(submitData).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");

View File

@ -91,11 +91,13 @@
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-audit" :icon="scope.row.appealStatus === '1' ? 'el-icon-audit' : 'el-icon-check'"
@click="handleNext(scope.row, 1)" @click="handleNext(scope.row, 1)"
v-has-permi="['bst:fault:edit']" v-has-permi="['bst:fault:edit']"
v-if="scope.row.appealStatus !=='3' && scope.row.appealStatus !=='0'" v-if="scope.row.appealStatus === '1' || scope.row.appealStatus === '2'"
>处理</el-button> >
{{ scope.row.appealStatus === '1' ? '处理' : '完成' }}
</el-button>
</template> </template>
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-button--> <!-- <el-button-->