Browse Source

优化

master
ltlzx 5 years ago
parent
commit
319ab9f403
  1. 4
      src/components/common/dialog/insex.vue
  2. 20
      src/components/page/AssetManagement/assetQuery.vue
  3. 3
      src/components/page/AssetManagement/releaseAudit.vue

4
src/components/common/dialog/insex.vue

@ -212,8 +212,10 @@ export default {
}else if (this.dialogType==2) { }else if (this.dialogType==2) {
if (this.assets_type==2) { if (this.assets_type==2) {
this.saveCartellinoCheck() this.saveCartellinoCheck()
}else if (this.dialogType==3) { }else if (this.assets_type==3) {
this.saveSendCheck() this.saveSendCheck()
}else{
this.MisShow()
} }
} }
}, },

20
src/components/page/AssetManagement/assetQuery.vue

@ -112,6 +112,9 @@
></el-pagination> ></el-pagination>
</div> </div>
</div> </div>
<whyDialog v-if="editVisible" :isshow="editVisible" :dialogID="dialogID"
:dialogType="dialogType" @MisShow="MisShow" :assets_type="1" @getData="getData">
</whyDialog>
</div> </div>
</template> </template>
@ -121,6 +124,8 @@ import moment from 'moment'
export default { export default {
data() { data() {
return { return {
dialogID:'',
dialogType:2,
query: { query: {
serial_number: '', serial_number: '',
account_name: '', account_name: '',
@ -180,11 +185,17 @@ export default {
}, },
}; };
}, },
components:{
whyDialog: () => import('../../common/dialog/insex.vue')
},
created() { created() {
this.getData(); this.getData();
this.getAuditList() this.getAuditList()
}, },
methods: { methods: {
MisShow(){
this.editVisible=false
},
// //
getAuditList(){ getAuditList(){
auditList().then(res => { auditList().then(res => {
@ -220,7 +231,8 @@ export default {
addedAsset(data).then(res => { addedAsset(data).then(res => {
console.log(res); console.log(res);
if (res.code==100) { if (res.code==100) {
this.$message.success('操作成功~');
this.getData()
}else{ }else{
this.$message.error(res.msg); this.$message.error(res.msg);
} }
@ -232,7 +244,8 @@ export default {
outAsset(data).then(res => { outAsset(data).then(res => {
console.log(res); console.log(res);
if (res.code==100) { if (res.code==100) {
this.$message.success('操作成功~');
this.getData()
}else{ }else{
this.$message.error(res.msg); this.$message.error(res.msg);
} }
@ -268,8 +281,7 @@ export default {
}, },
// //
handleEdit(index, row) { handleEdit(index, row) {
this.idx = index; this.dialogID=row.id;
this.form = row;
this.editVisible = true; this.editVisible = true;
}, },
// //

3
src/components/page/AssetManagement/releaseAudit.vue

@ -144,6 +144,9 @@ export default {
}, },
}; };
}, },
components:{
whyDialog: () => import('../../common/dialog/insex.vue')
},
created() { created() {
this.getData(); this.getData();
this.getAuditList(); this.getAuditList();

Loading…
Cancel
Save