|
@@ -107,6 +107,15 @@
|
|
@click="inspectionInformation = true"
|
|
@click="inspectionInformation = true"
|
|
v-hasPermi="['sems:specCc:add']"
|
|
v-hasPermi="['sems:specCc:add']"
|
|
>{{ $t('检验更新') }}</el-button>
|
|
>{{ $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>
|
|
</el-col>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -474,7 +483,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import {addSpecCc, exportSpecCc, getSpecCc, listSpecCc, updateSpecCcPre,exportSpecList} from "@/api/sems/specCc";
|
|
|
|
|
|
+ import {addSpecCc, exportSpecCc, getSpecCc, listSpecCc, updateSpecCcPre,exportSpecList, duplicate} from "@/api/sems/specCc";
|
|
import {treeselect} from "@/api/system/dept";
|
|
import {treeselect} from "@/api/system/dept";
|
|
import {getToken} from "@/utils/auth";
|
|
import {getToken} from "@/utils/auth";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -486,7 +495,6 @@
|
|
import {addModify} from "@/api/sems/his/modify";
|
|
import {addModify} from "@/api/sems/his/modify";
|
|
import {listPostUser} from "@/api/system/user";
|
|
import {listPostUser} from "@/api/system/user";
|
|
import HisReform from "./specCc-hisReform";
|
|
import HisReform from "./specCc-hisReform";
|
|
- import {listSpecGl} from "@/api/sems/specGl";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "SpecCc",
|
|
name: "SpecCc",
|
|
@@ -827,6 +835,19 @@
|
|
// this.msgSuccess(this.$t('删除成功'));
|
|
// 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() {
|
|
handleExport() {
|
|
const queryParams = this.queryParams;
|
|
const queryParams = this.queryParams;
|