Browse Source

合并冲突

pull/3/head
liwei 3 years ago
parent
commit
538b869cae
5 changed files with 14 additions and 10 deletions
  1. +9
    -5
      src/mixins/ListMixin.js
  2. +1
    -1
      src/views/etl/components/edit.vue
  3. +2
    -2
      src/views/etl/index.vue
  4. +1
    -1
      src/views/field/components/edit.vue
  5. +1
    -1
      src/views/field/index.vue

+ 9
- 5
src/mixins/ListMixin.js View File

@ -2,7 +2,7 @@ import { get, deleteData } from "@/server/api.js";
export const ListMixin = {
data () {
return {
isShowDialog: false,
isShowDialog: '',
item: null,
pagination: { // 分页参数
pageNumber: 1,
@ -29,21 +29,25 @@ export const ListMixin = {
})
},
// 监听回调
completeCallBack () {
this.isShowDialog = false
completeCallBack (data) {
this.isShowDialog = ''
this.item = null
this.getList()
},
// 新增按钮操作
handleAdd () {
this.isShowDialog = true
this.isShowDialog = 'edit'
this.item = null
},
// 修改按钮操作
handleUpdate (row) {
this.isShowDialog = true
this.isShowDialog = 'edit'
this.item = row
},
// 改变isShowDialog的值
changeDialogStatus(data) {
this.isShowDialog = data
},
// 删除数据
delHanle (keyName, url) {
this.$confirm('是否确认删除"' + keyName + '"的数据项?', '警告', {


+ 1
- 1
src/views/etl/components/edit.vue View File

@ -80,7 +80,7 @@ export default {
},
methods: {
cancel() { //
this.$emit('editCallBack')
this.$emit('update:isShowDialog','')
},
handleAdd() { //
this.title = '添加'


+ 2
- 2
src/views/etl/index.vue View File

@ -40,7 +40,7 @@
<!-- 分页 -->
<Pagination v-show="pagination.total>0" v-model:pagination="pagination" @change="getList" />
<!-- 新增/修改子组件 -->
<EditTemplate v-if="isShowDialog" :item="item" @editCallBack="completeCallBack"></EditTemplate>
<EditTemplate v-if="!!isShowDialog === 'edit'" :item="item" v-model:isShowDialog="isShowDialog" @editCallBack="completeCallBack"></EditTemplate>
<!-- 任务配置项 -->
<Configuration />
</ContentContainer>
@ -88,7 +88,7 @@
//
configuration(item){
this.item=item;
this.changeDialogStatus('configuration');
},
//
handleQuery() {


+ 1
- 1
src/views/field/components/edit.vue View File

@ -80,7 +80,7 @@ export default {
},
methods: {
cancel() { //
this.$emit('editCallBack')
this.$emit('update:isShowDialog','')
},
handleAdd() { //
this.title = '添加'


+ 1
- 1
src/views/field/index.vue View File

@ -39,7 +39,7 @@
<!-- 分页 -->
<Pagination v-show="pagination.total>0" v-model:pagination="pagination" @change="getList" />
<!-- 新增/修改子组件 -->
<EditTemplate v-if="isShowDialog" :item="item" @editCallBack="completeCallBack"></EditTemplate>
<EditTemplate v-if="!!isShowDialog === 'edit'" v-model:isShowDialog="isShowDialog" :item="item" @editCallBack="completeCallBack"></EditTemplate>
</ContentContainer>
</div>
</template>


Loading…
Cancel
Save