|
@@ -1,54 +1,127 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-dialog
|
|
|
- :title="title"
|
|
|
- :visible.sync="dialogVisible"
|
|
|
- width="800"
|
|
|
- :before-close="handleClose">
|
|
|
- <el-form :model="form" status-icon :rules="rules" ref="form" label-width="120px" class="demo-ruleForm">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="项目名称:">
|
|
|
- <el-input v-model="form.name" placeholder="请输入项目名称"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="技术方向:">
|
|
|
- <el-input v-model="form.type" placeholder="请输入技术方向"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="产品阶段:">
|
|
|
- <el-input v-model="form.name" placeholder="请输入产品阶段"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="产出:">
|
|
|
- <el-input v-model="form.type" placeholder="请输入产出"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="相关竞争对手:">
|
|
|
- <el-input v-model="form.name" placeholder="请输入相关竞争对手"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="技术关键词:">
|
|
|
- <el-input v-model="form.type" placeholder="请输入技术关键词"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="handleClose">取 消</el-button>
|
|
|
- <el-button type="primary" @click="submit">确 定</el-button>
|
|
|
- </span>
|
|
|
+ <el-dialog :title="title" :visible.sync="dialogVisible" width="800" :before-close="handleClose">
|
|
|
+ <el-form :model="form" status-icon :rules="rules" ref="form" label-width="120px" class="demo-ruleForm">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="项目名称:" prop="name">
|
|
|
+ <el-input v-model="form.name" placeholder="请输入项目名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="技术方向:">
|
|
|
+ <el-input v-model="form.type" placeholder="请输入技术方向"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="产品阶段:">
|
|
|
+ <el-input v-model="form.name" placeholder="请输入产品阶段"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="产出:">
|
|
|
+ <el-input v-model="form.type" placeholder="请输入产出"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="相关竞争对手:">
|
|
|
+ <el-input v-model="form.name" placeholder="请输入相关竞争对手"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="技术关键词:">
|
|
|
+ <el-input v-model="form.type" placeholder="请输入技术关键词"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="参与人:">
|
|
|
+ <el-select v-model="form.value" placeholder="请选择负责人" style="width: 100%;">
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="负责人:">
|
|
|
+ <el-select v-model="form.value" placeholder="请选择负责人" style="width: 100%;">
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="是否检索:">
|
|
|
+ <el-switch v-model="form.delivery" active-color="#13ce66" inactive-color="#ff4949">
|
|
|
+ </el-switch>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="是否审核:">
|
|
|
+ <el-switch v-model="form.delivery2" active-color="#13ce66" inactive-color="#ff4949">
|
|
|
+ </el-switch>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <template v-if="form.delivery2">
|
|
|
+ <el-row >
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="审核人:">
|
|
|
+ <el-select v-model="form.value" placeholder="请选择负责人" style="width: 100%;">
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="截止时间:">
|
|
|
+ <el-date-picker style="width: 100%" v-model="form.endTime" type="datetime"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择截止日期时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="审核备注:">
|
|
|
+ <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="form.remark"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </template>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="附件:">
|
|
|
+ <el-upload ref="upload" class="upload-file" drag action="#" :auto-upload="false" :show-file-list="true"
|
|
|
+ :on-change="onChange" :on-remove="handleRemove" :on-preview="handlePreview">
|
|
|
+ <i :class="fileList.length != 0 ? 'el-icon-upload' : 'el-icon-refresh'"></i>
|
|
|
+ <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
|
|
+ <div class="el-upload__tip" slot="tip"></div>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="项目备注:">
|
|
|
+ <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="form.remark"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="handleClose">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submit">确 定</el-button>
|
|
|
+ </span>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -58,40 +131,54 @@ export default {
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- dialogVisible:false,
|
|
|
- title:'',
|
|
|
- form:{},
|
|
|
- rules:{}
|
|
|
-
|
|
|
+ dialogVisible: false,
|
|
|
+ title: '',
|
|
|
+ form: {},
|
|
|
+ rules: {
|
|
|
+ name: [{ required: true, message: '请输入项目名称', trigger: 'blur' },],
|
|
|
+ },
|
|
|
+ options: [],//负责人数组
|
|
|
+ value: '',//负责人
|
|
|
+ fileList: []//文件数组
|
|
|
};
|
|
|
},
|
|
|
watch: {},
|
|
|
computed: {},
|
|
|
- created() {},
|
|
|
- mounted() {},
|
|
|
+ created() { },
|
|
|
+ mounted() { },
|
|
|
methods: {
|
|
|
+ onChange(file, fileList) { },
|
|
|
+ handlePreview(file, fileList) { },
|
|
|
+ handleRemove(file, fileList) { },
|
|
|
//打开弹窗
|
|
|
- open(form){
|
|
|
- this.form = JSON.parse(JSON.stringify(form))
|
|
|
- if(this.form.id){
|
|
|
- this.title = '编辑专利挖掘项目'
|
|
|
- }else{
|
|
|
- this.title = '新增专利挖掘项目'
|
|
|
- }
|
|
|
- this.dialogVisible = true
|
|
|
+ open(form) {
|
|
|
+ this.form = JSON.parse(JSON.stringify(form))
|
|
|
+ if (this.form.id) {
|
|
|
+ this.title = '编辑专利挖掘项目'
|
|
|
+ } else {
|
|
|
+ this.title = '新增专利挖掘项目'
|
|
|
+ }
|
|
|
+ this.dialogVisible = true
|
|
|
},
|
|
|
//关闭弹窗
|
|
|
- handleClose(){
|
|
|
- this.form = {}
|
|
|
- this.dialogVisible = false
|
|
|
+ handleClose() {
|
|
|
+ this.$refs.form.resetFields()
|
|
|
+ this.form = {}
|
|
|
+ this.dialogVisible = false
|
|
|
},
|
|
|
//提交数据
|
|
|
- submit(){
|
|
|
- this.dialogVisible = false
|
|
|
+ submit() {
|
|
|
+ this.$refs.form.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.handleClose()
|
|
|
+ } else {
|
|
|
+ this.$message.error('信息未输入完整')
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang="scss" scoped>
|
|
|
-</style>
|
|
|
+<style lang="scss" scoped></style>
|