缺陷修复

dev-scheduling
jinna 2 weeks ago
parent d2a962d285
commit 7ea21a62a6
  1. 4
      src/views/qualityManagement/inspectionArchiving/auditFile/index.vue
  2. 6
      src/views/qualityManagement/inspectionArchiving/rbFilePreserve/addPreserve.vue
  3. 8
      src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue
  4. 6
      src/views/system/user.vue

@ -64,7 +64,7 @@ export default {
viewBtnText: '详情', viewBtnText: '详情',
labelWidth: 120, labelWidth: 120,
// searchLabelWidth: 120, // searchLabelWidth: 120,
menuWidth: 120, menuWidth: 100,
dialogWidth: 640, dialogWidth: 640,
dialogClickModal: false, dialogClickModal: false,
searchEnter: true, searchEnter: true,
@ -299,6 +299,7 @@ export default {
}); });
}, },
onLoad() { onLoad() {
this.loading = true;
getList({ getList({
current:this.page.currentPage, current:this.page.currentPage,
size:this.page.pageSize, size:this.page.pageSize,
@ -306,6 +307,7 @@ export default {
}).then(res =>{ }).then(res =>{
this.data = res.data.data.records this.data = res.data.data.records
this.page.total = res.data.data.total this.page.total = res.data.data.total
this.loading = false;
}) })
// this.data = [ // this.data = [
// { // {

@ -246,9 +246,9 @@ export default {
this.form.tableData = this.form.tableData.filter(row => !row._select); this.form.tableData = this.form.tableData.filter(row => !row._select);
}, },
closeDialog() { closeDialog(val) {
this.openShow = false; this.openShow = false;
this.$emit('closeDialog'); this.$emit('closeDialog',val);
// //
this.form.tableData = []; this.form.tableData = [];
this.formError = ''; this.formError = '';
@ -303,7 +303,7 @@ export default {
addRecords(submitData).then(res => { addRecords(submitData).then(res => {
if(res.data.code === 200){ if(res.data.code === 200){
this.$message.success('新增成功'); this.$message.success('新增成功');
this.closeDialog(); this.closeDialog(true);
} }
}) })
} catch (err) { } catch (err) {

@ -147,7 +147,7 @@ export default {
excelBtn: true, excelBtn: true,
showOverflowTooltip: true, showOverflowTooltip: true,
align: 'center', align: 'center',
menuWidth: 360, menuWidth: 280,
searchLabelPosition: 'left', searchLabelPosition: 'left',
searchGutter: 24, searchGutter: 24,
searchSpan: 6, searchSpan: 6,
@ -319,8 +319,12 @@ export default {
handleAdd(){ handleAdd(){
this.showDialog = true this.showDialog = true
}, },
closeDialog(){ closeDialog(val){
this.showDialog = false this.showDialog = false
this.isShowImport = false
if(val){
this.onLoad()
}
}, },
getPermission(key, row, index) { getPermission(key, row, index) {
if (key === 'editBtn') { if (key === 'editBtn') {

@ -429,6 +429,9 @@ export default {
row.roleId = func.join(row.roleId); row.roleId = func.join(row.roleId);
row.postId = func.join(row.postId); row.postId = func.join(row.postId);
row.leaderId = func.join(row.leaderId); row.leaderId = func.join(row.leaderId);
row.tenantId = '000000'
row.userType = '1'
console.log('row--------------',row)
add(row).then( add(row).then(
() => { () => {
this.initFlag = false; this.initFlag = false;
@ -452,6 +455,9 @@ export default {
row.leaderId = func.join(row.leaderId); row.leaderId = func.join(row.leaderId);
// //
const submitData = this.sensitiveManager.getSubmitData(row); const submitData = this.sensitiveManager.getSubmitData(row);
row.tenantId = '000000'
row.userType = '1'
console.log('sub--------',submitData)
update(submitData).then( update(submitData).then(
() => { () => {
this.initFlag = false; this.initFlag = false;

Loading…
Cancel
Save