|
@@ -4,7 +4,7 @@
|
|
|
size="small"
|
|
size="small"
|
|
|
type="text"
|
|
type="text"
|
|
|
@click="detailBtn((dialogFormVisible = true))"
|
|
@click="detailBtn((dialogFormVisible = true))"
|
|
|
- >{{$t('详情')}}</el-button
|
|
|
|
|
|
|
+ >{{ $t("详情") }}</el-button
|
|
|
>
|
|
>
|
|
|
<el-drawer
|
|
<el-drawer
|
|
|
:title="$t('资讯管理')"
|
|
:title="$t('资讯管理')"
|
|
@@ -17,7 +17,7 @@
|
|
|
@close="onClose"
|
|
@close="onClose"
|
|
|
>
|
|
>
|
|
|
<div style="display: flex; justify-content: space-between; padding: 10px">
|
|
<div style="display: flex; justify-content: space-between; padding: 10px">
|
|
|
- <div>{{$t('资讯管理')}}</div>
|
|
|
|
|
|
|
+ <div>{{ $t("资讯管理") }}</div>
|
|
|
<div>
|
|
<div>
|
|
|
<edit
|
|
<edit
|
|
|
v-if="tool.checkAuth($route.name, 'update')"
|
|
v-if="tool.checkAuth($route.name, 'update')"
|
|
@@ -32,15 +32,17 @@
|
|
|
size="small"
|
|
size="small"
|
|
|
@click="delBtn"
|
|
@click="delBtn"
|
|
|
:disabled="form.status == '发布'"
|
|
:disabled="form.status == '发布'"
|
|
|
- >{{$t(`删除`)}}</el-button
|
|
|
|
|
|
|
+ >{{ $t(`删除`) }}</el-button
|
|
|
>
|
|
>
|
|
|
<el-button
|
|
<el-button
|
|
|
- size="small"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- style="margin-right: 25px!important;"
|
|
|
|
|
- @click="statusChange"
|
|
|
|
|
- v-if="tool.checkAuth($route.name, 'update')"
|
|
|
|
|
- >{{ form.status == '新建' ? $t("发布") : $t("取消发布") }}</el-button
|
|
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ style="margin-right: 25px !important"
|
|
|
|
|
+ @click="statusChange"
|
|
|
|
|
+ v-if="tool.checkAuth($route.name, 'update')"
|
|
|
|
|
+ >{{
|
|
|
|
|
+ form.status == "新建" ? $t("发布") : $t("取消发布")
|
|
|
|
|
+ }}</el-button
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -56,6 +58,15 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item :label="$t('副标题')" prop="summary">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="form.summary"
|
|
|
|
|
+ :placeholder="$t('请输入副标题')"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item :label="$t('分类')" prop="sat_notice_classid">
|
|
<el-form-item :label="$t('分类')" prop="sat_notice_classid">
|
|
|
<el-select
|
|
<el-select
|
|
@@ -82,14 +93,14 @@
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
disabled
|
|
disabled
|
|
|
>
|
|
>
|
|
|
- <el-radio :label="$t(`新建`)">{{$t(`新建`)}}</el-radio>
|
|
|
|
|
- <el-radio :label="$t(`发布`)">{{$t(`发布`)}}</el-radio>
|
|
|
|
|
|
|
+ <el-radio :label="$t(`新建`)">{{ $t(`新建`) }}</el-radio>
|
|
|
|
|
+ <el-radio :label="$t(`发布`)">{{ $t(`发布`) }}</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <p style="font-size: 14px">{{$t('资讯封面')}}</p>
|
|
|
|
|
|
|
+ <p style="font-size: 14px">{{ $t("资讯封面") }}</p>
|
|
|
<div style="margin-top: 10px">
|
|
<div style="margin-top: 10px">
|
|
|
<previewImage
|
|
<previewImage
|
|
|
v-if="form.cover"
|
|
v-if="form.cover"
|
|
@@ -111,10 +122,12 @@
|
|
|
@onSuccess="onCoverSubmit"
|
|
@onSuccess="onCoverSubmit"
|
|
|
></upload>
|
|
></upload>
|
|
|
<p class="info">
|
|
<p class="info">
|
|
|
- {{$t('注:建议上传图片大小')}}130x80px,{{$t('大小不超过')}}2M,{{$t('格式为')}}JPG/PNG
|
|
|
|
|
|
|
+ {{ $t("注:建议上传图片大小") }}130x80px,{{
|
|
|
|
|
+ $t("大小不超过")
|
|
|
|
|
+ }}2M,{{ $t("格式为") }}JPG/PNG
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
- <p style="font-size: 14px; margin-top: 10px">{{$t('附件上传')}}</p>
|
|
|
|
|
|
|
+ <p style="font-size: 14px; margin-top: 10px">{{ $t("附件上传") }}</p>
|
|
|
<div style="margin-top: 10px">
|
|
<div style="margin-top: 10px">
|
|
|
<attachmentList
|
|
<attachmentList
|
|
|
:attinfos="attinfo_attachment"
|
|
:attinfos="attinfo_attachment"
|
|
@@ -133,7 +146,7 @@
|
|
|
></upload>
|
|
></upload>
|
|
|
</attachmentList>
|
|
</attachmentList>
|
|
|
</div>
|
|
</div>
|
|
|
- <p style="font-size: 14px; margin-top: 10px">{{$t('资讯正文')}}</p>
|
|
|
|
|
|
|
+ <p style="font-size: 14px; margin-top: 10px">{{ $t("资讯正文") }}</p>
|
|
|
<div style="margin-top: 10px">
|
|
<div style="margin-top: 10px">
|
|
|
<myEditor
|
|
<myEditor
|
|
|
ref="editor"
|
|
ref="editor"
|
|
@@ -181,9 +194,15 @@ export default {
|
|
|
cover: "",
|
|
cover: "",
|
|
|
},
|
|
},
|
|
|
rules: {
|
|
rules: {
|
|
|
- title: [{ required: true, message: this.$t( "请输入标题名称"), trigger: "blur" }],
|
|
|
|
|
|
|
+ title: [
|
|
|
|
|
+ {
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: this.$t("请输入标题名称"),
|
|
|
|
|
+ trigger: "blur",
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
sat_notice_classid: [
|
|
sat_notice_classid: [
|
|
|
- { required: true, message: this.$t( "请选择分类"), trigger: "change" },
|
|
|
|
|
|
|
+ { required: true, message: this.$t("请选择分类"), trigger: "change" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
classData: [],
|
|
classData: [],
|
|
@@ -327,7 +346,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
delBtn() {
|
|
delBtn() {
|
|
|
- this.$confirm(this.$t('确定删除当前资讯吗')+"?", this.$t("提示"),{
|
|
|
|
|
|
|
+ this.$confirm(this.$t("确定删除当前资讯吗") + "?", this.$t("提示"), {
|
|
|
confirmButtonText: this.$t("确定"),
|
|
confirmButtonText: this.$t("确定"),
|
|
|
cancelButtonText: this.$t("取消"),
|
|
cancelButtonText: this.$t("取消"),
|
|
|
type: "warning",
|
|
type: "warning",
|
|
@@ -355,8 +374,8 @@ export default {
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|
|
|
id: "20240925161703",
|
|
id: "20240925161703",
|
|
|
content: {
|
|
content: {
|
|
|
- "sat_noticeid": this.form.sat_noticeid,
|
|
|
|
|
- "isrecheck":this.form.status == '新建'?1:0,
|
|
|
|
|
|
|
+ sat_noticeid: this.form.sat_noticeid,
|
|
|
|
|
+ isrecheck: this.form.status == "新建" ? 1 : 0,
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
this.tool.showMessage(res, () => {
|
|
this.tool.showMessage(res, () => {
|