odc.xiaohui
2023-05-12 cbe62bfd234f548daf95431bdb8f9f0d64905929
修改图片
3个文件已修改
77 ■■■■■ 已修改文件
src/views/common/Publicity.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/manager/User.vue 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/common/Publicity.vue
@@ -251,7 +251,7 @@
        publicityTitle: '',
        text: '',
        img: [],
        releaseTime:[]
        releaseTime:null
      },
      //添加弹框
      addPublicityVisibel: false,
src/views/manager/User.vue
@@ -120,11 +120,13 @@
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
          <el-form-item label="备注" prop="userMemo">
            <el-input v-model="detailsRow.userMemo" placeholder="请输入备注" clearable
                      :style="{ width: '100%' }">
            </el-input>
          </el-form-item>
          </el-col>
        </el-form>
      </el-row>
      <span slot="footer" class="dialog-footer">
@@ -225,31 +227,31 @@
  methods:
      {
        exportList(){
        this.$http({
          url:'/api/user/exp',
          responseType: 'blob',
          method: 'post',
        }).then(res=>{
          console.log(res)
          this.$message.success('操作成功');
          let time = new Date()
          let deathdate =time.toLocaleDateString()
          const blob = new Blob([res.data], {
            type: "application/vnd.ms-excel;charset=utf-8",
          });
          if (window.navigator.msSaveBlob) {
            window.navigator.msSaveBlob(blob, deathdate + ".xlsx");
          } else {
            const url = window.URL.createObjectURL(blob);
            const link = document.createElement("a");
            link.style.display = "none";
            link.href = url;
            link.download = deathdate + ".xlsx";
            document.body.appendChild(link);
            link.click();
            document.body.removeChild(link);
          }
        })
          this.$http({
            url:'/api/user/exp',
            responseType: 'blob',
            method: 'post',
          }).then(res=>{
            console.log(res)
            this.$message.success('操作成功');
            let time = new Date()
            let deathdate =time.toLocaleDateString()
            const blob = new Blob([res.data], {
              type: "application/vnd.ms-excel;charset=utf-8",
            });
            if (window.navigator.msSaveBlob) {
              window.navigator.msSaveBlob(blob, deathdate + ".xlsx");
            } else {
              const url = window.URL.createObjectURL(blob);
              const link = document.createElement("a");
              link.style.display = "none";
              link.href = url;
              link.download = deathdate + ".xlsx";
              document.body.appendChild(link);
              link.click();
              document.body.removeChild(link);
            }
          })
        },
        handleToManager(data) {
          toManager(data.id).then(res => {
@@ -313,12 +315,19 @@
        },
        update() {
          this.$http.put('/api/user', this.detailsRow).then(res => {
                this.$message({
                      message: '编辑成功',
                      type: 'success'
                    }
                )
                this.search();
            console.log(res)
            if (res.data.code == 200){
              this.$message({
                    message: '编辑成功',
                    type: 'success'
                  }
              )
              this.search();
            }else {
              this.$message.error(res.data.msg)
              this.search();
            }
              }
          );
          this.detailsVisible = false;
vue.config.js
@@ -7,8 +7,8 @@
        open: true,
        proxy: {
            '/api': {
                target: 'http://192.168.3.220:8080',
                // target: 'https://qyqjzdd.cdqingyang.gov.cn/qyjz',
                // target: 'http://192.168.3.220:8080',
                target: 'https://qyqjzdd.cdqingyang.gov.cn/qyjz',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''