Browse Source

投稿管理下载功能完成,优化部分搜索input框

lyn7568 5 years ago
parent
commit
b24d7e7711

+ 1 - 1
src/views/modules/admin/adminmenu.vue

144
            return item.menuId;
144
            return item.menuId;
145
          });
145
          });
146
      this.$confirm(
146
      this.$confirm(
147
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
147
        `确定删除?`,
148
        "提示",
148
        "提示",
149
        {
149
        {
150
          confirmButtonText: "确定",
150
          confirmButtonText: "确定",

+ 1 - 5
src/views/modules/admin/attenders-add-or-update.vue

303
              note: this.dataForm.note,
303
              note: this.dataForm.note,
304
              account: this.dataForm.account,
304
              account: this.dataForm.account,
305
              emailLx: this.dataForm.emailLx,
305
              emailLx: this.dataForm.emailLx,
306
              regflag: this.dataForm.regflag,
307
              createTime: this.dataForm.createTime,
308
              modifyTime: this.dataForm.modifyTime,
309
              creater: this.dataForm.creater,
310
              modifier: this.dataForm.modifier
306
            
311
            })
307
            })
312
          }).then(({ data }) => {
308
          }).then(({ data }) => {
313
            if (data && data.code === 0) {
309
            if (data && data.code === 0) {

+ 2 - 2
src/views/modules/admin/attenders.vue

2
  <div class="mod-config">
2
  <div class="mod-config">
3
    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
3
    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
4
      <el-form-item>
4
      <el-form-item>
5
        <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
5
        <el-input v-model="dataForm.key" placeholder="姓名/所属机构" clearable></el-input>
6
      </el-form-item>
6
      </el-form-item>
7
      <el-form-item>
7
      <el-form-item>
8
        <el-button @click="getDataList()">查询</el-button>
8
        <el-button @click="getDataList()">查询</el-button>
210
            return item.id;
210
            return item.id;
211
          });
211
          });
212
      this.$confirm(
212
      this.$confirm(
213
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
213
        `确定删除?`,
214
        "提示",
214
        "提示",
215
        {
215
        {
216
          confirmButtonText: "确定",
216
          confirmButtonText: "确定",

+ 1 - 1
src/views/modules/admin/company.vue

145
            return item.id;
145
            return item.id;
146
          });
146
          });
147
      this.$confirm(
147
      this.$confirm(
148
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
148
        `确定删除?`,
149
        "提示",
149
        "提示",
150
        {
150
        {
151
          confirmButtonText: "确定",
151
          confirmButtonText: "确定",

+ 1 - 1
src/views/modules/admin/employee.vue

143
            return item.id;
143
            return item.id;
144
          });
144
          });
145
      this.$confirm(
145
      this.$confirm(
146
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
146
        `确定操作?`,
147
        "提示",
147
        "提示",
148
        {
148
        {
149
          confirmButtonText: "确定",
149
          confirmButtonText: "确定",

+ 1 - 1
src/views/modules/admin/lecture.vue

135
            return item.id;
135
            return item.id;
136
          });
136
          });
137
      this.$confirm(
137
      this.$confirm(
138
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
138
        `确定删除?`,
139
        "提示",
139
        "提示",
140
        {
140
        {
141
          confirmButtonText: "确定",
141
          confirmButtonText: "确定",

+ 1 - 1
src/views/modules/admin/meeting.vue

93
      margin: 0 auto;
93
      margin: 0 auto;
94
    }
94
    }
95
    .introduction {
95
    .introduction {
96
      width: 300px;
96
      width: 400px;
97
    }
97
    }
98
  }
98
  }
99
}
99
}

+ 2 - 3
src/views/modules/admin/member-add-or-update.vue

45
      <el-form-item label="职称" prop="jobTitle">
45
      <el-form-item label="职称" prop="jobTitle">
46
        <el-input v-model="dataForm.jobTitle" placeholder="职称"></el-input>
46
        <el-input v-model="dataForm.jobTitle" placeholder="职称"></el-input>
47
      </el-form-item>
47
      </el-form-item>
48
     
48
49
      <el-form-item label="电话" prop="phone">
49
      <el-form-item label="电话" prop="phone">
50
        <el-input v-model="dataForm.phone" placeholder="电话"></el-input>
50
        <el-input v-model="dataForm.phone" placeholder="电话"></el-input>
