|
@@ -154,6 +154,12 @@
|
|
|
title="查看"
|
|
|
>
|
|
|
</i>
|
|
|
+ <i
|
|
|
+ @click="delRow(scope.row)"
|
|
|
+ class="el-icon-delete elIcon"
|
|
|
+ title="删除"
|
|
|
+ >
|
|
|
+ </i>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</tableList>
|
|
@@ -307,6 +313,28 @@ export default {
|
|
|
// }
|
|
|
// });
|
|
|
},
|
|
|
+ delRow(row) {
|
|
|
+ this.$confirm("确认是否删除?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ this.$axios({
|
|
|
+ method: "post",
|
|
|
+ url: this.$api.sceneLibrary.deleteScoringRules,
|
|
|
+ data: {
|
|
|
+ rulesId: row.rulesId,
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.message || "删除失败");
|
|
|
+ }
|
|
|
+ this.doSearch();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
diaClose(done) {
|
|
|
this.autoplay = false;
|
|
|
this.videoSrc = "";
|
|
@@ -323,6 +351,8 @@ export default {
|
|
|
},
|
|
|
|
|
|
async mounted() {
|
|
|
+ console.log(process.env.GET_HOST);
|
|
|
+ console.log(process.env);
|
|
|
await this.$dicsTreesInit({
|
|
|
roadList: "road",
|
|
|
infrastructureList: "infrastructure",
|