|
@@ -166,18 +166,27 @@
|
|
|
>
|
|
|
</template>
|
|
|
</el-popconfirm>
|
|
|
- <!-- 更多 -->
|
|
|
- <el-divider direction="vertical"></el-divider>
|
|
|
- <el-dropdown>
|
|
|
- <el-button type="text" size="small">更多<el-icon class="el-icon--right"><el-icon-arrow-down /></el-icon></el-button>
|
|
|
- <template #dropdown>
|
|
|
- <el-dropdown-menu>
|
|
|
- <el-dropdown-item @click="table_audit(scope.row, scope.$index)" :disabled="scope.row.State != 0">{{ $t("audit") }}</el-dropdown-item>
|
|
|
- <!-- <el-dropdown-item divided>删除</el-dropdown-item> -->
|
|
|
- </el-dropdown-menu>
|
|
|
- </template>
|
|
|
- </el-dropdown>
|
|
|
-
|
|
|
+ <!-- 审核 -->
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ :disabled="scope.row.State != 0"
|
|
|
+ @click="table_audit(scope.row, scope.$index)"
|
|
|
+ >{{ $t("audit") }}</el-button
|
|
|
+ >
|
|
|
+ <!-- 更多 -->
|
|
|
+ <el-divider direction="vertical"></el-divider>
|
|
|
+ <el-dropdown>
|
|
|
+ <el-button type="text" size="small"
|
|
|
+ >更多<el-icon class="el-icon--right"
|
|
|
+ ><el-icon-arrow-down /></el-icon
|
|
|
+ ></el-button>
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <el-dropdown-item divided>button</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</scTable>
|
|
@@ -242,16 +251,48 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//审核
|
|
|
- table_audit(row){
|
|
|
- console.log(row)
|
|
|
+ table_audit(row) {
|
|
|
+ this.$confirm(this.$t("organization.ApproveOrgMsg"), this.$t("audit"), {
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ confirmButtonText: this.$t("audited"),
|
|
|
+ cancelButtonText: this.$t("rejected"),
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$API.wing.post(
|
|
|
+ "ModifyOrganizationStateAsync",
|
|
|
+ {
|
|
|
+ OrganizationCode: row.OrganizationCode,
|
|
|
+ State: 1,
|
|
|
+ },
|
|
|
+ this.refresh
|
|
|
+ );
|
|
|
+ })
|
|
|
+ .catch((action) => {
|
|
|
+ if (action === "cancel") {
|
|
|
+ this.$API.wing.post(
|
|
|
+ "ModifyOrganizationStateAsync",
|
|
|
+ {
|
|
|
+ OrganizationCode: row.OrganizationCode,
|
|
|
+ State: 2,
|
|
|
+ },
|
|
|
+ this.refresh
|
|
|
+ );
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .finally(() => {});
|
|
|
},
|
|
|
//删除
|
|
|
async table_del(row) {
|
|
|
- await this.$API.wing.post("RemoveOrganization", {
|
|
|
- OrganizationCode: row.OrganizationCode,
|
|
|
- });
|
|
|
- this.refresh();
|
|
|
+ await this.$API.wing.post(
|
|
|
+ "RemoveOrganization",
|
|
|
+ {
|
|
|
+ OrganizationCode: row.OrganizationCode,
|
|
|
+ },
|
|
|
+ this.refresh
|
|
|
+ );
|
|
|
},
|
|
|
+ //删除前验证
|
|
|
async changeTitle(row) {
|
|
|
this.confirmDel = this.$t("organization.ConfirmDelete");
|
|
|
var res = await this.$API.wing.post("OrganizationBindQueryResult", {
|