This commit is contained in:
		
							parent
							
								
									e59865044f
								
							
						
					
					
						commit
						0ee6ec5991
					
				| @ -38,7 +38,7 @@ | |||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@riophae/vue-treeselect": "0.4.0", |     "@riophae/vue-treeselect": "0.4.0", | ||||||
|     "axios": "0.28.1", |     "axios": "0.28.1", | ||||||
|     "clipboard": "2.0.8", |     "clipboard": "^2.0.11", | ||||||
|     "core-js": "3.37.1", |     "core-js": "3.37.1", | ||||||
|     "echarts": "5.4.0", |     "echarts": "5.4.0", | ||||||
|     "element-ui": "2.15.14", |     "element-ui": "2.15.14", | ||||||
|  | |||||||
| @ -25,6 +25,14 @@ export function getPerform(id) { | |||||||
|   }) |   }) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | // 查询演出详细
 | ||||||
|  | export function getNormalPerform(id) { | ||||||
|  |   return request({ | ||||||
|  |     url: '/system/perform/normal/' + id, | ||||||
|  |     method: 'get' | ||||||
|  |   }) | ||||||
|  | } | ||||||
|  | 
 | ||||||
| // 新增演出
 | // 新增演出
 | ||||||
| export function addPerform(data) { | export function addPerform(data) { | ||||||
|   return request({ |   return request({ | ||||||
|  | |||||||
| @ -71,7 +71,7 @@ | |||||||
| <script> | <script> | ||||||
| import {getUserProfile} from "@/api/system/user"; | import {getUserProfile} from "@/api/system/user"; | ||||||
| import {addApply} from "@/api/system/apply"; | import {addApply} from "@/api/system/apply"; | ||||||
| import {getPerform} from "@/api/system/perform"; | import {getNormalPerform} from "@/api/system/perform"; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| export default { | export default { | ||||||
| @ -116,7 +116,7 @@ export default { | |||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     getPerform(performId).then(response => { |     getNormalPerform(performId).then(response => { | ||||||
|       if (!response.data) { |       if (!response.data) { | ||||||
|         this.$alert('演出不存在或已结束', '提示 ', {}); |         this.$alert('演出不存在或已结束', '提示 ', {}); | ||||||
|         this.$router.push({path: this.redirect || "/"}) |         this.$router.push({path: this.redirect || "/"}) | ||||||
|  | |||||||
| @ -42,7 +42,8 @@ | |||||||
|           size="mini" |           size="mini" | ||||||
|           @click="handleAdd" |           @click="handleAdd" | ||||||
|           v-hasPermi="['system:perform:add']" |           v-hasPermi="['system:perform:add']" | ||||||
|         >新增</el-button> |         >新增 | ||||||
|  |         </el-button> | ||||||
|       </el-col> |       </el-col> | ||||||
|       <el-col :span="1.5"> |       <el-col :span="1.5"> | ||||||
|         <el-button |         <el-button | ||||||
| @ -53,7 +54,8 @@ | |||||||
|           :disabled="single" |           :disabled="single" | ||||||
|           @click="handleUpdate" |           @click="handleUpdate" | ||||||
|           v-hasPermi="['system:perform:edit']" |           v-hasPermi="['system:perform:edit']" | ||||||
|         >修改</el-button> |         >修改 | ||||||
|  |         </el-button> | ||||||
|       </el-col> |       </el-col> | ||||||
|       <el-col :span="1.5"> |       <el-col :span="1.5"> | ||||||
|         <el-button |         <el-button | ||||||
| @ -64,7 +66,8 @@ | |||||||
|           :disabled="multiple" |           :disabled="multiple" | ||||||
|           @click="handleDelete" |           @click="handleDelete" | ||||||
|           v-hasPermi="['system:perform:remove']" |           v-hasPermi="['system:perform:remove']" | ||||||
|         >删除</el-button> |         >删除 | ||||||
|  |         </el-button> | ||||||
|       </el-col> |       </el-col> | ||||||
|       <el-col :span="1.5"> |       <el-col :span="1.5"> | ||||||
|         <el-button |         <el-button | ||||||
| @ -74,7 +77,8 @@ | |||||||
|           size="mini" |           size="mini" | ||||||
|           @click="handleExport" |           @click="handleExport" | ||||||
|           v-hasPermi="['system:perform:export']" |           v-hasPermi="['system:perform:export']" | ||||||
|         >导出</el-button> |         >导出 | ||||||
|  |         </el-button> | ||||||
|       </el-col> |       </el-col> | ||||||
|       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> | ||||||
|     </el-row> |     </el-row> | ||||||
| @ -103,15 +107,25 @@ | |||||||
|             icon="el-icon-edit" |             icon="el-icon-edit" | ||||||
|             @click="handleUpdate(scope.row)" |             @click="handleUpdate(scope.row)" | ||||||
|             v-hasPermi="['system:apply:edit']" |             v-hasPermi="['system:apply:edit']" | ||||||
|           >修改</el-button> |           >修改 | ||||||
|  |           </el-button> | ||||||
| 
 | 
 | ||||||
|           <el-button |           <el-button | ||||||
|             size="mini" |             size="mini" | ||||||
|             type="text" |             type="text" | ||||||
|             icon="el-icon-delete" |             icon="el-icon-delete" | ||||||
|             @click="handleDelete(scope.row)" |             @click="copyRow(scope.row)" | ||||||
|             v-hasPermi="['system:perform:remove']" |             v-hasPermi="['system:perform:remove']" | ||||||
|           >删除</el-button> |           >删除 | ||||||
|  |           </el-button> | ||||||
|  | 
 | ||||||
|  |           <el-button | ||||||
|  |             size="mini" | ||||||
|  |             type="text" | ||||||
|  |             icon="el-icon-copy-document" | ||||||
|  |             @click="copyRow(scope.row.id)" | ||||||
|  |           >复制申请链接 | ||||||
|  |           </el-button> | ||||||
|         </template> |         </template> | ||||||
|       </el-table-column> |       </el-table-column> | ||||||
|     </el-table> |     </el-table> | ||||||
| @ -213,6 +227,15 @@ export default { | |||||||
|     this.getList(); |     this.getList(); | ||||||
|   }, |   }, | ||||||
|   methods: { |   methods: { | ||||||
|  |     copyRow(id) { | ||||||
|  |       const text = "http://www.tixly.top:8081/weverse/apply?performId=" + id; | ||||||
|  |       navigator.clipboard.writeText(text).then(() => { | ||||||
|  |         this.$modal.msgSuccess("复制成功"); | ||||||
|  |       }).catch(err => { | ||||||
|  |         this.$modal.msgError("复制失败" + err); | ||||||
|  |       }); | ||||||
|  | 
 | ||||||
|  |     }, | ||||||
|     /** 查询演出列表 */ |     /** 查询演出列表 */ | ||||||
|     getList() { |     getList() { | ||||||
|       this.loading = true; |       this.loading = true; | ||||||
| @ -303,7 +326,8 @@ export default { | |||||||
|       }).then(() => { |       }).then(() => { | ||||||
|         this.getList(); |         this.getList(); | ||||||
|         this.$modal.msgSuccess("删除成功"); |         this.$modal.msgSuccess("删除成功"); | ||||||
|       }).catch(() => {}); |       }).catch(() => { | ||||||
|  |       }); | ||||||
|     }, |     }, | ||||||
|     /** 复制申请 */ |     /** 复制申请 */ | ||||||
|     onCopy() { |     onCopy() { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 liukang
						liukang