[add] 权限工程接口人
This commit is contained in:
@@ -25,9 +25,36 @@
|
||||
<!-- 变更 9-->
|
||||
<span v-if='homo === 1'>
|
||||
<!-- 认证工程师 -->
|
||||
<!-- <span v-if='record.controlType == 1'>-->
|
||||
<span @click='ondataValue'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
<!-- </span>-->
|
||||
<span v-if='record.state == "待发起收集"'>
|
||||
<span @click='ondataValueTobeinitiated(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-if='record.state == "待工程接口人处理"'>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-if='record.state == "工程接口人退回"'>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-if='record.state == "待填写"'>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-if='record.state == "填写人退回"'>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-if='record.state == "已提交"'>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-if='record.state == "认证工程师退回"'>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-if='record.state == "已同步至上报库"'>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-if='record.state == "变更"'>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
<span v-else>
|
||||
<span @click='ondataValueNot(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
<span slot="operation" slot-scope="record">
|
||||
@@ -49,9 +76,37 @@
|
||||
</span>
|
||||
</a-table>
|
||||
</div>
|
||||
<!-- 添加--->
|
||||
<a-modal v-model="areaVisible" :title="$t('ParameterLibrary')" width='750px' :footer="null">
|
||||
<!-- <parameter-library v-if='areaVisible' :paramsManifest='paramsManifest'/>-->
|
||||
<!-- 修改工程接口人--->
|
||||
<a-modal v-model="areaVisible" :title="$t('modifyprojectInterfacePerson')" width='750px' :footer="null">
|
||||
<a-form-model
|
||||
class='tag-module'
|
||||
ref='ruleForm'
|
||||
:model='form'
|
||||
:rules='rules'
|
||||
:label-col='labelCol'
|
||||
:wrapper-col='wrapperCol'
|
||||
>
|
||||
<a-row :gutter='24'>
|
||||
<a-col :span='12'>
|
||||
<a-form-model-item ref='region' :label="$t('engineeringInterfacePerson')" prop='region'>
|
||||
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" v-model="formInline.controlType">
|
||||
<a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||
{{ item.label }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
<div class="imports-footer">
|
||||
<div class="imports-footer-wrap">
|
||||
|
||||
<a-button class="imports-btn imports-sub" type="primary" @click="handleSubmit" v-has="'split:sarFileSplitItems:importSplitResult'">{{$t('preservation')}}</a-button>
|
||||
<a-button class="imports-btn" type="primary" @click="cancleImports">{{$t('cancel')}}</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
@@ -104,18 +159,59 @@ export default {
|
||||
sdt: 0, // 工程接口人
|
||||
dre: 0, // 填写人
|
||||
areaVisible: false,
|
||||
form: {},
|
||||
rules: {
|
||||
// templatetitle: [
|
||||
// { required: true, message: this.$t('enterTitle'), trigger: 'blur' }
|
||||
// ]
|
||||
},
|
||||
wrapperCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 14 }
|
||||
},
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 7 }
|
||||
},
|
||||
querySdtList: [], // 工程接口人
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
// 获取工程接口人
|
||||
getquerySdtList(record) {
|
||||
getAction(this.url.getquerySdtList, {projectId: this.$route.query.id, dutyTerritory: record.dutyTerritory}).then((res) => {
|
||||
if (res.success) {
|
||||
this.querySdtList = res.result
|
||||
}
|
||||
})
|
||||
},
|
||||
// 工程接口人 保存
|
||||
handleSubmit(record) {
|
||||
this.areaVisible = false
|
||||
postAction(this.url.updateSdt, {projectId: this.$route.query.id, dutyTerritory: record.dutyTerritory}).then((res) => {
|
||||
if (res.success) {
|
||||
this.querySdtList = res.result
|
||||
}
|
||||
})
|
||||
},
|
||||
// 工程接口人 取消
|
||||
cancleImports() {
|
||||
this.areaVisible = false
|
||||
},
|
||||
// 点击工程接口人的详情人员 有权限
|
||||
ondataValueTobeinitiated(record) {
|
||||
this.areaVisible = true
|
||||
this.getquerySdtList(record)
|
||||
},
|
||||
// 点击工程接口人的详情人员 无权限
|
||||
ondataValueNot() {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
},
|
||||
onHeaderRow(column, index) {
|
||||
console.log(column, index)
|
||||
},
|
||||
ondataValue() {
|
||||
this.areaVisible = true
|
||||
console.log('ppp')
|
||||
},
|
||||
getLoginUserType() {
|
||||
let params = {
|
||||
paramsManifestId: this.paramsManifest.id,
|
||||
@@ -239,7 +335,16 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
<style lang='less'>
|
||||
.imports-footer{
|
||||
.imports-footer-wrap{
|
||||
margin:20px 0;
|
||||
text-align: center;
|
||||
.imports-sub{
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.table .ant-table-column-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user