|
@@ -69,12 +69,13 @@
|
|
|
</el-dialog>
|
|
|
<div style="text-align: center">
|
|
|
<el-button type="primary" @click="submit()">确认</el-button>
|
|
|
+ <el-button @click="cancel">关闭</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getFund } from "@/api/system/user";
|
|
|
+import { getFund,confirmChange} from "@/api/system/user";
|
|
|
import { uploadFileNew } from "@/api/common/file";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
|
@@ -298,7 +299,8 @@ export default {
|
|
|
},
|
|
|
//授权书
|
|
|
handleDown() {
|
|
|
- this.queryParams.userId = this.userId;
|
|
|
+ const userId = this.$route.params && this.$route.params.userId;
|
|
|
+ this.queryParams.userId = userId;
|
|
|
this.download(
|
|
|
"system_cc/ownUser/jpgAuthorization",{
|
|
|
...this.queryParams
|
|
@@ -307,7 +309,9 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
handleDowns() {
|
|
|
- this.queryParams.userId = this.userId;
|
|
|
+ const userId = this.$route.params && this.$route.params.userId;
|
|
|
+ this.queryParams.userId = userId;
|
|
|
+ console.log(this.queryParams.userId)
|
|
|
this.download(
|
|
|
"system_cc/ownUser/jpgApply",{
|
|
|
...this.queryParams
|
|
@@ -315,6 +319,31 @@ export default {
|
|
|
`安心签用户信息变更申请表.jpg`
|
|
|
);
|
|
|
},
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
+ this.$router.go(-1);
|
|
|
+ },
|
|
|
+ /** 确认变更经办人 */
|
|
|
+ submit() {
|
|
|
+ const userId = this.$route.params && this.$route.params.userId;
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "Loading",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
+ });
|
|
|
+ confirmChange(userId)
|
|
|
+ .then((response) => {
|
|
|
+ loading.close();
|
|
|
+ this.msgSuccess("变更成功");
|
|
|
+ this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
+ this.$router.go(-1);
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|