|
@@ -126,12 +126,77 @@
|
|
|
<div style="width:100%;color:#555;text-align:center; font-size:20px;font-weight:600;">更新文件信息</div>
|
|
<div style="width:100%;color:#555;text-align:center; font-size:20px;font-weight:600;">更新文件信息</div>
|
|
|
</template>
|
|
</template>
|
|
|
<div class="motaikuan">
|
|
<div class="motaikuan">
|
|
|
- <el-form ref="dialogForm" :model="dialogForm" :rules="rules">
|
|
|
|
|
|
|
+ <el-form ref="dialogForm" :model="dialogForm" label-width="120px" :rules="rules">
|
|
|
|
|
+ <el-row :gutter="80" style="margin:2% 0">
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="文件类型:">
|
|
|
|
|
+ <div>{{ dialogForm.wen_jian_lei_xing?dialogForm.wen_jian_lei_xing:'/' }}</div>
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="文件编号:">
|
|
|
|
|
+ <div>{{ dialogForm.wen_jian_bian_hao?dialogForm.wen_jian_bian_hao:'/' }}</div>
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row :gutter="80" style="margin:2% 0">
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="原文件名称:">
|
|
|
|
|
+ <div>{{ dialogForm.wen_jian_bian_hao?dialogForm.wen_jian_bian_hao:'/' }}</div>
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="新文件名称:">
|
|
|
|
|
+ <el-input v-model="dialogForm.xin_wen_jian_ming" placeholder="请输入内容" />
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row :gutter="80" style="margin:2% 0">
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="发布时间:" prop="fa_bu_shi_jian_">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="dialogForm.fa_bu_shi_jian_"
|
|
|
|
|
+ :picker-options="{ disabledDate(time) { return time.getTime() > Date.now(); } }"
|
|
|
|
|
+ type="datetime"
|
|
|
|
|
+ placeholder="选择日期时间"
|
|
|
|
|
+ format="yyyy-MM-dd HH:mm"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
|
|
|
+ style="width:100%"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="生效时间:" prop="sheng_xiao_shi_">
|
|
|
|
|
+ <el-date-picker v-model="dialogForm.sheng_xiao_shi_" :picker-options="{ disabledDate(time) { return time.getTime() <= Date.now(); } }" type="date" placeholder="选择日期" style="width:100%" />
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row :gutter="80" style="margin:2% 0">
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="上传文件:" prop="wen_jian_fu_jian_">
|
|
|
|
|
+ <ibps-attachment
|
|
|
|
|
+ v-model="dialogForm.wen_jian_fu_jian_"
|
|
|
|
|
+ allow-download
|
|
|
|
|
+ download
|
|
|
|
|
+ multiple
|
|
|
|
|
+ accept="*"
|
|
|
|
|
+ store="id"
|
|
|
|
|
+ :readonly="false"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row :gutter="80" style="margin:2% 0">
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="更新内容:">
|
|
|
|
|
+ <el-input v-model="dialogForm.geng_xin_nei_rong" placeholder="请输入内容" />
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row :gutter="80" style="margin:2% 0">
|
|
|
|
|
+ <el-col :span="12"> <el-form-item label="更新原因:">
|
|
|
|
|
+ <el-input v-model="dialogForm.geng_xin_yuan_yin" placeholder="请输入内容" />
|
|
|
|
|
+ </el-form-item></el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-form-item class="footer-btn" style=" text-align: center;">
|
|
|
|
|
+ <el-button type="primary" @click="dialogVisibleClick('dialogForm')">确定</el-button>
|
|
|
|
|
+ <el-button @click="dialogVisible1 = false">取消</el-button>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <el-form ref="dialogForm" :model="dialogForm" :rules="rules">
|
|
|
<el-row :gutter="80" label-width="80" style="margin:2% 0">
|
|
<el-row :gutter="80" label-width="80" style="margin:2% 0">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="5"><div class="grid-content bg-purple">文件类型</div></el-col>
|
|
<el-col :span="5"><div class="grid-content bg-purple">文件类型</div></el-col>
|
|
|
- <el-col :span="19"><div class="grid-content bg-purple">{{ dialogForm.wen_jian_lei_xing?dialogForm.wen_jian_lei_xing:'/' }}</div></el-col>
|
|
|
|
|
|
|
+ <el-col :span="19"> {{ dialogForm.wen_jian_lei_xing?dialogForm.wen_jian_lei_xing:'/' }}</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
@@ -141,7 +206,6 @@
|
|
|
<el-col :span="19"><div class="grid-content bg-purple">{{ dialogForm.wen_jian_bian_hao?dialogForm.wen_jian_bian_hao:'/' }}</div></el-col>
|
|
<el-col :span="19"><div class="grid-content bg-purple">{{ dialogForm.wen_jian_bian_hao?dialogForm.wen_jian_bian_hao:'/' }}</div></el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
- <!-- <el-form-item label="文件编号"> {{ dialogForm.wen_jian_bian_hao }}</el-form-item> -->
|
|
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row :gutter="80" label-width="80" style="margin:2% 0">
|
|
<el-row :gutter="80" label-width="80" style="margin:2% 0">
|
|
@@ -163,15 +227,24 @@
|
|
|
<el-row :gutter="80" label-width="80" style="margin:2% 0">
|
|
<el-row :gutter="80" label-width="80" style="margin:2% 0">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
- <el-col :span="5" style="margin-top:1%"><div class="grid-content bg-purple">发布时间</div></el-col>
|
|
|
|
|
- <el-col :span="19"><div class="grid-content bg-purple"> <el-date-picker v-model="dialogForm.fa_bu_shi_jian_" value-format="timestamp" type="date" placeholder="选择日期" :picker-options="{ disabledDate(time) { return time.getTime() > Date.now(); } }" style="width:100%" /></div></el-col>
|
|
|
|
|
|
|
+ <el-col :span="5" style="margin-top:1%"><div class="grid-content bg-purple"><span style="color:red">*</span>发布时间</div></el-col>
|
|
|
|
|
+ <el-col :span="19">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="dialogForm.fa_bu_shi_jian_"
|
|
|
|
|
+ :picker-options="{ disabledDate(time) { return time.getTime() > Date.now(); } }"
|
|
|
|
|
+ type="datetime"
|
|
|
|
|
+ placeholder="选择日期时间"
|
|
|
|
|
+ format="yyyy-MM-dd HH:mm"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
|
|
|
+ style="width:100%"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
- <el-col :span="5" style="margin-top:1%"><div class="grid-content bg-purple">生效时间</div></el-col>
|
|
|
|
|
- <el-col :span="19"><div class="grid-content bg-purple"> <el-date-picker v-model="dialogForm.sheng_xiao_shi_" value-format="timestamp" type="date" placeholder="选择日期" :picker-options="{ disabledDate(time) { return time.getTime() <= Date.now(); } }" style="width:100%" /></div></el-col>
|
|
|
|
|
|
|
+ <el-col :span="5" style="margin-top:1%"><div class="grid-content bg-purple"><span style="color:red">*</span>生效时间</div></el-col>
|
|
|
|
|
+ <el-col :span="19"> <el-date-picker v-model="dialogForm.sheng_xiao_shi_" :picker-options="{ disabledDate(time) { return time.getTime() <= Date.now(); } }" type="date" placeholder="选择日期" style="width:100%" /></el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -210,12 +283,13 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- </el-form>
|
|
|
|
|
|
|
+ <el-form-item />
|
|
|
|
|
+ </el-form> -->
|
|
|
</div>
|
|
</div>
|
|
|
- <div slot="footer" class="dialog-footer" style="width:100%;text-align:center;">
|
|
|
|
|
|
|
+ <!-- <div slot="footer" class="dialog-footer" style="width:100%;text-align:center;">
|
|
|
<el-button @click="dialogVisible1 = false">取 消</el-button>
|
|
<el-button @click="dialogVisible1 = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="dialogVisibleClick()">确 定</el-button>
|
|
<el-button type="primary" @click="dialogVisibleClick()">确 定</el-button>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
|
|
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -261,7 +335,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
- rules: { name: [] },
|
|
|
|
|
|
|
+ rules: {
|
|
|
|
|
+ fa_bu_shi_jian_: [{ required: true, message: this.$t('validate.required') }],
|
|
|
|
|
+ sheng_xiao_shi_: [{ required: true, message: this.$t('validate.required') }],
|
|
|
|
|
+ wen_jian_fu_jian_: [{ required: true, message: this.$t('validate.required') }]
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
dialogVisible1: false,
|
|
dialogVisible1: false,
|
|
|
showCaoZuoColumn: false,
|
|
showCaoZuoColumn: false,
|
|
|
dialogForm: {
|
|
dialogForm: {
|
|
@@ -419,44 +498,37 @@ export default {
|
|
|
const day = ('0' + timeDate.getDate()).slice(-2)
|
|
const day = ('0' + timeDate.getDate()).slice(-2)
|
|
|
return `${year}-${month}-${day}`
|
|
return `${year}-${month}-${day}`
|
|
|
},
|
|
},
|
|
|
- dialogVisibleClick () {
|
|
|
|
|
- // console.log('点击确定', this.dataShow(this.dialogForm.sheng_xiao_shi_))
|
|
|
|
|
- this.dialogForm.sheng_xiao_shi_ = this.dataShow(this.dialogForm.sheng_xiao_shi_)
|
|
|
|
|
- this.dialogForm.fa_bu_shi_jian_ = this.dataShow(this.dialogForm.fa_bu_shi_jian_)
|
|
|
|
|
- const params = {
|
|
|
|
|
- tableName: 't_wjxxgxb',
|
|
|
|
|
- paramWhere: [this.dialogForm]
|
|
|
|
|
- }
|
|
|
|
|
- if (this.dialogForm.wen_jian_fu_jian_ === '') {
|
|
|
|
|
- this.$message.warning('请先上传文件')
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$common.request('add', params).then(res => {
|
|
|
|
|
- // console.log('新增数据成功', res)
|
|
|
|
|
- this.$message.success('添加成功!')
|
|
|
|
|
- this.dialogVisible1 = false
|
|
|
|
|
- }).catch(err => {
|
|
|
|
|
- console.log(err)
|
|
|
|
|
- this.$message.error('添加失败')
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ dialogVisibleClick (dialogForm) {
|
|
|
|
|
+ this.$refs[dialogForm]?.validate((valid) => {
|
|
|
|
|
+ if (valid) {
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ tableName: 't_wjxxgxb',
|
|
|
|
|
+ paramWhere: [this.dialogForm]
|
|
|
|
|
+ }
|
|
|
|
|
+ this.dialogForm.sheng_xiao_shi_ = this.dataShow(this.dialogForm.sheng_xiao_shi_)
|
|
|
|
|
+ this.$common.request('add', params).then(res => {
|
|
|
|
|
+ this.$message.success('添加成功!')
|
|
|
|
|
+ this.dialogVisible1 = false
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.log(err)
|
|
|
|
|
+ this.$message.error('添加失败')
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
// 外部文件更新
|
|
// 外部文件更新
|
|
|
updateDate (data) {
|
|
updateDate (data) {
|
|
|
console.log('data', data)
|
|
console.log('data', data)
|
|
|
this.dialogVisible1 = true
|
|
this.dialogVisible1 = true
|
|
|
- const sql = `select * from t_wjxxb WHERE id_='${data.row.id}'`
|
|
|
|
|
- this.$common.request('sql', sql).then(res => {
|
|
|
|
|
- console.log('res', res.variables.data[0])
|
|
|
|
|
- this.dialogForm.wen_jian_lei_xing = res.variables.data[0].wen_jian_lei_xing
|
|
|
|
|
- this.dialogForm.wen_jian_bian_hao = res.variables.data[0].wen_jian_bian_hao
|
|
|
|
|
- this.dialogForm.yuan_wen_jian_min = res.variables.data[0].wen_jian_ming_che
|
|
|
|
|
- this.dialogForm.fa_bu_shi_jian_ = res.variables.data[0].fa_bu_shi_jian_
|
|
|
|
|
- // this.dialogForm.wen_jian_fu_jian = res.variables.data[0].wen_jian_fu_jian_
|
|
|
|
|
- this.dialogForm.ji_lu_id_ = res.variables.data[0].id_
|
|
|
|
|
- this.dialogForm.yuan_wen_jian_id_ = res.variables.data[0].wen_jian_fu_jian_
|
|
|
|
|
- }).catch(err => {
|
|
|
|
|
- console.log(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.dialogForm.wen_jian_lei_xing = data.row.wen_jian_xi_lei_
|
|
|
|
|
+ this.dialogForm.wen_jian_bian_hao = data.row.wen_jian_bian_hao
|
|
|
|
|
+ this.dialogForm.yuan_wen_jian_min = data.row.wen_jian_ming_che
|
|
|
|
|
+ this.dialogForm.xin_wen_jian_ming = ''
|
|
|
|
|
+ this.dialogForm.wen_jian_fu_jian_ = ''
|
|
|
|
|
+ this.dialogForm.geng_xin_nei_rong = ''
|
|
|
|
|
+ this.dialogForm.geng_xin_yuan_yin = ''
|
|
|
|
|
+ this.dialogForm.fa_bu_shi_jian_ = ''
|
|
|
|
|
+ this.dialogForm.sheng_xiao_shi_ = ''
|
|
|
},
|
|
},
|
|
|
handleClose (done) {
|
|
handleClose (done) {
|
|
|
this.$confirm('确认关闭?')
|
|
this.$confirm('确认关闭?')
|