|
|
@ -144,13 +144,13 @@
|
|
|
|
查看
|
|
|
|
查看
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<!-- v-show="scope.row.status == 2" -->
|
|
|
|
<!-- v-show="scope.row.status == 2" -->
|
|
|
|
<el-button type="info" size="mini" @click="handPj(scope.row)"
|
|
|
|
<!-- <el-button type="info" size="mini" @click="handPj(scope.row)"
|
|
|
|
>评价</el-button
|
|
|
|
>评价</el-button
|
|
|
|
>
|
|
|
|
> -->
|
|
|
|
|
|
|
|
<!-- v-show="scope.row.status == 2" -->
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
v-show="scope.row.status == 2"
|
|
|
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
v-hasPermi="['zongzhi:article:edit']"
|
|
|
|
v-hasPermi="['zongzhi:article:edit']"
|
|
|
|
>修改</el-button
|
|
|
|
>修改</el-button
|
|
|
@ -305,7 +305,7 @@
|
|
|
|
<dict-tag :options="dict.type.tc_pj_status" :value="form.status" />
|
|
|
|
<dict-tag :options="dict.type.tc_pj_status" :value="form.status" />
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
<div
|
|
|
|
<!-- <div
|
|
|
|
style="margin: 10px; font-size: 16px; font-weight: bold; color: #333"
|
|
|
|
style="margin: 10px; font-size: 16px; font-weight: bold; color: #333"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
评价列表
|
|
|
|
评价列表
|
|
|
@ -319,17 +319,17 @@
|
|
|
|
prop="pjContent"
|
|
|
|
prop="pjContent"
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-table>
|
|
|
|
</el-table> -->
|
|
|
|
<pagination
|
|
|
|
<!-- <pagination
|
|
|
|
v-show="totalPj > 0"
|
|
|
|
v-show="totalPj > 0"
|
|
|
|
:total="totalPj"
|
|
|
|
:total="totalPj"
|
|
|
|
:page.sync="PjParams.pageNum"
|
|
|
|
:page.sync="PjParams.pageNum"
|
|
|
|
:limit.sync="PjParams.pageSize"
|
|
|
|
:limit.sync="PjParams.pageSize"
|
|
|
|
@pagination="getListPj"
|
|
|
|
@pagination="getListPj"
|
|
|
|
/>
|
|
|
|
/> -->
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<!-- <el-dialog
|
|
|
|
:visible.sync="pjShow"
|
|
|
|
:visible.sync="pjShow"
|
|
|
|
width="500px"
|
|
|
|
width="500px"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
@ -356,7 +356,7 @@
|
|
|
|
<el-button type="primary" @click="submitFormPj">确 定</el-button>
|
|
|
|
<el-button type="primary" @click="submitFormPj">确 定</el-button>
|
|
|
|
<el-button @click="cancelPj">取 消</el-button>
|
|
|
|
<el-button @click="cancelPj">取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -377,7 +377,7 @@ import {
|
|
|
|
} from "@/api/zongzhi/netZoology/netP/index.js";
|
|
|
|
} from "@/api/zongzhi/netZoology/netP/index.js";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
...mapGetters(["townList", "name", "userId"]),
|
|
|
|
...mapGetters(["townList", "name", "userId", "treeProps"]),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
name: "Article",
|
|
|
|
name: "Article",
|
|
|
|
//注释字典
|
|
|
|
//注释字典
|
|
|
@ -560,27 +560,38 @@ export default {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
getArticle(id).then((response) => {
|
|
|
|
getArticle(id).then((response) => {
|
|
|
|
this.form = response.data;
|
|
|
|
response.data.areaId = JSON.parse(response.data.areaId);
|
|
|
|
if (row.status == 1) {
|
|
|
|
if (
|
|
|
|
//评价过查询详情
|
|
|
|
response.data.areaId.length > 0 &&
|
|
|
|
this.PjParams.articleId = id;
|
|
|
|
Array.isArray(response.data.areaId)
|
|
|
|
this.getListPj();
|
|
|
|
) {
|
|
|
|
this.infoOpen = true;
|
|
|
|
response.data.areaId = response.data.areaId.join("、");
|
|
|
|
this.infoTitle = "查看网络文章详情";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.infoOpen = true;
|
|
|
|
response.data.areaId = "";
|
|
|
|
this.infoTitle = "查看网络文章详情";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
this.infoOpen = true;
|
|
|
|
|
|
|
|
this.infoTitle = "查看网络文章详情";
|
|
|
|
|
|
|
|
// if (row.status == 1) {
|
|
|
|
|
|
|
|
// //评价过查询详情
|
|
|
|
|
|
|
|
// this.PjParams.articleId = id;
|
|
|
|
|
|
|
|
// this.getListPj();
|
|
|
|
|
|
|
|
// this.infoOpen = true;
|
|
|
|
|
|
|
|
// this.infoTitle = "查看网络文章详情";
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// this.infoOpen = true;
|
|
|
|
|
|
|
|
// this.infoTitle = "查看网络文章详情";
|
|
|
|
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getListPj() {
|
|
|
|
// getListPj() {
|
|
|
|
this.loadingPj = true;
|
|
|
|
// this.loadingPj = true;
|
|
|
|
listEvaluate(this.PjParams).then((response) => {
|
|
|
|
// listEvaluate(this.PjParams).then((response) => {
|
|
|
|
this.pjData = response.rows;
|
|
|
|
// this.pjData = response.rows;
|
|
|
|
this.totalPj = response.total;
|
|
|
|
// this.totalPj = response.total;
|
|
|
|
this.loadingPj = false;
|
|
|
|
// this.loadingPj = false;
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
@ -593,6 +604,7 @@ export default {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
getArticle(id).then((response) => {
|
|
|
|
getArticle(id).then((response) => {
|
|
|
|
|
|
|
|
response.data.areaId = JSON.parse(response.data.areaId);
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改网络文章";
|
|
|
|
this.title = "修改网络文章";
|
|
|
@ -602,6 +614,7 @@ export default {
|
|
|
|
submitForm() {
|
|
|
|
submitForm() {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
|
|
|
|
this.form.areaId = JSON.stringify(this.form.areaId);
|
|
|
|
this.form.status = 2; //未评价
|
|
|
|
this.form.status = 2; //未评价
|
|
|
|
if (this.form.id != null) {
|
|
|
|
if (this.form.id != null) {
|
|
|
|
updateArticle(this.form).then((response) => {
|
|
|
|
updateArticle(this.form).then((response) => {
|
|
|
|