Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
@@ -178,6 +178,7 @@ export default {
|
||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
||||
} else {
|
||||
let param = {ids: this.selectedRowKeysArray, paramsManifestId:this.$route.query.id ,projectId: this.$route.query.projectId, dre:this.selectedRowKeysDate[0].username }
|
||||
this.confirmLoading = true
|
||||
axios({
|
||||
url: '/jero-boot/params/collectManifest/updateDreBatch',
|
||||
method: 'post',
|
||||
@@ -199,14 +200,17 @@ export default {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
// 填写人
|
||||
// 获取当前登陆人
|
||||
this.confirmLoading = false
|
||||
this.$emit('GetgetLoginUserType')
|
||||
this.$emit('GetgetTableList')
|
||||
this.$emit('areaVisibleAssignedbyflag', false)
|
||||
}else{
|
||||
this.confirmLoading = false
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
this.confirmLoading = false
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -99,7 +99,9 @@
|
||||
<div v-else-if='detailDate.controlType === "2"' class='add_flex'>
|
||||
<div v-for='(item,index) in detailDate.list' :key='index' class='add-width'>
|
||||
<div v-if='item.type === "pull"'>
|
||||
<a-select v-model="item.dataValue" class='selectWid' :disabled="item.isLock == '1' ? true: false"
|
||||
<a-select v-model="item.dataValue"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
class='selectWid' :disabled="item.isLock == '1' ? true: false"
|
||||
allowClear>
|
||||
<a-select-option v-for="(item, key) in item.controlValue" :key="key" :value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||
@@ -114,7 +116,9 @@
|
||||
<div v-else-if='detailDate.controlType === "3"' class='add_flex'>
|
||||
<div v-for='(item,index) in detailDate.list' :key='index' style='flex: 1' class='add-width'>
|
||||
<div v-if='item.type==="pull_more"'>
|
||||
<a-select v-model="item.dataValue" mode="multiple" class='selectWid'
|
||||
<a-select v-model="item.dataValue"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
mode="multiple" class='selectWid'
|
||||
:disabled="item.isLock == '1' ? true: false" allowClear>
|
||||
<a-select-option v-for="(item, key) in item.controlValue" :key="key" :value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||
@@ -141,7 +145,9 @@
|
||||
<div v-else-if='detailDate.controlType === "5"' class='add_flex'>
|
||||
<div v-for='(item,index) in detailDate.list' :key='index' class='add-width'>
|
||||
<div v-if='item.type==="pull"'>
|
||||
<a-select v-model="item.dataValue" class='selectWid' :disabled="item.isLock == '1' ? true: false"
|
||||
<a-select v-model="item.dataValue"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
class='selectWid' :disabled="item.isLock == '1' ? true: false"
|
||||
allowClear>
|
||||
<a-select-option v-for="(itemin, key) in item.controlValue" :key="key" :value="itemin.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" itemin.label ">
|
||||
@@ -336,7 +342,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-if='item.type==="pull_more"'>
|
||||
<a-select v-model="item.dataValue" mode="multiple" class='selectWid'
|
||||
<a-select v-model="item.dataValue"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
mode="multiple" class='selectWid'
|
||||
:disabled="item.isLock == '1' ? true: false" allowClear>
|
||||
<a-select-option v-for="(item, key) in item.controlValue" :key="key" :value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||
@@ -453,7 +461,9 @@
|
||||
<div v-else-if='detailDate.controlType === "8"' class='add_flex'>
|
||||
<div v-for='(item,index) in detailDate.list' :key='index' class='add-width'>
|
||||
<div v-if='item.type==="pull"'>
|
||||
<a-select v-model="item.dataValue" class='selectWid' :disabled="item.isLock == '1' ? true: false"
|
||||
<a-select v-model="item.dataValue"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
class='selectWid' :disabled="item.isLock == '1' ? true: false"
|
||||
allowClear>
|
||||
<a-select-option v-for="(itemin, key) in item.controlValue" :key="key" :value="itemin.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" itemin.label ">
|
||||
@@ -475,7 +485,9 @@
|
||||
<div v-else-if='detailDate.controlType === "9"' class='add_flex'>
|
||||
<div v-for='(item,index) in detailDate.list' :key='index' class='add-width'>
|
||||
<div v-if='item.type==="pull_more"'>
|
||||
<a-select v-model="item.dataValue" mode="multiple" class='selectWid'
|
||||
<a-select v-model="item.dataValue"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
mode="multiple" class='selectWid'
|
||||
:disabled="item.isLock == '1' ? true: false" allowClear>
|
||||
<a-select-option v-for="(item, key) in item.controlValue" :key="key" :value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||
@@ -497,7 +509,9 @@
|
||||
<div v-else-if='detailDate.controlType === "10"' class='add_flex'>
|
||||
<div v-for='(item,index) in detailDate.list' :key='index' class='add-width'>
|
||||
<div v-if='item.type==="pull"'>
|
||||
<a-select v-model="item.dataValue" class='selectWid' :disabled="item.isLock == '1' ? true: false"
|
||||
<a-select v-model="item.dataValue"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
class='selectWid' :disabled="item.isLock == '1' ? true: false"
|
||||
allowClear>
|
||||
<a-select-option v-for="(itemin, key) in item.controlValue" :key="key" :value="itemin.value">
|
||||
<span style="display: inline-block;width: 100%" class="itemOption" :title=" itemin.label ">
|
||||
|
||||
@@ -6,41 +6,76 @@
|
||||
ref='ruleForm'
|
||||
:model='formInline'
|
||||
:rules='rules'
|
||||
:label-col='labelCol'
|
||||
:wrapper-col='wrapperCol'
|
||||
>
|
||||
<a-row :gutter='24'>
|
||||
<a-col :span='24'>
|
||||
<a-form-model-item style='line-height: 31.9999px;' prop='sourceConfigId' class='aform'>
|
||||
<div style='display: flex; justify-content: center'>
|
||||
<span class="Requireditem">*</span>
|
||||
<div style='width: 107px;line-height: 29px;'>{{ $t('from') }} </div>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('controlVerification')" v-model="formInline.sourceConfigId" allowClear style='width: 140%'>
|
||||
<a-select-option v-for="(item, key) in fromDate" :key="key" :value="item.value" style='width: 140%'>
|
||||
<span style="display: inline-block;width: 140%" :title=" item.label ">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('from')">{{$t('from')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="sourceConfigId">
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('controlVerification')"
|
||||
style="width: calc(100% - 90px)"
|
||||
v-model="formInline.sourceConfigId" allowClear>
|
||||
<a-select-option v-for="(item, key) in fromDate" :key="key" :value="item.value">
|
||||
<span :title=" item.label ">
|
||||
{{ item.label }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div style='width: 90px;line-height: 29px;'> {{ $t('configure') }}</div>
|
||||
</div>
|
||||
</a-form-model-item>
|
||||
<span style='width: 90px;line-height: 29px;margin-top: 8px'> {{ $t('configure') }}</span>
|
||||
</a-form-model-item>
|
||||
|
||||
</div>
|
||||
<!-- <a-form-model-item style='line-height: 31.9999px;' prop='sourceConfigId' class='aform'>-->
|
||||
<!-- <div style='display: flex; justify-content: center'>-->
|
||||
<!-- <span class="Requireditem">*</span>-->
|
||||
<!-- <div style='width: 107px;line-height: 29px;'>{{ $t('from') }} </div>-->
|
||||
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('controlVerification')" v-model="formInline.sourceConfigId" allowClear style='width: 140%'>-->
|
||||
<!-- <a-select-option v-for="(item, key) in fromDate" :key="key" :value="item.value" style='width: 140%'>-->
|
||||
<!-- <span style="display: inline-block;width: 140%" :title=" item.label ">-->
|
||||
<!-- {{ item.label }}-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-select-option>-->
|
||||
<!-- </a-select>-->
|
||||
<!-- <div style='width: 90px;line-height: 29px;'> {{ $t('configure') }}</div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
</a-col>
|
||||
<a-col :span='24'>
|
||||
<a-form-model-item style='line-height: 31.9999px;' prop='targetConfigIds' class='aform'>
|
||||
<div style='display: flex;justify-content: center'>
|
||||
<span class="Requireditem">*</span>
|
||||
<div style='line-height: 29px;width: 107px'>{{ $t('ReferenceTo') }} </div>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('controlVerification')" v-model="formInline.targetConfigIds" allowClear mode="multiple" style='width: 140%'>
|
||||
<a-select-option v-for="(item, key) in fromDateTo" :key="key" :value="item.value" style='width: 140%'>
|
||||
<span style="display: inline-block;width: 140%" :title=" item.label ">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('ReferenceTo')">{{$t('ReferenceTo')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="targetConfigIds">
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('controlVerification')"
|
||||
style="width: calc(100% - 90px)"
|
||||
v-model="formInline.targetConfigIds" allowClear mode="multiple">
|
||||
<a-select-option v-for="(item, key) in fromDateTo" :key="key" :value="item.value">
|
||||
<span class="itemOption" :title=" item.label ">
|
||||
{{ item.label }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<div style='width: 90px;line-height: 29px;'> {{ $t('configure') }}</div>
|
||||
</div>
|
||||
</a-form-model-item>
|
||||
<span style='width: 90px;line-height: 29px;float: right'> {{ $t('configure') }}</span>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- <a-form-model-item style='line-height: 31.9999px;' prop='targetConfigIds' class='aform'>-->
|
||||
<!-- <span class="Requireditem">*</span>-->
|
||||
<!-- <span style='line-height: 29px;width: 107px;display: inline-block'>{{ $t('ReferenceTo') }} </span>-->
|
||||
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('controlVerification')"-->
|
||||
<!-- style="width: calc(100%);display: inline-block"-->
|
||||
<!-- v-model="formInline.targetConfigIds" allowClear mode="multiple">-->
|
||||
<!-- <a-select-option v-for="(item, key) in fromDateTo" :key="key" :value="item.value">-->
|
||||
<!-- <span class="itemOption" :title=" item.label ">-->
|
||||
<!-- {{ item.label }}-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-select-option>-->
|
||||
<!-- </a-select>-->
|
||||
<!-- <span style='width: 90px;line-height: 29px;display: inline-block'> {{ $t('configure') }}</span>-->
|
||||
<!-- </a-form-model-item>-->
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
@@ -196,13 +231,16 @@ export default {
|
||||
this.formInline.targetConfigIds = this.formInline.targetConfigIds.join(',')
|
||||
}
|
||||
let param = {ids: this.selectedRowKeysArray, ...this.formInline }
|
||||
this.confirmLoading = true
|
||||
postAction('params/collectManifest/referParams', param).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$emit('areaVisibleAssignedbyflag', false)
|
||||
this.$emit('GetgetTableList')
|
||||
this.confirmLoading = false
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
}})
|
||||
@@ -265,6 +303,14 @@ export default {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.itemOption {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
<style lang='less'>
|
||||
.area-module {
|
||||
@@ -287,4 +333,52 @@ export default {
|
||||
color: red;
|
||||
line-height: 24px;
|
||||
}
|
||||
.box-title-text {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
/*align-items: center;*/
|
||||
}
|
||||
|
||||
.title-text {
|
||||
width: 114px;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin-right: 16px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
height: 42px;
|
||||
line-height: 42px;
|
||||
}
|
||||
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.itemModel {
|
||||
width: calc(100% - 130px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
height: 40px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.itemModel-text {
|
||||
width: calc(100% - 130px);
|
||||
display: inline-block;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.Required {
|
||||
color: red;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.title-text-text {
|
||||
margin-top: 9px;
|
||||
}
|
||||
</style>
|
||||
@@ -92,6 +92,7 @@ export default {
|
||||
handleSubmit() {
|
||||
let _this = this
|
||||
let param = {ids: this.selectedRowKeysArray, paramsManifestId: this.paramsManifest.id }
|
||||
this.confirmLoading = true
|
||||
axios({
|
||||
url: '/jero-boot/params/collectManifest/syncReport',
|
||||
method: 'post',
|
||||
@@ -114,12 +115,15 @@ export default {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
this.$emit('areaVisibsynchronous', false)
|
||||
this.$emit('GetgetTableList')
|
||||
this.confirmLoading = false
|
||||
}else{
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
console.log(error);
|
||||
this.confirmLoading = false
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,12 +107,15 @@ export default {
|
||||
handleSubmit() {
|
||||
let _this = this
|
||||
let param = {ids: this.selectedRowKeysArray, deadline: `${this.pickerDate}`, }
|
||||
this.confirmLoading = true
|
||||
postAction('/params/collectManifest/updateDeadlineBatch', param).then((res) => {
|
||||
if (res.success) {
|
||||
this.$emit('areaVisibleTaskCutOffTimeflag', false)
|
||||
this.$message.success(res.message)
|
||||
this.confirmLoading = false
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -139,6 +139,7 @@
|
||||
import axios from 'axios'
|
||||
import Vue from 'vue'
|
||||
import VueDraggableResizable from 'vue-draggable-resizable'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'index',
|
||||
@@ -260,12 +261,14 @@
|
||||
watch: {
|
||||
currentPersonRole: {
|
||||
handler: function() {
|
||||
this.getTableList();
|
||||
console.log(123)
|
||||
this.getTableList()
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
rowClassName(row, index) {
|
||||
if (row.changeFlag == '1') {
|
||||
return 'rowClassRedYellow'
|
||||
@@ -375,7 +378,7 @@
|
||||
this.areaVisible = true
|
||||
// this.$refs.ruleForm.clearValidate()
|
||||
this.$nextTick(() => {
|
||||
this.Dateline = {...this.Dateline}
|
||||
this.Dateline = { ...this.Dateline }
|
||||
this.getquerySdtList(record)
|
||||
this.$refs.ruleForm.clearValidate()
|
||||
})
|
||||
@@ -397,8 +400,28 @@
|
||||
}
|
||||
getAction(this.url.getLoginUserType, params).then((res) => {
|
||||
if (res.success) {
|
||||
this.getTableList(res.result[0].value)
|
||||
this.$emit('LoginUserType', res.result, this.currentPersonRole)
|
||||
this.getAndUserId(res.result)
|
||||
}
|
||||
})
|
||||
},
|
||||
getAndUserId(result) {
|
||||
let query = {
|
||||
paramsManifestId: this.$route.query.id,
|
||||
projectId: this.$route.query.projectId,
|
||||
userId: this.userInfo().id
|
||||
}
|
||||
getAction('/params/userTypeLog/queryCurrentType', query).then((res) => {
|
||||
if (res.success) {
|
||||
if (res.result && res.result.userType) {
|
||||
this.getTableList(res.result.userType)
|
||||
console.log(11)
|
||||
} else {
|
||||
console.log(222)
|
||||
this.getTableList(result[0].value)
|
||||
}
|
||||
this.$emit('LoginUserType', result, this.currentPersonRole, res.result.userType)
|
||||
} else {
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -512,7 +535,9 @@
|
||||
this.dataSource = tt
|
||||
this.total = res.result.total
|
||||
this.selectedRowKeys = []
|
||||
this.loading = false
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
}, 500)
|
||||
} else {
|
||||
this.loading = false
|
||||
}
|
||||
@@ -596,7 +621,10 @@
|
||||
this.selectedRowrowValue = []
|
||||
this.$emit('value', this.selectedRowKeys)
|
||||
this.$emit('rowValue', this.selectedRowrowValue)
|
||||
this.loading = false
|
||||
this.$emit('getDataSource', this.dataSource)
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
}, 500)
|
||||
} else {
|
||||
this.loading = false
|
||||
}
|
||||
@@ -618,7 +646,7 @@
|
||||
detailClick(item, index) {
|
||||
// this.$emit('detailClick', item)
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang='less'>
|
||||
@@ -714,10 +742,12 @@
|
||||
transform: none !important;
|
||||
bottom: 0;
|
||||
}
|
||||
.rowClassRed{
|
||||
background: #f3d9de;
|
||||
|
||||
.rowClassRed {
|
||||
background: #f3d9de;
|
||||
}
|
||||
.rowClassRedYellow{
|
||||
background: yellow;
|
||||
|
||||
.rowClassRedYellow {
|
||||
background: yellow;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user