3 次代碼提交 f311ba9c77 ... f786676e99

作者 SHA1 備註 提交日期
  zhy f786676e99 修改分页参数赋值方法 1 天之前
  zhy d3fc4b1a2b 增加文章默认参数 1 天之前
  zhy 90397b47e4 修改文件上传默认为1的值 1 天之前

+ 1 - 1
src/components/DynamicForm/index.vue

@@ -21,7 +21,7 @@
         <!-- 图片上传 -->
         <ImageUpload v-if="item.formater == 'imageUpload'" :fileUrl="item.fileUrl || ''"  @input="fileUpload(item.name, $event)" :disabled="item.disabled || readOnly" :value="formdata[item.name]" :limit="item.limit || 1" :fileSize="item.fileSize || 5" :isShowTip="item.isShowTip || true"></ImageUpload>
         <!-- 文件上传 -->
-        <FileUpload v-if="item.formater == 'fileUpload'" :type="item.type" :fileUrl="item.fileUrl || ''" @uploadFileInput="fileUpload(item.name, $event)" @input="fileUpload(item.name, $event)" :disabled="item.disabled || readOnly" :value="formdata[item.name]" :limit="item.limit || 1" :fileSize="item.fileSize || 5" :isShowTip="item.isShowTip || true"></FileUpload>
+        <FileUpload v-if="item.formater == 'fileUpload'" :type="item.type" :fileUrl="item.fileUrl || ''" @uploadFileInput="fileUpload(item.name, $event)" @input="fileUpload(item.name, $event)" :disabled="item.disabled || readOnly" :value="formdata[item.name]" :limit="item.limit" :fileSize="item.fileSize || 5" :isShowTip="item.isShowTip || true"></FileUpload>
         <!-- 开关 -->
         <el-switch  @change="$emit('switchtChange', { item, formdata })" v-if="item.formater == 'switch'" :disabled="item.disabled || readOnly" v-model="formdata[item.name]" :active-text="item.activeText" :inactive-text="item.inactiveText" :active-color="item.activeColor" :inactive-color="item.inactiveColor" :active-value="item.activeValue || true" :inactive-value="item.inactiveValue || false"></el-switch>
         <!-- 资源选择组件 -->

+ 1 - 1
src/views/cms/link.vue

@@ -80,7 +80,7 @@
       // 列表查询
       async query(e) {
         this.mydata.loading = true;
-        const res = await cmsQuery({ ...e, pageNum: e?.pageNum ?? 1, pageSize: e?.pageSize ?? 10, paging: this.mydata.pagination }, this.mydata.type, this.mydata.alias);
+        const res = await cmsQuery({ pageNum: 1, pageSize: 10, paging: this.mydata.pagination, ...e }, this.mydata.type, this.mydata.alias);
         if (res.code == 200) {
           this.$set(this.mydata, 'tableData', res.rows)
           this.$set(this.mydata, 'total', res.total)

+ 4 - 0
src/views/cms/postconfig/article.js

@@ -7,11 +7,15 @@ export default {
     formFiled: [
       { label: "图片", name: "image", formater: "imageUpload" },
       { label: "标题", name: "title" },
+      { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
+      { label: "来源", name: "origin" },
+      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
       { label: "置顶", name: "topStatus", formater: 'switch', activeValue: '1', inactiveValue: '0' },
       { label: "显示/隐藏", name: "visible", formater: 'switch', activeValue: '0', inactiveValue: '1' },
       { label: "状态", name: "status", formater: "dict:essay_type" },
       { label: "备注", name: "remark", placeholder: "输入备注", formater: "textarea" },
+      { label: "附件上传", name: "urls", formater: "fileUpload" },
       { label: "内容", name: "content", formater: 'editor' },
     ],
     operation: [

+ 4 - 0
src/views/cms/postconfig/page.js

@@ -6,9 +6,13 @@ export default {
     formFiled: [
       { label: "图片", name: "image", formater: "imageUpload" },
       { label: "标题", name: "title" },
+      { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
+      { label: "来源", name: "origin" },
+      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
       { label: "置顶", name: "topStatus", formater: 'switch', activeValue: 1, inactiveValue: 0 },
       { label: "状态", name: "status", formater: "dict:essay_type" },
+      { label: "附件上传", name: "urls", formater: "fileUpload", fileUrl: '' },
       { label: "内容", name: "content", formater: 'editor' },
     ],
     operation: [

+ 4 - 0
src/views/cms/postconfig/picture.js

@@ -8,11 +8,15 @@ export default {
       { label: "图片", name: "image", formater: "imageUpload" },
       { label: "是否跳转文章", name: "meta.islink", formater: 'switch', activeValue: '0', inactiveValue: '1' },
       { label: "标题", name: "title" },
+      { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
+      { label: "来源", name: "origin" },
+      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
       { label: "置顶", name: "topStatus", formater: 'switch', activeValue: '1', inactiveValue: '0' },
       { label: "隐藏/显示", name: "visible", formater: 'switch', activeValue: '1', inactiveValue: '0' },
       { label: "状态", name: "status", formater: "dict:essay_type" },
       { label: "备注", name: "remark", placeholder: "输入备注", formater: "textarea" },
+      { label: "附件上传", name: "urls", formater: "fileUpload" },
       { label: "内容", name: "content", formater: 'editor' },
     ],
     operation: [