Commit 576b9492 authored by linxin's avatar linxin

Merge branch 'liuxin' into develop

parents 3e0f7c26 20fd391c
Pipeline #4493 canceled with stages
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
</div> </div>
</div> </div>
<div v-if="!fromPutted"> <div v-if="!fromPutted">
<item-option v-for="(item,index) in selectUdertake" :key="index" class="mySlider"> <item-option v-for="(item,index) in selectUdertake" ref="underTake" :key="index" class="mySlider">
<list-item :item-height="68"> <list-item :item-height="68">
<item> <item>
<span slot="left-icon" class="left-icon">{{ index+1 }}</span> <span slot="left-icon" class="left-icon">{{ index+1 }}</span>
...@@ -563,8 +563,6 @@ export default { ...@@ -563,8 +563,6 @@ export default {
vm.$post(url, param).then(function (res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading() vm.hlsPopup.hideLoading()
if (res.result === 'S') { if (res.result === 'S') {
Object.assign(vm.saveInfo, res.info)
vm.selectUdertake = res.lists
} else { } else {
hlsPopup.showLongCenter(res.message) hlsPopup.showLongCenter(res.message)
} }
...@@ -971,6 +969,7 @@ export default { ...@@ -971,6 +969,7 @@ export default {
} }
}) })
this.selectUdertake.splice(deleteIndex, 1) this.selectUdertake.splice(deleteIndex, 1)
this.$refs.underTake[0].reset()
this.deleteGuta(e) this.deleteGuta(e)
}, },
}, },
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<list-item :item-height="44" class="second-part"> <list-item :item-height="44" class="second-part">
<item :showArrow="true" @click.native="picker"> <item :showArrow="true" @click.native="picker">
<div slot="name" class="font-color required">承租人</div> <div slot="name" class="font-color required">承租人</div>
<input slot="content" v-model="lessee" placeholder="请选择"> <input slot="content" v-model="lessee" readonly placeholder="请选择">
</item> </item>
<item :showArrow="true"> <item :showArrow="true">
<div slot="name" class="font-color required">业务类型</div> <div slot="name" class="font-color required">业务类型</div>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</div> </div>
</list-item> </list-item>
<div slot="buttons"> <div slot="buttons">
<option-button type="warn" text="删除" @click.native="deleteFun(parentIndex)" /> <option-button type="warn" text="删除" @click.native="deleteFun(parentIndex,item)" />
</div> </div>
</item-option> </item-option>
</section> </section>
...@@ -161,7 +161,23 @@ export default { ...@@ -161,7 +161,23 @@ export default {
} }
}) })
}, },
deleteFun (Index) { deleteData (item) {
let vm = this
let url = process.env.basePath + 'app_notice_delete'
let param = {
notice_id: item.notice_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
hlsPopup.showSuccess('删除成功')
} else {
hlsPopup.showLongCenter(res.message)
}
})
},
deleteFun (Index, item) {
let vm = this let vm = this
hlsPopup.showConfirm({ hlsPopup.showConfirm({
title: '提示', title: '提示',
...@@ -171,6 +187,7 @@ export default { ...@@ -171,6 +187,7 @@ export default {
vm.list.remove(Index) vm.list.remove(Index)
vm.list.sort() vm.list.sort()
vm.$refs.itemOption[0].reset() vm.$refs.itemOption[0].reset()
vm.deleteData(item)
} }
}, },
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment