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