51
      </el-form-item>
51
      </el-form-item>
204
              phone: this.dataForm.phone,
204
              phone: this.dataForm.phone,
205
              email: this.dataForm.email,
205
              email: this.dataForm.email,
206
              createTime: this.dataForm.createTime,
206
              createTime: this.dataForm.createTime,
207
              modifyTime: this.dataForm.modifyTime,
208
            
207
              modifyTime: this.dataForm.modifyTime
209
            })
208
            })
210
          }).then(({ data }) => {
209
          }).then(({ data }) => {
211
            if (data && data.code === 0) {
210
            if (data && data.code === 0) {

+ 1 - 1
src/views/modules/admin/member.vue

175
            return item.id;
175
            return item.id;
176
          });
176
          });
177
      this.$confirm(
177
      this.$confirm(
178
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
178
        `确定删除?`,
179
        "提示",
179
        "提示",
180
        {
180
        {
181
          confirmButtonText: "确定",
181
          confirmButtonText: "确定",

+ 25 - 11
src/views/modules/admin/paper.vue

2
  <div class="mod-config">
2
  <div class="mod-config">
3
    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
3
    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
4
      <el-form-item>
4
      <el-form-item>
5
        <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
5
        <el-input v-model="dataForm.key" placeholder="投稿人/论文题目" clearable></el-input>
6
      </el-form-item>
6
      </el-form-item>
7
      <el-form-item>
7
      <el-form-item>
8
        <el-button @click="getDataList()">查询</el-button>
8
        <el-button @click="getDataList()">查询</el-button>
33
      <el-table-column prop="create_time" header-align="center" align="center" label="投稿时间"></el-table-column>
33
      <el-table-column prop="create_time" header-align="center" align="center" label="投稿时间"></el-table-column>
34
      <el-table-column header-align="center" align="center" label="下载">
34
      <el-table-column header-align="center" align="center" label="下载">
35
        <template slot-scope="scope">
35
        <template slot-scope="scope">
36
          <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">下载</el-button>
36
          <el-button type="text" size="small" @click="exportList(scope.row)">下载</el-button>
37
        </template>
37
        </template>
38
      </el-table-column>
38
      </el-table-column>
39
      <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
39
      <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
167
        : this.dataListSelections.map(item => {
167
        : this.dataListSelections.map(item => {
168
            return item.id;
168
            return item.id;
169
          });
169
          });
170
      this.$confirm(
171
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
172
        "提示",
173
        {
174
          confirmButtonText: "确定",
175
          cancelButtonText: "取消",
176
          type: "warning"
177
        }
178
      ).then(() => {
170
      this.$confirm(`确定删除?`, "提示", {
171
        confirmButtonText: "确定",
172
        cancelButtonText: "取消",
173
        type: "warning"
174
      }).then(() => {
179
        this.$http({
175
        this.$http({
180
          url: this.$http.adornUrl("/admin/paper/delete"),
176
          url: this.$http.adornUrl("/admin/paper/delete"),
181
          method: "post",
177
          method: "post",
211
          this.$message.error(res.data.msg);
207
          this.$message.error(res.data.msg);
212
        }
208
        }
213
      });
209
      });
210
    },
211
    // 导出数据表
212
    exportList(res) {
213
      if (res && !res.paperurl == "") {
214
        const a = document.createElement("a");
215
        a.setAttribute(
216
          "download",
217
          `http://121.42.53.174:9008${res.paperurl}`
218
        );
219
        a.setAttribute(
220
          "href",
221
          `http://121.42.53.174:9008${res.paperurl}`
222
        );
223
        a.click();
224
      }else{
225
        this.$message.error('未上传投稿文件')
226
      }
227
      
214
    }
228
    }
215
  }
229
  }
216
};
230
};

+ 2 - 2
src/views/modules/admin/payment.vue

2
  <div class="mod-config">
2
  <div class="mod-config">
3
    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
3
    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
4
      <el-form-item>
4
      <el-form-item>
5
        <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
5
        <el-input v-model="dataForm.key" placeholder="订单编号/付款人" clearable></el-input>
6
      </el-form-item>
6
      </el-form-item>
7
      <el-form-item>
7
      <el-form-item>
8
        <el-button @click="getDataList()">查询</el-button>
8
        <el-button @click="getDataList()">查询</el-button>
