|
|
|
@ -326,12 +326,13 @@
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="文件名称" prop="fileName">
|
|
|
|
|
<el-input v-model="form.fileName" placeholder="请输入文件名称" />
|
|
|
|
|
<el-form-item label="附件上传" prop="fileName">
|
|
|
|
|
<FileUpload v-model="fileList" />
|
|
|
|
|
<!-- <el-input v-model="form.fileName" placeholder="请输入文件名称" /> -->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="文件地址" prop="fileUrl">
|
|
|
|
|
<!-- <el-form-item label="文件地址" prop="fileUrl">
|
|
|
|
|
<el-input v-model="form.fileUrl" placeholder="请输入文件地址" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
@ -371,46 +372,48 @@
|
|
|
|
|
form.depName
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="发布时间">{{
|
|
|
|
|
form.publishTime
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="舆情状态">{{
|
|
|
|
|
form.sentimentState
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="媒体类型">{{
|
|
|
|
|
form.mediaType
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="发布时间">
|
|
|
|
|
{{ form.publishTime }}</el-descriptions-item
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="涉事类型">{{
|
|
|
|
|
form.eventType
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="舆情状态">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.tc_yq_state"
|
|
|
|
|
:value="form.sentimentState"
|
|
|
|
|
/>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="舆情类型">{{
|
|
|
|
|
form.sentimentType
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="媒体类型">
|
|
|
|
|
<dict-tag :options="dict.type.tc_yq_media" :value="form.mediaType" />
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="词云类别">{{
|
|
|
|
|
form.yuciType
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="涉事类型">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.tc_event_type"
|
|
|
|
|
:value="form.eventType"
|
|
|
|
|
/>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="来源">{{
|
|
|
|
|
form.source
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="舆情类型">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.tc_yq_type"
|
|
|
|
|
:value="form.sentimentType"
|
|
|
|
|
/>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="是否转办">{{
|
|
|
|
|
form.isturn
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="词云类别">
|
|
|
|
|
<dict-tag :options="dict.type.tc_cy_type" :value="form.yuciType" />
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="文件名称">{{
|
|
|
|
|
form.fileName
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="来源">
|
|
|
|
|
<dict-tag :options="dict.type.tc_yq_media" :value="form.source" />
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="文件地址">{{
|
|
|
|
|
form.fileUrl
|
|
|
|
|
}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="是否转办">
|
|
|
|
|
<dict-tag :options="dict.type.sys_yes_no" :value="form.isturn" />
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<FileView :fileList="fileList" />
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -441,6 +444,7 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
fileList: [],
|
|
|
|
|
tableHeigth: 0,
|
|
|
|
|
//查看详情
|
|
|
|
|
infoOpen: false,
|
|
|
|
@ -555,6 +559,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
remark: null,
|
|
|
|
|
};
|
|
|
|
|
this.fileList = [];
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
@ -578,6 +583,8 @@ export default {
|
|
|
|
|
this.reset();
|
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
|
getSentiment(id).then((response) => {
|
|
|
|
|
this.filterFile(2, response.data.fileName, response.data.fileUrl);
|
|
|
|
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.infoOpen = true;
|
|
|
|
|
this.infoTitle = "查看网络舆情详情";
|
|
|
|
@ -594,15 +601,49 @@ export default {
|
|
|
|
|
this.reset();
|
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
|
getSentiment(id).then((response) => {
|
|
|
|
|
this.filterFile(2, response.data.fileName, response.data.fileUrl);
|
|
|
|
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改网络舆情";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
filterFile(state, fileName, fileUrl) {
|
|
|
|
|
//1.提交 else 查看
|
|
|
|
|
if (state == 1) {
|
|
|
|
|
let fileName = [];
|
|
|
|
|
let fileUrl = [];
|
|
|
|
|
if (this.fileList.length > 0) {
|
|
|
|
|
this.fileList.forEach((item) => {
|
|
|
|
|
fileName.push(item.name);
|
|
|
|
|
fileUrl.push(item.url);
|
|
|
|
|
});
|
|
|
|
|
this.form.fileName = fileName.join(",");
|
|
|
|
|
this.form.fileUrl = fileUrl.join(",");
|
|
|
|
|
} else {
|
|
|
|
|
this.form.fileName = "";
|
|
|
|
|
this.form.fileUrl = "";
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (fileName || fileUrl) {
|
|
|
|
|
fileName = fileName.split(",");
|
|
|
|
|
fileUrl = fileUrl.split(",");
|
|
|
|
|
fileName.forEach((item, index) => {
|
|
|
|
|
this.fileList.push({
|
|
|
|
|
name: item,
|
|
|
|
|
url: fileUrl[index],
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.fileList = [];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.filterFile(1);
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
updateSentiment(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|