|
@@ -168,6 +168,15 @@
|
|
|
@click="inspectionInformation = true"
|
|
|
v-hasPermi="['sems:specYlgd:add']"
|
|
|
>{{ $t('检验更新') }}</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ size="mini"
|
|
|
+ @click="handleDup"
|
|
|
+ v-hasPermi="['system:plant:remove']"
|
|
|
+ >{{ $t('数据去重') }}</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
@@ -666,7 +675,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listSpecYlgd, getSpecYlgd, exportSpecList, addSpecYlgd, updateSpecYlgd, exportSpecYlgd, updateSpecYlgdPre, importTemplate,} from "@/api/sems/specYlgd";
|
|
|
+import { listSpecYlgd, getSpecYlgd, exportSpecList, addSpecYlgd, updateSpecYlgd, exportSpecYlgd, updateSpecYlgdPre, duplicate,} from "@/api/sems/specYlgd";
|
|
|
import { treeselect } from "@/api/system/dept";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -1042,6 +1051,19 @@ export default {
|
|
|
// this.msgSuccess(this.$t('删除成功'));
|
|
|
// })
|
|
|
},
|
|
|
+ /** 删除按钮操作 */
|
|
|
+ handleDup(){
|
|
|
+ this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
|
|
|
+ confirmButtonText: this.$t('确定'),
|
|
|
+ cancelButtonText: this.$t('取消'),
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return duplicate();
|
|
|
+ }).then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess(this.$t('删除成功'));
|
|
|
+ })
|
|
|
+ },
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|