到期更改

master
lion 11 months ago
parent 82625e933c
commit 7b5a453de8

@ -176,7 +176,7 @@
await this.getStatusList()
},
async getList() {
this.nowDate = this.$moment().add(1, 'months').format('YYYY-MM-DD')
this.nowDate = this.$moment().add(3, 'months').format('YYYY-MM-DD')
this.startDate = this.$moment('1900-01-01').format("YYYY-MM-DD")
const res = await index({
page_size: 9999,

@ -8,7 +8,7 @@
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>标题
</div>
<div class="xy-table-item-content">
<el-input placeholder="请输入标题" style="width:100%" v-model="form.title"></el-input>
<el-input :disabled="is_search" placeholder="请输入标题" style="width:100%" v-model="form.title"></el-input>
</div>
</div>
</template>
@ -31,7 +31,7 @@
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>开始日期
</div>
<div class="xy-table-item-content">
<el-date-picker v-model="form.date" style="width:100%" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
<el-date-picker :disabled="is_search" v-model="form.date" style="width:100%" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
type="date" placeholder="选择日期">
</el-date-picker>
</div>
@ -43,7 +43,7 @@
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>结束日期
</div>
<div class="xy-table-item-content">
<el-date-picker v-model="form.end_date" style="width:100%" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
<el-date-picker :disabled="is_search" v-model="form.end_date" style="width:100%" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
type="date" placeholder="选择日期">
</el-date-picker>
</div>
@ -55,7 +55,7 @@
<span style="color: red;font-weight: bold;padding-right: 4px;">*</span>所属区域
</div>
<div class="xy-table-item-content">
<el-select :disabled="stateObj.auth_type==1" style="width:100%" v-model="form.area_ids" multiple
<el-select :disabled="stateObj.auth_type==1 || is_search" style="width:100%" v-model="form.area_ids" multiple
placeholder="请选择">
<el-option v-for="item in areaList" :key="item.id" :label="item.name" :value="item.id">
</el-option>
@ -69,7 +69,7 @@
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>标签
</div>
<div class="xy-table-item-content">
<el-select style="width:100%" v-model="form.tag_ids" multiple placeholder="请选择">
<el-select :disabled="is_search" style="width:100%" v-model="form.tag_ids" multiple placeholder="请选择">
<el-option v-for="item in tagList" :key="item.id" :label="item.name" :value="item.id">
</el-option>
</el-select>
@ -95,9 +95,9 @@
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>附件
</div>
<div class="xy-table-item-content">
<el-upload :action="action" class='upload-demo' multiple :file-list="filesList" ref="pictureUpload"
<el-upload :disabled="is_search" :action="action" class='upload-demo' multiple :file-list="filesList" ref="pictureUpload"
:auto-upload="true" :data="uploadOther" :on-success="handlesuccess" :on-remove="handleRemove">
<el-button size="small" type="primary">点击上传</el-button>
<el-button v-if="!is_search" size="small" type="primary"></el-button>
</el-upload>
</div>
</div>
@ -108,7 +108,8 @@
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>内容
</div>
<div class="xy-table-item-content">
<wangEditor :isShow="isShow" v-show="showTinymce" :value="form.content" @change="changeEditor"></wangEditor>
<wangEditor :isShow="isShow && !is_search" v-show="showTinymce" :value="form.content" @change="changeEditor"></wangEditor>
<div v-if="is_search" v-html="form.content"></div>
<!-- <my-tinymce v-if="showTinymce" @input="saveContent" :value="form.content"></my-tinymce> -->
</div>
</div>
@ -155,7 +156,8 @@
id: '',
showTinymce: false,
is_next: false, //
catalogList: [],
catalogList: [],
is_search:false, //
statusList: [{
id: 0,
name: '正常'

@ -170,7 +170,7 @@
<el-button type="primary" size="small" @click="showIndex('show',scope.row.id)"></el-button>
<!-- -->
<el-button v-if="stateObj.login_id===scope.row.admin_id || stateObj.is_admin" type="primary"
size="small" @click="editIndex('editor',scope.row.id)">编辑</el-button>
size="small" @click="editIndex('editor',scope.row.id,is_search)">编辑</el-button>
<el-popconfirm v-if="stateObj.login_id===scope.row.admin_id || stateObj.is_admin" style="margin:0 10px"
@confirm="deleteList(scope.row.id)" title="确定删除吗?">
<el-button type="danger" size="small" slot="reference">删除</el-button>
@ -563,7 +563,10 @@
console.log("row",row)
this.showIndex("show",row.row.id)
},
editIndex(type, id) {
editIndex(type, id,is_search) {
if(is_search){
this.$refs.addRecord.is_search = true
}
if (type == 'editor') {
this.$refs.addRecord.id = id
} else {

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin',
outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin_test',
outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin',
assetsDir: 'static',
css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项

Loading…
Cancel
Save