151
            return item.id;
151
            return item.id;
152
          });
152
          });
153
      this.$confirm(
153
      this.$confirm(
154
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
154
        `确定删除?`,
155
        "提示",
155
        "提示",
156
        {
156
        {
157
          confirmButtonText: "确定",
157
          confirmButtonText: "确定",

+ 15 - 14
src/views/modules/admin/sign.vue

27
      <el-table-column prop="typeAttenders" header-align="center" align="center" label="用户参会类型"></el-table-column>
27
      <el-table-column prop="typeAttenders" header-align="center" align="center" label="用户参会类型"></el-table-column>
28
      <el-table-column prop="isPay" header-align="center" align="center" label="是否已缴费">
28
      <el-table-column prop="isPay" header-align="center" align="center" label="是否已缴费">
29
        <template slot-scope="scope">
29
        <template slot-scope="scope">
30
          <span v-if="scope.row.isPay === 1">是</span>
31
          <span v-else>否</span>
30
          <el-tag v-if="scope.row.isPay === 1">是</el-tag>
31
          <el-tag v-else type="danger">否</el-tag>
32
        </template>
32
        </template>
33
      </el-table-column>
33
      </el-table-column>
34
      <el-table-column prop="status" header-align="center" align="center" label="签到状态">
34
      <el-table-column prop="status" header-align="center" align="center" label="签到状态">
35
        <template slot-scope="scope">
35
        <template slot-scope="scope">
36
          <span v-if="scope.row.status === 1">已签到</span>
37
          <span v-else>否</span>
36
          <el-tag v-if="scope.row.status === 1">是</el-tag>
37
          <el-tag v-else type="danger">否</el-tag>
38
        </template>
39
      </el-table-column>
40
      <el-table-column prop="badge" header-align="center" align="center" label="胸卡">
41
        <template slot-scope="scope">
42
          <el-tag v-if="scope.row.badge === 1">是</el-tag>
43
          <el-tag v-else type="danger">否</el-tag>
38
        </template>
44
        </template>
39
      </el-table-column>
45
      </el-table-column>
40
      <el-table-column prop="badge" header-align="center" align="center" label="胸卡"></el-table-column>
41
      <el-table-column prop="servername" header-align="center" align="center" label="负责人"></el-table-column>
46
      <el-table-column prop="servername" header-align="center" align="center" label="负责人"></el-table-column>
42
      <el-table-column prop="lastTime" header-align="center" align="center" label="最后签到时间"></el-table-column>
47
      <el-table-column prop="lastTime" header-align="center" align="center" label="最后签到时间"></el-table-column>
43
      <el-table-column fixed="right" header-align="center" align="center" width="100" label="操作">
48
      <el-table-column fixed="right" header-align="center" align="center" width="100" label="操作">
136
        : this.dataListSelections.map(item => {
141
        : this.dataListSelections.map(item => {
137
            return item.id;
142
            return item.id;
138
          });
143
          });
139
      this.$confirm(
140
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
141
        "提示",
142
        {
143
          confirmButtonText: "确定",
144
          cancelButtonText: "取消",
145
          type: "warning"
146
        }
147
      ).then(() => {
144
      this.$confirm(`确定删除?`, "提示", {
145
        confirmButtonText: "确定",
146
        cancelButtonText: "取消",
147
        type: "warning"
148
      }).then(() => {
148
        this.$http({
149
        this.$http({
149
          url: this.$http.adornUrl("/admin/signinfo/delete"),
150
          url: this.$http.adornUrl("/admin/signinfo/delete"),
150
          method: "post",
151
          method: "post",

+ 1 - 1
src/views/modules/admin/signinfo.vue

152
            return item.id;
152
            return item.id;
153
          });
153
          });
154
      this.$confirm(
154
      this.$confirm(
155
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
155
        `确定删除?`,
156
        "提示",
156
        "提示",
157
        {
157
        {
158
          confirmButtonText: "确定",
158
          confirmButtonText: "确定",

+ 1 - 1
src/views/modules/admin/typesoffee.vue

139
            return item.id;
139
            return item.id;
140
          });
140
          });
141
      this.$confirm(
141
      this.$confirm(
142
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
142
        `确定删除?`,
143
        "提示",
143
        "提示",
144
        {
144
        {
145
          confirmButtonText: "确定",
145
          confirmButtonText: "确定",