|
@@ -104,7 +104,7 @@ export default {
|
|
|
this.getdepld(this.params.row.communityId, resolves);
|
|
|
}).then((res) => {
|
|
|
new Promise((resolve) => {
|
|
|
- let ids = () => {
|
|
|
+ let ids = () => {
|
|
|
let arr = [];
|
|
|
this.thisObj.gateList.map((item) => {
|
|
|
arr.push({
|
|
@@ -116,7 +116,10 @@ export default {
|
|
|
return arr;
|
|
|
};
|
|
|
this.$http
|
|
|
- .post(`${this.params.row.cardType == 2 ? '/card/issue/manage' : '/card/issue/resident'}`, ids())
|
|
|
+ .post(
|
|
|
+ `${this.params.row.cardType == 2 ? '/card/issue/manage' : '/card/issue/resident'}`,
|
|
|
+ this.params.row.cardType == 2 ? { expire_date: installData.expirationTime, depId: res } : ids()
|
|
|
+ )
|
|
|
.then(({ data, status, msg }) => {
|
|
|
if (status == 0) {
|
|
|
resolve && resolve();
|
|
@@ -131,9 +134,9 @@ export default {
|
|
|
},
|
|
|
isOk(installData) {
|
|
|
var loading = this.$loading();
|
|
|
- if(this.params.type == 5){
|
|
|
- installData.cardNo = installData.oldCardNo
|
|
|
- delete installData.oldCardNo
|
|
|
+ if (this.params.type == 5) {
|
|
|
+ installData.cardNo = installData.oldCardNo;
|
|
|
+ delete installData.oldCardNo;
|
|
|
}
|
|
|
this.$http
|
|
|
.post('/sc-gate-web/gateCard/operate', installData)
|