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) {
if (this.assets_type==2) {
this.saveCartellinoCheck()
}else if (this.dialogType==3) {
}else if (this.assets_type==3) {
this.saveSendCheck()
}else{
this.MisShow()
}
}
},

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

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

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

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

Loading…
Cancel
Save