|
@@ -98,7 +98,7 @@
|
|
|
type="primary"
|
|
|
icon="el-icon-refresh-right"
|
|
|
class="btn"
|
|
|
- @click="reset"
|
|
|
+ @click="resetF5"
|
|
|
>刷新</el-button
|
|
|
>
|
|
|
</el-col>
|
|
@@ -196,7 +196,20 @@
|
|
|
@click="wantGo(scope.row.id, scope.row.status)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
+ <el-tooltip
|
|
|
+ v-if="powers.some((item) => item == '006')"
|
|
|
+ effect="dark"
|
|
|
+ content="删除"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-delete tb-icon"
|
|
|
+ @click="deleteItem(scope.row.id)"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
</template>
|
|
|
+
|
|
|
+
|
|
|
</ex-table>
|
|
|
</div>
|
|
|
<div v-else>
|
|
@@ -358,6 +371,34 @@ export default {
|
|
|
}
|
|
|
this.loading = false;
|
|
|
},
|
|
|
+
|
|
|
+ async deleteItem(id) {
|
|
|
+ await this.$confirm("确定要删除?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(async () => {
|
|
|
+ const model = {
|
|
|
+ id: id,
|
|
|
+ };
|
|
|
+ const res = await asyncRequest.delete(model);
|
|
|
+ if (res && res.code === 0) {
|
|
|
+ this.$notify.success({
|
|
|
+ title: "删除成功",
|
|
|
+ message: "",
|
|
|
+ });
|
|
|
+ this.searchList();
|
|
|
+ } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
+ await this.logout();
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ console.log("取消");
|
|
|
+ });
|
|
|
+ },
|
|
|
//导入时间
|
|
|
async addtime(e) {
|
|
|
this.parmValue.addtime_start = e.startTime || "";
|
|
@@ -459,6 +500,10 @@ export default {
|
|
|
};
|
|
|
this.searchList();
|
|
|
},
|
|
|
+ //刷新按钮
|
|
|
+ resetF5(){
|
|
|
+ this.searchList();
|
|
|
+ },
|
|
|
//搜索按钮
|
|
|
search() {
|
|
|
this.pageInfo.curr = 1;
|