【modify】使用ESLint格式化代码

This commit is contained in:
zer0Black
2023-03-01 09:33:58 +08:00
parent 694855ae8b
commit 63369b8b87
400 changed files with 42942 additions and 43132 deletions
@@ -53,101 +53,100 @@
</template>
<script>
import { getAction } from '@/api/manage'
import DataLogCompareModal from './DataLogCompareModal'
export default {
name: 'DataLogModal',
components: { DataLogCompareModal },
dataId1:'',
dataId2: '',
dataTable1:'',
dataID3:'',
import { getAction } from '@/api/manage'
import DataLogCompareModal from './DataLogCompareModal'
export default {
name: 'DataLogModal',
components: { DataLogCompareModal },
dataId1: '',
dataId2: '',
dataTable1: '',
dataID3: '',
data () {
return {
modalWidth:700,
modaltoggleFlag:true,
confirmDirty: false,
title:"操作",
visible: false,
model: {},
confirmLoading: false,
headers:{},
form:this.$form.createForm(this),
url: {
queryDataVerListUrl:"/sys/dataLog/queryDataVerList",
},
DataVersionList:[],
}
data () {
return {
modalWidth: 700,
modaltoggleFlag: true,
confirmDirty: false,
title: '操作',
visible: false,
model: {},
confirmLoading: false,
headers: {},
form: this.$form.createForm(this),
url: {
queryDataVerListUrl: '/sys/dataLog/queryDataVerList'
},
DataVersionList: []
}
},
created () {
},
methods: {
addModal (records) {
const dataTable = records[0].dataTable
const dataId = records[0].dataId
const dataVersion1 = records[0].dataVersion
const dataVersion2 = records[1].dataVersion
this.dataId1 = records[0].id
this.dataId2 = records[1].id
this.dataTable1 = records[0].dataTable
this.dataID3 = records[0].dataId
this.initDataVersionList()
this.form.resetFields()
this.visible = true
this.$nextTick(() => {
this.form.setFieldsValue({ dataTale: dataTable, dataId: dataId, dataVersion1: dataVersion1, dataVersion2: dataVersion2 })
})
},
created () {
handleOk () {
this.close()
this.$refs.modal.compareModal(this.dataId1, this.dataId2)
this.$refs.modal.title = '数据比较'
},
methods: {
addModal(records){
const dataTable = records[0].dataTable
const dataId = records[0].dataId;
const dataVersion1 = records[0].dataVersion;
const dataVersion2 = records[1].dataVersion;
this.dataId1 = records[0].id;
this.dataId2 = records[1].id;
this.dataTable1 = records[0].dataTable
this.dataID3 = records[0].dataId
this.initDataVersionList();
this.form.resetFields();
this.visible = true;
this.$nextTick(() => {
this.form.setFieldsValue({dataTale:dataTable,dataId:dataId,dataVersion1:dataVersion1,dataVersion2:dataVersion2});
});
},
handleOk () {
this.close();
this.$refs.modal.compareModal(this.dataId1 ,this.dataId2);
this.$refs.modal.title="数据比较";
},
handleCancel(){
this.close()
},
handleSubmit(){
},
close () {
this.$emit('close');
this.visible = false;
this.disableSubmit = false;
},
modalFormOk () {
},
initDataVersionList(){
let that = this;
getAction(that.url.queryDataVerListUrl,{dataTable:this.dataTable1,dataId:this.dataID3}).then((res)=>{
if(res.success){
this.DataVersionList = res.result;
}else{
this.DataVersionList=[];
this.dataId1 = '',
this.dataId2='',
console.log(res.message);
}
});
},
handleChange1(value) {
this.dataId1 = value;
},
handleChange2(value) {
this.dataId2 = value;
},
handleTableBlur(e){
this.dataTable1 = e.target.value;
this.initDataVersionList();
},
handleIdBlur(e){
this.dataID3 = e.target.value;
this.initDataVersionList();
}
handleCancel () {
this.close()
},
handleSubmit () {
},
close () {
this.$emit('close')
this.visible = false
this.disableSubmit = false
},
modalFormOk () {
},
initDataVersionList () {
const that = this
getAction(that.url.queryDataVerListUrl, { dataTable: this.dataTable1, dataId: this.dataID3 }).then((res) => {
if (res.success) {
this.DataVersionList = res.result
} else {
this.DataVersionList = []
this.dataId1 = '',
this.dataId2 = '',
console.log(res.message)
}
})
},
handleChange1 (value) {
this.dataId1 = value
},
handleChange2 (value) {
this.dataId2 = value
},
handleTableBlur (e) {
this.dataTable1 = e.target.value
this.initDataVersionList()
},
handleIdBlur (e) {
this.dataID3 = e.target.value
this.initDataVersionList()
}
}
}
</script>
<style scoped>
</style>
</style>