修改禅道已知bug
This commit is contained in:
@@ -1255,4 +1255,5 @@ module.exports = {
|
|||||||
deleteNode:'If any file information exists, it will be deleted',
|
deleteNode:'If any file information exists, it will be deleted',
|
||||||
HaveReleased:'Have released',
|
HaveReleased:'Have released',
|
||||||
forward:'Forward',
|
forward:'Forward',
|
||||||
|
areResponsibilityAreaInformationBatch:'Are you sure you want to modify the responsibility area information in batch',
|
||||||
}
|
}
|
||||||
@@ -1358,4 +1358,5 @@ module.exports = {
|
|||||||
deleteNode:'若有文件信息将同步删除',
|
deleteNode:'若有文件信息将同步删除',
|
||||||
HaveReleased:'已发布',
|
HaveReleased:'已发布',
|
||||||
forward:'转发',
|
forward:'转发',
|
||||||
|
areResponsibilityAreaInformationBatch:'确实是否批量修改责任领域信息',
|
||||||
}
|
}
|
||||||
@@ -216,6 +216,13 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
|
if (this.formInline.dutyTerritory) {
|
||||||
|
this.handleOnTwo()
|
||||||
|
} else {
|
||||||
|
this.handleOkOne()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleOkOne() {
|
||||||
let ids = JSON.parse(JSON.stringify(this.ids))
|
let ids = JSON.parse(JSON.stringify(this.ids))
|
||||||
let formInline = JSON.parse(JSON.stringify(this.formInline))
|
let formInline = JSON.parse(JSON.stringify(this.formInline))
|
||||||
Object.keys(formInline).forEach(res => {
|
Object.keys(formInline).forEach(res => {
|
||||||
@@ -240,6 +247,37 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleOnTwo() {
|
||||||
|
let _this = this
|
||||||
|
this.$confirm({
|
||||||
|
content: _this.$t('areResponsibilityAreaInformationBatch'),
|
||||||
|
onOk() {
|
||||||
|
let ids = JSON.parse(JSON.stringify(_this.ids))
|
||||||
|
let formInline = JSON.parse(JSON.stringify(_this.formInline))
|
||||||
|
Object.keys(formInline).forEach(res => {
|
||||||
|
if (formInline[res] instanceof Array) {
|
||||||
|
formInline[res] = formInline[res].join(',')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let query = {
|
||||||
|
ids: ids.join(','),
|
||||||
|
...formInline
|
||||||
|
}
|
||||||
|
_this.confirmLoading = true
|
||||||
|
postAction(_this.url.setBatch, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.visible = false
|
||||||
|
_this.confirmLoading = false
|
||||||
|
_this.$emit('batSettingList')
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(res.message)
|
||||||
|
_this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
class="ant-table tableList"
|
class="ant-table tableList"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: '100%',y:'calc(100vh - 170px)'}"
|
:scroll="{x: '100%',y:'calc(100vh - 186px)'}"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
@@ -202,6 +202,9 @@
|
|||||||
<span v-else>--</span>
|
<span v-else>--</span>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
|
<div class="buttom-box" v-if="dataSource && dataSource.length > 0">
|
||||||
|
{{$t('total')+' '+this.dataSource.length+' '+ $t('strip')}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
@@ -1004,6 +1007,14 @@
|
|||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.buttom-box {
|
||||||
|
width: 100%;
|
||||||
|
text-align: right;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #000F16;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.box-input .ant-select-selection {
|
.box-input .ant-select-selection {
|
||||||
|
|||||||
@@ -215,6 +215,13 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
|
if (this.formInline.dutyTerritory) {
|
||||||
|
this.handleOkTwo()
|
||||||
|
} else {
|
||||||
|
this.handleOkOne()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleOkOne() {
|
||||||
let ids = JSON.parse(JSON.stringify(this.ids))
|
let ids = JSON.parse(JSON.stringify(this.ids))
|
||||||
let query = {
|
let query = {
|
||||||
ids: ids.join(','),
|
ids: ids.join(','),
|
||||||
@@ -233,6 +240,31 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleOkTwo() {
|
||||||
|
let _this = this
|
||||||
|
this.$confirm({
|
||||||
|
content: _this.$t('areResponsibilityAreaInformationBatch'),
|
||||||
|
onOk() {
|
||||||
|
let ids = JSON.parse(JSON.stringify(_this.ids))
|
||||||
|
let query = {
|
||||||
|
ids: ids.join(','),
|
||||||
|
..._this.formInline
|
||||||
|
}
|
||||||
|
_this.confirmLoading = true
|
||||||
|
postAction(_this.url.setBatch, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.visible = false
|
||||||
|
_this.confirmLoading = false
|
||||||
|
_this.$emit('batSettingList')
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
|
_this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
|||||||
@@ -200,7 +200,7 @@
|
|||||||
class="tableList"
|
class="tableList"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: '100%',y:'calc(100vh - 170px)'}"
|
:scroll="{x: '100%',y:'calc(100vh - 186px)'}"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
@@ -273,6 +273,9 @@
|
|||||||
<span v-else>--</span>
|
<span v-else>--</span>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
|
<div class="buttom-box" v-if="dataSource && dataSource.length > 0">
|
||||||
|
{{$t('total')+' '+this.dataSource.length+' '+ $t('strip')}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<listAddModel :url="url" @addModelList="addModelList" ref="addModelRef"/>
|
<listAddModel :url="url" @addModelList="addModelList" ref="addModelRef"/>
|
||||||
<listEditModel :url="url" @editModelList="addModelList" ref="editModelRef"/>
|
<listEditModel :url="url" @editModelList="addModelList" ref="editModelRef"/>
|
||||||
@@ -2257,6 +2260,14 @@
|
|||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.buttom-box {
|
||||||
|
width: 100%;
|
||||||
|
text-align: right;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #000F16;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.box-input .ant-select-selection {
|
.box-input .ant-select-selection {
|
||||||
|
|||||||
Reference in New Issue
Block a user