|
|
|
@ -90,6 +90,16 @@
|
|
|
|
v-hasPermi="['pay:tenant:export']"
|
|
|
|
v-hasPermi="['pay:tenant:export']"
|
|
|
|
>导出</el-button>
|
|
|
|
>导出</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="danger"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
@click="handleClean"
|
|
|
|
|
|
|
|
v-hasPermi="['pay:tenant:clean']"
|
|
|
|
|
|
|
|
>公司数据清理</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
@ -161,7 +171,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listTenant, getTenant, delTenant, addTenant, updateTenant } from "@/api/pay/tenant";
|
|
|
|
import { listTenant, getTenant, delTenant, addTenant, updateTenant, cleanTenant } from "@/api/pay/tenant";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Tenant",
|
|
|
|
name: "Tenant",
|
|
|
|
@ -339,6 +349,30 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 公司数据清理按钮操作 */
|
|
|
|
|
|
|
|
handleClean(){
|
|
|
|
|
|
|
|
if(this.ids && this.ids.length>0 ){
|
|
|
|
|
|
|
|
this.$confirm('<span style="color: red">是否确认清除选中公司的所有数据!</span>','系统提示',{
|
|
|
|
|
|
|
|
type: 'warning',
|
|
|
|
|
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
return cleanTenant(this.ids);
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("清除成功");
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
}).finally(() => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
this.$alert(`没有选择公司,请先选择公司!`, `提示`, {
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|
this.download('pay/tenant/export', {
|
|
|
|
this.download('pay/tenant/export', {
|
|
|
|
|