feige
2023-04-02 beba42aa1204efae58283196656aae7d6a0d3cfe
/family1/bignote1修改为了/family1/bignote
1个文件已修改
91 ■■■■ 已修改文件
ruoyi-ui/src/views/bignote/index.vue 91 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/bignote/index.vue
@@ -11,7 +11,7 @@
              @keyup.enter.native="handleQuery"
            />
          </el-form-item>
          <el-form-item label="人物" prop="people">
            <el-input
              v-model="queryParams.people"
@@ -29,7 +29,7 @@
              style="width: 240px"
              @keyup.enter.native="handleQuery"
            />
        </el-form-item>
        <el-form-item label="时间">
          <el-date-picker
@@ -47,7 +47,7 @@
          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
        </el-form-item>
      </el-form>
      <el-row :gutter="10" class="mb8">
        <el-col :span="1.5">
          <el-button
@@ -59,7 +59,7 @@
            v-hasPermi="['system:role:add']"
          >新增</el-button>
        </el-col>
        <el-col :span="1.5">
          <el-button
            type="danger"
@@ -97,7 +97,7 @@
        <el-table-column label="人物" prop="people" sortable width="100" />
        <el-table-column label="地点" prop="address" sortable width="100" />
        <el-table-column label="大事标题" prop="title" sortable :show-overflow-tooltip="true" width="150" />
        <el-table-column label="备注" prop="remark" sortable width="100" />
        <el-table-colum label="电子文件" prop="fujian" sortable width="100"/>
        <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -118,12 +118,12 @@
            >删除</el-button>
            <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:role:edit']">
              <el-button size="mini" type="text" icon="el-icon-d-arrow-right"  @click="handleCheck(scope.row)">查看详情</el-button>
            </el-dropdown>
          </template>
        </el-table-column>
      </el-table>
      <pagination
        v-show="total>0"
        :total="total"
@@ -131,16 +131,16 @@
        :limit.sync="queryParams.pageSize"
        @pagination="getList"
      />
      <!-- 添加或修改资产信息配置对话框 -->
      <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
        <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px">
          <el-form-item label="大事标题" prop="title">
            <el-input v-model="formDat.title" placeholder="请输入大事标题" clearable :style="{width: '100%'}" ></el-input>
          </el-form-item>
          <el-form-item label="人物" prop="people">
            <el-input v-model="formDat.holder" placeholder="请输入人物" clearable :style="{width: '100%'}" >
            </el-input>
@@ -152,7 +152,7 @@
          <el-form-item label="备注" prop="remark">
            <el-input v-model="formDat.remark" placeholder="请输入备注" clearable :style="{width: '100%'}" ></el-input>
          </el-form-item>
          <h4 class="form-header">相关图片 </h4>
          <el-upload
            action="#"
@@ -178,7 +178,7 @@
          >
            <i class="el-icon-zoom-in"></i>
          </span>
          <span
            v-if="!disabled"
            class="el-upload-list__item-delete"
@@ -187,8 +187,8 @@
            <i class="el-icon-delete"></i>
          </span>
        </span>
            </div>
          </el-upload>
          <h4 class="form-header">其他附件 </h4>
@@ -197,7 +197,7 @@
            :file-list="fileListOther"
            class="upload-demo"
            multiple
            :on-remove="handleRemove"
            :http-request="requestUpload"
            :show-file-list="true"
@@ -208,30 +208,30 @@
              </div>
            </template>
          </el-upload>
        </el-form>
        <h4 class="form-header"> </h4>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="submitDataScope">确 定</el-button>
          <el-button @click="cancelData">取 消</el-button>
        </div>
      </el-dialog>
      <!-- 分配角色数据权限对话框 -->
      <el-dialog :title="title" :visible.sync="openDataScope" width="500px" append-to-body>
      </el-dialog>
    </div>
  </template>
  <script>
  import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role";
  import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu";
  //在system/note/index.js中导入接口函数  --接好了
  import {listFamilyevent , getFamilyeventInfo , delFamilyevent  , addFamilyevent , uploadPic} from "@/api/bignote/index";
  export default {
@@ -241,7 +241,7 @@
      return {
        // 遮罩层
        disabled: false,
        loading: true,
        formData:[],
        // 选中数组
@@ -273,7 +273,7 @@
        fileList:[
        ],
        fileListOther:[
        ],
        dsb:true,
        btn:false,
@@ -312,7 +312,7 @@
            message: '请输入大事标题',
            trigger: 'blur'
          }],
          people: [{
            required: true,
            message: '请输入人物',
@@ -340,7 +340,7 @@
    created() {
      this.getList();
    //   this.getCateInfor()
    },
    methods: {
      // 取消按钮
@@ -349,7 +349,7 @@
        this.reset();
      },
      /** 查询角色列表 */
      /** 查询角色列表 */
      //列表显示家大事记
      getList() {
@@ -360,7 +360,7 @@
            //  alert(123)
            //   console.log(response.data)
            this.familyList = response.data.data;
            this.total = response.data.total;
            this.loading = false;
          }
@@ -418,7 +418,7 @@
        this.single = selection.length!=1
        this.multiple = !selection.length
      },
      /** 新增按钮操作 */
      handleAdd() {
        this.reset();
@@ -430,29 +430,29 @@
      /** 查看详细信息 */
      handleCheck(row){
        const id = row.id;
        this.$router.push("/family1/bignote1/familyeventInfo/" + id);
        this.$router.push("/family1/bignote/familyeventInfo/" + id);
      },
      /** 修改按钮操作 */
      handleUpdate(row) {
        const id = row.id;
        let jd = true
        this.$router.push({
          path:"/family1/bignote1/familyeventInfo/" + id,
          path:"/family1/bignote/familyeventInfo/" + id,
          query:{
            detail:jd
          }
        });
      },
      handlePictureCardPreview(file) {
        this.dialogImageUrl = file.url;
        this.dialogVisible = true;
      },
      /** 提交按钮(数据权限) */
      submitDataScope: function() {
        let ul = this.fileList.map(function (elem){
          return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
        }).join(",")
@@ -462,7 +462,7 @@
        this.formDat.url = ul+","+uls
        this.$refs["elForm"].validate(valid => {
          if (valid) {
            addFamilyevent(this.formDat).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
@@ -477,22 +477,22 @@
        var formData = new FormData();
        formData.append('uploadFile', file);
        let _this = this
        uploadPic(formData).then(response => {
          let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
          if(_this.fot.includes(pth) === true)
          {
            _this.fileList.push({name:response.data.fileName, "url":response.data.url})
          }
          else{
            _this.fileListOther.push({name:response.data.fileName, url:response.data.url})
          }
        })
      },
      /** 删除按钮操作 */
      handleDelete(row) {
@@ -513,4 +513,3 @@
    }
  };
  </script>