master
lion 1 year ago
parent 7cb61e41b0
commit 64f6f335eb

@ -78,11 +78,24 @@
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>成果资料 <span style="color: red;font-weight: bold;padding-right: 4px;"></span>成果资料
</div> </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-upload :disabled="isdisabled" :action="action" multiple class='upload-demo' :file-list="fileList" <el-upload v-if="!isdisabled" :action="action" multiple class='upload-demo' :file-list="fileList"
ref="pictureUpload" style="width:400px" :auto-upload="true" :data="uploadOther" ref="pictureUpload" style="width:400px" :auto-upload="true" :data="uploadOther"
:on-success="handlesuccess" :on-remove="handleRemove"> :on-success="handlesuccess" :on-remove="handleRemove">
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
</el-upload> </el-upload>
<div v-else>
<div v-for="item in fileList">
<div style="color:#2D8cF0;cursor: pointer;">
{{item.name}}
<el-link target="_blank" style="margin:0 10px;" @click="toshowFile(item.url)" type="primary">
预览
</el-link>
<el-link target="_blank" @click="base.downLoadFileUrl(item.id)" type="primary">
下载
</el-link>
</div>
</div>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -135,11 +148,12 @@
</template> </template>
</xy-dialog> </xy-dialog>
<viewFile ref='viewFile'></viewFile>
</div> </div>
</template> </template>
<script> <script>
import viewFile from '@/components/viewFile/viewFile.vue'
import { import {
Message Message
} from 'element-ui' } from 'element-ui'
@ -157,7 +171,7 @@
} from "@/api/task/unit.js"; } from "@/api/task/unit.js";
export default { export default {
components: { components: {
viewFile,
}, },
data() { data() {
return { return {
@ -235,7 +249,12 @@
created() { created() {
this.uploadOther.token = getToken(); this.uploadOther.token = getToken();
}, },
methods: { methods: {
toshowFile(url) {
console.log("url", url)
this.$refs.viewFile.url = url
this.$refs.viewFile.diaShow = true
},
setDate(e1, e2) { setDate(e1, e2) {
}, },

@ -97,17 +97,18 @@
}, },
submit() { submit() {
let uArr = []
if(!this.form.title){ if(!this.form.title){
this.$Message.warning("请输入提醒内容") this.$Message.warning("请输入提醒内容")
return return
} }
if(this.checkList.length>0){ if(this.checkList.length>0){
this.checkList.map(item=>{ this.checkList.map(item=>{
this.form.users.push({ uArr.push({
user_id:item user_id:item
}) })
}) })
this.form.users = uArr
}else{ }else{
this.$Message.warning("请选择接收人") this.$Message.warning("请选择接收人")
return return
@ -129,7 +130,9 @@
if (newVal) { if (newVal) {
} else { } else {
this.id = '' this.id = ''
this.checkList = []
this.checkArr = []
this.$refs['dialog'].reset() this.$refs['dialog'].reset()
} }
}, },

@ -87,8 +87,10 @@
<template v-else> <template v-else>
<!-- 任务是发给部门的只有指定部门科长能看见需要再次分发人员 --> <!-- 任务是发给部门的只有指定部门科长能看见需要再次分发人员 -->
<!-- 转办就给 责任人 --> <!-- 转办就给 责任人 -->
<!-- 任务发给部门的科长责任人都能进行任务分解任务转办执行任务的操作 --> <!-- 任务发给部门的科长责任人都能进行任务分解任务转办执行任务的操作 -->
<div v-if="scope.row.notices.length==0 && !(scope.row.audit_status==3||scope.row.audit_status==5) || scope.row.type==4">
<!-- 责任人 督办提醒 只提醒一次 任务未完成 -->
<div v-if="scope.row.notices.length==0 && !(scope.row.audit_status==3||scope.row.audit_status==5) && scope.row.main_admin_id==stateObj.login_id">
<Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small" <Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small"
@click="sendNotice(scope.row)">督办提醒</Button> @click="sendNotice(scope.row)">督办提醒</Button>
</div> </div>

Loading…
Cancel
Save